Welcome to SiteBackend
Guides and reference for adding a form backend to any static site. Point your HTML form at SiteBackend, and submissions get filtered, stored and sent where you need them, with no server to run. You can also collect testimonials from your customers and show them on your site.
- What is SiteBackend?A form backend and customer testimonials for static sites, with no server to run.
- How SiteBackend worksHow it's organized, and how a submission or a testimonial gets from your visitor to you.
Get started
Collect your first form submission in about two minutes. You don't need an SDK or a build step.
Quickstart · 2 min
Your first submission
- 1Create a form in the dashboard
- 2Set your form's action to its endpoint
- 3Submit a test entry
<form action="https://api.sitebackend.com/forms/YOUR_FORM_ID"
method="POST">
<input name="email" type="email" />
<textarea name="message"></textarea>
<button>Send</button>
</form>await fetch("https://api.sitebackend.com/forms/YOUR_FORM_ID", {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(form),
});Integration guides for forms
Copy-paste form setups for the stack you already use. They all work with fully static builds.
- HTMLPlain markup, spam protection and a thank-you page
- AstroNo server adapter or API route needed
- Next.jsHTML form or client component, works with static export
- NuxtWorks with nuxt generate, no server routes
- HugoA partial plus a site parameter
- WebflowKeep Webflow's design and change the form action
- JavaScriptSend JSON or FormData with fetch
- Any siteIf it can POST a form, it works
Forms & delivery
Everything that happens to a submission after it reaches your endpoint.
- Form endpoint referenceRequest formats, field rules, special fields, responses, status codes and CORS
- Spam protectionHoneypot, content filter, rate limiting, and optional Turnstile, hCaptcha or reCAPTCHA
- Allowed originsStop other websites from posting to your endpoint
- Redirects and thank-you pagesThe built-in page, your own custom message, or any URL on your site
- Notifications and webhooksEmail, Slack, Discord, Teams, Telegram, WhatsApp, Sheets, or signed webhooks
- File uploadsTurn on uploads with multipart encoding, then set size and type limits
Testimonials
Collect testimonials from your customers, approve them, and show them on your site.
- Testimonials quickstartCollect your first testimonial and show it on your site in about five minutes
- Collecting testimonialsEmbed a form for your customers, then approve what comes in
- Testimonial widgetsShow approved ones as a wall, carousel, single highlight or rating badge
- Embed script referenceSizing, themes, single-page apps, domains and Content Security Policy
Integration guides for testimonials
Add the collect form and widgets to your site builder or framework.
- Any websitePaste two lines of embed code where you want it
- WordPressA Custom HTML block, no plugin needed
- WebflowA Code Embed element, no CMS collection
- Next.jsA small component, works with static export
- ReactVite or any single-page app, routing handled
- NuxtLoad the script from nuxt.config
- AstroWorks with static builds and view transitions
- HugoA partial plus a shortcode for Markdown
Need help?
Search all of the documentation from the search box at the top of the page. Press Ctrl+K or ⌘K from anywhere.