@batterai/bind-core
v0.1.0
Published
Canonical, DOM-free spine model for Battery pages and bindings.
Readme
@batterai/bind-core
Canonical, DOM-free spine model for Battery pages and bindings.
What It Provides
- Branded ids for tenants, pages, nodes, fields, and content types.
- The closed binding-expression AST and parser/formatter.
- Scope building, deterministic evaluation, escaping, and typed errors.
- Canonical page-tree mutation helpers used by MCP, playground, and host paths.
Install
npm install @batterai/bind-coreRequires Node.js >=20.11.
Boundary
This package owns pure data structures and validation. It does not read from a CMS, write to storage, touch the DOM, or import editor UI.
