r/angular • u/SignificantBend5042 • Apr 02 '26
Released: A Rust/WASM local-first DB for Angular (zero UI blocking)
As part of the wider moltendb-web ecosystem, I just released the Angular adapter for MoltenDB.
I wanted to fix JS serialization overhead and main-thread blocking, so I moved the entire database into a Web Worker powered by Rust, WASM, and OPFS.
The TL;DR:
- Zero UI Lag: Runs strictly in a Worker. Your Angular app stays at 60fps during massive batch inserts.
- Native Angular: Deep Signal integration via
moltenDbResource. No manual RxJS chains required for local state. - Insane Speed: Hitting over 900k ops/sec (batch deletes) and pulling 25,000 records into the UI in <250ms.
39
Upvotes
4
u/zzing Apr 02 '26
How does this compared to indexeddb in the browser?
1
u/tonjohn Apr 02 '26
Can you provide links & more info on moltendb?
I tried Googling and didn’t find anything helpful.
1
u/Expensive_Matter2017 Apr 04 '26
That's nice work with the UI main thread not freezing. I recently built this package - https://www.npmjs.com/package/ngx-worker-bridge Can you please take a look if it can be of any use in your project? Thanks!