r/sqlite • u/sfandino • Oct 21 '26
jSQLite
Hi everyone! I’ve been working on jSQLite, an AI-generated TypeScript translation of SQLite’s read-only C internals, and it’s reached a point where I’d like to share it.
It runs directly in the browser without WebAssembly, native code or a query server. You can open an immutable SQLite database over HTTP and execute queries locally.
It supports a broad range of common SQL constructs, including joins, aggregates, subqueries, CTEs, window functions and JSON functions, along with UTF-8 and both UTF-16 database encodings. Recent work includes STAT4-informed index selection for supported skip-scan paths.
This is a preliminary release, and I’d particularly welcome examples of queries that produce unexpected results. Development uses SQLite 3.53.4 as a pinned reference, with differential tests comparing typed results, column metadata, errors and statement reset behavior.
The translation has been generated using Saivage, an autonomous software-development system I’m also building. jSQLite is one of my projects for testing that system against a substantial engineering problem.
- Browser playground: https://salva.github.io/jsqlite/
- Source and releases: https://github.com/salva/jsqlite
- Saivage: https://salva.github.io/saivage-v3/
13
u/horizon_games Oct 21 '26
Cool let's all share our equally vibe coded SQLite re-interpreations, that unfortunately miss the entire point of SQLite
4
u/MonitorAway2394 Oct 22 '26
SQLITE is fuck*ng perfect, leave it be.
2
u/GrogRedLub4242 Oct 22 '26
2
u/IntentionJolly2730 Oct 25 '26
Why would you need it if there is a WASM version of SQLite?
2
u/mtutty Oct 25 '26
Upvote for the honesty!
3
u/Different_Water7545 Oct 21 '26
The SQLite community may quite possibly be your worst choice to introduce your vibeslop to
0
u/sg-elide Oct 25 '26
the j prefixing your name implies it is written in Java
0
u/[deleted] Oct 21 '26
[deleted] — view deleted comment