[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73721":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},73721,"standard-schema","standard-schema\u002Fstandard-schema","A standard interface for TypeScript schema validation libraries","https:\u002F\u002Fstandardschema.dev",null,"TypeScript",3533,117,12,29,0,7,16,39,21,84.12,"MIT License",false,"main",true,[26,27,28,29,30],"interface","schema","standard","typescript","validation","2026-06-12 04:01:10","\u003Ch1 align=\"center\">\n  \u003Cimg alt=\"Standard Schema fire logo\" loading=\"lazy\" width=\"50\" height=\"50\" decoding=\"async\" data-nimg=\"1\" style=\"color:transparent\" src=\"https:\u002F\u002Fstandardschema.dev\u002Ffavicon.svg\">\n  \u003C\u002Fbr>\n  Standard Schema\u003C\u002Fh1>\n\u003Cp align=\"center\">\n  A family of specs for interoperable TypeScript\n  \u003Cbr\u002F>\n  \u003Ca href=\"https:\u002F\u002Fstandardschema.dev\">standardschema.dev\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cbr\u002F>\n\n\u003C!-- start -->\n\nThe Standard Schema project is a set of interfaces that standardize the provision and consumption of shared functionality in the TypeScript ecosystem.\n\nIts goal is to allow tools to accept a single input that includes all the types and capabilities they need— no library-specific adapters, no extra dependencies. The result is an ecosystem that's fair for implementers, friendly for consumers, and open for end users.\n\n## The specifications\n\nThe specifications can be found below in their entirety. Libraries wishing to implement a spec can copy\u002Fpaste the code block below into their codebase. They're also available at `@standard-schema\u002Fspec` on [npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@standard-schema\u002Fspec) and [JSR](https:\u002F\u002Fjsr.io\u002F@standard-schema\u002Fspec).\n\n```ts\n\u002F\u002F #########################\n\u002F\u002F ###   Standard Typed  ###\n\u002F\u002F #########################\n\n\u002F** The Standard Typed interface. This is a base type extended by other specs. *\u002F\nexport interface StandardTypedV1\u003CInput = unknown, Output = Input> {\n  \u002F** The Standard properties. *\u002F\n  readonly \"~standard\": StandardTypedV1.Props\u003CInput, Output>;\n}\n\nexport declare namespace StandardTypedV1 {\n  \u002F** The Standard Typed properties interface. *\u002F\n  export interface Props\u003CInput = unknown, Output = Input> {\n    \u002F** The version number of the standard. *\u002F\n    readonly version: 1;\n    \u002F** The vendor name of the schema library. *\u002F\n    readonly vendor: string;\n    \u002F** Inferred types associated with the schema. *\u002F\n    readonly types?: Types\u003CInput, Output> | undefined;\n  }\n\n  \u002F** The Standard Typed types interface. *\u002F\n  export interface Types\u003CInput = unknown, Output = Input> {\n    \u002F** The input type of the schema. *\u002F\n    readonly input: Input;\n    \u002F** The output type of the schema. *\u002F\n    readonly output: Output;\n  }\n\n  \u002F** Infers the input type of a Standard Typed. *\u002F\n  export type InferInput\u003CSchema extends StandardTypedV1> = NonNullable\u003C\n    Schema[\"~standard\"][\"types\"]\n  >[\"input\"];\n\n  \u002F** Infers the output type of a Standard Typed. *\u002F\n  export type InferOutput\u003CSchema extends StandardTypedV1> = NonNullable\u003C\n    Schema[\"~standard\"][\"types\"]\n  >[\"output\"];\n}\n\n\u002F\u002F ##########################\n\u002F\u002F ###   Standard Schema  ###\n\u002F\u002F ##########################\n\n\u002F** The Standard Schema interface. *\u002F\nexport interface StandardSchemaV1\u003CInput = unknown, Output = Input> {\n  \u002F** The Standard Schema properties. *\u002F\n  readonly \"~standard\": StandardSchemaV1.Props\u003CInput, Output>;\n}\n\nexport declare namespace StandardSchemaV1 {\n  \u002F** The Standard Schema properties interface. *\u002F\n  export interface Props\u003CInput = unknown, Output = Input>\n    extends StandardTypedV1.Props\u003CInput, Output> {\n    \u002F** Validates unknown input values. *\u002F\n    readonly validate: (\n      value: unknown,\n      options?: StandardSchemaV1.Options | undefined\n    ) => Result\u003COutput> | Promise\u003CResult\u003COutput>>;\n  }\n\n  \u002F** The result interface of the validate function. *\u002F\n  export type Result\u003COutput> = SuccessResult\u003COutput> | FailureResult;\n\n  \u002F** The result interface if validation succeeds. *\u002F\n  export interface SuccessResult\u003COutput> {\n    \u002F** The typed output value. *\u002F\n    readonly value: Output;\n    \u002F** A falsy value for `issues` indicates success. *\u002F\n    readonly issues?: undefined;\n  }\n\n  export interface Options {\n    \u002F** Explicit support for additional vendor-specific parameters, if needed. *\u002F\n    readonly libraryOptions?: Record\u003Cstring, unknown> | undefined;\n  }\n\n  \u002F** The result interface if validation fails. *\u002F\n  export interface FailureResult {\n    \u002F** The issues of failed validation. *\u002F\n    readonly issues: ReadonlyArray\u003CIssue>;\n  }\n\n  \u002F** The issue interface of the failure output. *\u002F\n  export interface Issue {\n    \u002F** The error message of the issue. *\u002F\n    readonly message: string;\n    \u002F** The path of the issue, if any. *\u002F\n    readonly path?: ReadonlyArray\u003CPropertyKey | PathSegment> | undefined;\n  }\n\n  \u002F** The path segment interface of the issue. *\u002F\n  export interface PathSegment {\n    \u002F** The key representing a path segment. *\u002F\n    readonly key: PropertyKey;\n  }\n\n  \u002F** The Standard types interface. *\u002F\n  export interface Types\u003CInput = unknown, Output = Input>\n    extends StandardTypedV1.Types\u003CInput, Output> {}\n\n  \u002F** Infers the input type of a Standard. *\u002F\n  export type InferInput\u003CSchema extends StandardTypedV1> =\n    StandardTypedV1.InferInput\u003CSchema>;\n\n  \u002F** Infers the output type of a Standard. *\u002F\n  export type InferOutput\u003CSchema extends StandardTypedV1> =\n    StandardTypedV1.InferOutput\u003CSchema>;\n}\n\n\u002F\u002F ###############################\n\u002F\u002F ###   Standard JSON Schema  ###\n\u002F\u002F ###############################\n\n\u002F** The Standard JSON Schema interface. *\u002F\nexport interface StandardJSONSchemaV1\u003CInput = unknown, Output = Input> {\n  \u002F** The Standard JSON Schema properties. *\u002F\n  readonly \"~standard\": StandardJSONSchemaV1.Props\u003CInput, Output>;\n}\n\nexport declare namespace StandardJSONSchemaV1 {\n  \u002F** The Standard JSON Schema properties interface. *\u002F\n  export interface Props\u003CInput = unknown, Output = Input>\n    extends StandardTypedV1.Props\u003CInput, Output> {\n    \u002F** Methods for generating the input\u002Foutput JSON Schema. *\u002F\n    readonly jsonSchema: StandardJSONSchemaV1.Converter;\n  }\n\n  \u002F** The Standard JSON Schema converter interface. *\u002F\n  export interface Converter {\n    \u002F** Converts the input type to JSON Schema. May throw if conversion is not supported. *\u002F\n    readonly input: (\n      options: StandardJSONSchemaV1.Options\n    ) => Record\u003Cstring, unknown>;\n    \u002F** Converts the output type to JSON Schema. May throw if conversion is not supported. *\u002F\n    readonly output: (\n      options: StandardJSONSchemaV1.Options\n    ) => Record\u003Cstring, unknown>;\n  }\n\n  \u002F**\n   * The target version of the generated JSON Schema.\n   *\n   * It is *strongly recommended* that implementers support `\"draft-2020-12\"` and `\"draft-07\"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.\n   *\n   * The `\"openapi-3.0\"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `\"draft-04\"`.\n   *\u002F\n  export type Target =\n    | \"draft-2020-12\"\n    | \"draft-07\"\n    | \"openapi-3.0\"\n    \u002F\u002F Accepts any string for future targets while preserving autocomplete\n    | ({} & string);\n\n  \u002F** The options for the input\u002Foutput methods. *\u002F\n  export interface Options {\n    \u002F** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. *\u002F\n    readonly target: Target;\n\n    \u002F** Explicit support for additional vendor-specific parameters, if needed. *\u002F\n    readonly libraryOptions?: Record\u003Cstring, unknown> | undefined;\n  }\n\n  \u002F** The Standard types interface. *\u002F\n  export interface Types\u003CInput = unknown, Output = Input>\n    extends StandardTypedV1.Types\u003CInput, Output> {}\n\n  \u002F** Infers the input type of a Standard. *\u002F\n  export type InferInput\u003CSchema extends StandardTypedV1> =\n    StandardTypedV1.InferInput\u003CSchema>;\n\n  \u002F** Infers the output type of a Standard. *\u002F\n  export type InferOutput\u003CSchema extends StandardTypedV1> =\n    StandardTypedV1.InferOutput\u003CSchema>;\n}\n```\n","Standard Schema 是一个用于TypeScript模式验证库的标准接口。该项目提供了一套规范，旨在使TypeScript生态系统中的工具能够通过单一输入获取所需的所有类型和功能，无需特定于库的适配器或额外依赖项。其核心功能包括定义了如StandardTypedV1和StandardSchemaV1等接口，这些接口明确了版本号、供应商名称以及输入输出类型等属性。此外，项目还提供了类型推断能力，使得从给定模式中自动提取输入与输出类型成为可能。Standard Schema特别适合需要跨不同模式验证库进行交互的应用场景，为开发者提供了一个统一且开放的基础，从而简化了开发流程并提高了代码的可维护性。",2,"2026-06-11 03:47:04","high_star"]