Skip to content

Storage for the space event chain on the client #38

Open

Description

@nikgraf

We want a DB that is reactive and supports hooks. Meaning whenever an entry changes (also in another tab) we can listen to it and update the UI.

For a first version IndexedDB could be good enough. But never investigated if reactivity is supported or anything in this direction on top of it exists.
As a WIP this could do: https://www.nico.fyi/blog/ssr-friendly-local-storage-react-custom-hook
Livestore (https://livestore.dev/) if we want to go all in Sqlite

Activity

  1. pcarranzav commented on Apr 4, 2025

    @pcarranzav
    Contributor

    Not just for space events, right? We're currently not using any persistent storage for:

    • The automerge doc
    • Inboxes and their messages
      And these should also be persisted. These could all be stored on IndexedDB, I guess?
  2. nikgraf commented on Apr 8, 2025

    @nikgraf
    ContributorAuthor

    Automerge doc storage is just a plugin we need to add. But Inboxes and messages we also need to do manually.

    Yes, IndexedDB seems like a good choice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions