>_ hackerrepos search repos…

← top repos

phiresky/sql.js-httpvfs

Hosting read-only SQLite databases on static file hosters like Github Pages

▲ 5 hackers recommend TypeScript ★ 3.7k Apache-2.0

Recommended between 2025-09-07 and 2026-07-23. Last pushed 2024-08-06.

▲ 5 recommend · ▼ 0 criticisms

What hackers say

“There is also the deep magic...”

— tekne, 2026-07-23 · original comment on Hacker News ↗

show original comment

There is also the deep magic... https://github.com/phiresky/sql.js-httpvfs

“if performance becomes a problem statically hosting sqlite DBs with client side queries and http range requests is an interesting approach:”

— kiney, 2026-01-01 · original comment on Hacker News ↗

show original comment

if performance becomes a problem statically hosting sqlite DBs with client side queries and http range requests is an interesting approach: https://github.com/phiresky/sql.js-httpvfs

“It's reminiscent of that brilliant SQLite.js VFS trick from a few years ago: https://github.com/phiresky/sql.js-httpvfs - only that one used HTTP range headers, this one uses sharded files instead.”

— simonw, 2025-12-30 · original comment on Hacker News ↗

show original comment

…atic-shards/shard_1636.sqlite.gz https://hackerbook.dosaygo.com/static-shards/shard_1635.sqlite.gz https://hackerbook.dosaygo.com/static-shards/shard_1634.sqlite.gz As I paginated to previous days. It's reminiscent of that brilliant SQLite.js VFS trick from a few years ago: https://github.com/phiresky/sql.js-httpvfs - only that one used HTTP range headers, this one uses sharded files instead. The interactive SQL query interface at https://hackerbook.dosaygo.com/?view=query asks you to select which shards to run the query against, there are 1636 total.

“obviously this solution doesn't scale (versus something like https://github.com/phiresky/sql.js-httpvfs )”

— gregsadetsky, 2025-12-21 · original comment on Hacker News ↗

show original comment

correct! it's a sqlite database which ends up being automatically gzip'd by the github cdn aka fastly - this ends up being ~4mb over the wire obviously this solution doesn't scale (versus something like https://github.com/phiresky/sql.js-httpvfs ) but sometimes it's fun to "just" send the sqlite database to the frontend and be done :-)

“There are implementations for that: For example https://github.com/psanford/sqlite3vfshttp or https://github.com/phiresky/sql.js-httpvfs”

— johannes1234321, 2025-09-07 · original comment on Hacker News ↗

Badge for your README

hackers recommend badge
[![hackers recommend](https://hackerrepos.org/badge/phiresky/sql.js-httpvfs.svg)](https://hackerrepos.org/repo/phiresky/sql.js-httpvfs)

Alternatives hackers mention