jquense/yup

Dead simple Object schema validation

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 43 minutes ago
Added to GitGenius on February 18th, 2025
Created on September 22nd, 2014
Open Issues & Pull Requests: 251 (+0)
Number of forks: 944
Total Stargazers: 23,672 (+0)
Total Subscribers: 74 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 352.0 days
Mean response time: 789.6 days
90th percentile: 2210.3 days
Tracked items: 164

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 6% of issues opened in the past year have been closed. Three people close 69% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 92
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 910 days
Stale 30+ days: 89
Stale 90+ days: 89

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (9)
  • needs repro (3)
  • typescript (2)
  • duplicate (1)
  • enhancement (1)
  • invalid (1)
  • type limitation (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Yup is a schema validation and parsing library written in TypeScript that enables runtime value validation and transformation. The library allows developers to define schemas that can parse input values, transform them to match expected formats, and assert that values conform to specified shapes. According to the README, Yup schemas are designed to be extremely expressive, supporting everything from simple data models to complex, interdependent validations and value transformations.

The library emphasizes several core capabilities. It provides a concise yet expressive schema interface that can model both simple and complex data structures. Yup includes powerful TypeScript support that allows developers to infer static types directly from schemas or ensure that schemas correctly implement specified types. The library has built-in async validation support, enabling it to handle both server-side and client-side validation scenarios equally well. Yup is extensible, allowing developers to add custom type-safe methods and schemas. The library also provides rich error details to facilitate debugging and is compatible with the Standard Schema specification.

Schemas in Yup are constructed by chaining together methods that combine parsing actions, which perform transformations, with assertions that test the input value. Developers can validate input values to parse them and run configured assertions, or they can use schemas to coerce or cast input values into correct types with optional transformations without running assertions. For cases where input values are already known to be properly formatted, Yup supports strict validation mode that avoids the overhead of parsing logic.

The most frequently tracked issue labels are bug and needs repro, suggesting the project maintains focus on reproducible bug reports and defect resolution.

The repository represents version 1.0.0 of Yup, with documentation for pre-v1 versions available separately. The library is classified across multiple domains including javascript, form validation, API validation, object validation, type checking, data validation, and schema validation, reflecting its broad applicability across different validation scenarios and use cases in modern JavaScript and TypeScript applications.