ESC JSON Form Core
Framework-Agnostic JSON Form Engine
The framework-agnostic core engine for schema-driven JSON form generation. Provides a stateful store with validation, path-based getters/setters, array helpers, and a typed form tree. Powers the React and Angular adapters.
$ npm install esc-json-form-coreWhat we built
ESC JSON Form Core is the shared foundation underneath esc-json-form-react and esc-json-form-angular. It provides schema parsing, field resolution, validation logic, and reactive state as a pure TypeScript library — no UI framework dependency.
The API is built around a store pattern: call createJsonFormStore(initialValue, schema?) and get back a store with typed getters, setters, path-based access, array helpers, validation, and a subscriber model.
The getTree() method returns a typed form tree with nested sections that mirrors the JSON structure — adapter packages use this to drive rendering without reimplementing schema traversal.
The package can also be used directly for headless form logic, server-side validation, or as the basis for custom adapters in other UI frameworks.
What it does
- 01
Framework-Agnostic
Pure TypeScript with no UI dependencies. Powers React and Angular adapters — or build your own.
- 02
Store Pattern
createJsonFormStorereturns getValue, setValue, getAtPath, setAtPath, setTypeAtPath, and a subscribe listener. - 03
Array Helpers
addArrayItemandremoveArrayItemfor managing dynamic array fields at any path depth. - 04
Schema Validation
Set a schema with
setSchema, runvalidate(), get typed error results. Supports required, minLength, min, and type rules. - 05
Typed Form Tree
getTree()returns a typed nested tree mirroring the JSON shape — ready for adapter rendering loops. - 06
Reactive Subscriptions
store.subscribe(listener)fires on any value change — plug into any reactive framework or plain JS.
Built with
Want something like this built?
Tell us what you are building. We will come back with an architecture, a timeline, and a fixed scope — no obligation.