This is the documentation for Superforms version 1. The latest version can be found at!
Superforms logo

Superforms ๐Ÿ’ฅ

๐Ÿ† Svelte Hack 2023 winner - Best library! ๐Ÿ†

Superforms is a SvelteKit library that gives you a comprehensive solution for server and client validation, and client-side display of forms.

It uses a Zod validation schema as a single source of truth, with consistent handling of form data and validation errors, with full type safety. It works with both TypeScript and JavaScript, even in static and single-page apps.

The API is minimal, basically a single method on the server and client, but itโ€™s 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: