The browser submits the form directly to Formgong; the repository contains no /api/contact route, Server Action, or database
nextjs-starter — Next.js Starter Template
By formgong
A contact form starter built on the Next.js App Router that submits directly from the browser to Formgong's hosted backend, with no self-hosted API route or email service required.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
The contact form is a client component that displays Formgong's localized response inline after submission
Includes a botcheck honeypot field and supports attaching a Cloudflare Turnstile token when a Turnstile site key is configured
fg.js can be loaded in the layout to count form views without cookies
Integrated via the NEXT_PUBLIC_FORMGONG_ACCESS_KEY environment variable; the key is a public value by design
Template Details
This is a Next.js App Router site template whose core is a working contact form. Unlike the usual approach, it contains no API route, Server Action, or email service; instead, the browser POSTs FormData directly to Formgong, a hosted form backend, which stores each submission and delivers it to an email address, optionally to Telegram or a webhook.
The form logic lives in app/contact-form.tsx as a client component: it submits with Accept: application/json and displays Formgong's localized response inline. The submission includes an access_key, a _lang taken from <html lang>, a botcheck honeypot field, and a Cloudflare Turnstile token only when NEXT_PUBLIC_TURNSTILE_SITE_KEY is set. app/layout.tsx loads the optional fg.js to count form views without cookies.
Before use, you need to register with Formgong, create a form, and obtain an access key (fk_…), then put it in .env.local as NEXT_PUBLIC_FORMGONG_ACCESS_KEY; the key is public by design, hence the NEXT_PUBLIC_ prefix. The README mentions a free plan with 300 submissions per month and data stored in the EU, but the form service's quotas and fees are subject to the provider's current terms. The template is MIT licensed, allowing free use, modification, commercial use, and distribution, provided the copyright and license notice are retained; third-party assets such as demo images, fonts, and icons require separate license checks.
Is it right for your project?
Use Cases
- A Next.js site that needs to collect contact form submissions without a self-hosted backend
- Form submissions that should reach an email inbox and optionally be pushed to Telegram or a webhook
- Deploying a static or frontend-focused form page on Vercel, Netlify, or Cloudflare
Suitable For
- Developers using the Next.js App Router who want to skip email service and database setup
- Personal sites or product landing pages that need a contact form page quickly
- Projects willing to rely on a third-party hosted form service such as Formgong
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Get the code via npx degit formgong/nextjs-starter my-site or GitHub's Use this template, then run npm install
- 2
Register with Formgong, create a form, and copy the access key (fk_…)
- 3
Put the key in .env.local as NEXT_PUBLIC_FORMGONG_ACCESS_KEY and set the same environment variable on the deployment platform
- 4
For human verification, additionally set NEXT_PUBLIC_TURNSTILE_SITE_KEY; if unset, no Turnstile token is attached
- 5
Real submissions depend on the Formgong service; its free quota, data storage region, and fees are subject to the provider's terms
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis listing covers the free version in the public repository under the MIT license; the free scope is the code of this version and does not mean external services or third-party assets are free.
Must comply with when using
- You may use, modify, commercially use, and distribute the code of this version for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Before use, you must register a Formgong account and create a form to obtain an access key (fk_…) and put it in the environment variable, otherwise the form cannot submit.
- Form submissions depend on Formgong, a third-party hosted backend service; the free plan has a quota limit (300 submissions per month), and exceeding it may require payment.
- If human verification is needed, you must additionally configure a Cloudflare Turnstile site key, which involves a third-party service.
- When deploying to Vercel, Netlify, or Cloudflare, you must set the same environment variable on the platform, and the deployment platform may incur costs.
- The README mentions the Formspree form service; real submissions require configuring a service endpoint, and its usage quota and fees must be checked separately.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domain, hosting, database, payment, or AI may incur additional charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Sign up at https://formgong.com, create a form and copy its access key (`fk_…`).
Original README
Formgong is a form backend with a free plan for static and AI-built sites
Original README
a Cloudflare Turnstile token, only if `NEXT_PUBLIC_TURNSTILE_SITE_KEY` is set.
Original README
https://github.com/formgong/nextjs-starter/blob/main/LICENSEhttps://github.com/formgong/nextjs-starter/blob/main/README.mdDeploy to Vercel, Netlify or Cloudflare and set the same env var there.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 85 / 100
- Technologies
- Next.js · React
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-10-03
- Screenshot last checked
- 2026-10-03
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-04
Inspect the recorded source material
SHA-256: 0b6b27f75e828f8be279c3bd9248820df09fba463f1d8b1b80a570d3eacf8529
2026-10-03T16:56:08.943Z
Source file / repository# Formgong Next.js contact form starter > 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](https://formgong.com/en/compare/) A Next.js 15 (App Router) site with a working contact form. It has no API route, no Server Action and no email service. The browser posts to [Formgong](https://formgong.com), a hosted form backend that delivers each message to your email and, optionally, to Telegram or webhooks. ## 1-minute setup ```bash npx degit formgong/nextjs-starter my-site # or click "Use this template" cd my-site && npm install cp .env.example .env.local # paste your access key npm run dev ``` 1. Sign up at https://formgong.com, create a form and copy its access key (`fk_…`). 2. Put it into `.env.local` as `NEXT_PUBLIC_FORMGONG_ACCESS_KEY`. The key is public by design, so the `NEXT_PUBLIC_` prefix is correct. 3. Deploy to Vercel, Netlify or Cloudflare and set the same env var there. ## Files - `app/contact-form.tsx`: a client component that POSTs `FormData` with `Accept: application/json` and shows Formgong's localized result inline. It sends: - `access_key`; - `_lang`, taken from `<html lang>`; - the `botcheck` honeypot; - a Cloudflare Turnstile token, only if `NEXT_PUBLIC_TURNSTILE_SITE_KEY` is set. - `app/layout.tsx`: loads the optional `fg.js`, which counts form views without cookies. You don't need an `/api/contact` route, a Server Action, Resend/SendGrid/nodemailer or a database. Formgong stores and delivers each submission. ## Links - Formgong: https://formgong.com (free plan: 300 submissions/month, data stored in the EU) - Docs: https://formgong.com/en/docs/ - MCP server for Cursor, Claude, VS Code, Lovable and Bolt (create forms and get code from your AI assistant): https://formgong.com/en/docs/mcp/ - Prompts for AI builders: [Lovable](https://formgong.com/en/docs/lovable/), [Bolt](https://formgong.com/en/docs/bolt/), [v0](https://formgong.com/en/docs/v0/), [Cursor](https://formgong.com/en/docs/cursor/), [Replit](https://formgong.com/en/docs/replit/) - Questions: [email protected] ## License MIT © Formgong
Explore similar templates
Compare previews and descriptions within the same stack and category.

Next.js SaaS Starter
The official Next.js SaaS starter template, integrating email/password authentication, Stripe Checkout subscriptions, a dashboard with user/team CRUD, basic Owner/Member RBAC, and activity logging.
Next.js · SaaS

Next.js Commerce
Vercel's officially maintained Next.js App Router ecommerce starter with deep Shopify integration, offering a complete product catalog, cart, and checkout flow. Core logic is modular for swapping backends, and community provider versions exist for BigCommerce, Medusa, and Saleor.
Next.js · E-commerce

Next-js-Boilerplate
A developer-first Next.js 16 starter with Tailwind CSS 4 and TypeScript, supporting both App Router and Page Router.
Next.js · Starter

tailwind-nextjs-starter-blog
A Next.js and Tailwind CSS blog starter template using Contentlayer for Markdown/MDX, with built-in SEO, code highlighting, and tags. It targets personal technical blogs and migration from Jekyll/Hugo to React, and supports one-click Vercel deployment.
Next.js · Blog

next-forge
next-forge is a Turborepo-based Next.js template maintained by Vercel, positioned as a starting point for SaaS products.
Next.js · Starter

SaaS-Boilerplate
SaaS-Boilerplate is an open-source SaaS starter template built with Next.js App Router, React 19, TypeScript, Tailwind CSS, and Shadcn UI.
Next.js · SaaS
