@relateby/gram
v0.4.2
Published
Gram notation codec for relateby
Downloads
502
Readme
@relateby/gram
WASM-backed Gram notation parsing and serialization for relateby.
Install
npm install @relateby/gram @relateby/pattern effectPackage Role
@relateby/gram exposes the Gram codec as a focused package while reusing the @relateby/pattern WASM initialization flow.
Quick Start
import { Effect } from "effect"
import { init, Gram } from "@relateby/gram"
await init()
const parsed = await Effect.runPromise(Gram.parse("(alice:Person)"))
const rendered = await Effect.runPromise(Gram.stringify(parsed))
console.log(rendered)