v1.0.0Version 1.0: 122 business website templates in Tailwind HTML, Tailwind + Vite, Next.js, React, Astro, Vue, Nuxt, SvelteKit and Laravel.

Docs/04 Features

Forms

Connect the contact forms of your Briks Next.js template to a free WebForms.to form: create the form, copy the endpoint, set it and test.

Updated 23 November 2026

You can receive the messages from your site's forms by connecting them to a WebForms.to form. The free plan covers 300 submissions a month.

How forms send

Forms post JSON to the address in forms.endpoint in content/owner.ts. The JSON holds subject, page, fields (a list of label and value), replyTo, consent and website. website is a hidden field that catches spam bots.

The endpoint must answer with { "ok": true }. With no endpoint set, a form shows that it cannot send.

Templates with a database store their messages themselves, so they do not need an endpoint. See Accounts and database.

About WebForms.to

The free plan has 300 submissions a month. Spam never counts toward that number, and no card is required. Spam protection on every plan uses honeypot fields, time traps, disposable-email detection and an AI classifier. You can add Cloudflare Turnstile, hCaptcha or reCAPTCHA.

The endpoint is https://send.webforms.to/<key>. It accepts a form post or JSON with flat fields, for example {"email": "...", "message": "..."}. Fields that start with an underscore are instructions to WebForms.to: _replyto, _subject, _gotcha (the spam trap) and _redirect.

A successful send returns {"ok": true, "id": "...", "message": "..."}. An error returns {"ok": false, "error": "<code>", "message": "..."}. The status is 422 for a validation error, 429 for a rate limit and 402 when you are over your quota.

Connect your forms to WebForms.to

  1. Create an account at WebForms.to.
  2. Create a form in your account.
  3. Copy the endpoint, https://send.webforms.to/<key>.
  4. Open content/owner.ts and set forms: { endpoint: "https://send.webforms.to/<key>" } with your own key.
  5. Give your AI agent the prompt in prompts/06-connect-forms-webforms.md. The template form sends a nested fields list, and WebForms.to expects flat fields. The prompt has the agent switch the form to flat fields: each label becomes a field name, replyTo becomes _replyto and website becomes _gotcha. The { "ok": true } check already matches. See AI agents.
  6. Run npm run dev, open a page with a form, fill it in and send it.
  7. Check that the form shows a success message and that the submission appears in your WebForms.to account.

Let your AI agent create the form

WebForms.to has an MCP server and a REST API, so an agent can create the form and read submissions for you. MCP and API access are on the Pro and Agency plans. On the Free plan, create the form in the WebForms.to dashboard and give the endpoint to your agent.

Through the MCP server an agent can create forms (create_form returns the endpoint and a ready HTML form), update them (spam sensitivity, allowed sites, thank-you page) and read submissions. The MCP server is at https://agents.webforms.to. Sign in with OAuth, or use an API key as a bearer token.

Set it up in your agent:

  1. Claude Code: run claude mcp add --transport http webforms https://agents.webforms.to, then type /mcp to sign in.
  2. Codex: run codex mcp add webforms --url https://agents.webforms.to, then codex mcp login webforms.
  3. Cursor: add this to ~/.cursor/mcp.json:
{"mcpServers":{"webforms":{"url":"https://agents.webforms.to"}}}

The REST API is at https://api.webforms.to/v1. A POST /v1/forms request with {"name": "Contact form"} creates a form with a live endpoint. The API key needs the forms:write scope.

After the agent has the endpoint, it follows prompts/06-connect-forms-webforms.md to connect the site.

Forms on a static site

Forms work on a static site because they send to the endpoint and not to your server. Set the endpoint before you build with npm run build.

Next · 04 FeaturesAccounts and databaseSet up the 7 Briks feature templates: .env, migrations, seed data, first admin, SQLite, Turso or PostgreSQL, and changing the schema.

Your next client site is mostly built.

122 websites, $79 once, for every site you build. New templates and updates are free for life.

Works with any AI agent

  • Claude
  • Claude Code
  • OpenAI
  • Codex
  • Grok
  • Grok Bot
  • OpenClaw
  • Hermes Agent
  • Gemini
  • Antigravity
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Cline
  • Kiro
  • Junie
  • Replit
  • v0
  • Ollama

+ any agent that reads AGENTS.md