Embedded database
- Relational
- SQLite
- PGLite is a full Postgres database in WASM with reactivity and live sync
- DuckDB ↗ is an in-process SQL OLAP database management system
- limbo ↗ is a work-in-progress, in-process OLTP database management system, compatible with SQLite
- tidb-wasm ↗ is an open-source, MySQL compatible, SQL database
- Multi-model
- Graph
- Vector
- LanceDB ↗ is a serverless vector database for AI application
- arroy ↗ Arroy (Approximate Rearest Reighbors Oh Yeah) is a Rust library with an interface close of the Annoy Python library to search for vectors in space that are near a targeted vector.
- PGLite + pgvector ↗
- SQLite + sqlite-vec ↗
- Key-value
- RocksDB ↗ is a library that provides an embeddable, persistent key-value store for fast storage
- Lightning Memory-Mapped Database ↗ With memory-mapped files, LMDB has the read performance of a pure in-memory database while retaining the persistence of standard disk-based databases.
- Log-structured merge trees ↗
- Object
- PoloDB ↗ is an embedded document database (Rust)
- lungoDB ↗ is a MongoDB compatible embeddable database and toolkit for Go
- FerretDB ↗ A truly Open Source MongoDB alternative (maybe, Go)
- Columnar
- DuckDB ↗ + parquet or arrow or vortex
- other ↗…
Related
Section titled “Related”Comparison
Section titled “Comparison”| SQLite | PGLite | SurrealDB | |
|---|---|---|---|
| browser | + | + | + |
| ┣ HTTPFS | + 1 | - 2 | - |
| ┣━ FTS | + 3 4 | ||
| ┣ OPFS | + | + 5 | - 6 |
| ┣ synchronization | + 7 | + 8 9 | ? 10 |
| ┗ live query | + 11 | + 12 | |
| nodejs | + | + | + |
| types | basic 13 | a lot 14 | a lot 15 |
| ┗ JSON decode | - 16 | + 17 | |
| kysely | + 18 | + 18 | + 18 |
Footnotes
Section titled “Footnotes”-
https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/#:~:text=SQLite%20FTS ↗ ↩
-
https://github.com/quickwit-oss/tantivy/pull/1067#issue-906458660 ↗ ↩
-
https://surrealdb.com/docs/sdk/javascript/core/streaming#live ↗ ↩
-
https://kysely-org.github.io/kysely-apidoc/classes/ParseJSONResultsPlugin.html ↗ ↩
-
https://github.com/electric-sql/pglite/blob/2460ee35b9fcf66a39605e7ef435f838bbc88259/packages/pglite/src/types.ts#L108 ↗ ↩