@casual-simulation/causal-tree-store-browser

A causal tree store that supports browser environments

Usage no npm install needed!

<script type="module">
  import casualSimulationCausalTreeStoreBrowser from 'https://cdn.skypack.dev/@casual-simulation/causal-tree-store-browser';
</script>

README

Causal Tree Store Browser

npm (scoped)

A causal tree store that stores data in Indexed DB.

Usage

Create a Browser Causal Tree Store

import { BrowserCausalTreeStore } from '@casual-simulation/causal-tree-store-browser';

demo();

async function demo() {
    const store = new BrowserCausalTreeStore();

    await store.init();

    const storedCausalTree = await store.get('example');

    // TODO: Create a causal tree from the stored version.
}