@schema-engine/forms

Framework-agnostic core engine for building type-safe, JSON-configured forms with advanced validation, actions, and extensibility.

Overview

The core package provides the foundational architecture for the JSON Form Engine ecosystem. It enables developers to:

  • Author type-safe form configs with engine.defineForm() object literals tied to your registrations
  • Register and manage form components (elements, recipes, actions)
  • Generate JSON schemas for validation and tooling
  • Execute form actions in response to lifecycle events
  • Validate form data with 24 built-in rules and custom validation support
  • Serialize and deserialize form configurations for storage or transmission

The package is completely framework-agnostic, with framework-specific adapters such as React and Radiant built on top.

Installation

pnpm add @schema-engine/forms zod

The zod package provides the zod/mini entry point used by first-party schemas. Consumer registrations may use any Standard Schema provider.

Next Steps

  • Getting Started - Build your first form engine
  • Core Concepts - createFormEngine, FormEngine, registrations
  • Form engine setup - Registrations and typed authoring
  • Validation - Built-in rules and custom validation
  • Actions - Action system and built-in plugins
  • Form state - The container every renderer binds to: values, validity and submission
  • Issue text - Word errors and warnings in your language
  • Native validity - What the browser says about a control and how the form uses it
  • Wizard and runtime - Step navigation, skippable steps and the outcome of every command
  • Server errors - Show a server's answer on the fields it names
  • CSRF - Send your framework's token with requests and native posts
  • Form libraries - Why there are no adapters, and embedding in an existing form
  • Agent skill - The guide an AI agent reads, shipped in the package
  • Styling and layout - Grid, appearance axes, theming and copy-paste recipes
  • YAML Forms - Author forms in YAML with errors that point at the line
  • API Reference - Complete API documentation