databases (core)⏱10 minutes
Get Started with Turso
Quick Summary
“SQLite for the edge — low latency, multi-tenant, globally distributed”
Best for: Solo developers and startup founders building multi-tenant apps who want a per-user database model with SQLite simplicity
Time to first integration: 10 minutes
📋Prerequisites
- ✓Node.js 18+ installed
- ✓A Turso account — sign up here
- ✓An existing project (Next.js, React, or Node.js recommended)
Setup Steps
4 steps1
1
Create a database
Install the Turso CLI and create a database.
bash
turso db create my-db2
2
Get credentials
Get the database URL and create an auth token.
bash
turso db show my-db --url
turso db tokens create my-db3
3
Install the client
Add the libSQL client to your project.
bash
npm install @libsql/client4
4
Connect
Create a client and run SQL.
typescript
import { createClient } from '@libsql/client'
const client = createClient({ url, authToken })
const rs = await client.execute('SELECT * FROM users')Related Guides
Setting up a full stack? Check out these complementary guides.