Show HN: IndexedDB Collection for TanStack DB


Claude and I built an IndexedDB-backed collection adapter for TanStack DB that provides persistent local storage, with automatic cross-tab synchronization.

I’m a big fan of TanStack DB library but it only had in-memory and localStorage collections. I needed something that could handle larger datasets, and sync across tabs — soI got Claude to build this.

I’ve been using this in my side projects — a Google Reader clone (https://github.com/sonnes/reader) and a communication assistant for people with ALS/MND (https://github.com/sonnes/september). I have opened a PR to the TanStack DB monorepo (https://github.com/TanStack/db/pull/1179) and have also published as a standalone package.

npm: https://www.npmjs.com/package/indexeddb-collection
GitHub: https://github.com/sonnes/indexeddb-collection
PR: https://github.com/TanStack/db/pull/1179

Give it a try and let me know what you think.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *