Skip to content
프로젝트

loc0w/formiz-nextjs-contact-form

GitHub에서 보기

소개

Next.js contact form with no backend: submissions go to email & Telegram via Formiz. No API route, no SMTP.

생산성 및 자동화

이 수치를 측정하는 방법

What you can do

  • Email and Telegram notifications (WhatsApp coming soon)
  • Spam protection: honeypot + rate limiting, optional domain allow list
  • A tiny CRM: stages (New → Contacted → Proposal → Won/Lost), assignees, notes, CSV export
  • Ask Claude about your submissions through the Formiz MCP connector

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Next.js contact form with no backend (Formiz)

A working contact form for Next.js, with no API route, no server and no SMTP setup. Submissions are delivered to your email and Telegram by Formiz, and saved in a small built-in CRM.

Formiz: forms that actually reach you

Why

Static and serverless sites (Next.js on Vercel, Netlify, GitHub Pages…) have no mail server. The usual options are writing an API route, configuring SMTP, or paying for a heavy form tool. This example shows the simplest way: post the form to one URL.

Quick start

git clone https://github.com/loc0w/formiz-nextjs-contact-form
cd formiz-nextjs-contact-form
npm install
cp .env.example .env.local   # paste your access key
npm run dev
  1. Create a free account at formiz.app and copy your project's access key.
  2. Put it in .env.local as NEXT_PUBLIC_FORMIZ_KEY.
  3. In the Formiz dashboard, add your email under Channels (and Telegram if you like).
  4. Submit the form at http://localhost:3000. The message arrives in seconds.

How it works

The whole integration is one fetch call in app/ContactForm.jsx:

await fetch('https://api.formiz.app/submit', {
  method: 'POST',
  headers: { Accept: 'application/json' },
  body: new FormData(form), // includes the hidden access_key field
});

Prefer plain HTML? This works too, with a redirect to a thank-you page:

<form action="https://api.formiz.app/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input name="name" required>
  <input name="email" type="email" required>
  <textarea name="message"></textarea>
  <button>Send</button>
</form>

Useful fields

Field What it does
access_key Your Formiz project key (required)
subject Subject line of the notification email
redirect URL to send visitors to after a plain HTML submit
_honey Honeypot checkbox; submissions with it filled are dropped as spam

Any other field (name, email, message, phone, …) is delivered as is. If you have a field named email, Reply in the notification email goes straight to the visitor.

Features you get

  • Email and Telegram notifications (WhatsApp coming soon)
  • Spam protection: honeypot + rate limiting, optional domain allow list
  • A tiny CRM: stages (New → Contacted → Proposal → Won/Lost), assignees, notes, CSV export
  • Ask Claude about your submissions through the Formiz MCP connector

License

MIT. Use it in any project.

관련 프로젝트 살펴보기

불러오는 중…