Skip to content

@formerie/svelte

Formerie for Svelte

Send form submissions from Svelte 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/svelte

npm

npm install @formerie/svelte

Yarn

yarn add @formerie/svelte

Bun

bun add @formerie/svelte

Use it

createFormerieSubmit is a store, and createFormerieRenderModel can render a form from its public schema.

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

import { createFormerieSubmit } from "@formerie/svelte";

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

await contact.submit({
  fields: {
    email: "jane@example.com",
  },
});

What happens next

Create a workspace and publish your first form.

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