SQL.js
SQLite database compiled to JavaScript, run SQL in browser without server.
Databases, ORMs and clients npm MIT
Used in agent projects
21
0.2% of 12,697 public repos built with AI coding agents
Rank in databases, orms and clients
#30 of 30
by use in those projects
Downloads
3M
npm, last 7 days, sql.js
GitHub stars
13.7K
last push Oct 9, 2026
How SQL.js is used
SQL.js is a dependency in 21 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #30 of 30 in databases, orms and clients. The most used alternative there is Prisma. Projects that use it most often also use Express (28.6%), Model Context Protocol SDK (JavaScript) (23.8%), TypeScript (71.4%).
Often used with SQL.js
| Express | 28.6% of SQL.js projects · 4.4× more than average |
|---|---|
| Model Context Protocol SDK (JavaScript) | 23.8% of SQL.js projects · 5.0× more than average |
| TypeScript | 71.4% of SQL.js projects |
| Zod | 38.1% of SQL.js projects · 2.2× more than average |
| uuid | 19.0% of SQL.js projects · 5.3× more than average |
| jsdom | 19.0% of SQL.js projects · 3.6× more than average |
| Vitest | 28.6% of SQL.js projects · 2.3× more than average |
| ESLint | 47.6% of SQL.js projects |
By coding agent
| Claude Code | 0.4% of projects set up for it |
|---|---|
| GitHub Copilot | 0.4% of projects set up for it |
| Cursor | 0.3% of projects set up for it |
Share of public repos configured for each agent that list SQL.js as a dependency.
Install
| Package | npm install sql.js |
|---|---|
| Main stacks | TypeScript / JavaScript (15), Next.js (3), Python (3) |
| Example projects | mturac/everything-openai-codex, GeekLad/meteora-profit-analysis, InfamousVague/Libre.academy, khovan123/contextOS |
Alternatives to SQL.js
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Prisma npm Modern ORM with intuitive schema, migrations, and type-safe database queries. |
381 (3.0%) | 19M | 23 | Apache-2.0 |
| pg npm PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility. |
372 (2.9%) | 63.4M | 13.2K | MIT |
| Drizzle ORM npm TypeScript ORM for SQL databases with type safety and zero-runtime overhead. |
323 (2.5%) | 27.2M | 36K | Apache-2.0 |
| Drizzle Kit npm CLI migration tool for Drizzle ORM that auto-generates SQL migrations intelligently. |
309 (2.4%) | 22.3M | 36K | MIT |
| SQLAlchemy pypi Python SQL toolkit and object-relational mapper for database abstraction. |
250 (2.0%) | 85.7M | 12.2K | — |
| better-sqlite3 npm Fastest and simplest SQLite library for Node.js with synchronous API. |
162 (1.3%) | 11.3M | 7,513 | MIT |
| psycopg2 pypi Popular PostgreSQL adapter for Python with full database access and query execution. |
143 (1.1%) | 50.7M | 3,656 | LGPL with exceptions |
| Mongoose npm MongoDB object modeling library providing schema validation and query building. |
142 (1.1%) | 6.6M | 27.5K | MIT |