Loading...
Loading...
Compare original and translation side by side
valibot/
├── library/ # Core valibot package (zero dependencies)
├── packages/
│ ├── i18n/ # Translated error messages (25+ languages)
│ └── to-json-schema/ # JSON Schema converter
├── codemod/
│ ├── migrate-to-v0.31.0/ # Version migration
│ └── zod-to-valibot/ # Zod converter
├── website/ # valibot.dev (Qwik + Vite)
├── brand/ # Brand assets
├── skills/ # Agent skills (this folder)
└── prompts/ # Legacy AI agent guidesvalibot/
├── library/ # 核心Valibot包(零依赖)
├── packages/
│ ├── i18n/ # 多语言错误提示(支持25+种语言)
│ └── to-json-schema/ # JSON Schema转换器
├── codemod/
│ ├── migrate-to-v0.31.0/ # 版本迁移工具
│ └── zod-to-valibot/ # Zod转Valibot工具
├── website/ # valibot.dev官网(基于Qwik + Vite)
├── brand/ # 品牌资源
├── skills/ # Agent技能(当前目录)
└── prompts/ # 旧版AI Agent指南/library/src//library/src/| Directory | Purpose | Examples |
|---|---|---|
| Data type validators | |
| Validation & transformation | |
| High-level API | |
| TypeScript definitions | |
| Internal helpers (prefixed | |
| Global state | Config, message storage |
| 目录 | 用途 | 示例 |
|---|---|---|
| 数据类型验证器 | |
| 验证与转换操作 | |
| 高级API | |
| TypeScript类型定义 | |
| 内部辅助工具(前缀 | |
| 全局状态管理 | 配置、消息存储 |
stringnumberbooleanbigintdatesymbolblobfileobjectstrictObjectlooseObjectobjectWithRestarraytuplestrictTuplelooseTupletupleWithRestunionvariantintersectrecordmapsetlazycustomoptionalnullablenullishnonNullablenonNullishnonOptionalstringnumberbooleanbigintdatesymbolblobfileobjectstrictObjectlooseObjectobjectWithRestarraytuplestrictTuplelooseTupletupleWithRestunionvariantintersectrecordmapsetlazycustomoptionalnullablenullishnonNullablenonNullishnonOptionalemailurluuidregexminLengthmaxValuechecktrimtoLowerCasetoUpperCasemapItemstransformbrandflavormetadatadescriptiontitleemailurluuidregexminLengthmaxValuechecktrimtoLowerCasetoUpperCasemapItemstransformbrandflavormetadatadescriptiontitleschemas/string/
├── string.ts # Implementation
├── string.test.ts # Runtime tests
├── string.test-d.ts # Type tests
└── index.ts # Re-exportschemas/string/
├── string.ts # 实现代码
├── string.test.ts # 运行时测试
├── string.test-d.ts # 类型测试
└── index.ts # 导出入口export interface StringSchema<TMessage> extends BaseSchema<...> {
readonly kind: 'schema';
readonly type: 'string';
// ...
}export interface EmailAction<TInput, TMessage> extends BaseValidation<...> {
readonly kind: 'validation';
readonly type: 'email';
// ...
}export function parse<TSchema>(
schema: TSchema,
input: unknown
): InferOutput<TSchema>;export interface StringSchema<TMessage> extends BaseSchema<...> {
readonly kind: 'schema';
readonly type: 'string';
// ...
}export interface EmailAction<TInput, TMessage> extends BaseValidation<...> {
readonly kind: 'validation';
readonly type: 'email';
// ...
}export function parse<TSchema>(
schema: TSchema,
input: unknown
): InferOutput<TSchema>;BaseSchemaBaseValidationBaseTransformationInferOutput<T>InferInput<T>InferIssue<T>ConfigErrorMessage<T>BaseIssue<T>'~standard'BaseSchemaBaseValidationBaseTransformationInferOutput<T>InferInput<T>InferIssue<T>ConfigErrorMessage<T>BaseIssue<T>'~standard'/website/src/routes//website/src/routes/routes/api/
├── (schemas)/string/ # Schema docs
│ ├── index.mdx # MDX content
│ └── properties.ts # Type definitions
├── (actions)/email/ # Action docs
├── (methods)/parse/ # Method docs
├── (types)/StringSchema/ # Type docs
└── menu.md # Navigationroutes/api/
├── (schemas)/string/ # Schema文档
│ ├── index.mdx # MDX内容
│ └── properties.ts # 类型定义
├── (actions)/email/ # Action文档
├── (methods)/parse/ # Method文档
├── (types)/StringSchema/ # 类型文档
└── menu.md # 导航菜单routes/guides/
├── (get-started)/ # Intro, installation
├── (main-concepts)/ # Schemas, pipelines, parsing
├── (schemas)/ # Objects, arrays, unions
├── (advanced)/ # Async, i18n, JSON Schema
├── (migration)/ # Version upgrades
└── menu.md # Navigationroutes/guides/
├── (get-started)/ # 入门、安装
├── (main-concepts)/ # Schema、流水线、解析
├── (schemas)/ # 对象、数组、联合类型
├── (advanced)/ # 异步、i18n、JSON Schema
├── (migration)/ # 版本升级
└── menu.md # 导航菜单library/playground.tslibrary/playground.tslibrary/src/schemas/yourSchema/yourSchema.tsyourSchema.test.tsyourSchema.test-d.tsindex.tsindex.tspnpm -C library testlibrary/src/schemas/yourSchema/yourSchema.tsyourSchema.test.tsyourSchema.test-d.tsindex.tsindex.tspnpm -C library testlibrary/src/types/library/src/types/| Looking for... | Location |
|---|---|
| Schema implementation | |
| Action implementation | |
| Method implementation | |
| Type definitions | |
| Internal utilities | |
| Error messages (i18n) | |
| API docs page | |
| Guide page | |
| Tests | Same directory as source, |
| Type tests | Same directory as source, |
| 查找内容 | 位置 |
|---|---|
| Schema实现代码 | |
| Action实现代码 | |
| Method实现代码 | |
| 类型定义 | |
| 内部辅助工具 | |
| 多语言错误提示 | |
| API文档页面 | |
| 指南文档页面 | |
| 运行时测试 | 与源码同目录,后缀 |
| 类型测试 | 与源码同目录,后缀 |
undefinedundefinedundefinedundefined// @__NO_SIDE_EFFECTS__.ts// @__NO_SIDE_EFFECTS__.tsdist/coverage/dist/coverage/