Snapshot modelForm edits never rewrite a response

Questionnaire infrastructure.Rendered your way.

Typed forms, snapshot-safe responses, and server validation—while your application controls UI, auth, and persistence.

One headless React client. Any Node.js server.

Response flow

Interactive preview

Form definition

TypeScript
import { defineForm } from "@dimah-form/server";export const feedbackForm = defineForm({  title: "Developer Feedback",  slug: "feedback",  fields: [    {      id: "framework",      type: "select",      label: "Primary framework",      required: true,      options: [        { value: "nextjs", label: "Next.js" },        { value: "hono", label: "Hono" },        { value: "sveltekit", label: "SvelteKit" },        { value: "express", label: "Express" },      ],    },    {      id: "rating",      type: "number",      label: "Satisfaction",      required: true,      min: 1,      max: 5,    },    {      id: "feedback",      type: "text",      label: "What could we improve?",      showWhen: { field: "rating", notEquals: [4, 5] },    },    {      id: "email",      type: "email",      label: "Email address",    },  ],});

Response session

draft
Primary framework Required
Satisfaction Required
5 / 5

Built for forms with a lifecycle

Every response keeps its definition.

The server owns the lifecycle. Your application controls UI, auth, and persistence.

Snapshot-safe

The definition stays put

Live-form edits never rewrite a draft or submitted response.

Headless session

Your components, your flow

Hooks handle visibility, drafts, and submit state. Bring your own components or add the UI package.

Typed protocol

One source of truth

Field types flow server-to-client through $Infer—no codegen or duplicate schemas.

Start with one form

Build the first response flow.

Use in-memory persistence locally, then add your guard and durable database adapter before production.