Developer docs
Your forms, in your own code.
Build a form in Seaforms, then put it in your React, Next.js, React Router or Astro site. It's drawn in your page's HTML, takes your site's look, and sends to us.
npm install @seaforms/react
import { Form } from "@seaforms/react";import contact from "@/forms/contact.seaforms.json";
export default function ContactPage() { return ( <main> <h1>Get in touch</h1> <Form schema={contact} /> </main> );}$ npx seaforms pullNorthwind's forms, into src/forms:✔ contact revision 3, savedRebuild and deploy your site to put the change on its pages.// Types for the answers to contact.seaforms.json, revision 3.// Made by the Seaforms CLI. Don't edit it: pull the form again after you publish a change.
/** * A submission's answers, keyed by question, as webhooks and the Seaforms API send them. An answer * is optional when the question can be left blank or only shows sometimes. A webhook set to send * only some questions leaves the others out. */export interface ContactAnswers { /** Name */ name: string; /** Email */ email: string; /** What’s it about? */ topic: "sales" | "support" | "press" | "something-else"; /** Message */ message: string;}
/** Which thank-you showed: `ending` in `onSubmitted`. */export type ContactEnding = "thanks";
/** The form's steps: `stepId` in `onStep`. */export type ContactStep = "get-in-touch";- In your page's HTML
- The form renders on your server as a real form. It works before JavaScript loads and never shifts the page.
- Typed answers
- Each form's file comes with its types, so a webhook handler knows every answer by its question.
- Signed webhooks
- Every submission posted to your endpoint, signed the Standard Webhooks way, and retried for over a day if your end is down.
- Your AI tool can build it
- Claude Code, Cursor, ChatGPT or Claude makes and publishes forms through our MCP connector, on every plan.
Start with your framework
Where to go
- React packageThe Form componentInstall it, show a form in Next.js, React Router or Astro, style it your way.
- React packagegetFormFetch a form while your site builds, so a client can publish without you.
- The CLIThe seaforms commandSign in, pull your published forms into your code, write their types.
- WebhooksHow webhooks workGet each submission at your endpoint, verify it, handle retries.
- The APIOverview and keysRead submissions, publish forms and change what happens after Send.
- MCP connectorConnect an AI toolLet your AI app make and publish forms for you, with only what you allow.
Building in a site builder instead? Seaforms works inside Framer, Webflow and WordPress, with no code to write.
ChatGPT is a trademark of OpenAI, and Claude and Claude Code are trademarks of Anthropic. Other product names and logos belong to their owners. None of them makes or endorses Seaforms. Trademarks