@casual-simulation/causal-tree-store-browser
v3.2.1-alpha.5649263218
Published
A causal tree store that supports browser environments
Downloads
185
Readme
Causal Tree Store Browser
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.
}