Don't want to run a backend?No backend? Formhaus Cloud hosts your forms. Try Cloud

Skip to content
Open Cloud

Write your forms once, render everywhere

Describe a form once in JSON.Share it, embed it, or render it in any web app or natively in Swift or Kotlin.

npm install @formhaus/core @formhaus/react
An agent writes a waitlist form and publishes it. The same form runs in React, Vue, a hosted page and Figma. Someone fills it in, and the response lands in the dashboard, a webhook and a CSV file.

One form definition

A JSON form definition holds the fields, steps and logic. It renders and validates the same way everywhere.

ContactForm.tsx
import { parseDefinition } from '@formhaus/core';
import { FormRenderer } from '@formhaus/react';
import '@formhaus/core/style.css';
import json from './contact.json';

const definition = parseDefinition(json);

export function ContactForm() {
  return (
    <FormRenderer
      definition={definition}
      onSubmit={(values) => console.log(values)}
    />
  );
}
Live preview
Step 1 of 2

A little about you

Who is this for?

Runs locally in your browser. Nothing is sent or saved.

Bring your own components

Keep your design system. Let Formhaus handle the behavior.

Material UI

Loading live preview

Ant Design

Loading live preview

shadcn/ui

Loading live preview

Chakra UI

Loading live preview

One definition for any design system. All answers stay in your browser.

One model across platforms

Share one form definition and render it in all your apps.

SwiftUI , Preview

Native forms for your iOS and macOS apps.

Swift guide

Kotlin & Compose , Preview

A Kotlin engine and Jetpack Compose renderer.

Kotlin guide

Native ports are 0.x previews. Check supported versions and differences.

Build forms with your coding assistant

Formhaus gives Claude Code, Codex and Cursor the schema and tools to check their work.

  1. Add Formhaus to your agents

    npx formhaus

    Works with Claude Code, Codex, Cursor and Claude Desktop. Manual setup

  2. Ask for a form

    “Build a contact form with Formhaus: name, email, message.”

  3. Get a checked definition

    The agent validates the rules and walks every branch before it hands the form over.

  4. Read the MCP guide See a complete example

zsh

~/my-app $ npx formhausFormhaus is ready in Claude Code, Codex, Cursor and Claude Desktop.  ✓ Claude Code     added MCP server and form skill  ✓ Codex           added MCP server  ✓ Cursor          added MCP server and Cursor rule  ✓ Claude Desktop  added MCP serverNext  1. Restart your agents.  2. Ask one: "Build a contact form with Formhaus: name, email, message."  3. Show it on your site: npm i @formhaus/core @formhaus/react     For Vue use @formhaus/vue. Guide: https://formhaus.dev/guide/     No site? Publish it and collect responses at https://app.formhaus.devSee every file: npx formhaus --verbose~/my-app $ 

Collect responses with Cloud

A ready backend for your forms when you just need to collect the answers.

Responses table in Formhaus CloudResponses table in Formhaus Cloud

Already have a backend? Keep your own submit handler. The framework stays free and open source.

Make it part of your app

Start with the framework. Add the pieces you need.

MIT licensed. No account required for the framework.