This is the legacy documentation for Superforms 0.x. The 1.0 version can be found at!
Superforms logo

Superforms 💥

Superforms is a SvelteKit library that helps you with server-side validation and client-side display of forms.

It enables you to use a Zod validation schema as a single source of truth, with consistent handling of form data and validation errors, and full type safety. It works with both TypeScript and JavaScript.

The API is minimal, basically a single method on the server and client, but is very flexible and configurable to handle every possible case of:

Nested data
Multiple forms on the same page
Tainted fields
Client-side validation
Loading spinners
All in a minimal API

Get started

Click here to get started right away, or watch this video for an introduction to what’s possible with Superforms: