examples | sql.js | |
---|---|---|
1 | 1 | |
28 | 118 | |
- | - | |
3.5 | 10.0 | |
9 months ago | about 4 years ago | |
JavaScript | ||
Apache License 2.0 | - |
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
sql.js
-
SQLite WASM Official
SQLite was one of the first large C code bases to be ported to the web. Alon Zakai (@kripken, the creator of emscripten), made the first commit to sql.js at the start of 2012 [0]. I got involved two years later, and have been maintaining sql.js since. A lot was added since 2012, but the initial core api with 3 functions 'open', 'exec', and 'close' still works today.
https://github.com/kripken/sql.js/commit/cebd80648dbd369b348...
What are some alternatives?
vaxine - Rich-CRDT database based on AntidoteDB.
wasm_sqlite_with_stats - Documentation and demonstration of how to build WASM versions of SQLite with extensions embedded
kikko - Powerful SQLite adapter for web, mobile and desktop. Build reactive UI on top of it
evolu - Local-first platform designed for privacy, ease of use, and no vendor lock-in
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