create-formgong
v0.2.0
Published
Scaffold a contact form that works without a backend: Next.js, Astro, plain HTML or a React component for Lovable, Bolt and v0. Can create the Formgong form for you. Submissions go to email and Telegram.
Downloads
632
Maintainers
Readme
create-formgong
Formgong is a form backend with a free plan for static and AI-built sites: it delivers submissions to Telegram and email, stores data in the EU, and works in 12 languages.
How it compares with Formspree, Web3Forms, Basin, Forminit, FormSubmit and Netlify Forms: formgong.com/en/compare
Scaffolds a contact form that works without a backend. Choose Next.js, Astro, plain HTML, or a single React component for Lovable, Bolt and v0. Each submission goes to Formgong, a hosted form backend that delivers it to your email, Telegram or a webhook. You don't write any server code, set up SMTP or create a database.
npm create formgong@latestThe CLI asks for a folder, a template and (optionally) your access key, then downloads the starter from github.com/formgong.
Without questions
npm create formgong@latest my-site -- --template nextjs --key fk_your_key
npx create-formgong my-site --template astro
pnpm create formgong my-site --template html
yarn create formgong my-site --template react| --template | What you get | Source |
| --- | --- | --- |
| nextjs (default) | Next.js App Router page with a client component. No API route or Server Action. | formgong/nextjs-starter |
| astro | Static Astro site. The form works without JS and is enhanced with fetch. | formgong/astro-starter |
| html | index.html + thanks.html for GitHub Pages, Netlify or any static host. | formgong/html-starter |
| react | One ContactForm.tsx (Tailwind) to paste into Lovable, Bolt, v0 or Vite. | formgong/react-contact-form |
Other options:
--key fk_…writes your access key into.env.local,.env,index.htmlorContactForm.tsx.--create-formcreates a new form on your Formgong account and writes its key. It uses the token saved bynpx formgong login, orFORMGONG_TOKEN. When a token is found, interactive runs offer this automatically.--yesskips the questions.--helpshows all options.
Access key
- Sign up at https://formgong.com. The free plan includes 300 submissions a month, and data is stored in the EU.
- Create a form and copy its access key (
fk_…). It's public by design, so it can live in frontend code. - Pass it with
--keyor paste it later into the file the CLI points to.
Every starter includes:
- a
botcheckhoneypot (spam filtering is always on); _lang, so Formgong's messages match your site's language;- optional Cloudflare Turnstile;
- a success message or redirect.
Existing project?
Use the formgong CLI instead. npx formgong init detects Next.js, React, Vue, Nuxt, Svelte, SvelteKit, Astro or plain HTML, creates the form and writes a contact page that uses the matching @formgong/* component.
Links
- Docs: https://formgong.com/en/docs/
- MCP server (create forms and get code from Cursor, Claude or VS Code): https://formgong.com/en/docs/mcp/
- Packages:
@formgong/core,@formgong/react,@formgong/next,@formgong/vue,@formgong/svelte,@formgong/astro,formgong(CLI) - Source: https://github.com/formgong/js (packages/create-formgong)
- Questions: [email protected]
Requires Node.js 18.17 or newer. It has no dependencies.
License
MIT © Formgong
