libSQL client
Reasonable, with limits. 9th of 10 database drivers.
@libsql/client is Turso's TypeScript driver for libSQL. It talks to SQLite files, remote Turso databases and embedded replicas through one async API on Node, Bun, Deno and edge runtimes. It is still the client for remote Turso and for ORM adapters. But Turso's docs now point new local and sync projects to its Rust-rewrite packages, and maintenance of this repo has slowed.
Best for: Projects that run on Turso Cloud or a libSQL server, or that need one SQLite API across Node, edge and serverless runtimes.
Scores
Overall5.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
If you use Turso Cloud or a libSQL server, it is still the client to use, and ORMs support it well. For local SQLite, better-sqlite3 or node:sqlite is faster and safer. For new Turso local or sync projects, Turso itself now points to its new packages. Slower maintenance and open correctness bugs keep it in the middle of the category.
- docs.turso.tech/sdk/ts/reference.md: Vendor steers new projects elsewhere for local and sync use
- peers better-sqlite3: A stronger local SQLite driver with far more dependents
- github.com/tursodatabase/libsql-client-ts/issues: Open bugs with transactions and crashes
GPT-6.2 Sol: 6.7, likely 5.6 to 7.8
This is a good choice when the database already speaks libSQL, especially if the app needs the same API for local development and remote queries. For a new Node.js app that only needs local SQLite, better-sqlite3 is the stronger peer, and Turso recommends @tursodatabase/serverless for direct access to its newer remote engine. The score depends on the deployment because the local transaction defect and Turso's shift to newer packages matter less for an app connecting to an existing remote libSQL database.
- docs.turso.tech/sdk/ts/reference: Turso recommends this client for remote libSQL and a separate driver for its newer remote engine.
- github.com/marcus-pousette/sqlite3-bench: The local SQLite benchmark favors better-sqlite3.
- github.com/tursodatabase/libsql-client-ts/issues/361: The current release has a reported local transaction failure.
Needed by many4.2
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Its users are people on SQLite, libSQL or Turso. That is a real group, but smaller than the Postgres or MySQL audience. Support for edge and serverless runtimes widens it a little. Remote use is tied to Turso or a self-hosted sqld server.
- docs.turso.tech/sdk/ts/reference.md: Positioned for remote libSQL databases and ORM integration
- peers downloadsLast4Weeks: Postgres and MySQL drivers have several times its downloads
GPT-6.2 Sol: 4.3, likely 3.3 to 5.4
Database access is common, and 42.1% of Stack Overflow respondents who answered the database question reported using SQLite in 2026. This client serves the smaller group that wants remote libSQL, embedded replicas, or an async SQLite file API. The survey measures SQLite use broadly, so demand for those specific features is harder to size.
- survey.stackoverflow.co/2026/technology: SQLite was used by 42.1% of database-question respondents.
- docs.turso.tech/sdk/ts/reference: Covers local files, remote libSQL, embedded replicas, and edge runtimes.
Helps a lot6.4
How well does it do the job for those who need it?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
The API is clean and typed. It runs on many runtimes and supports embedded replicas, which few drivers offer. Open issues show real correctness problems: native crashes, write locks left after a failed COMMIT, and :memory: databases lost in transactions. Local performance trails better-sqlite3 by a wide margin.
- github.com/tursodatabase/libsql-client-ts/issues: Recent bugs: segfaults, lock leaks, memory leaks, a Cloudflare regression in 0.17
- hn.jakechampion.name/reader/https://sqg.dev/blog/sqlite-driver-benchmark: Independent benchmark: libSQL much slower than better-sqlite3 on most operations
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 7.3, likely 6.1 to 8.4
Version 0.18.0 has a small typed API and clear examples for common queries, which also give coding agents a good starting point. A user reproduced a persistent local write lock after a failed commit, and the proposed fix remains open. In an independent local benchmark, better-sqlite3 beat an older client version on inserts and lookups. That benchmark covers local files, so current remote performance remains harder to judge.
- tursodatabase.github.io/libsql-client-ts/interfaces/Client.html: Versioned API reference covers bound parameters, batches, and transactions.
- github.com/tursodatabase/libsql-client-ts/issues/361: User reproduced a local write lock on 0.18.0 in rollback-journal mode.
- github.com/tursodatabase/libsql-client-ts/pull/362: Proposed transaction fix remains open.
- github.com/marcus-pousette/sqlite3-bench: Independent local-file results favor better-sqlite3 over client 0.15.15.
Holds up over time4.9
Will it still be a good choice in two years?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
A funded company publishes it, and npm still got 6 versions in the last year. But the repo had only 34 commits and no GitHub releases in that year. Turso's engineering focus has moved to its Rust rewrite, and the docs steer new local and sync users to the new packages. It looks like maintenance mode rather than active development.
- github commitsLastYear / releasesLastYear: 34 commits, 0 GitHub releases; latest GitHub release Dec 2024
- github openIssues / closedIssues: 113 open versus 72 closed
- docs.turso.tech/sdk/ts/reference.md: New projects are pointed to @tursodatabase/database and @tursodatabase/sync
- turso.tech/blog/we-will-rewrite-sqlite-and-we-are-going-all-in: Turso is going all in on the rewrite
GPT-6.2 Sol: 5.8, likely 4.5 to 7.1
Turso shipped six npm versions and made 34 commits in the past year, with the same maintainer triggering the recent successful publish runs. GitHub release notes stop at 0.14.0, and users report that the gap makes upgrades harder to assess. Turso still recommends the client for remote libSQL and established ORM integrations, but points most other new Turso projects to newer packages. Long-term maintenance depends on how much work Turso continues to put into the libSQL client.
- github commitsLastYear and npm versionsLastYear: 34 commits and six npm versions in the past year.
- github.com/tursodatabase/libsql-client-ts/actions/workflows/publish.yml: Recent successful publish runs were triggered by one maintainer.
- github.com/tursodatabase/libsql-client-ts/releases: The latest GitHub release entry is 0.14.0.
- github.com/tursodatabase/libsql-client-ts/issues/340: Users report difficulty assessing upgrade compatibility.
- docs.turso.tech/sdk/ts/reference: Turso recommends newer packages for most new uses and retains this client for libSQL.
Used widely4.6
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
Downloads rose from 1.6M to 23M per 4 weeks. That ratio of about 14 is well above the median of 4.1. Much of the rise likely comes from tools that install it for you, such as @mastra/libsql and ORM adapters, rather than direct choices. Dependents (52 repos) and stars (578) are low next to its SQLite peers, though ecosyste.ms often undercounts scoped packages.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 23.1M versus 1.6M; ratio about 14
- dependents: 52 repos and 29 packages, versus 12,510 repos for better-sqlite3
- mastra.ai/reference/storage/libsql: Mastra's LibSQLStore depends on @libsql/client, which drives transitive installs
- bluesky posts: Only 1 post, a complaint about bundling on AWS Lambda
GPT-6.2 Sol: 4.2, likely 2.9 to 5.8
Four-week installs rose from 1.62 million to 23.09 million, about 14.3 times the prior year and well above the catalog median of 4.1. The tracked sample found 52 repositories and 29 npm packages, compared with 195 repositories for Neon and 12,510 for better-sqlite3. The repository has 578 stars and drew one Bluesky post in the measured window. Automated installs and downstream dependencies such as Mastra make it hard to tell how much of the growth came from projects choosing the driver directly.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Installs grew 14.3 times against a catalog median of 4.1.
- dependents and peers dependentRepos: The partial sample trails Neon and better-sqlite3.
- github stars and bluesky posts: 578 stars and one Bluesky post linking the repository.
- raw.githubusercontent.com/mastra-ai/mastra/main/stores/libsql/package.json: Mastra's libSQL storage package installs the driver as a dependency.
Vouched for6.0
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
Turso backs it, and Drizzle, Prisma adapters and Mastra build on it, which shows real production use. Independent praise is thin. The one benchmark found ranks it behind better-sqlite3, and the only Bluesky post is a complaint. There are no survey numbers for this client.
- mastra.ai/reference/storage/libsql: Framework that builds on it
- hn.jakechampion.name/reader/https://sqg.dev/blog/sqlite-driver-benchmark: Independent benchmark recommends better-sqlite3 over it for most apps
- hackerNews stories: Few, low-scoring stories, mostly about other tools
GPT-6.2 Sol: 7.0, likely 5.9 to 8.1
Drizzle and Prisma maintain integrations, and Mastra uses the driver in its storage package. These are concrete commitments from three independent projects. Public evidence on production reliability and developer retention for this specific package remains sparse.
- orm.drizzle.team/docs/get-started/turso-new: Drizzle documents dedicated libSQL adapters and runtime-specific entry points.
- prisma.io/docs/orm/v7/core-concepts/supported-databases/sqlite: Prisma documents its maintained libSQL adapter.
- raw.githubusercontent.com/mastra-ai/mastra/main/stores/libsql/package.json: Mastra storage depends on the 0.18 series.
- github.com/tursodatabase/libsql-client-ts/issues/361: A Prisma user reports timeouts tied to local file locking.
Safe7.3
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 5.5 to 8.0
It has no OSV advisories, 5 direct dependencies and an MIT licence, and a company publishes it. It installs prebuilt native binaries for each platform, which adds attack surface and causes install problems. There is no Scorecard data, and the release process lacks tags and changelogs, so the range stays fairly wide.
- advisories total: 0 advisories
- npm dependencies: 5 direct dependencies
- scorecard: No Scorecard data
- github.com/tursodatabase/libsql-client-ts/issues: Issues ask for git tags and changelogs; native package install errors
GPT-6.2 Sol: 7.5, likely 6.2 to 8.6
The package uses the permissive MIT licence, and OSV lists zero advisories for it. It has five direct dependencies, including a native binding, and its tagged GitHub Actions workflow publishes to npm with provenance. Recent releases show one person triggering publication, and the lack of an OpenSSF Scorecard leaves some repository controls unverified.
- npm license, npm dependencies, advisories total, and scorecard: MIT, five direct dependencies, zero OSV advisories, and no Scorecard result.
- raw.githubusercontent.com/tursodatabase/libsql-client-ts/v0.18.0/packages/libsql-client/package.json: The versioned manifest includes the native libsql package.
- raw.githubusercontent.com/tursodatabase/libsql-client-ts/v0.18.0/.github/workflows/publish.yml: Tag-triggered npm publishing uses an identity token and provenance.
- github.com/tursodatabase/libsql-client-ts/actions/workflows/publish.yml: The same maintainer triggered recent successful release runs.
Good
- One API covers local files, in-memory databases, remote Turso over HTTP or WebSocket, and embedded replicas that sync.
- It runs on Node, Bun, Deno, Cloudflare Workers and other edge runtimes, and it has first-class TypeScript types.
- Drizzle, Prisma, Mastra and other tools support it directly, so it fits common stacks.
- It has no known security advisories, few direct dependencies and an MIT licence.
Bad
- Turso now recommends @tursodatabase/database and @tursodatabase/sync for new local and sync projects, so new work no longer goes into this client.
- Open issues report native segfaults, write locks that stay after failed transactions, and memory leaks.
- No GitHub release or changelog has appeared since v0.14 in December 2024, and open issues (113) outnumber closed ones (72).
- For local SQLite it is far slower than better-sqlite3 or node:sqlite on simple queries.
The numbers
- npm downloads, 4 weeks
- 23M ×14 in a year
- GitHub stars
- 578
- Commits, 12 months
- 34
- npm version
- 0.18.0 Sept 2026
- Versions, 12 months
- 6
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (tursodatabase/libsql-client-ts), npm (@libsql/client), OSV and the OpenSSF Scorecard.
Database drivers
- 8.7node-postgres
- 8.2MongoDB driver
- 8.1better-sqlite3
- 8.0MySQL2
- 7.6PGlite
- 7.5Postgres.js
- 7.4DuckDB Node Neo
- 7.1Neon serverless driver
- 5.9libSQL client
- 1.9node-sqlite3