iamdevmarcos /
Nextjs-Boilerplate
A simple project starter to work with TypeScript, React, Next.js, Chakra UI, React Hook Form and Zod ♻️
Loading repository data…
JPerez00 / repository
A simple Next.js, TypeScript, and Tailwind CSS contact form template powered by the Resend API. Validated with Zod, submitted via Next.js Server Actions, and includes toast notifications with Sonner.
A simple Next.js, TypeScript, and Tailwind CSS contact form template powered by the Resend API. Validated with Zod, submitted via Next.js Server Actions, and includes toast notifications using Sonner.
https://resend-email-template.vercel.app/
useActionState)useFormStatusreplyTo set to the sender email for easy repliesmetadataBase) for correct OG/Twitter previewsThis template requires a Resend API key and a verified domain or sender identity:
Bootstrap this example using create-next-app:
npx create-next-app --example https://github.com/JPerez00/resend-email-template your-project-name-here
Create a .env.local file in the root of the project:
RESEND_API_KEY=your_resend_api_key_here
EMAIL_FROM="Your Website Name <noreply@your-domain.com>"
EMAIL_TO=your_destination_email@example.com
Run the dev server:
npm run dev
When deploying to Vercel, add the same environment variables:
RESEND_API_KEY=your_resend_api_key_here
EMAIL_FROM=Your Website Name <noreply@your-domain.com>
EMAIL_TO=your_destination_email@example.com
Include quotes locally in .env.local, but omit them in Vercel Environment Variables:
EMAIL_FROM="Coding SaaS <noreply@codingsaas.com>"EMAIL_FROM=Coding SaaS <noreply@codingsaas.com>See Vercel deployment example below:
This template uses social preview images (Open Graph / Twitter).
For the cleanest production previews, you can set:
NEXT_PUBLIC_SITE_URL=https://your-domain.com
Locally you can use:
NEXT_PUBLIC_SITE_URL=http://localhost:3000
Main files you’ll care about:
app/components/ContactForm.tsx (form UI)app/actions.ts (Server Action that validates and sends the email)app/emails/ContactFormEmail.tsx (email template)lib/schema.ts (Zod validation schema)lib/env.server.ts (server-only env validation)app/layout.tsx (global layout + metadata)This project uses next/font to automatically optimize and load Inter.
You can also check out the Next.js GitHub repo: https://github.com/vercel/next.js/
Selected from shared topics, language and repository description—not editorial ratings.
iamdevmarcos /
A simple project starter to work with TypeScript, React, Next.js, Chakra UI, React Hook Form and Zod ♻️
FranciscoMoretti /
A starter repository for a simple 2 panels application with Next.js, TypeScript, Shadcn/UI, Zod, React-Form and TailwindCSS
ArinzeJeffrey-droid /
A minimalist form builder application created using Next.js.
Angelpovulinmary /
A simple web app to capture and manage buyer leads with Next.js, TypeScript, and Prisma. Topics: nextjs, typescript, prisma, validation, authentication, csv-import, csv-export, pagination, form-handling
Saqibi4213 /
Pet Care Website A responsive Next.js site for pet care and veterinary services, featuring a home page with introductory content, an about page detailing services, and a contact page with a form and social media links. Built with TypeScript and Tailwind CSS.
developersajadur /
A simple and elegant multi-step form built with Next.js 14 (App Router), React Hook Form, Zod Schema Validation, React Query, and Tailwind CSS v4.