dumbmatter / fakeIndexedDB

A pure JS in-memory implementation of the IndexedDB API
Apache License 2.0
562 stars 69 forks source link

Persistent #104

Closed tylerweitzman closed 1 month ago

tylerweitzman commented 1 month ago

Fully working MVP for a persistent drop-in replacement for indexeddb on Node.js by using leveldb.

This is the MVP. It works to get web applications running in node with persistence. I'm using it now for my own individual use. I wouldn't trust it deployed to many users because it loads a full in-memory cache of the persisted data upon initialization which takes a lot more memory than needed but is faster and was easier to build.

tylerweitzman commented 1 month ago

Closed because this would fully break the purpose of fake-indeeddb and no intention of actually merging upstream to dumbmatter as a result.

dumbmatter commented 1 month ago

Cool stuff! I'm curious, what's your use case?

tylerweitzman commented 1 month ago

Matrix JS SDK is a package I’m using to work with my messages in Node.js but since it is maintained for Element Web it’s using indexeddb for persistence which doesn’t work on Node

On Mon, Jul 29, 2024 at 10:19 PM Jeremy Scheff @.***> wrote:

Cool stuff! I'm curious, what's your use case?

— Reply to this email directly, view it on GitHub https://github.com/dumbmatter/fakeIndexedDB/pull/104#issuecomment-2257331421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP3R7QUHN77GUYS3YLUE23ZO3Z23AVCNFSM6AAAAABLTBAB4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXGMZTCNBSGE . You are receiving this because you modified the open/close state.Message ID: @.***>