Network efficient SQLite querying from static file hosting. | Tom Larkworthy | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Tom Larkworthy
@tomlarkworthy
Tech Lead at Taktile. ex Firebase, Google. 🦋 larkworthy.bsky.social
Comments (4)
Radamés Ajna
May 3, 2021
hi
@tomlarkworthy
thanks for testing this amazing package here at observable! just fyi the worker also works if you fetch it from the cdn! workerUrl = URL.createObjectURL( new Blob( [ await fetch( "
https://cdn.jsdelivr.net/npm/sql.js-httpvfs/dist/sqlite.worker.js
" ).then(d => d.text()) ], { type: 'application/javascript' } ) ) and wasmUrl = "
https://cdn.jsdelivr.net/npm/sql.js-httpvfs/dist/sql-wasm.wasm
"
Tom Larkworthy
May 4, 2021
I had it working and then it broke after publishing, have you checked it works with refreshes post publishing? Oh wait your still blobbing it. That's the critical bit.
Radamés Ajna
May 4, 2021
not really published, but shared
https://observablehq.com/d/b9a7c8671f3ee157
it works! the new Blob has the same worker origin
Reply
Fabian Iwand
May 7, 2021
Typo: "SQLlite" -> "SQLite"
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
8
Follow
Follow
Network efficient SQLite querying from static file hosting. | Tom Larkworthy | Observable