Skip to content

Manual setup

Installation

  1. First, install the astro-superforms package:

    Terminal window
    npm install astro-superforms
  2. Most package managers will install associated peer dependencies as well. If you see a Cannot find package 'sveltekit-superforms' (or similar) warning when you start up Astro, you’ll need to install sveltekit-superforms:

    Terminal window
    npm install sveltekit-superforms
  3. Then, apply the integration to your astro.config.* file using the integrations property:

    astro.config.mjs
    import { defineConfig } from "astro/config";
    import superforms from "astro-superforms";
    export default defineConfig({
    // ...
    integrations: [superforms()],
    });