turso
$
npx mdskill add EpicenterHQ/epicenter/tursoExplains Turso and libSQL patterns for SQLite-compatible database usage
- Solves integration and sync challenges with embedded and remote SQLite-compatible databases
- Relies on Turso CLI, libSQL drivers, and Drizzle ORM for schema and queries
- Analyzes sync behavior, WAL/MVCC, and compatibility gaps in different deployment modes
- Provides guidance on data consistency, lifecycle, and secure client usage boundaries
SKILL.md
.github/skills/tursoView on GitHub ↗
--- name: turso description: Turso and libSQL patterns for embedded SQLite-compatible databases, serverless drivers, sync engines, partial sync, WAL/MVCC behavior, compatibility gaps, CLI usage, and Drizzle integration boundaries. Use when mentioning Turso, libSQL, @libsql/client, remote SQLite, embedded replicas, or local database sync. metadata: author: epicenter version: '1.0' --- # Turso And libSQL ## Reference Repositories - [Turso](https://github.com/tursodatabase/turso) - SQLite-compatible database platform and libSQL ecosystem - [Drizzle ORM](https://github.com/drizzle-team/drizzle-orm) - ORM commonly used with libSQL and Turso ## Upstream Grounding When Turso sync behavior, libSQL driver behavior, embedded replicas, partial sync, concurrency, compatibility, or CLI behavior affects correctness, ask DeepWiki a narrow question against `tursodatabase/turso`. Verify decisive details against local driver versions and Turso docs. Use the `drizzle-orm` skill for schema and query builder decisions. ## Driver Boundaries - Treat Turso/libSQL as SQLite-compatible, not identical to every local SQLite deployment. - Serverless client usage has network and auth behavior. Keep it behind the runtime boundary that owns secrets. - Embedded replicas and sync engines have lifecycle and consistency behavior. Document when data is local, when it syncs, and which writes are accepted. - Do not assume normal multi-process SQLite behavior when using embedded or remote libSQL modes. ## Sync And Compatibility Checks - Decide whether the feature needs remote writes, local reads, offline reads, or bidirectional sync before choosing the driver mode. - For partial sync, define the subset boundary explicitly and test that queries do not silently depend on unsynced rows. - Check current SQLite compatibility before using newer SQLite features, virtual tables, extensions, triggers, or pragma behavior. - WAL, MVCC, and concurrency details are part of the database contract. Do not hide them behind generic "SQLite" language when they affect correctness. ## Operational Rules - Keep Turso CLI commands in docs or scripts, not scattered through app code. - Integration tests should cover auth failure, network failure, sync lag, duplicate writes, and migration compatibility. - When Drizzle is the ORM, keep the schema and migrations in Drizzle, but put Turso connection, sync, and deployment constraints in this skill's mental model.