百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sveltekit-superforms

> 前端框架
开源

让 SvelteKit 表单用起来成为一种享受!

2.8K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

让 SvelteKit 表单用起来成为一种享受!

Superforms

让 SvelteKit 表单使用起来成为一种享受!

# 功能列表 - 使用你喜欢的验证库进行服务端和客户端验证,更多即将推出:[Arktype](https://arktype.io/) [class-validator](https://github.com/typestack/class-validator) [Effect](https://effect.website/) [Joi](https://joi.dev/) [Superstruct](https://docs.superstructjs.org/) [TypeBox](https://github.com/sinclairzx81/typebox) [Valibot](https://valibot.dev/) [VineJS](https://vinejs.dev/) [Yup](https://github.com/jquense/yup) [Zod](https://zod.dev/) 或直接使用 [JSON Schema](https://json-schema.org/)。 - 无缝合并 `PageData` 和 `ActionData` - 无需担心如何组合它们,只需专注于你的表单数据,始终强类型。 - [自动居中并聚焦](https://superforms.rocks/concepts/error-handling#usage-client)无效表单字段。 - [脏表单检测](https://superforms.rocks/concepts/tainted),防止用户在未保存表单时离开页面而丢失数据。或者使用[快照](https://superforms.rocks/concepts/snapshots)保存表单状态。 - 自动将 `FormData` 强制转换为正确的类型,包括数组和文件。 - 对于高级数据结构,无需受限于 `FormData` - 像 RPC 调用一样提交[嵌套数据结构](https://superforms.rocks/concepts/nested-data)。 - 从多种验证模式生成[默认表单值](https://superforms.rocks/default-values)。 - 处理同一页面上的[多个表单](https://superforms.rocks/concepts/multiple-forms)。 - 既可在服务端运行,也适用于[单页应用](https://superforms.rocks/concepts/spa)(SPA)! - 方便处理并验证[文件上传](https://superforms.rocks/concepts/files),无论是在服务端、客户端,甚至嵌套数据中。 - [代理对象](https://superforms.rocks/concepts/proxy-objects)用于处理数据与字符串之间的转换。 - 实时[客户端验证](https://superforms.rocks/concepts/client-validation)以提供最佳用户体验。 - 使用三个[自动更新计时器](http

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptarktypeform-validationformsjoi

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架