Skip to main content

What problems ReFormer solves

A form is more than fields. It holds values, rules, reactions to input, steps, submission and error texts. Without a common frame every developer assembles all of that in their own way, and every form in a project ends up built differently.

ReFormer sets one standard for a form. Part of the value comes straight from the library features. But most of it follows from the standard: readable code, easy review, simple maintenance. Below are the standard itself, the hidden benefits you will not find in the API list, and the problems grouped by role — find yours.

One standard, many consequences​

Every ReFormer form is described the same way: a model with the values, a schema with the fields, rules and behavior — each on its own — and a single createForm call puts it together. A person, the MCP server for AI assistants and the visual builder all write to this same standard.

One form standard and its consequencesPersonwrites by handMCPAI assistantBuildervisual editorfollow the standardOne form standardmodel · schema · rules · behaviorConsequencesReadabilityone file, one questionLess mental loadless to keep in mindPainless reviewa change is a one-file diffMaintenancemarkup and rules apartOnboardinga file is found by nameAI code is plaina person edits it too
A person, MCP and the builder write a form the same way, so the consequences of the standard apply to any form code — whoever wrote it.

One standard leads to a chain of consequences:

  1. Readability. A form file answers one question: rules live in the rules file, calculations in the behavior file. Someone else's form reads like your own.
  2. Less cognitive load. To fix a rule you do not keep the markup, effects and component state in your head.
  3. Painless review. A rule change is a diff in the rules file. The reviewer sees what changed and does not hunt for logic inside JSX.
  4. Simple maintenance. You change the markup without touching the rules, and the other way round. A year later the form is laid out the same way as on the day it was written.
  5. Fast onboarding. A newcomer finds a file by its name, not by searching: there is one layout for the whole project.
  6. AI code is plain code. MCP and the builder write to the same standard. A generated form is read, reviewed and edited by hand like one a person wrote.

What the feature list does not show​

Part of ReFormer's value is not in the API: you do not turn it on with a flag, it comes by itself — because a form is written to one standard and split into layers. These benefits are the easiest to miss when choosing a library, and they are the ones that add up over the life of a project.

Faster review, no debates​

Form reviews are more often a debate about how to write than about business logic: where to keep rules, how to name a file, whether a calculation should be an effect or a computed value. In ReFormer this is settled before the review: there is one layout, every part of a form has its own place, every reaction has its own operator — compute, enableWhen, resetWhen. The reviewer is left to check what the change means: is the rule right, is the reaction needed.

A rule change is a diff in the rules file; there is no markup to read. Code from MCP and the builder is laid out the same way, so it is reviewed the same way.

Architecture out of the box​

Good form architecture usually rests on team discipline, and over time it erodes. In ReFormer the library itself sets it — the M1 architecture:

  • The model is the single source of truth. Values live in signals; nodes, rules and hooks keep no copies — there is nothing to get out of sync.
  • Responsibilities are separated. "What data" (model and schema), "is it correct" (rules), "how it reacts" (behavior) and "how it looks" (components) are different layers and different files.
  • The core does not depend on the UI. Form logic is plain TypeScript: it is tested without React and does not change when you swap components.
  • Outcomes are values, not exceptions. Submission returns a SubmitResult, a rule returns an issue code whose text comes from a dictionary.

A form written by a newcomer is laid out like one written by a senior developer. A year later it is built the same way as on the day it was written.

Three ways to render, one logic​

WayWhen it fits
JSX by hand: <FormField control={form.email} />a few fields, custom markup
From the schema: @reformer/renderer-reacta large form with uniform markup, a step wizard
From JSON: @reformer/renderer-jsonthe schema comes from a server, a CMS or a form editor

The model, rules, behavior and step flow are the same in all three cases. Rules point at a field by its model signal, not by a component, so they fit both a form from code and a form from JSON. The way is chosen per form, and all three live side by side in one project. One JSON document is rendered with different component sets: the registry changes, the document does not.

On top of the three ways work the form registry for micro-frontends, the builder and the MCP server — it writes a form on any of the three stacks.

Token savings​

When an AI assistant writes or edits a form, the standard saves tokens — which means money and time.

  • With the MCP server the assistant does not write the form module itself: it describes the form with builder calls, and the server prints the code and checks the form against the task. In the measurement on a user journey — 13 requests over an order form on three stacks, Claude Sonnet 5.5, December 2, 2026 — creating a form with the server took about 7 times fewer output tokens by median — 3,901 against 28,415 — and almost 18 times fewer tokens in all. Over the whole journey 2.8 times fewer input and output tokens were spent, hence the cost — 2.7 times lower.
  • Without the server compactness and the layout save tokens. The form code itself is 2–2.5 times shorter than with Formik, React Hook Form and RJSF: 399 lines against 890–992 in the benchmark. The model has less to read and write, and to fix a rule it opens the rules file, not the whole form.
  • Documentation ships with the packages. llms.txt and the documentation index sit in npm next to the code, so the assistant does not need to look for them on the web.

Fewer bugs by design​

Many typical form bugs cannot happen in ReFormer because of how the library is built, so there is no need to catch them with tests and in review:

  • value copies do not diverge — there are no copies, everyone reads the model signals;
  • calculations do not loop — behavior operators replace useEffect chains, and subscriptions are removed on their own;
  • a stale server check does not overwrite a fresh one — validateAsync aborts it through an AbortSignal;
  • an error does not move to another array row — a row has a stable key;
  • renaming a field does not break string paths — fields are addressed with types, and the compiler catches a mismatch.

Fewer merge conflicts​

Markup, rules, behavior and steps live in different files: form.schema.ts, form.validation.ts, form.behavior.ts, form.flow.ts — see Project structure. One person changes the look, another the rules, a third assembles fields in the builder, and their edits rarely meet in the same file. The builder does not reprint a rules file edited by hand, and it notices outside edits (IDE, git) and offers to merge them.

No dead ends as a form grows​

You can start small and not rewrite the logic as the form grows:

  1. A form with a few fields — FormField in JSX.
  2. The form grew — plug in the renderer: the schema stays the same.
  3. The schema has to live on a server — describe it as a JSON document; rules and behavior stay in TypeScript.
  4. Another team builds the form — the form registry mounts it by id.

Your own design plugs in on top of headless components, and the builder export is a plain ReFormer module. At every step the model, rules and behavior stay the same.

Knowledge does not leave with the author​

Whoever understands one ReFormer form understands them all: the layout, terms and operators are the same. A form whose author has left is maintained by anyone on the team. A developer moves between teams and projects on ReFormer without relearning, and AI code is read by the same people the same way.

Not only forms​

The signal model works as the state of the whole app: the user, the cart, the settings. A form is built over the whole app model or a part of it, so values are not copied from the form to a store and back. The form and the app share one reactive runtime and one mental model — see Signals, proxies and levels.

For the form developer​

ProblemHow ReFormer takes it awayRead more
Typing in one field re-renders the whole formValues live in signals, and a component subscribes to its own field only. In the benchmark, typing in an array row costs 0 re-renders per key, as with React Hook Form; Formik does 455Reactivity
Copies of values in useState, the form and a store drift apartValues belong to the model. Nodes, rules, behavior and hooks read the same signals and keep no copiesSignals and levels
Calculations and field availability are useEffect chains that loopBehavior is described with operators: compute, enableWhen, resetWhen, copyFrom, onChange. Subscriptions are released on their ownBehavior
Rules are scattered across JSX and mixed with markupRules are a separate defineValidation schema, and a rule over several fields (cross) lives there too. One strategy option decides when errors showValidation
Server checks race each other, and a server failure looks like bad inputvalidateAsync receives an AbortSignal: a stale check is cancelled. A failed rule gets the error status, not "invalid value"Async validation
In an array an error moves to another row after a removalThe arrayOf row template, the stable keyAt key, and applyEach rules that also cover rows added laterArrays
The step wizard is written by handcreateForm({ flow }): "Next" checks only the current step, jumping ahead is closed, and on submit the form can open the first step with an errorMulti-step forms
Submission bypasses validation, the outcome is caught with try/catchsubmission.submit validates and sends in one call. The outcome is a SubmitResult value, not an exception. A server error is shown at its fieldSubmit and reset
String paths like 'address.city' break on renameFields are addressed with types: form.address.city, model.$.email. All types are inferred from one form data typeTypeScript
Testing a rule needs a rendered componentThe core works without React: the model, rules, behavior and steps are checked with a plain unit testTesting
Error texts are hard-coded into rules and componentsA rule returns a code, and the text comes from a dictionary when shown. Switching the language translates errors already on screen without re-validationLocalization

For the team lead and reviewer​

This is where the standard pays off most. Forms in a project stop being "each one its own way".

ProblemHow ReFormer takes it awayRead more
Every form is laid out differently, and you search for thingsOne form is one folder with a file per part: form.schema.ts, form.validation.ts, form.behavior.ts. A file is found by its nameProject structure
Reviewing a form means reading logic spread across JSXThe model, schema, rules and behavior are separate. A rule change is a diff in the rules file; the reviewer does not need to read the markupSchemas
High cognitive load: everything is tied to everythingEach file answers one question: "which fields", "is the data valid", "how fields react"Introduction
Everyone assembles a form the way they are used toThere is one way — createForm. A form in JSX, by schema and from JSON is assembled the same wayLarge forms
Everyone describes operation outcomes differentlyShared contracts: the SubmitResult submit outcome, the { code, params, severity } issue, step transitions with a status and a reasonSubmit and reset
Repeated field groups are copied, and their rules get forgottenA group module keeps the schema, rules and behavior together. The group type checks that the module is attached to matching fieldsGroup module
Form code is bloatedIn the benchmark credit application the form itself is 399 lines against 890–992 for Formik, React Hook Form and RJSF. With the reusable glue code — 1007 lines against 1085–1456Benchmark
A newcomer takes long to get into the projectOne layout, one glossary, common mistakes collected in one placeGlossary, FAQ
Generated code cannot be reviewedMCP and the builder write plain ReFormer code by the same rules. It is reviewed and edited by hand like hand-written codeFor teams with AI

For a team with an AI assistant​

The ReFormer MCP server is a service that the @reformer/mcp client connects to Claude Code, Cursor and other MCP clients (early access by key for now). The assistant builds the form with the server's builder API, and the server prints the form module to the same standard a person follows.

ProblemHow ReFormer takes it awayRead more
AI writes every form its own way, and the code is a black boxThe server prints the module to the ReFormer standard. Every consequence of the standard — readability, review, maintenance — carries over to generated codeMCP overview
AI makes up APIsThe server builds the form and checks the types. For an unknown method, symbol or package it answers with the correct nameDiagnostic codes
The model says "done", but the form does not workThe server builds the form, checks the types on the current files and checks it against the task: every difference comes with a ready fix, "no differences" only when there are noneTools
Documentation for the AI has to come from somewherellms.txt and the documentation index ship to npm with the packages. The server answers from them, not from the model's memoryMCP overview
The agent goes in circles and costs a lotClaude Sonnet 5.5 on a user journey (13 requests over an order form on three stacks, December 2, 2026): with the server all 39 requests passed the required checks against 79% without it, the journey 1.4 times faster and 2.7 times cheaperWith MCP and without

For product people and analysts​

The visual builder is a form editor in the browser. A form is built there with the mouse or by asking the AI assistant in plain words.

ProblemHow ReFormer takes it awayRead more
Building a form needs a developerA form is built in the editor or by asking: "add an email field", "split the survey into three steps". An assistant turn is undone as a wholeBuilder AI assistant
A form builder keeps the form to itselfThe builder opens the project folder on disk and saves into it. Export gives a plain ReFormer module, and the builder has no server of its ownCode generation
Developer edits and builder edits overwrite each otherThe builder stops reprinting a rules file once it was edited by hand. It notices outside edits (IDE, git) and offers to merge themEditing
The builder shows someone else's components, not the product'sThe builder plugs in your UI kit and embeds into your app: the app itself renders the preview with its own styles and dataKits, Embedding
Data must not go to someone else's cloudThe assistant model is yours: a cloud one with an API key or a local one (Ollama, LM Studio)Builder AI assistant

For the platform architect​

ProblemHow ReFormer takes it awayRead more
One team builds a form, another app shows it@reformer/form-registry: one bundle registers a form, another mounts it by id, slot or route. Access rights are checked the same way for every lookupForm registry
The form schema and the code drift apart silentlyThe registry checks an entry before assembly: schema version, components, steps, model paths. A separate check catches two copies of the runtimeRegistry checks
The form arrives from the server as data@reformer/renderer-json renders a form from a JSON document. The document is checked as a whole with a list of all errors, and HTML only from allowed tagsJSON renderer
Schema-driven rendering pulls heavy dependenciesIn the benchmark the JSON form adds 36.7 KB gzip to the page, RJSF adds 129.5 KBBenchmark
The company has its own design system@reformer/cdk is logic and accessibility without styles. Your own control plugs in through an adapter, and the same JSON document renders with another component setCDK, Component registry
A library ties you to a React versionThe core does not depend on React and works without a UI. The React binding covers 16.8 to 19Installation
The form drifts from the API contractA type from an OpenAPI generator goes into createForm<T>, and the compiler catches the mismatchOpenAPI generation

Where ReFormer falls behind​

ReFormer does not solve everything and is not faster everywhere. Full numbers are in the benchmark.

  • Loading with prefilled data is slower. Prefill hydration takes 31.9 ms against 11.4 for Formik and 12.1 for React Hook Form. Mounting the form is also slower than with Formik.
  • The bundle is larger than Formik's. On top of an empty page: 28.9 KB gzip against 24.5. On a small form there is a little more code than with React Hook Form.
  • Zero re-renders per key is not a given. You get it with an uncontrolled field adapter. Controlled controls — a combobox, Radix components — re-render their own field.
  • There is a learning curve. One value has three access points: model.email, model.$.email and form.email. Their roles take some understanding — see Signals, proxies and levels.
  • MCP and the builder lay out files differently. The API standard is one, but each has its own form folder layout.
  • The builder runs in Chromium only. It needs the File System Access API.
  • Components support React 18 and 19 only. This covers @reformer/cdk, @reformer/ui-kit and the renderers; the core supports a wider range.

See also​