@libsql/client downloads · last 12 months
The @libsql/client package is a TypeScript and JavaScript driver for libSQL, a database in the SQLite family. It gives application code a client interface for communicating with libSQL databases, so database operations can be made from JavaScript or TypeScript without writing a driver from scratch.
The package is focused on connecting application code to libSQL rather than providing a framework, schema design system, or general-purpose data layer. Its stated audience includes developers building JavaScript and TypeScript applications that use libSQL, including serverless database workloads; the available package information does not specify a broader set of design goals or supported deployment environments.
Applications use the client as the point of interaction with the database: create a client, issue database operations through it, and consume the results in application code. The package description does not identify specific method names, transaction APIs, connection options, or query patterns, so check the version 0.18.0 documentation for the exact API and behavior before choosing an integration pattern.
The client is relevant to JavaScript and TypeScript workflows that need to connect to libSQL, and its topics also identify SQLite. It can serve as the database-access layer within an application, while framework-specific routing, request handling, and application architecture remain responsibilities of the surrounding project; the supplied information does not name particular framework integrations.
The package is listed at version 0.18.0 under the MIT license, with a reported unpacked size of 156.6 kB and gzip bundle size of 19.3 kB. The supplied listing reports 1.6M weekly downloads, 577 GitHub stars, 70 forks, 129 open issues, and an update date of 2026-09-02; these figures provide context but do not establish performance, compatibility, or support guarantees. Confirm current documentation and issue status when evaluating it for a production system.
- Use @libsql/client when a JavaScript or TypeScript application must connect to a libSQL database through a dedicated driver.
- Choose it when libSQL is the database behind a serverless application and the application needs a client-based database access layer.
- Use it in SQLite-related development when the target database is specifically libSQL and you want a driver described for that database family.
- Add it to a TypeScript project when you want to use a package explicitly described as a TypeScript and JavaScript libSQL driver; verify the version 0.18.0 API in its documentation.
- Use the client as the database connection boundary for application code, keeping framework request handling separate from libSQL operations.
- Evaluate it when the listed 19.3 kB gzip bundle size is relevant to your dependency review, while checking how your deployment includes the driver.
- Avoid it when the target is not libSQL; use a database driver intended for the database you actually run.
- Avoid it when your application requires a specific API or capability that the version 0.18.0 documentation does not confirm; verify support first or select a driver with documented coverage.
- Avoid treating @libsql/client as a schema migration or application framework: use a dedicated migration workflow or framework layer for those responsibilities.
- Avoid relying on the supplied package listing as proof of runtime performance or deployment compatibility; test the driver in your target environment or choose a solution with verified compatibility.
- Avoid adding it to code that does not access libSQL; keep database dependencies out of components and services that have no libSQL operations.
- Avoid selecting it solely because the package lists a 19.3 kB gzip bundle size; measure the output of your own build and consider another integration if its actual contribution is unsuitable.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back