So I run SmartForm AI — a form backend for static sites. You point a plain `<form action>` at our endpoint, and you get email notifications, webhooks and spam filtering without running a server. Full disclosure: I build it.
The interesting story isn't the API. It's the bug we had in November.
Our spam filter is an LLM that decides "spam or real inquiry". When that upstream provider had a bad minute, our fallback treated the submission as "not spam" — because the code path was written as "no verdict, so let it through". Which sounds reasonable until you work out what it means in production: in one bad stretch on 2026-11-12, seven spam submissions on one form all got emailed to the customer as if they were leads. The customer was nice about it, but I'd have deleted the integration.
So we changed it. When the classifier genuinely fails, the submission now doesn't get processed at all — no email, no webhook, no quota deduction — it just stays pending and a background job retries it once the provider recovers. A real inquiry might land five minutes late. I'd much rather have that than deliver spam with a "high-value lead!" label on it.
Two smaller things I got wrong while building it:
If you sign webhooks, sign the timestamp too. We used to sign only the body, which means anyone who captured a request could replay it forever — it always verified. Now it's HMAC-SHA256 over `"{timestamp}.{raw_body}"`, per-form secret, with a five-minute window:
```js
const expected = crypto.createHmac("sha256", secret)
.update(`${req.headers["x-smartform-timestamp"]}.${rawBody}`)
.digest("hex");
```
(Verify against the raw bytes — don't JSON.parse then re-serialize, key order changes the digest.)
And order matters in the submission pipeline: rate limit → honeypot → AI verdict → *then* deduct quota and send email. Deduct quota before you know it isn't spam and one bot run drains a paying customer's monthly quota overnight. Same trap with the honeypot: return 200 and drop it silently. Return 403 and the bot learns; return 200 and still email the owner and you've built yourself an email bomb.
One perf note in case you roll your own: on a single uvicorn worker we measured p50 14ms / p99 25ms at 5 concurrent requests, and p99 1267ms at 50. One worker, one small DB pool. Measure at your peak, not your average.
What it doesn't do, so you know before you try it: no visual form builder (you write the HTML yourself), and the free tier is 200 submissions/month — enough to try it properly, not enough to run a product on.
To be clear about timing: the visitor's form submits instantly. The AI verdict, the notification email and the webhook all happen a second or two later in the background — on our current model we see ~1.7s median, with occasional spikes past 3s when the provider is slow. So nobody waits on a spinner, but if your endpoint needs the spam verdict before it acts, don't rely on the submit response to carry it.
If you want to poke at the actual classifier without signing up, the live demo runs the real thing on whatever text you paste: https://usesmartform.com/live-demo — docs at https://usesmartform.com/docs
Genuine question for you all: what are you using for forms on static sites, and if you've rolled your own, what broke first?