# jquense/yup

Dead simple Object schema validation

Repository: https://github.com/jquense/yup
Canonical: https://ross.abutalabs.com/products/yup
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-26T19:10:17+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4363, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 23671, forks 945 (observed 2026-08-28T04:11:35.169084+00:00)

## What it is
Yup is a TypeScript schema builder for runtime value parsing and validation, letting you define object schemas that coerce, transform, and assert the shape of data. It supports async validation, static type inference, and rich error details.

## Use cases
- validate form input on the client and server
- parse and coerce untrusted JSON into typed objects
- infer TypeScript types from a schema
- validate API request bodies
- share validation logic between frontend and backend
- assert the shape of fetched data at runtime

## When to choose
- you need expressive, interdependent object validations with coercion
- you want schema-driven TypeScript type inference
- you need async validation for server-side checks
- you're using form libraries like Formik that integrate with yup

## When to avoid
- you need maximum runtime performance for hot paths
- you prefer a lightweight minimal validator like zod for simple cases
- you need schema validation for non-JavaScript languages

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, serialization, type-system
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: schema-validation, runtime-validation, data-validation, typescript-inference, form-validation, nodejs, typescript

## Member repositories
- jquense/yup (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:35.169084+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:22.315511+00:00, confidence not recorded.
  - readme: https://github.com/jquense/yup (fetched 2026-08-28T04:11:35.169084+00:00, sha 3d70d05c8b0f)
  - registry_npm: https://registry.npmjs.org/yup (fetched 2026-08-29T07:54:26.154485+00:00, sha 0257d8966725)
- Data as of 2026-08-30T08:39:29.467469+00:00.
