Paste a JSON schema, get a working form. Supports React Hook Form, Formik, Vue, Svelte, and plain HTML.
https://smart-form-factory.netlify.app/
git clone https://github.com/chintanshah35/smart-form-factory.git
cd smart-form-factory
npm install
npm run dev
Option 1: Visual Builder Click the wand icon in the header to open the drag & drop builder.
Option 2: JSON Schema Paste a schema in the editor or select a sample from the dropdown.
{
"title": "Contact",
"type": "object",
"required": ["name", "email"],
"properties": {
"name": { "type": "string", "title": "Name" },
"email": { "type": "string", "format": "email" },
"message": { "type": "string", "x-rows": 4 }
}
}
Add x-step to group fields into steps:
{
"properties": {
"name": { "type": "string", "x-step": 0 },
"email": { "type": "string", "x-step": 1 }
}
}
| Option | Description |
|---|---|
type |
string, number, integer, boolean |
format |
email, url, date, password, tel |
enum |
dropdown or radio options |
required |
array of required field names |
minLength / maxLength |
text limits |
minimum / maximum |
number range |
pattern |
regex |
x-placeholder |
placeholder text |
x-rows |
textarea rows |
x-step |
step index for multi-step forms |
Next.js 14, TypeScript, Tailwind, Zustand, Monaco Editor, Framer Motion
MIT