HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
sql-js
sql.js
JavaScript2020–2024
sql-js / sql.js

sql.js

A javascript library to run SQLite on the web.

17Distinct people
17Mentions
0Explicit recommenders
13.7KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A javascript library to run SQLite on the web.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year17 dated mentions

Observed mentions: 2020-05-23 18:47:56 UTC to 2024-11-03 17:26:47 UTC.

02468102020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 9 mentions; 1 submissions, 8 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC505
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC918
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC312

What Hacker News says

9 sources
I recently started looking into the most mature SQL database for the browser. My goal was similar, to be able take data as json or HTTP responses or csv or whatever and be able to pass them through a SQL engine with the user providing custom code/data the whole way. Turns out the most mature JavaScript database is SQLite ported to webassembly: https://github.com/sql-js/sql.js. Based on that research, I wrote a bit about running SQL and other languages entirely in the browser here: https://datastation.multiprocess.io/blog/2021-06-16-language...
In Joining CSV and JSON data with an in-memory SQLite database
We believe everyone should be able to use and profit from AI, so we spent this year building Hal9, which aspires to become "Roblox for AI". * What is Hal9? Roblox is many things: A game development environment with a visual editor that makes it easy to get started but unconstrained to advanced users that want to code. Roblox is also a library of assets, and a marketplace for games. We are taking a similar approach, we are building a visual editor to assemble anything from simple data analysis by importing data and visualizing it with charts, to data forecasting with regressions, to complex workflows to do web-scraping and run deep learning models like LSTMs. However, visual editors are constrained and at some point they just don't work, so every block is backed by open source code which you can modify to your hearts' contempt using our co
Read the rest
de editor. In addition, you can also add new blocks and share them with others in a library of assets. We are currently using GitHub as a library of open source scripts. Finally, we have aspirations to help contributors profit from their work by sharing profits with them. * How are we building this? We are building everything with web technologies, let me explain why. First, the whole purpose of this is to make AI more accessible. Technologies like Electron allow us to easily deploy to multiple platforms and avoid having users troubleshoot system dependencies. To put it simply, web technologies allow users to get started with no additional setup. However, we also see the ecosystem of web technologies converging with Data Science and AI. For instance, the tensorflow.js [1] project allows users to run TensorFlow in the client and optionally train models in GPUs in NodeJS. We currently provide NodeJS infrastructure to run server-side code and hopefully GPUs as well soon. Another great example is webassembly, which can allow us to run Python with PyIodide [2]; same for SQL with sql.js [3], etc. We are also very excited for WebGPU [4], an initiative to bring proper GPU support to web technologies, which should make it so much easier to use proper GPUs locally. Momentum is growing around Data Science with libraries like tidy.js [5], danfo.js [6], and ml5.js [7]. Currently this ecosystem is a bit fragmented but we believe they will eventually come together. Finally, web technologies like CSS and D3.js are arguably the best platform for visualizations. We are big fans of the new ObservableHQ Plot [8] library which we are already using in Hal9. * Call to action Head to https://hal9.ai and try it out. You will need your desktop to interact with the embedded app at the top of our site. The app is diabled on mobile but the site should give you a good idea of how it works. We are looking for feedback, users and contributors. If you find this useful, you can download Hal9 for Windows, Mac, or use the Web version and our cloud service for $19.99/month.We are planning to use this revenue to become self-sustained and share profits with our community of developers. As a developer, you can download and use the development versions to contribute to the open source repo of scripts in https://github.com/hal9ai/hal9ai * Resources - Site : https://hal9.ai - Github : https://github.com/hal9ai - Twitter : https://twitter.com/hal9ai - Discord : https://discord.gg/dKYgga84 - YouTube: https://www.youtube.com/user/jluraschi * References [1] https://www.tensorflow.org/js [2] https://github.com/pyodide/pyodide [3] https://github.com/sql-js/sql.js/ [4] https://www.w3.org/TR/2021/WD-webgpu-20210518/ [5] https://pbeshai.github.io/tidy/ [6] https://danfo.jsdata.org/ [7] https://ml5js.org/ [8] https://observablehq.com/@observablehq/plot
In Show HN: Hal9 – Roblox for AI
Postgres is better in the I-need-concurrency case -- I think it's the greatest RDBMS that's ever been made and would like someone to prove me wrong some day. SQLite's amazing too though, when you don't need concurrency (and most websites don't really -- especially the ones that should be scaling vertically instead of horizontally). Anyway here's some cool SQLite stuff: - https://github.com/CanonicalLtd/dqlite - https://github.com/rqlite/rqlite - https://datasette.readthedocs.io/en/stable/ - https://www.sqlite.org/rtree.html - https://github.com/sqlcipher/sqlcipher - https://github.com/benbjohnson/litestream - https://github.com/aergoio/aergolite - https://sqlite.org/lang_with.html#rcex3 - https://github.com/sql-js/sql.js - https://www.gaia-gis.it/fossil/libspatialite/index - https://github.com/h3rald/litestore - https://github.com/adamlou
Read the rest
In SQLite the only database you will ever need in most cases
With no sense of overstatement here, SQLite is one of my favorite creations in the entire world, so I have a bunch of links some of you might find interesting if you want to dig further: https://github.com/sql-js/sql.js - SQL.js lets you run SQLite within a Web page as it's just SQLite compiled to JS with Emscripten. https://litestream.io/blog/why-i-built-litestream/ - Litestream is a SQLite-powered streaming replication system. https://sqlite.org/lang_with.html#rcex3 - you can do graph-style queries against SQLite too (briefly mentioned in the article). https://github.com/aergoio/aergolite - AergoLite is replicated SQLite but secured by a blockchain. https://github.com/simonw/datasette - Datasette (mentioned at the very end of the OP article) is a tool for offering up an SQLite database as a Web accessible service - you can do queries, d
Read the rest
ata analysis, etc. on top of it. I believe Simon, the creator, frequents HN too and is a true SQLite power user :-) https://dogsheep.github.io/ - Dogsheep is a whole roster of tools for doing personal analytics (e.g. analyzing your GitHub or Twitter use, say) using SQLite and Datasette.
In SQLite is not a toy database
Using SQLite compiled to Wasm in order to push computation closer to the user is a powerful idea. I'm partial to the method of serving up the SQLite files directly and building applications around the SQL.js library [1], which includes math extensions and the ability to embed Javascript udfs. I wrote a data visualization using SQLite as the data store [2] and can attest that it's refreshing to use SQL inside of a static website. [1] https://github.com/sql-js/sql.js [2] https://ml-ranking.geospiza.me
In Serverless SQLite

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.