Static Forms in Astro: Handling Submissions Without a Server with onsubmit.dev (form backend)
Astro is a great fit for content-heavy sites that ship very little JavaScript, but that creates an interesting problem as soon as you add a contact form: where does the POST request go? With onsubmit.dev (form backend), an Astro site can submit forms to an external endpoint instead of adding its own API route or server.
This is particularly useful for Astro projects deployed as static files to a CDN, GitHub Pages, or another static host. You can keep the site static while still accepting contact requests, feedback, registrations, and similar submissions.
Start with the zero-JavaScript pattern
The simplest approach is also the most aligned with Astro's philosophy: use the browser's native form submission behavior.






