{
  "id": "task_libraries:validation/javascript",
  "path": "/exapedia/javascript-validation-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript validation libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript validation libraries check that incoming data, such as a request body or a form submission, has the shape and values an app expects. These libraries let APIs and AI agents reject malformed input before it reaches application code, including the arguments a language model passes to a tool."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript validation libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#ajv",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zod",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#effect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#validator",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#joi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#valibot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#class-validator",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#typebox",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#ajv",
          "label": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F112"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Object schemas",
            "Async checks",
            "Input conversion"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#ajv",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F111"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zod",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#effect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#validator",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#joi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#valibot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#class-validator",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#typebox",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "ajv",
          "name": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ajv-validator/ajv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/ajv"
            },
            {
              "label": "Docs",
              "href": "https://ajv.js.org/guide/getting-started.html"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Ajv validates data against JSON Schema and JSON Type Definition schemas in Node.js and browsers. "
            },
            {
              "t": "code",
              "text": "ajv.compile"
            },
            {
              "t": "text",
              "text": " turns a schema into a validation function and caches it, so the same schema object is never compiled twice. The function returns true or false and stores any problems in its "
            },
            {
              "t": "code",
              "text": "errors"
            },
            {
              "t": "text",
              "text": " property, with an option to collect every error instead of stopping at the first. Options can also remove extra properties, fill in default values, and coerce values to the types a schema declares. Formats such as email and date come from a separate plugin, ajv-formats."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ajv.js.org/guide/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/webpack/schema-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function validateObject(schema, options) {\n  // Not need to cache, because `ajv@8` has built-in cache\n  const compiledSchema = getAjv().compile(schema);\n  const valid = compiledSchema(options);\n\n  if (valid) return [];\n\n  return compiledSchema.errors ? filterErrors(compiledSchema.errors) : [];\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/webpack/schema-utils/blob/a6bbb4e41666378e5dfab81c45c335ccf7aa7bb6/src/validate.js#L443-L451",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20ajv&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F111"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const Ajv = require(\"ajv\")\nconst ajv = new Ajv() // options can be passed, e.g. {allErrors: true}\n\nconst schema = {\n  type: \"object\",\n  properties: {\n    foo: {type: \"integer\"},\n    bar: {type: \"string\"}\n  },\n  required: [\"foo\"],\n  additionalProperties: false\n}\n\nconst validate = ajv.compile(schema)\n\nconst data = {\n  foo: 1,\n  bar: \"abc\"\n}\n\nconst valid = validate(data)\nif (!valid) console.log(validate.errors)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/ajv-validator/ajv/blob/master/docs/guide/getting-started.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F116"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "zod",
          "name": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/colinhacks/zod"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/zod"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/zod@4.6.7/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Zod is a TypeScript-first validation library with no external dependencies. A schema such as "
            },
            {
              "t": "code",
              "text": "z.object"
            },
            {
              "t": "text",
              "text": " describes the data, and "
            },
            {
              "t": "code",
              "text": ".parse"
            },
            {
              "t": "text",
              "text": " checks an input against it and returns a typed deep copy when the input is valid. The TypeScript type comes from the same schema, so the type and the runtime check can't drift apart. Refinements add custom checks, "
            },
            {
              "t": "code",
              "text": ".parseAsync"
            },
            {
              "t": "text",
              "text": " runs asynchronous ones, and "
            },
            {
              "t": "code",
              "text": "z.toJSONSchema"
            },
            {
              "t": "text",
              "text": " exports a schema to JSON Schema. For hot paths, "
            },
            {
              "t": "code",
              "text": "z.compile"
            },
            {
              "t": "text",
              "text": " builds a faster version of a schema ahead of time."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/zod@4.6.7/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F48"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function zodResolver<Input extends FieldValues, Context, Output>(\n  schema: object,\n  schemaOptions?: object,\n  resolverOptions: {\n    mode?: 'async' | 'sync';\n    raw?: boolean;\n  } = {},\n): Resolver<Input, Context, Output | Input> {\n  // Zod 4 is checked first: its `_zod` marker is unambiguous, whereas the\n  // Zod 3 check below only requires an object-shaped `_def` (to support\n  // dynamically-selected schemas typed via the generic `z.ZodType<Output>`\n  // annotation, see `isZod3Schema`) — and Zod 4 schemas also have an\n  // object-shaped `_def`, so they'd otherwise be misdetected as Zod 3.\n  if (isZod4Schema(schema)) {\n    return async (values: Input, _, options) => {\n      try {\n        // Call the schema's own bound `parse`/`parseAsync` method rather\n        // than the standalone `z4.parse`/`z4.parseAsync` functions. Those\n        // standalone functions read from this module's own imported\n        // `zod/v4/core`, which — under bundlers that can resolve `zod` and\n        // `zod/v4/core` to two distinct module instances (e.g. Metro with\n        // package-exports resolution enabled) — may not be the same zod\n        // instance the schema was created with, silently dropping any\n        // global config (`z.config()`) or locale the app configured on its\n        // own zod instance. The schema's own method is always bound to\n        // whichever zod instance actually created it.\n        const classicSchema = schema as unknown as {\n          parse: (values: unknown, schemaOptions: unknown) => unknown;\n          parseAsync: (\n            values: unknown,\n            schemaOptions: unknown,\n          ) => Promise<unknown>;\n        };\n        const data: any =\n          resolverOptions.mode === 'sync'\n            ? classicSchema.parse(values, schemaOptions)\n            : await classicSchema.parseAsync(values, schemaOptions);\n\n        options.shouldUseNativeValidation &&\n          validateFieldsNatively({}, options);\n\n        return {\n          errors: {},\n          values: resolverOptions.raw ? Object.assign({}, values) : data,\n        } satisfies ResolverSuccess<Output | Input>;\n      } catch (error) {\n        if (isZod4Error(error)) {\n          return {\n            values: {},\n            errors: toNestErrors(\n              parseZod4Issues(\n                error.issues,\n                !options.shouldUseNativeValidation &&\n                  options.criteriaMode === 'all',\n              ),\n              options,\n            ),\n          } satisfies ResolverError<Input>;\n        }\n\n        throw error;\n      }\n    };\n  }\n\n  if (isZod3Schema(schema)) {\n    return async (values: Input, _, options) => {\n      try {\n        const data = await schema[\n          resolverOptions.mode === 'sync' ? 'parse' : 'parseAsync'\n        ](values, schemaOptions);\n\n        options.shouldUseNativeValidation &&\n          validateFieldsNatively({}, options);\n\n        return {\n          errors: {},\n          values: resolverOptions.raw ? Object.assign({}, values) : data,\n        } satisfies ResolverSuccess<Output | Input>;\n      } catch (error) {\n        if (isZod3Error(error)) {\n          return {\n            values: {},\n            errors: toNestErrors(\n              parseZod3Issues(\n                error.errors,\n                !options.shouldUseNativeValidation &&\n                  options.criteriaMode === 'all',\n              ),\n              options,\n            ),\n          } satisfies ResolverError<Input>;\n        }\n\n        throw error;\n      }\n    };\n  }\n\n  throw new Error('Invalid input: not a Zod schema');\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers/blob/f14fc25bbf205e92266c8abf8512b3b517bcae4a/zod/src/zod.ts#L288-L388",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20zod&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import * as z from \"zod\";\n\nconst Player = z.object({\n  username: z.string(),\n  xp: z.number(),\n});\n\nPlayer.parse({ username: \"billie\", xp: 100 });\n// => returns { username: \"billie\", xp: 100 }\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/zod@4.6.7/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "effect",
          "name": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Effect-TS/effect"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/effect"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/effect@4.1.4/dist/Schema.d.ts"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Effect is a TypeScript standard library, and its "
            },
            {
              "t": "code",
              "text": "Schema"
            },
            {
              "t": "text",
              "text": " module defines schemas that validate and transform data. A schema describes two types: the encoded form that arrives as input and the type the app works with. "
            },
            {
              "t": "code",
              "text": "Schema.decodeUnknownSync"
            },
            {
              "t": "text",
              "text": " turns unknown input into the app's type or throws, and encoding converts a value back for output. The same schema can also produce a JSON Schema, test data generators, and equality checks. Decoders that return an "
            },
            {
              "t": "code",
              "text": "Effect"
            },
            {
              "t": "text",
              "text": " connect to the rest of the Effect library, such as its error handling and concurrency."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/effect@4.1.4/dist/Schema.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F282"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function effectTsResolver<Input extends FieldValues, Context, Output>(\n  schema: Schema.Codec<Output, Input, never, unknown>,\n  schemaOptions: ParseOptions = { errors: 'all', onExcessProperty: 'ignore' },\n  resolverOptions: { raw?: boolean } = {},\n): Resolver<Input, Context, Output | Input> {\n  return (values, _, options) =>\n    Schema.decodeUnknownEffect(schema)(values, schemaOptions).pipe(\n      Effect.match({\n        onFailure: ({ issue }) => {\n          const validateAllFieldCriteria =\n            !options.shouldUseNativeValidation &&\n            options.criteriaMode === 'all';\n\n          // A null-prototype accumulator avoids false-positive hits from\n          // inherited members (e.g. `toString`, `constructor`) when a field\n          // is named after one of them — a plain `{}` would make `!acc[key]`\n          // truthy-skip those paths and silently drop their errors.\n          const errors = flattenIssue(issue, []).reduce(\n            (acc, error) => {\n              const key = error.path.join('.');\n\n              if (!acc[key]) {\n                acc[key] = { message: error.message, type: error.type };\n              }\n\n              if (validateAllFieldCriteria) {\n                const types = acc[key].types;\n                const messages = types && types[error.type];\n\n                acc[key] = appendErrors(\n                  key,\n                  validateAllFieldCriteria,\n                  acc,\n                  error.type,\n                  messages\n                    ? ([] as string[]).concat(\n                        messages as string[],\n                        error.message,\n                      )\n                    : error.message,\n                ) as FieldError;\n              }\n\n              return acc;\n            },\n            Object.create(null) as Record<string, FieldError>,\n          );\n\n          return { errors: toNestErrors(errors, options), values: {} };\n        },\n        onSuccess: (result) => {\n          options.shouldUseNativeValidation &&\n            validateFieldsNatively({}, options);\n\n          return {\n            errors: {},\n            values: resolverOptions.raw ? Object.assign({}, values) : result,\n          };\n        },\n      }),\n      Effect.runPromise,\n    );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers/blob/f14fc25bbf205e92266c8abf8512b3b517bcae4a/effect-ts/src/effect-ts.ts#L73-L135",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=effect%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Schema } from 'effect';\n\nconst User = Schema.Struct({\n  name: Schema.String,\n});\n\nconsole.log(Schema.decodeUnknownSync(User)({ name: 'Ada' }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/effect@4.1.4/dist/Schema.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "Schema.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "validator",
          "name": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/validatorjs/validator.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/validator"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/validator@13.15.35/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "validator.js is a library of string validators and sanitizers, with functions such as "
            },
            {
              "t": "code",
              "text": "isEmail"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "isURL"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "isMobilePhone"
            },
            {
              "t": "text",
              "text": ". Each validator takes a string and returns true or false, and sanitizers such as "
            },
            {
              "t": "code",
              "text": "escape"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "trim"
            },
            {
              "t": "text",
              "text": " return a cleaned string. The library checks strings only, so other input has to be converted to a string first. Single functions can be imported on their own, and a standalone script runs in the browser."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/validator@13.15.35/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F169"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vinejs/vine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function mobile(value, options, field) {\n  const normalizedOptions = options && typeof options === 'function' ? options(field) : options\n  const locales = normalizedOptions?.locale || 'any'\n\n  if (!helpers.isMobilePhone(value as string, locales, normalizedOptions)) {\n    field.report(messages.mobile, 'mobile', field)\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vinejs/vine/blob/17f9ea96672201c8f6cc472ca46b2b40b0126fe8/src/schema/string/rules.ts#L92-L99",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=validator%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F169"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "var validator = require('validator');\n\nvalidator.isEmail('foo@bar.com'); //=> true\n\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/validator@13.15.35/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "joi",
          "name": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/hapijs/joi"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/joi"
            },
            {
              "label": "Docs",
              "href": "https://joi.dev/api/18.x.x/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Joi describes objects with a chained schema language, such as "
            },
            {
              "t": "code",
              "text": "Joi.object"
            },
            {
              "t": "text",
              "text": " with "
            },
            {
              "t": "code",
              "text": "Joi.string"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "Joi.number"
            },
            {
              "t": "text",
              "text": " fields, in plain JavaScript. "
            },
            {
              "t": "code",
              "text": "schema.validate"
            },
            {
              "t": "text",
              "text": " returns an object with the validated value and any error, and "
            },
            {
              "t": "code",
              "text": "validateAsync"
            },
            {
              "t": "text",
              "text": " handles rules that need to wait on other work. Values convert to the declared types by default, so a numeric string passes as a number. Rules can also reference other fields, which covers checks such as a password confirmation."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://joi.dev/api/18.x.x/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "(\n    schema,\n    schemaOptions = {\n      abortEarly: false,\n    },\n    resolverOptions = {},\n  ) =>\n  async (values, context, options) => {\n    const _schemaOptions = Object.assign({}, schemaOptions, {\n      context,\n    });\n\n    let result: Record<string, any> = {};\n    if (resolverOptions.mode === 'sync') {\n      result = schema.validate(values, _schemaOptions);\n    } else {\n      try {\n        result.value = await schema.validateAsync(values, _schemaOptions);\n      } catch (e) {\n        result.error = e;\n      }\n    }\n\n    if (result.error) {\n      return {\n        values: {},\n        errors: toNestErrors(\n          parseErrorSchema(\n            result.error,\n            !options.shouldUseNativeValidation &&\n              options.criteriaMode === 'all',\n          ),\n          options,\n        ),\n      };\n    }\n\n    options.shouldUseNativeValidation && validateFieldsNatively({}, options);\n\n    return {\n      errors: {},\n      values: result.value,\n    };\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers/blob/f14fc25bbf205e92266c8abf8512b3b517bcae4a/joi/src/joi.ts#L59-L102",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20joi&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F189"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "const Joi = require('joi');\n\nconst schema = Joi.object({\n    a: Joi.string(),\n});\n\nconst { error, value } = schema.validate({ a: 'a string' });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://joi.dev/api/18.x.x/",
                  "label": [
                    {
                      "t": "text",
                      "text": "API.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "valibot",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/open-circle/valibot"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/valibot"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/valibot@1.5.0/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Valibot validates data with schemas built from small, separate functions. A schema such as "
            },
            {
              "t": "code",
              "text": "v.object"
            },
            {
              "t": "text",
              "text": " lists the fields, "
            },
            {
              "t": "code",
              "text": "v.pipe"
            },
            {
              "t": "text",
              "text": " chains checks like "
            },
            {
              "t": "code",
              "text": "v.email"
            },
            {
              "t": "text",
              "text": " or "
            },
            {
              "t": "code",
              "text": "v.minLength"
            },
            {
              "t": "text",
              "text": " onto a type, and "
            },
            {
              "t": "code",
              "text": "v.parse"
            },
            {
              "t": "text",
              "text": " validates input or throws. Because each function is imported on its own, a bundler keeps only the checks a schema uses. Static types come from "
            },
            {
              "t": "code",
              "text": "v.InferOutput"
            },
            {
              "t": "text",
              "text": ", and the library has no dependencies and runs in any JavaScript environment."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/valibot@1.5.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function valibotResolver<Input extends FieldValues, Context, Output>(\n  schema: BaseSchema<Input, Output, any> | BaseSchemaAsync<Input, Output, any>,\n  schemaOptions?: Partial<\n    Omit<Config<InferIssue<typeof schema>>, 'abortPipeEarly' | 'skipPipe'>\n  >,\n  resolverOptions: {\n    /**\n     * @default async\n     */\n    mode?: 'sync' | 'async';\n    /**\n     * Return the raw input values rather than the parsed values.\n     * @default false\n     */\n    raw?: boolean;\n  } = {},\n): Resolver<Input, Context, Output | Input> {\n  return async (values: Input, _, options) => {\n    // Check if we should validate all field criteria\n    const validateAllFieldCriteria =\n      !options.shouldUseNativeValidation && options.criteriaMode === 'all';\n\n    // Parse values with Valibot schema\n    const result = await safeParseAsync(\n      schema,\n      values,\n      Object.assign({}, schemaOptions, {\n        abortPipeEarly: !validateAllFieldCriteria,\n      }),\n    );\n\n    // If there are issues, return them as errors\n    if (result.issues) {\n      // Create errors object. A null-prototype object avoids false-positive\n      // hits from inherited members (e.g. `toString`, `constructor`) when a\n      // field is named after one of them — a plain `{}` would make\n      // `!errors[path]` truthy-skip those paths and silently drop their\n      // errors.\n      const errors: Record<string, FieldError> = Object.create(null);\n\n      // Iterate over issues to add them to errors object\n      for (; result.issues.length; ) {\n        const issue = result.issues[0];\n        // Object-level checks report no dot path; keep them on the empty key\n        const path = getDotPath(issue) ?? '';\n\n        // Add first error of path to errors object\n        if (!errors[path]) {\n          errors[path] = { message: issue.message, type: issue.type };\n        }\n\n        // If configured, add all errors of path to errors object\n        if (validateAllFieldCriteria) {\n          const types = errors[path].types;\n          const messages = types && types[issue.type];\n          errors[path] = appendErrors(\n            path,\n            validateAllFieldCriteria,\n            errors,\n            issue.type,\n            messages\n              ? ([] as string[]).concat(\n                  messages as string | string[],\n                  issue.message,\n                )\n              : issue.message,\n          ) as FieldError;\n        }\n\n        result.issues.shift();\n      }\n\n      // Return resolver result with errors\n      return {\n        values: {},\n        errors: toNestErrors(errors, options),\n      } as const;\n    }\n\n    options.shouldUseNativeValidation && validateFieldsNatively({}, options);\n\n    // Otherwise, return resolver result with values\n    return {\n      values: resolverOptions.raw ? Object.assign({}, values) : result.output,\n      errors: {},\n    };\n  };\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/react-hook-form/resolvers/blob/f14fc25bbf205e92266c8abf8512b3b517bcae4a/valibot/src/valibot.ts#L53-L140",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=valibot%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import * as v from 'valibot';\n\nconst LoginSchema = v.object({\n  email: v.pipe(v.string(), v.email()),\n  password: v.pipe(v.string(), v.minLength(8)),\n});\n\nconst output2 = v.parse(LoginSchema, {\n  email: 'jane@example.com',\n  password: '12345678',\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/valibot@1.5.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "class-validator",
          "name": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/typestack/class-validator"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/class-validator"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/class-validator@0.15.1/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "class-validator checks objects through decorators placed on class properties, such as "
            },
            {
              "t": "code",
              "text": "@IsEmail"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "@Length"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "@Min"
            },
            {
              "t": "text",
              "text": ". "
            },
            {
              "t": "code",
              "text": "validate"
            },
            {
              "t": "text",
              "text": " runs every rule on an instance and returns a list of errors, and "
            },
            {
              "t": "code",
              "text": "validateOrReject"
            },
            {
              "t": "text",
              "text": " throws instead. The checks themselves come from validator.js. Validation groups, nested objects, and custom decorators are supported, and rules can also be defined without decorators. Plain objects, such as parsed JSON, have to be turned into class instances first."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/class-validator@0.15.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F229"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/medusajs/medusa",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F248"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export async function validator<T, V>(\n  typedClass: ClassConstructor<T>,\n  plain: V,\n  config: ValidatorOptions = {}\n): Promise<T> {\n  typedClass = extendedValidators.get(typedClass.name) ?? typedClass\n\n  const toValidate = plainToInstance(typedClass, plain)\n  // @ts-ignore\n  const errors = await validate(toValidate, {\n    whitelist: true,\n    forbidNonWhitelisted: true,\n    ...config,\n  })\n\n  const errorMessages = reduceErrorMessages(errors)\n\n  if (errors?.length) {\n    throw new MedusaError(\n      MedusaError.Types.INVALID_DATA,\n      errorMessages.join(\", \")\n    )\n  }\n\n  return toValidate\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/medusajs/medusa/blob/2c444a06e8fe16b749f1c7303ba93d3df36166c8/packages/medusa/src/utils/validator.ts#L48-L73",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=class-validator%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F229"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { IsEmail, validate } from 'class-validator';\n\nclass EmailInput {\n  @IsEmail()\n  email = 'jane@example.com';\n}\n\nconsole.log(await validate(new EmailInput()));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/class-validator@0.15.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F234"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "typebox",
          "name": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sinclairzx81/typebox"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/typebox"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/typebox@1.4.7/readme.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "TypeBox builds JSON Schema objects in TypeScript with functions such as "
            },
            {
              "t": "code",
              "text": "Type.Object"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "Type.Number"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "Type.Static"
            },
            {
              "t": "text",
              "text": " reads the matching TypeScript type from each one. The result is one definition that TypeScript checks at compile time and any JSON Schema validator checks at runtime. TypeBox also includes its own compiler and value functions, so validation can run without a separate library. Services that already exchange JSON Schema, such as REST and RPC APIs, can use the schemas as they are."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/typebox@1.4.7/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fastify/fastify-type-provider-typebox",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F269"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "({ schema, httpPart }) => {\n  const typeCheck = Compile(schema)\n  return (value): any /* TODO: remove any for next major */ => {\n    // Note: Only support value conversion for querystring, params and header schematics\n    const converted = httpPart === 'body' ? value : Value.Convert(schema, value)\n    if (typeCheck.Check(converted)) {\n      return { value: converted }\n    }\n\n    const errors: FastifySchemaValidationError[] = typeCheck.Errors(converted)\n\n    return {\n      error: errors\n    }\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fastify/fastify-type-provider-typebox/blob/d81731b31f4ec47e0dafa0cc28ccf1f58ebbec52/index.ts#L94-L109",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F268"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=typebox%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F250"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import Type from 'typebox'\n\nimport Schema from 'typebox/schema'\n\n// Compile\n\nconst Vector = Schema.Compile(Type.Script(`{\n  x: number\n  y: number\n  z: number\n}`))\n\n// Check\n\nconst valid = Vector.Check({ x: 1, y: 0, z: 0 })   // const valid: boolean\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/typebox@1.4.7/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F255"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript validation library should I use?",
      "a": [
        {
          "t": "text",
          "text": "In TypeScript, "
        },
        {
          "t": "link",
          "href": "#zod",
          "label": [
            {
              "t": "text",
              "text": "Zod"
            }
          ]
        },
        {
          "t": "text",
          "text": " defines a schema once and infers its type, and "
        },
        {
          "t": "link",
          "href": "#valibot",
          "label": [
            {
              "t": "text",
              "text": "Valibot"
            }
          ]
        },
        {
          "t": "text",
          "text": " does the same with separately imported functions that keep bundles small. For data described in JSON Schema, use "
        },
        {
          "t": "link",
          "href": "#ajv",
          "label": [
            {
              "t": "text",
              "text": "Ajv"
            }
          ]
        },
        {
          "t": "text",
          "text": ". For rules written as decorators on classes, use "
        },
        {
          "t": "link",
          "href": "#class-validator",
          "label": [
            {
              "t": "text",
              "text": "class-validator"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and for single strings such as email addresses, "
        },
        {
          "t": "link",
          "href": "#validator",
          "label": [
            {
              "t": "text",
              "text": "validator.js"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "Zod vs Yup: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Yup casts input into the declared types and can transform it before validating. Zod parses input and returns a typed deep copy when it is valid, and it infers the TypeScript type from the schema."
        }
      ]
    },
    {
      "q": "Joi vs Zod: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Joi validates objects in plain JavaScript and converts values, such as a numeric string to a number, by default. Zod is TypeScript first: one schema gives both the runtime check and the static type."
        }
      ]
    },
    {
      "q": "Valibot vs Zod: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Both define schemas in TypeScript and infer static types. Valibot splits its API into separate functions, such as "
        },
        {
          "t": "code",
          "text": "v.pipe"
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "code",
          "text": "v.email"
        },
        {
          "t": "text",
          "text": ", so a bundler keeps only the ones in use, and its bundle starts under one kilobyte. Zod chains methods on a schema object."
        }
      ]
    },
    {
      "q": "Ajv vs Zod: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Ajv validates data against JSON Schema documents and compiles each schema into a reusable function. Zod defines schemas in TypeScript and infers types from them. When another tool needs JSON Schema, "
        },
        {
          "t": "code",
          "text": "z.toJSONSchema"
        },
        {
          "t": "text",
          "text": " exports a Zod schema to that format."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, ajv",
      "display": "Ajv",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, ajv",
      "display": "1.9B",
      "asOf": "2026-11-10"
    },
    "F3": {
      "label": "License, ajv",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, ajv",
      "display": "8.20.0, Apr 2026",
      "asOf": "2026-04-24"
    },
    "F5": {
      "label": "Package release date, ajv",
      "display": "Apr 2026",
      "asOf": "2026-04-24"
    },
    "F6": {
      "label": "Repository stars, ajv",
      "display": "14.9K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Nested objects, ajv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Coercion, ajv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Async validation, ajv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Custom rules, ajv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, ajv",
      "display": "JS",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, ajv",
      "display": "npm install ajv",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, ajv",
      "display": "Compiles JSON schemas into reusable data-validation functions.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, ajv",
      "display": "Reuses compiled schema validators",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, ajv",
      "display": "Compiles a schema once and reuses its validation function.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, ajv",
      "display": "Supports asynchronous custom checks",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, ajv",
      "display": "Async formats and keywords handle checks that call a database or another service.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, ajv",
      "display": "Coercion changes object properties",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, ajv",
      "display": "With coercion on, Ajv changes properties of the validated object in place.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, ajv",
      "display": "Standard formats need a plugin",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, ajv",
      "display": "Formats such as email and date come from the ajv-formats plugin.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, ajv",
      "display": "const Ajv = require(\"ajv\")\nconst ajv = new Ajv() // options can be passed, e.g. {allErrors: true}\n\nconst schema = {\n  type: \"object\",\n  properties: {\n    foo: {type: \"integer\"},\n    bar: {type: \"string\"}\n  },\n  required: [\"foo\"],\n  additionalProperties: false\n}\n\nconst validate = ajv.compile(schema)\n\nconst data = {\n  foo: 1,\n  bar: \"abc\"\n}\n\nconst valid = validate(data)\nif (!valid) console.log(validate.errors)\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, ajv",
      "display": "(additionalOptions = {}) => {\n\tconst ajv = new Ajv({\n\t\tmeta: false,\n\t\tuseDefaults: true,\n\t\tvalidateSchema: false,\n\t\tmissingRefs: \"ignore\",\n\t\tverbose: true,\n\t\tschemaId: \"auto\",\n\t\t...additionalOptions,\n\t});\n\n\tajv.addMetaSchema(metaSchema);\n\t// eslint-disable-next-line no-underscore-dangle -- Ajv's API\n\tajv._opts.defaultMeta = metaSchema.id;\n\n\treturn ajv;\n}\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, ajv",
      "display": "ajv.js · createValidator()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, ajv",
      "display": "eslint/eslint",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, eslint/eslint",
      "display": "27.6K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, eslint/eslint",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F28": {
      "label": "Library name, zod",
      "display": "Zod",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, zod",
      "display": "1.6B",
      "asOf": "2026-11-10"
    },
    "F30": {
      "label": "License, zod",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, zod",
      "display": "4.6.7, Oct 2026",
      "asOf": "2026-10-12"
    },
    "F32": {
      "label": "Package release date, zod",
      "display": "Oct 2026",
      "asOf": "2026-10-12"
    },
    "F33": {
      "label": "Repository stars, zod",
      "display": "44.3K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Nested objects, zod",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Coercion, zod",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Async validation, zod",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Custom rules, zod",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Output formats, zod",
      "display": "JSON Schema",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Install, zod",
      "display": "npm install zod",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "What it does, zod",
      "display": "Validates runtime values through composable schemas with inferred TypeScript types.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, zod",
      "display": "Adds custom validation rules",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, zod",
      "display": "Refinements add checks the built-in schema methods don't cover.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths lead, zod",
      "display": "Converts schemas to JSON Schema",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths, zod",
      "display": "z.toJSONSchema exports a schema to JSON Schema.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, zod",
      "display": "Async refinements need async parsing",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, zod",
      "display": "A schema with async refinements needs parseAsync, or Zod throws.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations lead, zod",
      "display": "Some types don't convert",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "limitations, zod",
      "display": "Types with no JSON Schema equivalent can't be represented.",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Quickstart, zod",
      "display": "import * as z from \"zod\"; \n \nconst Player = z.object({ \n  username: z.string(),\n  xp: z.number()\n});\n\nPlayer.parse({ username: \"billie\", xp: 100 }); \n// => returns { username: \"billie\", xp: 100 }\n\ntry {\n  Player.parse({ username: 42, xp: \"100\" });\n} catch(error){\n  if(error instanceof z.ZodError){\n    error.issues; \n    /* [\n      {\n        expected: 'string',\n        code: 'invalid_type',\n        path: [ 'username' ],\n        message: 'Invalid input: expected string, received number'\n      },\n      {\n        expected: 'number',\n        code: 'invalid_type',\n        path: [ 'xp' ],\n        message: 'Invalid input: expected number, received string'\n      }\n    ] */\n  }\n}\n\nconst result = Player.safeParse({ username: 42, xp: \"100\" });\nif (!result.success) {\n  result.error;   // ZodError instance\n} else {\n  result.data;    // { username: string; xp: number }\n}\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function, zod",
      "display": "function zodV4ToJsonSchema(\n  schema: ZodV4Schema,\n  options: { schemaDefinitions?: ZodSchemaDefinitions | undefined } = {},\n): Record<string, unknown> {\n  const metadata = options.schemaDefinitions ? z4.registry<{ id: string }>() : undefined;\n  const definitionNames = new Map<string, string>();\n  for (const [name, definition] of Object.entries(options.schemaDefinitions ?? {})) {\n    // Avoid `/` and `~` so Zod versions that escape JSON Pointer tokens emit the same IDs.\n    const id = encodeURIComponent(name).replace(/~/g, '%7E');\n    definitionNames.set(id, name);\n    // SAFETY: The Zod v4 conversion path registers these definitions with the v4 metadata registry before toJSONSchema uses them.\n    metadata?.add(definition as z4.ZodType, { id });\n  }\n\n  // SAFETY: The v4 schema converter produces JSON Schema; the following normalization checks and rewrites its schema records.\n  const jsonSchema = z4.toJSONSchema(schema, {\n    target: 'draft-7',\n    ...(metadata ? { metadata } : undefined),\n    override: ({ zodSchema, jsonSchema, path }) => {\n      const def = zodSchema._zod.def;\n\n      if (def.type === 'object' && hasOwn(def.shape, '__proto__')) {\n        const propertyPath = [...path, 'properties', '__proto__']\n          .map((part) => encodeSchemaDefinitionRefToken(String(part)))\n          .join('/');\n        throw new Error(\n          `Zod field at \\`#/${propertyPath}\\` uses unsupported property name \\`__proto__\\`, which Zod omits from parsed output.`,\n        );\n      }\n\n      if (def.type === 'union' && 'discriminator' in def && Array.isArray(jsonSchema.oneOf)) {\n        if (jsonSchema.anyOf !== undefined) {\n          throw new Error(\n            'Zod discriminated union generated both `anyOf` and `oneOf`, which cannot be represented in an OpenAI strict schema',\n          );\n        }\n\n        // Discriminator values are mutually exclusive, so anyOf preserves the\n        // union while staying inside the API's supported JSON Schema subset.\n        jsonSchema.anyOf = jsonSchema.oneOf;\n        delete jsonSchema.oneOf;\n      }\n    },\n  }) as JSONSchema;\n\n  const escapedSchema = escapeSchemaDefinitionRefs(jsonSchema, definitionNames);\n  if (escapedSchema.definitions) {\n    escapedSchema.definitions = Object.fromEntries(\n      Object.entries(escapedSchema.definitions).map(([id, definition]) => [\n        definitionNames.get(id) ?? id,\n        definition,\n      ]),\n    );\n  }\n\n  // SAFETY: Strict conversion returns the normalized object schema; the record view exposes keywords without trusting arbitrary values.\n  return toStrictJsonSchema(escapedSchema) as Record<string, unknown>;\n}\n",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project function reference, zod",
      "display": "zod.ts · zodV4ToJsonSchema()",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project repository, zod",
      "display": "openai/openai-node",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project stars, openai/openai-node",
      "display": "11.3K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Project push date, openai/openai-node",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F55": {
      "label": "Library name, joi",
      "display": "Joi",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Monthly downloads, joi",
      "display": "123.3M",
      "asOf": "2026-11-10"
    },
    "F57": {
      "label": "License, joi",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Package release, joi",
      "display": "18.3.2",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Undated package release, joi",
      "display": "v18.3.2",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Repository stars, joi",
      "display": "21.2K",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Nested objects, joi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Coercion, joi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Async validation, joi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Custom rules, joi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Install, joi",
      "display": "npm install joi",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "What it does, joi",
      "display": "Builds object schemas with validation rules and cross-field constraints.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, joi",
      "display": "Converts input values by default",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, joi",
      "display": "Strings and other inputs convert to the required types unless convert is false.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, joi",
      "display": "Supports synchronous and async validation",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, joi",
      "display": "validate runs synchronously, and validateAsync supports async rules.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, joi",
      "display": "Custom rules run synchronously",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, joi",
      "display": "Rules written with any.custom can't be asynchronous.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, joi",
      "display": "const Joi = require('joi');\n\nconst schema = Joi.object({\n    username: Joi.string()\n        .alphanum()\n        .min(3)\n        .max(30)\n        .required(),\n\n    password: Joi.string()\n        .pattern(new RegExp('^[a-zA-Z0-9]{3,30}$')),\n\n    repeat_password: Joi.ref('password'),\n\n    access_token: [\n        Joi.string(),\n        Joi.number()\n    ],\n\n    birth_year: Joi.number()\n        .integer()\n        .min(1900)\n        .max(2013),\n\n    email: Joi.string()\n        .email({ minDomainSegments: 2, tlds: { allow: ['com', 'net'] } })\n})\n    .with('username', 'birth_year')\n    .xor('password', 'access_token')\n    .with('password', 'repeat_password');\n\n\nschema.validate({ username: 'abc', birth_year: 1994 });\n// -> { value: { username: 'abc', birth_year: 1994 } }\n\nschema.validate({});\n// -> { value: {}, error: '\"username\" is required' }\n\n// Also -\n\ntry {\n    const value = await schema.validateAsync({ username: 'abc', birth_year: 1994 });\n}\ncatch (err) { }\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, joi",
      "display": "export const joiResolver: Resolver =\n  (\n    schema,\n    schemaOptions = {\n      abortEarly: false,\n    },\n    resolverOptions = {},\n  ) =>\n  async (values, context, options) => {\n    const _schemaOptions = Object.assign({}, schemaOptions, {\n      context,\n    });\n\n    let result: Record<string, any> = {};\n    if (resolverOptions.mode === 'sync') {\n      result = schema.validate(values, _schemaOptions);\n    } else {\n      try {\n        result.value = await schema.validateAsync(values, _schemaOptions);\n      } catch (e) {\n        result.error = e;\n      }\n    }\n\n    if (result.error) {\n      return {\n        values: {},\n        errors: toNestErrors(\n          parseErrorSchema(\n            result.error,\n            !options.shouldUseNativeValidation &&\n              options.criteriaMode === 'all',\n          ),\n          options,\n        ),\n      };\n    }\n\n    options.shouldUseNativeValidation && validateFieldsNatively({}, options);\n\n    return {\n      errors: {},\n      values: result.value,\n    };\n  };\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, joi",
      "display": "joi.ts · joiResolver()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, joi",
      "display": "react-hook-form/resolvers",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, react-hook-form/resolvers",
      "display": "2.3K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, react-hook-form/resolvers",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F79": {
      "label": "Library name, yup",
      "display": "Yup",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, yup",
      "display": "59.0M",
      "asOf": "2026-11-10"
    },
    "F81": {
      "label": "License, yup",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, yup",
      "display": "1.7.1",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, yup",
      "display": "v1.7.1",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, yup",
      "display": "23.7K",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Nested objects, yup",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Coercion, yup",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Async validation, yup",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Custom rules, yup",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Install, yup",
      "display": "npm install yup",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "What it does, yup",
      "display": "Parses, transforms, and validates runtime values through schemas.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, yup",
      "display": "Casts and transforms input values",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, yup",
      "display": "Coerce inputs and apply transformations before validating their shape.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, yup",
      "display": "Runs asynchronous validation tests",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, yup",
      "display": "Use asynchronous custom validation for client or server workflows.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, yup",
      "display": "Custom test order is unpredictable",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, yup",
      "display": "Write tests without assuming another custom test runs first.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, yup",
      "display": "import { object, string, number, date, InferType } from 'yup';\n\nlet num = number().cast('1'); // 1\n\nlet obj = object({\n  firstName: string().lowercase().trim(),\n})\n  .json()\n  .camelCase()\n  .cast('{\"first_name\": \"jAnE \"}'); // { firstName: 'jane' }\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Custom typed schemas",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose zod",
      "display": "refinement checks",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "custom typed schemas",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Input transformations",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose yup",
      "display": "casting pipelines",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "input transformations",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Object validation rules",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose joi",
      "display": "default conversion",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "object validation rules",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "JSON Schema validation",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose ajv",
      "display": "compiled validators",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "JSON Schema validation",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Page introduction",
      "display": "JavaScript validation libraries let application developers check data against application rules.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Library name, ajv",
      "display": "Ajv",
      "asOf": "2026-11-19"
    },
    "F112": {
      "label": "Monthly downloads, ajv",
      "display": "2.0B",
      "asOf": "2026-11-19"
    },
    "F113": {
      "label": "License, ajv",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F114": {
      "label": "Package release, ajv",
      "display": "8.20.0",
      "asOf": "2026-11-19"
    },
    "F115": {
      "label": "Package release date, ajv",
      "display": "Apr 2026",
      "asOf": "2026-11-19"
    },
    "F116": {
      "label": "Install, ajv",
      "display": "npm install ajv@8.20.0",
      "asOf": "2026-11-19"
    },
    "F117": {
      "label": "Quickstart, ajv",
      "display": "const Ajv = require(\"ajv\")\nconst ajv = new Ajv() // options can be passed, e.g. {allErrors: true}\n\nconst schema = {\n  type: \"object\",\n  properties: {\n    foo: {type: \"integer\"},\n    bar: {type: \"string\"}\n  },\n  required: [\"foo\"],\n  additionalProperties: false\n}\n\nconst validate = ajv.compile(schema)\n\nconst data = {\n  foo: 1,\n  bar: \"abc\"\n}\n\nconst valid = validate(data)\nif (!valid) console.log(validate.errors)\n",
      "asOf": "2026-11-19"
    },
    "F118": {
      "label": "Repository stars, ajv",
      "display": "14.9K",
      "asOf": "2026-11-19"
    },
    "F119": {
      "label": "Object schemas, ajv",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F120": {
      "label": "Async checks, ajv",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F121": {
      "label": "Input conversion, ajv",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F122": {
      "label": "Validation model, ajv",
      "display": "JSON Schema validator/compiler; separate JTD entry point",
      "asOf": "2026-11-19"
    },
    "F123": {
      "label": "Schema interoperability, ajv",
      "display": "JSON Schema and separate JTD API",
      "asOf": "2026-11-19"
    },
    "F124": {
      "label": "Input changes, ajv",
      "display": "Opt-in coerceTypes/removeAdditional/useDefaults can modify data",
      "asOf": "2026-11-19"
    },
    "F125": {
      "label": "Project function, ajv",
      "display": "function validateObject(schema, options) {\n  // Not need to cache, because `ajv@8` has built-in cache\n  const compiledSchema = getAjv().compile(schema);\n  const valid = compiledSchema(options);\n\n  if (valid) return [];\n\n  return compiledSchema.errors ? filterErrors(compiledSchema.errors) : [];\n}",
      "asOf": "2026-11-19"
    },
    "F126": {
      "label": "Project source file, ajv",
      "display": "src/validate.js",
      "asOf": "2026-11-19"
    },
    "F127": {
      "label": "Project full_name, ajv",
      "display": "webpack/schema-utils",
      "asOf": "2026-11-19"
    },
    "F128": {
      "label": "Project stargazers_count, ajv",
      "display": "253",
      "asOf": "2026-11-19"
    },
    "F129": {
      "label": "Library name, zod",
      "display": "Zod",
      "asOf": "2026-11-19"
    },
    "F130": {
      "label": "Monthly downloads, zod",
      "display": "1.8B",
      "asOf": "2026-11-19"
    },
    "F131": {
      "label": "License, zod",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F132": {
      "label": "Package release, zod",
      "display": "4.6.7",
      "asOf": "2026-11-19"
    },
    "F133": {
      "label": "Package release date, zod",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F134": {
      "label": "Install, zod",
      "display": "npm install zod@4.6.7",
      "asOf": "2026-11-19"
    },
    "F135": {
      "label": "Quickstart, zod",
      "display": "import * as z from \"zod\";\n\nconst Player = z.object({\n  username: z.string(),\n  xp: z.number(),\n});\n\nPlayer.parse({ username: \"billie\", xp: 100 });\n// => returns { username: \"billie\", xp: 100 }\n",
      "asOf": "2026-11-19"
    },
    "F136": {
      "label": "Repository stars, zod",
      "display": "44.3K",
      "asOf": "2026-11-19"
    },
    "F137": {
      "label": "Object schemas, zod",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F138": {
      "label": "Async checks, zod",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F139": {
      "label": "Input conversion, zod",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F140": {
      "label": "Validation model, zod",
      "display": "TypeScript-first composable schemas",
      "asOf": "2026-11-19"
    },
    "F141": {
      "label": "TypeScript integration, zod",
      "display": "Schema-derived input/output types",
      "asOf": "2026-11-19"
    },
    "F142": {
      "label": "Unknown fields, zod",
      "display": "Object parsing strips unknown keys by default; strict/loose object variants change policy",
      "asOf": "2026-11-19"
    },
    "F143": {
      "label": "Native compilation, zod",
      "display": "Current4.6.7 exposes z.compile and optional zod/compile integration",
      "asOf": "2026-11-19"
    },
    "F144": {
      "label": "Project function, zod",
      "display": "export function zodResolver<Input extends FieldValues, Context, Output>(\n  schema: object,\n  schemaOptions?: object,\n  resolverOptions: {\n    mode?: 'async' | 'sync';\n    raw?: boolean;\n  } = {},\n): Resolver<Input, Context, Output | Input> {\n  // Zod 4 is checked first: its `_zod` marker is unambiguous, whereas the\n  // Zod 3 check below only requires an object-shaped `_def` (to support\n  // dynamically-selected schemas typed via the generic `z.ZodType<Output>`\n  // annotation, see `isZod3Schema`) — and Zod 4 schemas also have an\n  // object-shaped `_def`, so they'd otherwise be misdetected as Zod 3.\n  if (isZod4Schema(schema)) {\n    return async (values: Input, _, options) => {\n      try {\n        // Call the schema's own bound `parse`/`parseAsync` method rather\n        // than the standalone `z4.parse`/`z4.parseAsync` functions. Those\n        // standalone functions read from this module's own imported\n        // `zod/v4/core`, which — under bundlers that can resolve `zod` and\n        // `zod/v4/core` to two distinct module instances (e.g. Metro with\n        // package-exports resolution enabled) — may not be the same zod\n        // instance the schema was created with, silently dropping any\n        // global config (`z.config()`) or locale the app configured on its\n        // own zod instance. The schema's own method is always bound to\n        // whichever zod instance actually created it.\n        const classicSchema = schema as unknown as {\n          parse: (values: unknown, schemaOptions: unknown) => unknown;\n          parseAsync: (\n            values: unknown,\n            schemaOptions: unknown,\n          ) => Promise<unknown>;\n        };\n        const data: any =\n          resolverOptions.mode === 'sync'\n            ? classicSchema.parse(values, schemaOptions)\n            : await classicSchema.parseAsync(values, schemaOptions);\n\n        options.shouldUseNativeValidation &&\n          validateFieldsNatively({}, options);\n\n        return {\n          errors: {},\n          values: resolverOptions.raw ? Object.assign({}, values) : data,\n        } satisfies ResolverSuccess<Output | Input>;\n      } catch (error) {\n        if (isZod4Error(error)) {\n          return {\n            values: {},\n            errors: toNestErrors(\n              parseZod4Issues(\n                error.issues,\n                !options.shouldUseNativeValidation &&\n                  options.criteriaMode === 'all',\n              ),\n              options,\n            ),\n          } satisfies ResolverError<Input>;\n        }\n\n        throw error;\n      }\n    };\n  }\n\n  if (isZod3Schema(schema)) {\n    return async (values: Input, _, options) => {\n      try {\n        const data = await schema[\n          resolverOptions.mode === 'sync' ? 'parse' : 'parseAsync'\n        ](values, schemaOptions);\n\n        options.shouldUseNativeValidation &&\n          validateFieldsNatively({}, options);\n\n        return {\n          errors: {},\n          values: resolverOptions.raw ? Object.assign({}, values) : data,\n        } satisfies ResolverSuccess<Output | Input>;\n      } catch (error) {\n        if (isZod3Error(error)) {\n          return {\n            values: {},\n            errors: toNestErrors(\n              parseZod3Issues(\n                error.errors,\n                !options.shouldUseNativeValidation &&\n                  options.criteriaMode === 'all',\n              ),\n              options,\n            ),\n          } satisfies ResolverError<Input>;\n        }\n\n        throw error;\n      }\n    };\n  }\n\n  throw new Error('Invalid input: not a Zod schema');\n}",
      "asOf": "2026-11-19"
    },
    "F145": {
      "label": "Project source file, zod",
      "display": "zod/src/zod.ts",
      "asOf": "2026-11-19"
    },
    "F146": {
      "label": "Project full_name, zod",
      "display": "react-hook-form/resolvers",
      "asOf": "2026-11-19"
    },
    "F147": {
      "label": "Project stargazers_count, zod",
      "display": "2.3K",
      "asOf": "2026-11-19"
    },
    "F148": {
      "label": "Library name, effect",
      "display": "Effect",
      "asOf": "2026-11-19"
    },
    "F149": {
      "label": "Monthly downloads, effect",
      "display": "271.4M",
      "asOf": "2026-11-19"
    },
    "F150": {
      "label": "License, effect",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F151": {
      "label": "Package release, effect",
      "display": "4.1.4",
      "asOf": "2026-11-19"
    },
    "F152": {
      "label": "Package release date, effect",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F153": {
      "label": "Install, effect",
      "display": "npm install effect@4.1.4",
      "asOf": "2026-11-19"
    },
    "F154": {
      "label": "Quickstart, effect",
      "display": "import { Schema } from 'effect';\n\nconst User = Schema.Struct({\n  name: Schema.String,\n});\n\nconsole.log(Schema.decodeUnknownSync(User)({ name: 'Ada' }));\n",
      "asOf": "2026-11-19"
    },
    "F155": {
      "label": "Official description, effect",
      "display": "The missing standard library for TypeScript, for writing production-grade software.",
      "asOf": "2026-11-19"
    },
    "F156": {
      "label": "Quickstart source file, effect",
      "display": "dist/Schema.d.ts",
      "asOf": "2026-11-19"
    },
    "F157": {
      "label": "Repository stars, effect",
      "display": "17.6K",
      "asOf": "2026-11-19"
    },
    "F158": {
      "label": "Object schemas, effect",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F159": {
      "label": "Async checks, effect",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F160": {
      "label": "Input conversion, effect",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F161": {
      "label": "Validation model, effect",
      "display": "Effect Schema codecs inside a broader TypeScript toolkit",
      "asOf": "2026-11-19"
    },
    "F162": {
      "label": "Failure/services model, effect",
      "display": "Decoded value or SchemaError; Effect-based decoders can require services",
      "asOf": "2026-11-19"
    },
    "F163": {
      "label": "Error representation, effect",
      "display": "SchemaError.issue tree with public SchemaIssue formatting",
      "asOf": "2026-11-19"
    },
    "F164": {
      "label": "Download scope, effect",
      "display": "Whole Effect package, not measured Schema usage",
      "asOf": "2026-11-19"
    },
    "F165": {
      "label": "Project function, effect",
      "display": "export function effectTsResolver<Input extends FieldValues, Context, Output>(\n  schema: Schema.Codec<Output, Input, never, unknown>,\n  schemaOptions: ParseOptions = { errors: 'all', onExcessProperty: 'ignore' },\n  resolverOptions: { raw?: boolean } = {},\n): Resolver<Input, Context, Output | Input> {\n  return (values, _, options) =>\n    Schema.decodeUnknownEffect(schema)(values, schemaOptions).pipe(\n      Effect.match({\n        onFailure: ({ issue }) => {\n          const validateAllFieldCriteria =\n            !options.shouldUseNativeValidation &&\n            options.criteriaMode === 'all';\n\n          // A null-prototype accumulator avoids false-positive hits from\n          // inherited members (e.g. `toString`, `constructor`) when a field\n          // is named after one of them — a plain `{}` would make `!acc[key]`\n          // truthy-skip those paths and silently drop their errors.\n          const errors = flattenIssue(issue, []).reduce(\n            (acc, error) => {\n              const key = error.path.join('.');\n\n              if (!acc[key]) {\n                acc[key] = { message: error.message, type: error.type };\n              }\n\n              if (validateAllFieldCriteria) {\n                const types = acc[key].types;\n                const messages = types && types[error.type];\n\n                acc[key] = appendErrors(\n                  key,\n                  validateAllFieldCriteria,\n                  acc,\n                  error.type,\n                  messages\n                    ? ([] as string[]).concat(\n                        messages as string[],\n                        error.message,\n                      )\n                    : error.message,\n                ) as FieldError;\n              }\n\n              return acc;\n            },\n            Object.create(null) as Record<string, FieldError>,\n          );\n\n          return { errors: toNestErrors(errors, options), values: {} };\n        },\n        onSuccess: (result) => {\n          options.shouldUseNativeValidation &&\n            validateFieldsNatively({}, options);\n\n          return {\n            errors: {},\n            values: resolverOptions.raw ? Object.assign({}, values) : result,\n          };\n        },\n      }),\n      Effect.runPromise,\n    );\n}",
      "asOf": "2026-11-19"
    },
    "F166": {
      "label": "Project source file, effect",
      "display": "effect-ts/src/effect-ts.ts",
      "asOf": "2026-11-19"
    },
    "F167": {
      "label": "Project full_name, effect",
      "display": "react-hook-form/resolvers",
      "asOf": "2026-11-19"
    },
    "F168": {
      "label": "Project stargazers_count, effect",
      "display": "2.3K",
      "asOf": "2026-11-19"
    },
    "F169": {
      "label": "Library name, validator",
      "display": "validator.js",
      "asOf": "2026-11-19"
    },
    "F170": {
      "label": "Monthly downloads, validator",
      "display": "137.1M",
      "asOf": "2026-11-19"
    },
    "F171": {
      "label": "License, validator",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F172": {
      "label": "Package release, validator",
      "display": "13.15.35",
      "asOf": "2026-11-19"
    },
    "F173": {
      "label": "Package release date, validator",
      "display": "Apr 2026",
      "asOf": "2026-11-19"
    },
    "F174": {
      "label": "Install, validator",
      "display": "npm install validator@13.15.35",
      "asOf": "2026-11-19"
    },
    "F175": {
      "label": "Quickstart, validator",
      "display": "var validator = require('validator');\n\nvalidator.isEmail('foo@bar.com'); //=> true\n\n",
      "asOf": "2026-11-19"
    },
    "F176": {
      "label": "Official description, validator",
      "display": "String validation and sanitization",
      "asOf": "2026-11-19"
    },
    "F177": {
      "label": "Quickstart source file, validator",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F178": {
      "label": "Repository stars, validator",
      "display": "23.7K",
      "asOf": "2026-11-19"
    },
    "F179": {
      "label": "Object schemas, validator",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F180": {
      "label": "Async checks, validator",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F181": {
      "label": "Input conversion, validator",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F182": {
      "label": "Validation model, validator",
      "display": "Individual string validators and sanitizers",
      "asOf": "2026-11-19"
    },
    "F183": {
      "label": "Input boundary, validator",
      "display": "Strings only; non-string input throws",
      "asOf": "2026-11-19"
    },
    "F184": {
      "label": "Normalization behavior, validator",
      "display": "Sanitizers are separate operations and can change identifiers",
      "asOf": "2026-11-19"
    },
    "F185": {
      "label": "Project function, validator",
      "display": "function mobile(value, options, field) {\n  const normalizedOptions = options && typeof options === 'function' ? options(field) : options\n  const locales = normalizedOptions?.locale || 'any'\n\n  if (!helpers.isMobilePhone(value as string, locales, normalizedOptions)) {\n    field.report(messages.mobile, 'mobile', field)\n  }\n}",
      "asOf": "2026-11-19"
    },
    "F186": {
      "label": "Project source file, validator",
      "display": "src/schema/string/rules.ts",
      "asOf": "2026-11-19"
    },
    "F187": {
      "label": "Project full_name, validator",
      "display": "vinejs/vine",
      "asOf": "2026-11-19"
    },
    "F188": {
      "label": "Project stargazers_count, validator",
      "display": "1.3K",
      "asOf": "2026-11-19"
    },
    "F189": {
      "label": "Library name, joi",
      "display": "Joi",
      "asOf": "2026-11-19"
    },
    "F190": {
      "label": "Monthly downloads, joi",
      "display": "132.0M",
      "asOf": "2026-11-19"
    },
    "F191": {
      "label": "License, joi",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-19"
    },
    "F192": {
      "label": "Package release, joi",
      "display": "18.3.2",
      "asOf": "2026-11-19"
    },
    "F193": {
      "label": "Package release date, joi",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F194": {
      "label": "Install, joi",
      "display": "npm install joi@18.3.2",
      "asOf": "2026-11-19"
    },
    "F195": {
      "label": "Quickstart, joi",
      "display": "const Joi = require('joi');\n\nconst schema = Joi.object({\n    a: Joi.string(),\n});\n\nconst { error, value } = schema.validate({ a: 'a string' });\n",
      "asOf": "2026-11-19"
    },
    "F196": {
      "label": "Repository stars, joi",
      "display": "21.2K",
      "asOf": "2026-11-19"
    },
    "F197": {
      "label": "Object schemas, joi",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F198": {
      "label": "Async checks, joi",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F199": {
      "label": "Input conversion, joi",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F200": {
      "label": "Validation model, joi",
      "display": "JavaScript object schemas",
      "asOf": "2026-11-19"
    },
    "F201": {
      "label": "Unknown fields, joi",
      "display": "allowUnknown defaults false; stripUnknown is a separate option",
      "asOf": "2026-11-19"
    },
    "F202": {
      "label": "Asynchronous hook, joi",
      "display": "external async rules with validateAsync",
      "asOf": "2026-11-19"
    },
    "F203": {
      "label": "Return modes, joi",
      "display": "validate gives {value,error}; validateAsync ordinarily gives value",
      "asOf": "2026-11-19"
    },
    "F204": {
      "label": "Project function, joi",
      "display": "(\n    schema,\n    schemaOptions = {\n      abortEarly: false,\n    },\n    resolverOptions = {},\n  ) =>\n  async (values, context, options) => {\n    const _schemaOptions = Object.assign({}, schemaOptions, {\n      context,\n    });\n\n    let result: Record<string, any> = {};\n    if (resolverOptions.mode === 'sync') {\n      result = schema.validate(values, _schemaOptions);\n    } else {\n      try {\n        result.value = await schema.validateAsync(values, _schemaOptions);\n      } catch (e) {\n        result.error = e;\n      }\n    }\n\n    if (result.error) {\n      return {\n        values: {},\n        errors: toNestErrors(\n          parseErrorSchema(\n            result.error,\n            !options.shouldUseNativeValidation &&\n              options.criteriaMode === 'all',\n          ),\n          options,\n        ),\n      };\n    }\n\n    options.shouldUseNativeValidation && validateFieldsNatively({}, options);\n\n    return {\n      errors: {},\n      values: result.value,\n    };\n  }",
      "asOf": "2026-11-19"
    },
    "F205": {
      "label": "Project source file, joi",
      "display": "joi/src/joi.ts",
      "asOf": "2026-11-19"
    },
    "F206": {
      "label": "Project full_name, joi",
      "display": "react-hook-form/resolvers",
      "asOf": "2026-11-19"
    },
    "F207": {
      "label": "Project stargazers_count, joi",
      "display": "2.3K",
      "asOf": "2026-11-19"
    },
    "F208": {
      "label": "Library name, valibot",
      "display": "Valibot",
      "asOf": "2026-11-19"
    },
    "F209": {
      "label": "Monthly downloads, valibot",
      "display": "126.5M",
      "asOf": "2026-11-19"
    },
    "F210": {
      "label": "License, valibot",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F211": {
      "label": "Package release, valibot",
      "display": "1.5.0",
      "asOf": "2026-11-19"
    },
    "F212": {
      "label": "Package release date, valibot",
      "display": "Sep 2026",
      "asOf": "2026-11-19"
    },
    "F213": {
      "label": "Install, valibot",
      "display": "npm install valibot@1.5.0",
      "asOf": "2026-11-19"
    },
    "F214": {
      "label": "Quickstart, valibot",
      "display": "import * as v from 'valibot';\n\nconst LoginSchema = v.object({\n  email: v.pipe(v.string(), v.email()),\n  password: v.pipe(v.string(), v.minLength(8)),\n});\n\nconst output2 = v.parse(LoginSchema, {\n  email: 'jane@example.com',\n  password: '12345678',\n});\n",
      "asOf": "2026-11-19"
    },
    "F215": {
      "label": "Official description, valibot",
      "display": "The modular and type safe schema library for validating structural data",
      "asOf": "2026-11-19"
    },
    "F216": {
      "label": "Quickstart source file, valibot",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F217": {
      "label": "Repository stars, valibot",
      "display": "9.1K",
      "asOf": "2026-11-19"
    },
    "F218": {
      "label": "Object schemas, valibot",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F219": {
      "label": "Async checks, valibot",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F220": {
      "label": "Input conversion, valibot",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F221": {
      "label": "Validation model, valibot",
      "display": "Functional schema/action pipelines",
      "asOf": "2026-11-19"
    },
    "F222": {
      "label": "Composition style, valibot",
      "display": "Functions/actions composed through pipe",
      "asOf": "2026-11-19"
    },
    "F223": {
      "label": "Unknown fields, valibot",
      "display": "object removes unknown entries; looseObject/strictObject/objectWithRest select other policies",
      "asOf": "2026-11-19"
    },
    "F224": {
      "label": "Result modes, valibot",
      "display": "parse throws; safeParse returns an explicit result",
      "asOf": "2026-11-19"
    },
    "F225": {
      "label": "Project function, valibot",
      "display": "export function valibotResolver<Input extends FieldValues, Context, Output>(\n  schema: BaseSchema<Input, Output, any> | BaseSchemaAsync<Input, Output, any>,\n  schemaOptions?: Partial<\n    Omit<Config<InferIssue<typeof schema>>, 'abortPipeEarly' | 'skipPipe'>\n  >,\n  resolverOptions: {\n    /**\n     * @default async\n     */\n    mode?: 'sync' | 'async';\n    /**\n     * Return the raw input values rather than the parsed values.\n     * @default false\n     */\n    raw?: boolean;\n  } = {},\n): Resolver<Input, Context, Output | Input> {\n  return async (values: Input, _, options) => {\n    // Check if we should validate all field criteria\n    const validateAllFieldCriteria =\n      !options.shouldUseNativeValidation && options.criteriaMode === 'all';\n\n    // Parse values with Valibot schema\n    const result = await safeParseAsync(\n      schema,\n      values,\n      Object.assign({}, schemaOptions, {\n        abortPipeEarly: !validateAllFieldCriteria,\n      }),\n    );\n\n    // If there are issues, return them as errors\n    if (result.issues) {\n      // Create errors object. A null-prototype object avoids false-positive\n      // hits from inherited members (e.g. `toString`, `constructor`) when a\n      // field is named after one of them — a plain `{}` would make\n      // `!errors[path]` truthy-skip those paths and silently drop their\n      // errors.\n      const errors: Record<string, FieldError> = Object.create(null);\n\n      // Iterate over issues to add them to errors object\n      for (; result.issues.length; ) {\n        const issue = result.issues[0];\n        // Object-level checks report no dot path; keep them on the empty key\n        const path = getDotPath(issue) ?? '';\n\n        // Add first error of path to errors object\n        if (!errors[path]) {\n          errors[path] = { message: issue.message, type: issue.type };\n        }\n\n        // If configured, add all errors of path to errors object\n        if (validateAllFieldCriteria) {\n          const types = errors[path].types;\n          const messages = types && types[issue.type];\n          errors[path] = appendErrors(\n            path,\n            validateAllFieldCriteria,\n            errors,\n            issue.type,\n            messages\n              ? ([] as string[]).concat(\n                  messages as string | string[],\n                  issue.message,\n                )\n              : issue.message,\n          ) as FieldError;\n        }\n\n        result.issues.shift();\n      }\n\n      // Return resolver result with errors\n      return {\n        values: {},\n        errors: toNestErrors(errors, options),\n      } as const;\n    }\n\n    options.shouldUseNativeValidation && validateFieldsNatively({}, options);\n\n    // Otherwise, return resolver result with values\n    return {\n      values: resolverOptions.raw ? Object.assign({}, values) : result.output,\n      errors: {},\n    };\n  };\n}",
      "asOf": "2026-11-19"
    },
    "F226": {
      "label": "Project source file, valibot",
      "display": "valibot/src/valibot.ts",
      "asOf": "2026-11-19"
    },
    "F227": {
      "label": "Project full_name, valibot",
      "display": "react-hook-form/resolvers",
      "asOf": "2026-11-19"
    },
    "F228": {
      "label": "Project stargazers_count, valibot",
      "display": "2.3K",
      "asOf": "2026-11-19"
    },
    "F229": {
      "label": "Library name, class-validator",
      "display": "class-validator",
      "asOf": "2026-11-19"
    },
    "F230": {
      "label": "Monthly downloads, class-validator",
      "display": "67.3M",
      "asOf": "2026-11-19"
    },
    "F231": {
      "label": "License, class-validator",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F232": {
      "label": "Package release, class-validator",
      "display": "0.15.1",
      "asOf": "2026-11-19"
    },
    "F233": {
      "label": "Package release date, class-validator",
      "display": "Feb 2026",
      "asOf": "2026-11-19"
    },
    "F234": {
      "label": "Install, class-validator",
      "display": "npm install class-validator@0.15.1",
      "asOf": "2026-11-19"
    },
    "F235": {
      "label": "Quickstart, class-validator",
      "display": "import { IsEmail, validate } from 'class-validator';\n\nclass EmailInput {\n  @IsEmail()\n  email = 'jane@example.com';\n}\n\nconsole.log(await validate(new EmailInput()));\n",
      "asOf": "2026-11-19"
    },
    "F236": {
      "label": "Official description, class-validator",
      "display": "Decorator-based property validation for classes.",
      "asOf": "2026-11-19"
    },
    "F237": {
      "label": "Quickstart source file, class-validator",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F238": {
      "label": "Repository stars, class-validator",
      "display": "11.9K",
      "asOf": "2026-11-19"
    },
    "F239": {
      "label": "Object schemas, class-validator",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F240": {
      "label": "Async checks, class-validator",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F241": {
      "label": "Input conversion, class-validator",
      "display": "Via plugin",
      "asOf": "2026-11-19"
    },
    "F242": {
      "label": "Validation model, class-validator",
      "display": "Decorated class instances",
      "asOf": "2026-11-19"
    },
    "F243": {
      "label": "Input/class model, class-validator",
      "display": "Validates instantiated classes; class-transformer is separate",
      "asOf": "2026-11-19"
    },
    "F244": {
      "label": "Whitelist policy, class-validator",
      "display": "whitelist strips unannotated properties; forbidNonWhitelisted rejects them",
      "asOf": "2026-11-19"
    },
    "F245": {
      "label": "Synchronous caveat, class-validator",
      "display": "validateSync ignores asynchronous validations",
      "asOf": "2026-11-19"
    },
    "F246": {
      "label": "Project function, class-validator",
      "display": "export async function validator<T, V>(\n  typedClass: ClassConstructor<T>,\n  plain: V,\n  config: ValidatorOptions = {}\n): Promise<T> {\n  typedClass = extendedValidators.get(typedClass.name) ?? typedClass\n\n  const toValidate = plainToInstance(typedClass, plain)\n  // @ts-ignore\n  const errors = await validate(toValidate, {\n    whitelist: true,\n    forbidNonWhitelisted: true,\n    ...config,\n  })\n\n  const errorMessages = reduceErrorMessages(errors)\n\n  if (errors?.length) {\n    throw new MedusaError(\n      MedusaError.Types.INVALID_DATA,\n      errorMessages.join(\", \")\n    )\n  }\n\n  return toValidate\n}",
      "asOf": "2026-11-19"
    },
    "F247": {
      "label": "Project source file, class-validator",
      "display": "packages/medusa/src/utils/validator.ts",
      "asOf": "2026-11-19"
    },
    "F248": {
      "label": "Project full_name, class-validator",
      "display": "medusajs/medusa",
      "asOf": "2026-11-19"
    },
    "F249": {
      "label": "Project stargazers_count, class-validator",
      "display": "37.3K",
      "asOf": "2026-11-19"
    },
    "F250": {
      "label": "Library name, typebox",
      "display": "TypeBox",
      "asOf": "2026-11-19"
    },
    "F251": {
      "label": "Monthly downloads, typebox",
      "display": "65.2M",
      "asOf": "2026-11-19"
    },
    "F252": {
      "label": "License, typebox",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F253": {
      "label": "Package release, typebox",
      "display": "1.4.7",
      "asOf": "2026-11-19"
    },
    "F254": {
      "label": "Package release date, typebox",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F255": {
      "label": "Install, typebox",
      "display": "npm install typebox@1.4.7",
      "asOf": "2026-11-19"
    },
    "F256": {
      "label": "Quickstart, typebox",
      "display": "import Type from 'typebox'\n\nimport Schema from 'typebox/schema'\n\n// Compile\n\nconst Vector = Schema.Compile(Type.Script(`{\n  x: number\n  y: number\n  z: number\n}`))\n\n// Check\n\nconst valid = Vector.Check({ x: 1, y: 0, z: 0 })   // const valid: boolean\n",
      "asOf": "2026-11-19"
    },
    "F257": {
      "label": "Official description, typebox",
      "display": "Json Schema Type Builder with Static Type Resolution for TypeScript",
      "asOf": "2026-11-19"
    },
    "F258": {
      "label": "Quickstart source file, typebox",
      "display": "readme.md",
      "asOf": "2026-11-19"
    },
    "F259": {
      "label": "Repository stars, typebox",
      "display": "7.0K",
      "asOf": "2026-11-19"
    },
    "F260": {
      "label": "Object schemas, typebox",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F261": {
      "label": "Async checks, typebox",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F262": {
      "label": "Input conversion, typebox",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F263": {
      "label": "Validation model, typebox",
      "display": "TypeScript-inferred JSON Schema plus native runtime validators",
      "asOf": "2026-11-19"
    },
    "F264": {
      "label": "Schema representation, typebox",
      "display": "JSON Schema with TypeScript type inference",
      "asOf": "2026-11-19"
    },
    "F265": {
      "label": "Conversion side effects, typebox",
      "display": "Value.Convert mutates its input and returns unknown",
      "asOf": "2026-11-19"
    },
    "F266": {
      "label": "Validation output, typebox",
      "display": "Check is a type guard; Errors is an array; Parse throws on invalid input",
      "asOf": "2026-11-19"
    },
    "F267": {
      "label": "Project function, typebox",
      "display": "({ schema, httpPart }) => {\n  const typeCheck = Compile(schema)\n  return (value): any /* TODO: remove any for next major */ => {\n    // Note: Only support value conversion for querystring, params and header schematics\n    const converted = httpPart === 'body' ? value : Value.Convert(schema, value)\n    if (typeCheck.Check(converted)) {\n      return { value: converted }\n    }\n\n    const errors: FastifySchemaValidationError[] = typeCheck.Errors(converted)\n\n    return {\n      error: errors\n    }\n  }\n}",
      "asOf": "2026-11-19"
    },
    "F268": {
      "label": "Project source file, typebox",
      "display": "index.ts",
      "asOf": "2026-11-19"
    },
    "F269": {
      "label": "Project full_name, typebox",
      "display": "fastify/fastify-type-provider-typebox",
      "asOf": "2026-11-19"
    },
    "F270": {
      "label": "Project stargazers_count, typebox",
      "display": "205",
      "asOf": "2026-11-19"
    },
    "F271": {
      "label": "Developer need, effect",
      "display": "Decoding and encoding in Effect apps",
      "asOf": "2026-11-17"
    },
    "F272": {
      "label": "Pick reason, effect",
      "display": "decodes input and encodes it back with one schema",
      "asOf": "2026-11-17"
    },
    "F273": {
      "label": "Developer need, validator",
      "display": "Single string checks",
      "asOf": "2026-11-17"
    },
    "F274": {
      "label": "Pick reason, validator",
      "display": "checks strings such as email addresses and URLs",
      "asOf": "2026-11-17"
    },
    "F275": {
      "label": "Developer need, valibot",
      "display": "Small browser bundles",
      "asOf": "2026-11-17"
    },
    "F276": {
      "label": "Pick reason, valibot",
      "display": "imports each validation function separately",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "Developer need, class-validator",
      "display": "Rules on class properties",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Pick reason, class-validator",
      "display": "validates classes through decorators",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Developer need, typebox",
      "display": "JSON Schema with TypeScript types",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Pick reason, typebox",
      "display": "builds JSON Schema objects that infer as types",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Strength lead, effect",
      "display": "Decodes and encodes",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "Strength body, effect",
      "display": "One schema turns input into the app's type and converts it back for output.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Limit lead, effect",
      "display": "Needs strict TypeScript",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Limit body, effect",
      "display": "The strict flag has to be on in tsconfig.json.",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Limit lead, validator",
      "display": "Strings only",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Limit body, validator",
      "display": "Passing a number or an object throws an error, so convert input to a string first.",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "Strength lead, valibot",
      "display": "Small bundles",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Strength body, valibot",
      "display": "Each check is its own function, so a bundler keeps only the ones a schema uses.",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Strength lead, valibot",
      "display": "No dependencies",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "Strength body, valibot",
      "display": "Runs in any JavaScript environment, from servers to browsers.",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Strength lead, class-validator",
      "display": "Rules as decorators",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Strength body, class-validator",
      "display": "Decorators such as IsEmail run validator.js checks on class properties.",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Limit lead, class-validator",
      "display": "Class instances only",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "Limit body, class-validator",
      "display": "Plain objects have to become class instances first, for example with class-transformer.",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "Strength lead, typebox",
      "display": "One definition, two uses",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "Strength body, typebox",
      "display": "The same object is a TypeScript type at compile time and a JSON Schema at runtime.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-19",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "JavaScript validation libraries Zod Yup Joi Ajv coercion async custom schema validation code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
