@keymora/document
v0.1.0-alpha.0
Published
Document node model utilities for Keymora.
Maintainers
Readme
@keymora/document
Document node utilities for Keymora.
This package builds on @keymora/core and provides caller-defined custom nodes inside a single Keymora input root. It includes insertion, deletion, selection helpers, serialization, and restoration from structured document values.
The custom node API is still experimental and should be published under an alpha tag until the public API is stable.
import { atomicNode, createKeymoraEditor, editableNode } from "@keymora/document";
const editor = createKeymoraEditor({
nodes: {
pause: atomicNode({ data: { durationMs: 500 } }),
emotion: editableNode(),
},
});See the root README for the current MVP status and package overview.
