Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A contact form starter using Newt headless CMS and Next.js App Router, with success and error pages.
Newt Starter Nextjs Contact is a TypeScript starter template that pairs the Newt headless CMS with a Next.js App Router contact form, providing a working form, success page, and error page in one deployable project.
Newt Starter Nextjs Contact is a starter repository from Newt Inc. that demonstrates how to build a contact form using the Newt headless CMS and Next.js's App Router. It takes a Newt form API endpoint as its only configuration input and produces a publicly accessible contact form at the root path, plus a /thanks page for successful submissions and an /error page for failures. The template runs on Next.js with TypeScript and can be deployed to Vercel with a single click.
The template's setup flow is documented in the README: create a Newt space and note the space UID, add a Form App from the Contact template, create a form, and copy its API endpoint. Then create a .env.local file based on .env.local.example and set NEXT_PUBLIC_NEWT_FORM_ENDPOINT to that endpoint. Finally, install dependencies with yarn install or npm install and start the dev server with yarn dev or npm run dev on localhost:3000.
Yes. Newt Inc. has announced that the Newt headless CMS service will be retired on 2026-11-24. After that date, both the Newt admin console and API will stop working, which means this template's form submission functionality will no longer function without replacing the backend.
Only one: NEXT_PUBLIC_NEWT_FORM_ENDPOINT. You set it to the API endpoint copied from your Newt Form App's setup page. The .env.local.example file shows the required variable name.
The template includes three routes: the contact form at /, a success page at /thanks, and an error page at /error. Each maps to a separate file under the app directory in the Next.js App Router structure.
No, the form submission logic is tied to the Newt Form API. You would need to rewrite the submission handler to use a different backend, since the template itself has no alternative email or database storage built in.
The source code is released under the MIT License, so you are free to use, modify, and distribute it. The template itself is free, but using the Newt CMS service is subject to Newt's own terms and the upcoming service retirement.
