@nexaiform/formily
v0.1.1
Published
NexAiForm Formily adapter: compiles the engine IR to a Formily schema and renders it with React. React and Formily are host-provided peers so only one runtime instance exists.
Maintainers
Readme
@nexaiform/formily
NexAiForm Formily adapter: compiles the engine IR to a Formily schema and renders it with React.
React and Formily are peer dependencies, never bundled. The host must provide exactly one
runtime instance of each — two copies of React or @formily/core show up as Invalid hook call
or silently lost Formily state.
| Peer | Range |
| --- | --- |
| react, react-dom, react-is | ~19.2.4 |
| @formily/core, @formily/react, @formily/reactive-react | ~2.3.7 |
pnpm add --save-exact @nexaiform/formily @nexaiform/core @nexaiform/schema
pnpm add --save-exact [email protected] [email protected] [email protected]
pnpm add --save-exact @formily/[email protected] @formily/[email protected] @formily/[email protected]import { NexAiFormRenderer } from "@nexaiform/formily";
<NexAiFormRenderer document={prepared} fieldDecorator={HostFieldDecorator} />;The build keeps the "use client" directive, so the package works inside a Next.js App Router
server-component tree. Conditions compile to Formily function reactions — no eval, so the host
CSP never needs unsafe-eval.
ESM only, Node.js >=24.19.0. See the deployment guide
for the full host runtime matrix and singleton checks.
Licensed under MIT.
