Packages
Schema Engine is a set of packages that build on each other. Install the ones the job needs and no more.
Requirements
- Node.js
^24.22.0 || >=26.0.0is what the packages are built and tested with. They declare no Node engine of their own. Their runtime requirements are the peer dependencies below. - pnpm 10. The commands here use it, and
npmandyarntake the same package names. - TypeScript
^5.4.@schema-engine/registry,@schema-engine/actionsand@schema-engine/layoutaccept^5. - A Standard Schema validator, such as Zod, Valibot or Effect Schema. Registrations take any of them. The examples use
zod/mini, andzod^4.0.17is a peer of the forms and layout packages.
What each package does
| Package | What it is for |
|---|---|
@schema-engine/registry | Registries of registrations keyed by $type, and YAML documents with line-accurate errors (/yaml) |
@schema-engine/actions | Registered actions, and a dispatcher that runs them in sequence and in parallel groups |
@schema-engine/layout | Domain-neutral grid, named appearance, themes and the recipe protocol |
@schema-engine/forms | The forms domain: the engine, fields, validation, constraints, steps, form state and submission |
@schema-engine/forms-react | The React renderer for forms: FormRenderer, hooks and the field primitives |
@schema-engine/forms-radiant | The Radiant renderer for forms: custom elements, form controls and the registrations it ships |
@schema-engine/actions depends on the registry. @schema-engine/forms depends on the registry, actions and layout, so installing it brings them in.
Install for the job
| Job | Install | Then read |
|---|---|---|
| A registry only | pnpm add @schema-engine/registry zod | Registry |
| Actions only | pnpm add @schema-engine/actions zod | Actions |
| A React form | pnpm add @schema-engine/forms @schema-engine/forms-react @schema-engine/layout react react-dom zod | Forms React |
| A Radiant form | pnpm add @schema-engine/forms @schema-engine/forms-radiant @schema-engine/layout @ecopages/radiant-ui @ecopages/radiant @ecopages/jsx @ecopages/signals zod | Forms Radiant |
| A layout theme without forms | pnpm add @schema-engine/layout zod | Layout |
Zod is only needed to author schemas with zod/mini. A registration written against another Standard Schema validator installs that validator instead.
Peer dependencies
The ranges are the ones in the package manifests. A peer on another Schema Engine package means the same release of it.
| Package | Peer dependencies |
|---|---|
@schema-engine/registry | typescript ^5; yaml ^2.8.0, optional, needed only for @schema-engine/registry/yaml |
@schema-engine/actions | typescript ^5 |
@schema-engine/layout | typescript ^5, zod ^4.0.17 |
@schema-engine/forms | typescript ^5.4, zod ^4.0.17 |
@schema-engine/forms-react | @schema-engine/forms, @schema-engine/layout, react ^19, react-dom ^19, typescript ^5.4, zod ^4.0.17 |
@schema-engine/forms-radiant | @schema-engine/forms, @schema-engine/layout, @ecopages/jsx >=0.12.0, @ecopages/radiant >=0.12.0, @ecopages/signals >=0.12.0, @ecopages/radiant-ui >=0.6.1, typescript ^5.4, zod ^4.0.17 |
TypeScript configuration
Every package needs strict mode and bundler module resolution:
{
"compilerOptions": {
"strict": true,
"moduleResolution": "bundler",
"skipLibCheck": true
}
}The registry, actions and layout need nothing else. A renderer sets the JSX transform:
| Renderer | Extra compilerOptions |
|---|---|
| React | "jsx": "react-jsx" |
| Radiant | "jsx": "react-jsx" and "jsxImportSource": "@ecopages/jsx" |
Verify the install
pnpm list --depth 0 | grep schema-engineThe output lists each Schema Engine package you installed, with its version.
Where to go next
- Quick start: a registry and a workflow, with no UI.
- Core concepts: the vocabulary the section pages share.
- Registry and Actions: the foundation, each with its own quick start.
- Forms React and Forms Radiant: installation and a quick start for each renderer.