< BACK TO BLOG

Turso vs Cloudflare D1 vs Fly LiteFS

Published 2026-04-26

Compare edge SQLite databases.

SQLite is back in style with edge-native solutions. Turso, Cloudflare D1, and Fly LiteFS each take a different approach to bringing SQLite to serverless and edge environments.

Quick Comparison

Turso: 3GB, libSQL, global replication | D1: 5GB, Workers only | LiteFS: 1GB, Fly only, distributed

Turso

libSQL-powered with embedded replicas. Best DX — great CLI, solid docs. 3GB free storage. Works anywhere via HTTP client or their SDK. The libSQL fork adds vector search and better replication.

Pros: 3GB storage, works everywhere, excellent DX. Cons: Not pure SQLite, slight API differences.

Cloudflare D1

Native to Cloudflare ecosystem. 5GB free — biggest free tier. Only works with Workers and Pages, but the integration is tight. Query binding makes it trivial to use.

Pros: 5GB free, native Workers integration. Cons: Cloudflare-locked, limited outside ecosystem.

Fly LiteFS

Distributed filesystem approach. Best for apps already on Fly.io. Uses Fly volume for persistence with LiteFS for replication. 1GB free.

Pros: True distributed filesystem, great for read replicas. Cons: Fly-locked, 1GB limit, more complex setup.

Tags: sqlite

Stay updated

Get weekly updates on free database tiers, provider changes, and new hosting options.

No spam, unsubscribe anytime.

Jeroen

Jeroen

Sharing my findings from building site projects -- @jro7