Skip to content

@formerie/astro

Formerie for Astro

Send form submissions from Astro to Formerie, without holding recipients, templates, or provider keys in your code.

Works with

Install

These packages are in alpha, so their APIs may change.

pnpm

pnpm add @formerie/astro

npm

npm install @formerie/astro

Yarn

yarn add @formerie/astro

Bun

bun add @formerie/astro

Use it

createFormerieFormAttributes adds Formerie’s data attributes to your form. Browser submissions go through @formerie/client or a framework adapter.

You’ll need a published form. Replace example.com and contact with your workspace and form handles from the app.

---
import { createFormerieFormAttributes } from "@formerie/astro";

const attrs = createFormerieFormAttributes({
  workspace: "example.com",
  form: "contact",
});
---

<form {...attrs}>
  <input name="email" type="email" />
</form>

What happens next

Create a workspace and publish your first form.

In early access. New workspaces start on the Free plan.