Atlas Forms + Next.js
Forms without the boilerplate
Stop writing API routes for contact forms. Atlas handles form submissions, file uploads, and webhooks so you can focus on building your app. Works with Server Actions, static export, or any Next.js setup.
Why Atlas for Next.js?
Less code, more features
No API Routes
Skip writing form handlers. Point your form to Atlas and get webhooks automatically.
File Uploads
Accept file uploads without configuring blob storage or S3.
Spam Protection
Honeypot field, per-IP rate limiting, attack-pattern detection with a spam quarantine, and an IP blocklist. Cloudflare Turnstile is optional.
Works Anywhere
Vercel, Netlify, Cloudflare, or self-hosted. Same simple setup.
Quick Setup
Add forms to Next.js in minutes
Create an Atlas Form
Sign up for Atlas and create a new form. Copy your unique form endpoint URL.
https://atlasforms.app/f/abc123xyz
Add Form to Your App
Use a standard form element. Works with App Router, Pages Router, or static export.
// app/contact/page.tsx
export default function ContactPage() {
return (
<form action="https://atlasforms.app/f/abc123xyz" method="POST">
<input
type="text"
name="name"
placeholder="Name"
required
className="input"
/>
<input
type="email"
name="email"
placeholder="Email"
required
className="input"
/>
<textarea
name="message"
placeholder="Message"
className="textarea"
/>
<button type="submit" className="btn">
Send Message
</button>
</form>
)
}Deploy and Done
Deploy your app. No environment variables needed. Make sure your site's domain is in the form's Allowed Origins (Form Settings), or submissions from it are rejected.
# Deploy to Vercel, Netlify, or anywhere npm run build # Add your production domain to the form's Allowed Origins
DIY vs Atlas
Save time with a managed form backend
| Feature | DIY | Atlas |
|---|---|---|
| API route code | Required | None |
| Email notifications | Manual | Pro and Business |
| File uploads | Complex | Built-in |
| Spam protection | DIY | Built-in |
| Webhooks | Build it | |
| Dashboard | Build it |
Ready for simpler forms in Next.js?
Start free and upgrade when you need more. No credit card required.