Set up with AI
Putting a form in a site is one package, two commands and a component, which makes it a good job for a coding agent. These docs are published in a form an agent can read in one go.
The files an agent reads
Section titled “The files an agent reads”| File | What it holds |
|---|---|
/llms.txt |
A short map of these docs, with links. |
/llms-full.txt |
Every page in one file. Point an agent here when you want it to write code. |
/llms-small.txt |
The same, trimmed for a smaller context. |
A prompt for your framework
Section titled “A prompt for your framework”Copy one and paste it into Claude Code, Cursor or any coding agent. Publish the form in the app first: an agent only ever sees published forms.
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this Next.js (App Router) project. Run npx seaforms login (I'll approve it in my browser), then npx seaforms pull to save my published forms in src/forms with their types. Then add the contact form to app/contact/page.tsx with the Form component. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this React Router (Framework mode) project. Run npx seaforms login (I'll approve it in my browser), then npx seaforms pull to save my published forms in forms with their types. Then add the contact form to app/routes/contact.tsx with the Form component. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this Astro project. Run npx seaforms login (I'll approve it in my browser), then npx seaforms pull to save my published forms in src/forms with their types. Then add the contact form to src/pages/contact.astro with the Form component and client:load. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
When a client edits the form
Section titled “When a client edits the form”If someone else publishes the form’s changes, have the agent fetch it while the site builds instead of keeping its file. Put your form’s ID in place of <FORM_ID>, and set SEAFORMS_API_KEY yourself (an API key that can only read forms):
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this Next.js (App Router) project. Fetch the form while the site builds with getForm from @seaforms/react/server. Its ID is <FORM_ID>. The API key is in the SEAFORMS_API_KEY environment variable: read it from there and never write a key into the code. Then show the form on app/quote/page.tsx, checking for a newly published version at most once an hour. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this React Router (Framework mode) project. Fetch the form while the site builds with getForm from @seaforms/react/server. Its ID is <FORM_ID>. The API key is in the SEAFORMS_API_KEY environment variable: read it from there and never write a key into the code. Then show the form on app/routes/quote.tsx, calling getForm in the route's loader, and add /quote to prerender in react-router.config.ts. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
Hand this to your coding agent
Read https://developer.seaforms.io/llms-full.txt. Install @seaforms/react in this Astro project. Fetch the form while the site builds with getForm from @seaforms/react/server. Its ID is <FORM_ID>. The API key is in the SEAFORMS_API_KEY environment variable: read it from there and never write a key into the code. Then show the form on src/pages/quote.astro, with the key read through astro:env as a server secret. Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.
Let the agent build the form too
Section titled “Let the agent build the form too”With the MCP connector, a coding tool such as Claude Code or Cursor can make the form itself, publish it and save its file in your code, so you never leave the editor. You choose what it may do when it connects, and it can’t delete anything.
claude mcp add --transport http seaforms https://mcp.seaforms.io/mcpSee Claude Code or Cursor, VS Code and others for signing it in.
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