# mikeerickson/validatorjs

A data validation library in JavaScript for the browser and Node.js,  inspired by Laravel's Validator.

Repository: https://github.com/mikeerickson/validatorjs
Canonical: https://ross.abutalabs.com/products/mikeerickson-validatorjs
Homepage: https://www.npmjs.com/package/validatorjs
Language: JavaScript
License: MIT
License Family: permissive
Topics: validation, laravel, javascript, nodejs, node, browser, client
Last push: 2024-05-15T15:58:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5107, "days_push": 840, "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 1820, forks 282 (observed 2026-08-28T04:05:40.824662+00:00)

## What it is
validatorjs is a JavaScript data validation library inspired by Laravel's Validator, usable in both the browser and Node.js. It provides declarative, readable validation rules with multilingual error messages and support for nested and wildcard rules.

## Use cases
- validate form input in the browser
- validate request payloads in Node.js
- validate nested JSON objects with rules
- validate arrays of objects with wildcard rules
- generate localized validation error messages
- port Laravel-style validation rules to JavaScript

## When to choose
- you want Laravel-style declarative validation rules in JavaScript
- you need one validation library that works in both browser and Node.js
- you need multilingual validation error messages
- you need to validate nested or array-based data structures

## When to avoid
- you need schema-based validation with TypeScript type inference (consider zod or joi)
- you need high-performance validation of very large datasets
- you want a framework-integrated validator with reactive form bindings

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling, developer-tools
- domain: web-development, frontend, backend, developer-tools
- platform: browser, cross-platform
- tags: data-validation, laravel-inspired, validation-rules, error-messages, i18n, nodejs, javascript

## Member repositories
- mikeerickson/validatorjs (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:40.824662+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-30T03:19:59.369282+00:00, confidence not recorded.
  - readme: https://github.com/mikeerickson/validatorjs (fetched 2026-08-28T04:05:40.824662+00:00, sha 182f99b5450b)
  - registry_npm: https://registry.npmjs.org/validatorjs (fetched 2026-08-29T10:59:01.018505+00:00, sha cf3d544bf917)
- Data as of 2026-08-30T08:39:29.467469+00:00.
