sveltekit-superforms

esm
Making SvelteKit forms a pleasure to use!
Version 2.27.0 License MIT
Keywords
sveltekitsvelteformvalidationformsschemaarktypeclass-validatoreffectjoijson-schemasuperstructschemasafetypeboxvalibot
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 2.27.0
- 2.26.1
- 2.26.0
- 2.25.0
- 2.24.1
- 2.24.0
- 2.23.1
- 2.23.0
- 2.22.1
- 2.22.0
- 2.21.1
- 2.21.0
- 2.20.1
- 2.20.0
- 2.19.1
- 2.19.0
- 2.18.1
- 2.18.0
- 2.17.0
- 2.16.1
- 2.16.0
- 2.15.2
- 2.15.1
- 2.15.0
- 2.14.0
- 2.13.1
- 2.13.0
- 2.12.6
- 2.12.5
- 2.12.4
- 2.12.3
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.0
- 2.10.6
- 2.10.5
- 2.10.4
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.0
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.13.4
- 1.13.3
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.18
- 0.6.17
- 0.6.16
- 0.6.15
- 0.6.14
- 0.6.13
- 0.6.12
- 0.6.11
- 0.6.10
- 0.6.9
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.25
- 0.5.24
- 0.5.23
- 0.5.22
- 0.5.21
- 0.5.20
- 0.5.19
- 0.5.18
- 0.5.17
- 0.5.16
- 0.5.15
- 0.5.14
- 0.5.13
- 0.5.12
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 2.0.0-alpha.53
- 2.0.0-alpha.52
- 2.0.0-alpha.51
- 2.0.0-alpha.49
- 2.0.0-alpha.48
- 2.0.0-alpha.47
- 2.0.0-alpha.45
- 2.0.0-alpha.44
- 2.0.0-alpha.43
- 2.0.0-alpha.42
- 2.0.0-alpha.41
- 2.0.0-alpha.40
- 2.0.0-alpha.39
- 2.0.0-alpha.38
- 2.0.0-alpha.37
- 2.0.0-alpha.36
- 2.0.0-alpha.35
- 2.0.0-alpha.34
- 2.0.0-alpha.33
- 2.0.0-alpha.32
- 2.0.0-alpha.31
- 2.0.0-alpha.30
- 2.0.0-alpha.29
- 2.0.0-alpha.28
- 2.0.0-alpha.27
- 2.0.0-alpha.26
- 2.0.0-alpha.25
- 2.0.0-alpha.24
- 2.0.0-alpha.23
- 2.0.0-alpha.22
- 2.0.0-alpha.21
- 2.0.0-alpha.20
- 2.0.0-alpha.19
- 2.0.0-alpha.18
- 2.0.0-alpha.17
- 2.0.0-alpha.16
- 2.0.0-alpha.15
- 2.0.0-alpha.14
- 2.0.0-alpha.13
- 2.0.0-alpha.12
- 2.0.0-alpha.11
- 2.0.0-alpha.10
- 2.0.0-alpha.9
- 2.0.0-alpha.8
- 2.0.0-alpha.7
- 2.0.0-alpha.6
- 2.0.0-alpha.5
- 2.0.0-alpha.4
- 2.0.0-alpha.3
- 2.0.0-alpha.2
- 2.0.0-alpha.1
- 1.0.0-rc.6
- 1.0.0-rc.5
- 1.0.0-rc.4
- 1.0.0-rc.3
- 1.0.0-rc.2
- 1.0.0-rc.1
- 0.7.0-rc.2
- 0.7.0-rc.1
- 0.6.0-rc.5
- 0.6.0-rc.4
- 0.6.0-rc.3
- 0.6.0-rc.2
- 0.6.0-rc.1
- 0.6.0-dev.3
- 0.6.0-dev.2
- 0.6.0-dev.1
- 0.5.9-next.2
- 0.5.9-next.1
- 0.5.8-dev.2
- 0.5.8-dev.1
<script type="module"> import sveltekitSuperforms from 'https://cdn.jsdelivr.net/npm/sveltekit-superforms@2.27.0/+esm' </script>
Superforms 💥
Making SvelteKit forms a pleasure to use!
Feature list
- Server- and client-side validation with your favorite validation libraries, and more to come: 💥 Arktype 💥 class-validator 💥 Effect 💥 Joi 💥 Superstruct 💥 TypeBox 💥 Valibot 💥 VineJS 💥 Yup 💥 Zod 💥 or use JSON Schema directly.
- Seamless merging of
PageData
andActionData
- Forget about how to combine them, just focus on your form data, always strongly typed. - Auto-centering and focusing on invalid form fields.
- Tainted form detection, prevents the user from losing data if navigating away from an unsaved form. Or use snapshots to save the form state.
- Automatically coerces
FormData
into correct types, including arrays and files. - For advanced data structures, forget about the limitations of
FormData
- Post nested data structures like a RPC call. - Generates default form values from many validation schemas.
- Handles multiple forms on the same page.
- Works both on the server and with single-page applications (SPA)!
- Convenient handling and validation of file uploads, both on server and client and even in nested data.
- Proxy objects for handling data conversions to string and back again.
- Realtime client-side validation for the best possible UX.
- Create loading spinners easily with three auto-updating timers, based on human perception research.
- Hook into a number of events for full control over the validation data and the
ActionResult
, with a possibility to cancel the update at every step. - Complete customization with a huge list of options.
- No JavaScript required as default, but full support for progressive enhancement.
- Comes with a Super Debugging Svelte Component: SuperDebug.
Get started
Follow the Get started tutorial on the website to get a hands-on introduction to Superforms: https://superforms.rocks/get-started
You can also watch this excellent introduction video to see what's possible: https://www.youtube.com/watch?v=MiKzH3kcVfs
Help & support
- If you're using Superforms in non-profit circumstances, support is completely free; a star on Github is more than enough to show your appreciation. Join the #free-support channel on Discord and ask away!
- If you're making or aiming to make money on your project, a donation proportional to the current profit of the project or the company you work for, will give you a month of commercial support. Donate with one of the options on the website, then ask in the #commercial-support channel on Discord.
Contributing
General feedback, feature requests, bug reports, PR:s, are very welcome as a Github issue or on the Discord server!
Donating
If you appreciate the hard work behind Superforms, please support open source software with a donation.