@casual-simulation/causal-tree-store-browser
TypeScript icon, indicating that this package has built-in type declarations

3.2.1-alpha.5649263218 • Public • Published

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.
}

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

3

Version

3.2.1-alpha.5649263218

License

MIT

Unpacked Size

2.97 kB

Total Files

3

Last publish

Collaborators

  • kallyngowdyyeti
  • casualsimulation