Turso API
Turso API
Turso is edge SQLite (based on libSQL) — distributed SQLite across 30+ global regions, millisecond read latency, conflict-free sync protocol.
30+ global regions (millisecond reads near users)
SQLite limitations (no complex concurrent writes)
Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.
Uptime · 30-day window
About this API
Turso is an edge database company founded 2022 (formerly ChiselStrike), based on proprietary libSQL (SQLite fork with server-side features). Core innovation: SQLite as local embedded DB typically can't "sync across nodes"; Turso adds server-side + conflict-free sync protocol, turning SQLite into globally distributed DB. Choosing SQLite over Postgres/MySQL because: (1) SQLite files are small (one file per DB), deploying to 30+ regions is cheap; (2) Extremely low read/write latency (SQLite reads file directly, no query planner like Postgres); (3) Embedded replicas — your app process embeds a local SQLite, zero-latency reads. Best for: global user web apps (users in every region need local-speed DB), edge function apps (Cloudflare Workers + Turso), mobile offline-first apps. Representative of new-generation edge-era databases.
What you can build
- 1Global user apps (each region reads locally)
- 2Edge function + database (Cloudflare Workers + Turso golden combo)
- 3Mobile app local + cloud sync
- 4Multi-tenant SaaS independent DB per customer
Strengths & limitations
Strengths
- 30+ global regions (millisecond reads near users)
- SQLite compatible (small and fast)
- Embedded replicas with local zero latency
- Affordable pricing (free 9GB storage + 1B reads/month)
Limitations
- SQLite limitations (no complex concurrent writes)
- Smaller ecosystem than Postgres / MySQL
- Relatively new (founded 2022)
Example request
curl https://turso.tech/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.
FAQ
Turso vs. Cloudflare D1?+
D1 is also SQLite at edge, only usable within Cloudflare Workers. Turso is cross-platform (any app can connect).
SQLite limitations?+
No high-concurrency writes (suits read-heavy scenarios). Complex transactions and large datasets still need Postgres.
Technical details
- Auth type
- api_key
- Pricing
- freemium
- Rate limit
- 默认按 plan
- Protocols
- REST, WebSocket, libsql
- SDKs
- javascript, typescript, python, go, rust