DEV Community

Alex Spinov
Alex Spinov

Posted on

Turso Has a Free API That Gives You SQLite at the Edge With Embedded Replicas

Turso is SQLite at the edge — replicated to 30+ locations. Reads < 1ms. Embedded replicas run a local SQLite file that syncs with the remote primary.

import { createClient } from '@libsql/client'
const db = createClient({
  url: 'file:local.db',
  syncUrl: 'libsql://my-db.turso.io',
  authToken: 'token'
})
Enter fullscreen mode Exit fullscreen mode

Free tier: 500 DBs, 9GB storage, 1B reads/month. Perfect for edge-first apps.


Need to automate data collection or build custom scrapers? Check out my Apify actors for ready-made tools, or email spinov001@gmail.com for custom solutions.

Top comments (0)