wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.
https://openui.fly.dev
Apache License 2.0
16.81k stars 1.47k forks source link

We should store HTML and Markdown in IndexedDB instead of localStorage #171

Open vanpelt opened 5 days ago

vanpelt commented 5 days ago

In my local development environment I was getting quota exceeded errors because of the amount of data we're writing to local storage. frontend/src/state/atoms/history.ts contains logic to read and write the HTML and the Markdown for a HistoryItem to localStorage. We should rewrite that to use indexedDB (using jotai-minidb) in a way that maintains backwards compatibility and reads from localStorage falling back to indexedDB and moving all future writes to indexedDB.