sqlocal weekly downloads statistics
By DallasHoff · npm · Vite plugins
SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system.
sqlocal has 4,512 recorded weekly downloads on npm, a decrease of 25.9% over the past 30 days.
It ranks #1116 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -19.4%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About sqlocal
SQLocal
SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system. It wraps the WebAssembly build of SQLite3 and gives you a simple interface to interact with databases running on device.
Documentation - GitHub - NPM - Fund
Features
• 🔎 Locally executes any query that SQLite3 supports • 🧵 Runs the SQLite engine in a web worker so queries do not block the main thread • 📂 Persists data to the origin private file system, which is optimized for fast file I/O • 🚀 Simple API; just name your database and start running SQL queries • ⚡️ Subscribe to query results and receive changes, even across tabs • 🔒 Each user can have their own private database instance • 🛠️ Works with Kysely and Drizzle ORM for making type-safe queries • 🤝 Get set up quickly with hooks for UI frameworks and a Vite plugin
Examples
Log:
Or, you can use SQLocal as a driver for Kysely or Drizzle ORM to make fully-typed queries.
Kysely
See the Kysely documentation for getting started.
Drizzle
See the Drizzle ORM documentation for declaring your schema and making queries.
Install
Install the SQLocal package in your application using your package manager.
Cross-Origin Isolation
In order to persist data to the origin private file system, this package relies on APIs that require cross-origin isolation, so the page you use this package on must be served with the following HTTP headers. Otherwise, the browser will block access to the origin private file system.
How this is configured will depend on what web server or hosting service your application uses. If your development server uses Vite, see the configuration below.
Vite Configuration
Vite needs some additional configuration to handle web worker files correctly. If you or your framework uses Vite as your build tool, you can use SQLocal's Vite plugin to set this up.
The plugin will also enable cross-origin isolation (required for origin private file system persistence) for the Vite development server by default. Just don't forget to also configure your _production_ web server to use the same HTTP headers.
Import the plugin from sqlocal/vite and add it to your Vite configuration.
Description from the npm listing.
- browser
- sqlite
- sql
- database
- wasm
- opfs
- worker
- vite-plugin
- drizzle
- kysely
Where sqlocal sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm Vite plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/sqlocal. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.