@because-dev/core
v0.6.0
Published
Because: the graph model, markdown parser, stores and the radial map, in one package. Import only what you use via subpaths.
Maintainers
Readme
@because-dev/core
The framework-free half of Because, in one package. Import only the parts you use:
| Import | What |
|---|---|
| @because-dev/core | Types, GraphStore, trails, neighbourhoods, checks, pagination, static layout. No dependencies. |
| @because-dev/core/parser, /parser/fs | Markdown notes with question callouts → graph; body rendering. |
| @because-dev/core/store, /store/static | JsonStore (in memory) and StaticStore (browser). |
| @because-dev/core/map, /map/mount | The radial, focus-centred map. |
| @because-dev/core/testing | runStoreContract for store adapters (needs vitest). |
import { BecauseMap } from "@because-dev/core/map";
import { StaticStore } from "@because-dev/core/store/static";
const map = new BecauseMap(document.querySelector("#map")!, {
store: new StaticStore({ base: "/ideas" }),
href: (idea) => `/ideas/${idea.slug}/`,
});
map.focus("heat-costs-focus");See the repository README and format spec.
