Turso is an edge-hosted distributed database based on libSQL (a fork of SQLite). Your data lives close to your users — globally replicated.
What You Get for Free
- 500 databases — per account
- 9GB total storage — across all databases
- 1 billion row reads — per month
- 25M row writes — per month
- Global replication — data at the edge
- Embedded replicas — sync to local SQLite
Quick Start
turso db create my-db
turso db tokens create my-db
Query (TypeScript)
import { createClient } from '@libsql/client';
const client = createClient({
url: 'libsql://my-db-user.turso.io',
authToken: 'your-token',
});
await client.execute('CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)');
await client.execute({ sql: 'INSERT INTO users (name) VALUES (?)', args: ['Alice'] });
const result = await client.execute('SELECT * FROM users');
Turso vs PlanetScale
| Feature | Turso | PlanetScale |
|---|---|---|
| Engine | libSQL (SQLite) | MySQL |
| Edge | Native | Via CDN |
| Free tier | 9GB, 1B reads | Discontinued |
| Embedded | Yes (local sync) | No |
Need edge database setup? Check my work on GitHub or email spinov001@gmail.com for consulting.
Top comments (0)