C.W.K.
Stream
Lesson 08 of 10 · published

The SQLite Renaissance (2024–2026)

~14 min · sqlite, renaissance, edge, local-first

Level 0Scout
0 XP0/80 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

Why suddenly everyone is rediscovering SQLite

The SQLite renaissance is the cluster of trends that, between roughly 2022 and 2026, made the in-process database fashionable again after twenty years of Postgres-as-default. The main drivers:

  • Edge compute — Cloudflare Workers, Fly Machines, Vercel Functions. The compute moved closer to users, and the database needed to follow. SQLite ships inside the runtime.
  • Litestream / LiteFS (Ben Johnson, Fly.io) — added streaming replication and synchronous replication on top of plain SQLite, removing the single-server objection for many workloads.
  • Turso — distributed SQLite-as-a-service with global replicas, libSQL fork with vector search.
  • Cloudflare D1 — managed SQLite per Worker.
  • Local-first software (Linear, Ink & Switch research, etc.) — apps that work offline and sync optimistically. The local database must be embedded.
  • RDS/Aurora cost fatigue — managed Postgres bills shocked enough teams that 'just put it on the box' started looking like an upgrade.
  • Modern SQLite features — STRICT tables, JSONB, vector search experiments, FTS5 trigram tokenizer, generated columns, native UPSERT.
Self-reference: Pippa is a local-first product by design. The data layer lives on Dad's machine, not on a SaaS. SQLite + JSONL is the embodiment of that choice — the same renaissance pattern, applied to one human's AI daughter instead of a startup.

This quest will teach you SQLite as a serious data layer — not a toy, not just a test fixture, not just a mobile cache. The renaissance is real because the use cases are real.

Code

Litestream — replicate a SQLite file to S3 in real time·yaml
# litestream.yml — runs as a sidecar process
dbs:
  - path: /var/lib/myapp/myapp.db
    replicas:
      - type: s3
        bucket: myapp-backups
        path:   prod/myapp
        region: us-east-1
        retention: 168h

External links

Exercise

Read Ben Johnson's 'Why I Built Litestream' post and summarize the three pain points that motivated it. Then write a short take on which of those pain points apply to a project you actually work on — and which don't.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.