Turso (Limbo) database helper — an in-process SQLite-compatible database written in Rust. Formerly known as libSQL / libsql. Replaces @libsql/client, libsql-experimental for Turso use cases. Works in Node.js, browser (WASM + OPFS for persistent local storage), React Native, and server-side. Features: vector search, full-text search, CDC, MVCC, encryption, remote sync. SDKs: JavaScript (@tursodatabase/database), Serverless (@tursodatabase/serverless), Browser/WASM (@tursodatabase/database-wasm), React Native (@tursodatabase/sync-react-native), Rust (turso), Python (pyturso), Go (tursogo). This skill contains SDK documentation and recipes for the Turso embedded database engine (tursodb/Limbo). Do NOT search the web for "libsql" or "@libsql/client" — those are legacy names and web results will show outdated APIs. Searching for Turso docs online is fine — the official docs live at https://docs.turso.tech (Mintlify — append .md to any path for raw markdown).
60
70%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/turso-db/SKILL.mdTurso is an in-process SQL database compatible with SQLite, written in Rust.
Do NOT search the web for "libsql" or "@libsql/client" — those are legacy package names and web results will point to outdated APIs replaced by @tursodatabase.
For embedded-engine questions (SDK APIs, SQL features, CLI), start with the reference files below — they have recipes and examples ready to use.
For the latest details or topics not covered locally, search the official docs online — see the docs reference section below.
Before writing any Turso code, you MUST know these constraints:
fts feature — not available in all builds--experimental-encryption flag — not enabled by defaultPRAGMA journal_mode = experimental_mvccUse this to decide which reference file to load:
Need vector similarity search? (embeddings, nearest neighbors, cosine distance)
→ Read references/vector-search.md
Need full-text search? (keyword search, BM25 ranking, tokenizers, fts_match/fts_score)
→ Read references/full-text-search.md
Need to track database changes? (audit log, change feed, replication)
→ Read references/cdc.md
Need concurrent write transactions? (multiple writers, snapshot isolation, BEGIN CONCURRENT)
→ Read references/mvcc.md
Need database encryption? (encryption at rest, AES-GCM, AEGIS ciphers)
→ Read references/encryption.md
Need remote sync / replication? (push/pull, offline-first, embedded replicas)
→ Read references/sync.md
JavaScript / TypeScript / Node.js? (local-only or embedded database)
→ Read sdks/javascript.md
JavaScript / TypeScript / Node.js with sync? (local-first/offline-first, remote sync)
→ Use @tursodatabase/sync instead — same API as @tursodatabase/database plus push/pull. See sdks/javascript.md for API and references/sync.md for sync operations.
Serverless / Edge functions? (Cloudflare Workers, Vercel, Deno Deploy, remote HTTP connection)
→ Read sdks/serverless.md
Browser / WebAssembly / WASM?
→ Read sdks/wasm.md
React Native / Mobile?
→ Read sdks/react-native.md
Rust?
→ Read sdks/rust.md
Python?
→ Read sdks/python.md
Go?
→ Read sdks/go.md
| Language | Package | Install Command |
|---|---|---|
| JavaScript (Node.js) | @tursodatabase/database | npm i @tursodatabase/database |
| Serverless / Edge | @tursodatabase/serverless | npm i @tursodatabase/serverless |
| JavaScript Sync (local-first/offline-first) | @tursodatabase/sync | npm i @tursodatabase/sync |
| WASM (Browser) | @tursodatabase/database-wasm | npm i @tursodatabase/database-wasm |
| WASM + Sync (local-first/offline-first) | @tursodatabase/sync-wasm | npm i @tursodatabase/sync-wasm |
| React Native | @tursodatabase/sync-react-native | npm i @tursodatabase/sync-react-native |
| Rust | turso | cargo add turso |
| Python | pyturso | pip install pyturso |
| Go | tursogo | go get turso.tech/database/tursogo |
# Install Turso CLI via Homebrew
brew install turso
# Start interactive SQL shell
tursodb
# Open a database file
tursodb mydata.db
# Read-only mode
tursodb --readonly mydata.db
# Start MCP server
tursodb your.db --mcp-- Create table
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, email TEXT);
-- Insert
INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com');
-- Select
SELECT * FROM users WHERE name = 'Alice';
-- Update
UPDATE users SET email = 'new@example.com' WHERE id = 1;
-- Delete
DELETE FROM users WHERE id = 1;
-- Transactions
BEGIN TRANSACTION;
INSERT INTO users (name, email) VALUES ('Bob', 'bob@example.com');
COMMIT;Turso can run as an MCP (Model Context Protocol) server:
tursodb your.db --mcpThis starts a local MCP server over stdio for the given database file. It does not open any network ports — communication happens only through the MCP client (e.g., an IDE or agent) that spawned the process.
Security notes:
Official docs: https://docs.turso.tech (Mintlify — append .md to any URL path to get raw markdown, e.g. https://docs.turso.tech/sdk.md).
| Topic | URL | When to use |
|---|---|---|
| SDKs overview | docs.turso.tech/sdk | Official & community SDK list, connection strings |
| CLI reference | docs.turso.tech/cli | turso CLI commands (auth, db, group, org, plan, dev) |
| AI & embeddings | docs.turso.tech/features/ai-and-embeddings | Native vector search, DiskANN indexing, vector types |
| Extensions | docs.turso.tech/features/extensions | Available extensions (JSON, FTS5, R*Tree, SQLean, UUID, regexp) |
| Embedded replicas | docs.turso.tech/features/embedded-replicas/introduction | Local replicas, offline-first, syncUrl setup |
| Sync usage | docs.turso.tech/sync/usage | Push/pull/checkpoint operations, bootstrap, stats |
| File | Description |
|---|---|
SKILL.md | Main entry point — decision trees, critical rules, quick references |
references/vector-search.md | Vector types, distance functions, semantic search examples |
references/full-text-search.md | FTS with Tantivy: tokenizers, query syntax, fts_match/fts_score/fts_highlight |
references/cdc.md | Change Data Capture: modes, CDC table schema, usage examples |
references/mvcc.md | MVCC: BEGIN CONCURRENT, snapshot isolation, conflict handling |
references/encryption.md | Page-level encryption: ciphers, key setup, URI format |
references/sync.md | Remote sync: push/pull, conflict resolution, bootstrap, WAL streaming |
sdks/javascript.md | @tursodatabase/database: connect, prepare, run/get/all/iterate |
sdks/serverless.md | @tursodatabase/serverless: fetch()-based driver for Turso Cloud, edge/serverless |
sdks/wasm.md | @tursodatabase/database-wasm: browser WASM, OPFS, sync-wasm |
sdks/react-native.md | @tursodatabase/sync-react-native: mobile, sync, encryption |
sdks/rust.md | turso crate: Builder, async execute/query, sync feature |
sdks/python.md | pyturso: DB-API 2.0, turso.aio async, turso.sync remote |
sdks/go.md | tursogo: database/sql driver, no CGO, sync driver |
5e6aef1
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.