sindresorhus/ow
Function argument validation for humans observed · 2026-08-28
Health v2 · maintenance only
59/100
- Activity 47
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 18.0
- age_days: 3260
- days_rel: 321
- days_push: 321
- n_releases_24m: 3
Adoption not part of the score
3865 stars · 111 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ow is a TypeScript library providing expressive, chainable runtime validation of function arguments and values with descriptive error messages. It includes built-in predicates for many types, custom validation support, and TypeScript type guards.
Use cases
- validate function arguments at runtime
- validate environment variables and config at startup
- assert constructor parameters in classes
- validate CLI arguments and flags
- narrow TypeScript types from unknown values
- validate object shapes with descriptive errors
When to choose
- you need runtime validation of function inputs with clear error messages
- you want self-documenting assertions with a chainable API
- you need TypeScript type guards after validation
- you want dev-only imports stripped from production bundles
When to avoid
- you need complex schema validation for API responses or JSON parsing (use zod)
- you need validation outside the JavaScript/TypeScript ecosystem
- you need zero runtime overhead in production without using the dev-only shim
Facets
library · maturity stable
testing developer-tools developer-tools web-development programming-languages browser cross-platform validation type-checking assertion typescript runtime-validation type-guards nodejs
4 sources
- readme: https://github.com/sindresorhus/ow · fetched 2026-08-28 · eac678fe3b81
- homepage: https://sindresorhus.com/ow/ · fetched 2026-08-29 · 05372f11e388
- registry_npm: https://registry.npmjs.org/ow · fetched 2026-08-29 · 9ab9c61ac5da
- site_page: https://sindresorhus.com/ow/types/Predicates.html · fetched 2026-08-29 · be018cb06bf3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/ow | main | 59 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem