examples
wasm_sqlite_with_stats
examples | wasm_sqlite_with_stats | |
---|---|---|
1 | 3 | |
28 | 24 | |
- | - | |
3.5 | 10.0 | |
9 months ago | over 1 year ago | |
JavaScript | C | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
examples
-
SQLite WASM Official
Yup, open source (https://github.com/electric-sql) + managed replication-as-service. Some of our service code (eg: infra, control plane) is proprietary.
Download size depends on the driver (we support different SQLite drivers for different environments). The web is quite heavy as it loads the SQL.js WASM (as a separate file, it’s not bundled). I want to say ~350-400kb total but I need to check and it depends a bit on how you build/bundle and serve it.
One approach would be to look at the network tab of the browser console when running the web example: https://github.com/electric-sql/examples
wasm_sqlite_with_stats
-
SQLite Release 3.40.0
Not by default, you can test it out here[1].
I documented how to compile an extension into the wasm build here[2], I assume something like that would work for fts? But I'm not sure exactly.
[1]: https://sqlite.org/fiddle/
[2]: https://github.com/llimllib/wasm_sqlite_with_stats/tree/buil...
-
SQLite WASM Official
I wrote up how to compile SQLite to WASM and also include an extension: https://github.com/llimllib/wasm_sqlite_with_stats
You can play with the wasm-compiled extension at the version of the sandbox I compiled here: https://llimllib.github.io/wasm_sqlite_with_stats/
I tried to be thorough with the writeup, so hopefully it helps somebody if that's something they need.
-
I Figured out How to Build SQLite into WASM And Include Extensions
I put thorough instructions here because it wasn't documented anywhere that I could find.
What are some alternatives?
vaxine - Rich-CRDT database based on AntidoteDB.
evolu - Local-first platform designed for privacy, ease of use, and no vendor lock-in
kikko - Powerful SQLite adapter for web, mobile and desktop. Build reactive UI on top of it
cr-sqlite - Convergent, Replicated SQLite. Multi-writer and CRDT support for SQLite
wasi-sqlite - sqlite3 CLI for a-Shell on iOS
datasette-lite - Datasette running in your browser using WebAssembly and Pyodide