# ansman/validate.js

A declarative validation library written javascript

Repository: https://github.com/ansman/validate.js
Canonical: https://ross.abutalabs.com/products/validatejs
Homepage: https://validatejs.org
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2021-12-11T16:18:59+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4350, "days_push": 1726, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2598, forks 336 (observed 2026-08-28T04:07:03.260502+00:00)

## What it is
Validate.js is a zero-dependency JavaScript library for declaratively validating objects using constraint definitions that can be shared between client and server. It supports sync and promise-based async validation and multiple error output formats.

## Use cases
- validate form input in the browser
- validate JSON payloads on a node.js server
- share validation constraints between client and server
- run async validations with promises
- validate objects against declarative constraint definitions

## When to choose
- you need a lightweight, dependency-free validation library for legacy JavaScript projects
- you want constraints declared in JSON and shared across client and server
- you need both synchronous and promise-based validation

## When to avoid
- you are starting a new project and want an actively maintained library
- you need new features or bug fixes, since the project is archived
- you want TypeScript support or modern ecosystem integration

## Facets
- artifact type: library
- maturity: abandoned
- function: testing, form-handling, developer-tools
- domain: web-development, frontend, backend, developer-tools
- platform: browser, cross-platform
- tags: validation, declarative-validation, data-validation, schema-validation, archived, no-dependencies, nodejs, javascript

## Member repositories
- ansman/validate.js (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:03.260502+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-30T02:21:20.520338+00:00, confidence not recorded.
  - readme: https://github.com/ansman/validate.js (fetched 2026-08-28T04:07:03.260502+00:00, sha f9261509cf04)
  - homepage: https://validatejs.org (fetched 2026-08-29T10:04:34.377212+00:00, sha 36742130dd88)
  - site_page: https://validatejs.org/docs/validate.html (fetched 2026-08-29T10:04:34.387556+00:00, sha e99edbbe8762)
  - registry_npm: https://registry.npmjs.org/validate.js (fetched 2026-08-29T10:04:34.390053+00:00, sha 2deeb69ef9c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
