Skip to content

RanaAhmar/sqlite-for-everything

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

🗄️ SQLite for Everything

Status Active Paradigm Contrarian

Patterns, extensions, and real-world examples for using SQLite as your only database.

✨ Overview

Stop spinning up expensive Postgres instances and Redis clusters for an app with 1,000 DAU. The SQLite renaissance is here.

SQLite for Everything is a manifesto and practical codebase demonstrating how to use SQLite for session management, queueing, caching, full-text search, and relational data—all in a single file on disk, supporting tens of thousands of concurrent users.

🚀 What's Inside

  • WAL Mode & PRAGMA optimizations: 10x your concurrent write throughput.
  • SQLite as Redis: Implementing TTL caching and fast KV stores using JSON1 extensions.
  • SQLite as a Vector DB: Using sqlite-vss for local similarity search and AI applications.
  • SQLite as a Message Queue: Building robust background task workers relying entirely on SQLite locking mechanisms.
  • Backup & Replication: Real-world examples of integration with LiteFS and Turso.

💻 Code Examples

All examples are provided in Node.js (better-sqlite3) and Python (sqlite3), featuring fully commented code indicating where optimizations matter most. View the examples/ directory to get started.

📖 The Manifesto

Read our comprehensive guide in MANIFESTO.md to understand when and why you should aggressively default to SQLite for modern web architectures.


🚀 Discover More from Stackaura

If you found this tool useful, check out our other high-performance web utilities and follow Ahmar Hussain for more open-source excellence.

🌟 Featured Projects

🔗 Stay Connected


About

Patterns, extensions, and real-world examples for using SQLite as your only database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors