Turso API logo

Turso API

Turso API

Turso is edge SQLite (based on libSQL) — distributed SQLite across 30+ global regions, millisecond read latency, conflict-free sync protocol.

Visit site ↗Documentation ↗Health checked 12h ago
Use it when

30+ global regions (millisecond reads near users)

Watch for

SQLite limitations (no complex concurrent writes)

First check

Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.

Auth
api_key
CORS
?
HTTPS
Yes
Signup
?
Latency
41 ms
Protocol
REST, WebSocket, libsql
Pricing
freemium

Uptime · 30-day window

Probes: 30Uptime: 100%Avg latency: 212ms
01

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.

02

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
03

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)
04

Official quickstart

Read the official quickstart at docs.turso.tech.

05

Getting started

Sign up at turso.tech and create DB. Turso CLI: turso db create mydb; turso db shell mydb to enter SQLite shell.

06

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.

07

Technical details

CORS: ?HTTPS: YesSignup: ?Open source: No
Auth type
api_key
Pricing
freemium
Rate limit
默认按 plan
Protocols
REST, WebSocket, libsql
SDKs
javascript, typescript, python, go, rust
Response time
41 ms
Last health check
6/26/2026, 6:24:23 AM
08

Tags