Description
Local First Database Comparison implements the same chat application with several local-first database technologies, so you can compare them side by side. The chat app is an Angular web application with features similar to WhatsApp Web. The databases covered are AWS Amplify DataStore, Firebase Firestore, PouchDB with CouchDB replication, RxDB with localStorage and with Dexie.js storage and GraphQL replication, WatermelonDB with the LokiJS adapter, PGlite (Postgres in WASM) with IndexedDB persistence and live queries, and SQLite Wasm with the OPFS storage pool in a web worker. Some of the setups have no backend sync yet, and the readme marks them. Metrics are measured automatically in headless Chrome browser tests. The readme warns that results depend heavily on the developer's device, so compare the values relative to each other rather than as absolute numbers. The metrics table covers bundle size, both plain and minified with gzip, and the time to first Angular component render, among other measures. The project also has write-ups of investigations, such as why LokiJS is faster in some tests. The numbers can be reproduced with a measure-metrics script.…
Highlights
- Same chat app built on eight local-first databases
- Automated browser metrics for bundle size and render time
- Covers Firestore, AWS DataStore, PouchDB, RxDB, WatermelonDB, PGlite and SQLite Wasm
- Investigations into performance differences
- Reproducible with a measure-metrics script
- Angular reference app
Ratings & Reviews
No ratings yet
Be the first to rate Client Side Databases.
People also visit
Canvas
Instant database and sync engine for decentralized and local-first applications
Client Side Databases FAQ
What is this project?
A comparison of local-first database technologies, built as the same Angular chat app for each one, with measured metrics.
Is it an app I can use?
It is a reference and benchmark project. The chat app exists to compare the databases, not as a product.
How are the metrics measured?
Automatically in browser tests in headless Chrome. The readme says results depend on the developer's device, so compare them relative to one another.
Which setups have no backend sync?
WatermelonDB, PGlite and SQLite Wasm are marked as having no backend sync yet in the readme.
How do I reproduce the numbers?
Run the measure-metrics script from the root folder of the repository.
What are the best Client Side Databases alternatives?
Popular alternatives to Client Side Databases include Rxdb, Verdant and PouchDB. See all Client Side Databases alternatives





