Boosterpack Forms

Add a Contact Form to Astro

Boosterpack Forms works with Astro out of the box — static builds, SSR, or hybrid. Just HTML and a script tag. No server-side code needed.

AI spam protection
No CAPTCHA
Free plan available

Setup Guide

Takes about 2 minutes

1
Create your form on Boosterpack Forms

Sign in to your account dashboard and create a new form. Add your destination email(s) and optionally connect webhook integrations (Slack, Discord, etc.). Then copy your form ID.

2
Add the form to your Astro component

Paste the form HTML into any .astro component or page. It's standard HTML — no framework adapter needed.

3
Add the embed script

Add the script tag to your <head> in your layout component (e.g. Layout.astro). The script handles Proof-of-Work and spam protection automatically.

4
Deploy and activate

Deploy your site (Vercel, Netlify, Cloudflare Pages — anywhere). When you visit the page with your form, you'll see an overlay with an Activate form button. Click it and confirm via your inbox.

Code to Copy

Get your form ID from your account dashboard.

Form HTML
Replace <FORM_ID> with your actual form ID
<form method="POST" action="https://boosterpackforms.com/api/forms/<FORM_ID>/submit">
  <input name="name" placeholder="Name" required />
  <input name="email" type="email" placeholder="Email" required />
  <textarea name="message" placeholder="Message" required></textarea>
  <button type="submit">Send</button>
</form>
Embed script
Paste once per page — handles spam protection automatically
<script src="https://boosterpackforms.com/embed.js" defer></script>

React islands: If you're using Astro with React islands, you can also use the @boosterpack/react-form package instead of the embed script. See the Next.js / React guide.

Activating Your Domain

When you create a form, each recipient receives a confirmation email right away — they must confirm before receiving submissions.

When you load a page with your form on a domain that hasn't been activated yet, you'll see an overlay with an Activate form button. Click it to activate the domain. The form goes live once at least one recipient has confirmed and the domain is activated. This only happens once per domain.

What's Included

AI-powered spam filtering
Blocks spam before it reaches your inbox
Invisible Proof-of-Work
No CAPTCHA, no puzzles for your visitors
Multiple recipients
Up to 5 on Personal, up to 10 on Professional+
Webhook integrations
Slack, Discord, Teams, Google Chat, Telegram, or custom
No data stored
Messages are delivered and discarded
Free plan available
100 delivered/mo — spam never counts
Create your form now

Free plan · No credit card required