graphprotocol / graphprotocol/hypergraph

Storage for the space event chain on the client

Open
#38 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Improved Sync
Dominant language
TypeScript
Stars
22
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the IndexedDB approach and the linked SSR-friendly local-storage hook, then compare them with Livestore and its SQLite-based option. Define the first version's storage choice and verify that client-side changes, including changes from another tab, can trigger UI updates through hooks.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
database, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.