DEV Community

Alex Spinov
Alex Spinov

Posted on

Turso Has a Free Edge Database — SQLite at the Edge with Replication

A developer built a global app on Cloudflare Workers. But the database was in us-east-1. Every query crossed the Atlantic. Latency killed the UX.

Turso is SQLite at the edge. Your database replicates to locations near your users. Sub-millisecond reads from embedded replicas.

What Turso Offers for Free

  • 500 Databases - Up to 500 databases on free tier
  • 9GB Storage - Total across all databases
  • Embedded Replicas - SQLite file embedded in your app
  • Multi-Region - Automatic replication to edge locations
  • libSQL - Open-source fork of SQLite with server mode
  • Branching - Database branching for dev/staging
  • REST API - HTTP API for any language
  • Drizzle/Prisma - ORM support

Quick Start

turso db create my-app
turso db show my-app --url  # get connection URL
Enter fullscreen mode Exit fullscreen mode
import { createClient } from '@libsql/client'
const db = createClient({
  url: 'libsql://my-app-username.turso.io',
  authToken: 'your-token'
})
const result = await db.execute('SELECT * FROM users')
Enter fullscreen mode Exit fullscreen mode

Website: turso.tech - 500 free databases


Need to monitor and scrape data from multiple web services automatically? I build custom scraping solutions. Check out my web scraping toolkit or email me at spinov001@gmail.com for a tailored solution.

Top comments (0)