Echo JS 0.11.0

<~>

axfab comments

axfab 5 hours ago. link 1 point
Hi there, Fabien (author) here. I built pocket-db for small Node/Electron apps where I wanted a document store like Mongo but a single embedded file like SQLite — without the node-gyp / per-Electron-rebuild pain of native bindings. Pure TypeScript, zero runtime deps.
The design rule is that a write never reserialises the entire file: every insert/update/delete is a sequential append, which makes writes very fast and crash-safe. Reads seek to a document's offset; there's now an optional hot-document cache for repeated reads. One deliberate guarantee: every query returns an independent copy, so mutating a result can't corrupt your stored data.
Benchmarks (including where in-memory stores still beat it on full scans) and the file-format docs are on the site. Feedback very welcome.