# libSQL client: 5.9 out of 10

Reasonable, with limits. 9th of 10 in [Database drivers](https://elestia.ai/opensource/db-drivers/index.md).

@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

- **Overall: 5.9** (likely 4.8 to 6.9)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (6.7): 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.
- **Needed by many: 4.2** (likely 3.2 to 5.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (4.3): 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.
- **Helps a lot: 6.4** (likely 5.3 to 7.5)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (7.3): 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.
- **Holds up over time: 4.9** (likely 3.8 to 6.3)
  - Claude Opus 5.5 (4.0): 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.
  - GPT-6.2 Sol (5.8): 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.
- **Used widely: 4.6** (likely 3.5 to 6.2)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (4.2): 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.
- **Vouched for: 6.0** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (7.0): 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.
- **Safe: 7.3** (likely 5.9 to 8.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.5): 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.

## 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

- Downloads, 4 weeks: 23M
- In a year: ×14
- GitHub stars: 578
- Commits, 12 months: 34
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/tursodatabase/libsql-client-ts
- npm: https://www.npmjs.com/package/@libsql/client

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
