- sql.js: wasm sqlite
- absurd-sql: indexeddb backend sql.js adapter
- comlink: WebWorker RPC
https://thirsty-goldberg-7a9141.netlify.app/
Based on: AbsurdSQL with type orm example
https://jlongster.com/future-sql-web
pnpm install
pnpm serve
You need to set CORP/COEP headers for absurd-sql(SharedArrayBuffer)
Cross-Origin-Opener-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "require-corp"
MIT
This is a project to get quickly setup with absurd-sql. With this you well get a SQLite db that persistently stores data.
After cloning this project:
$ pnpm install
$ pnpm serve
You should be able to go to http://localhost:8080/, and open the console to see some query results.