# vinejs/vine

VineJS is a form data validation library for Node.js

Repository: https://github.com/vinejs/vine
Canonical: https://ross.abutalabs.com/products/vine
Homepage: https://vinejs.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: nodejs, nodejs-validation, validation, validation-library
Last push: 2026-07-18T03:30:55+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 69, longevity 84
- inputs: {"age_days": 1184, "days_push": 46, "days_rel": 128, "gap_med": 50.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1281, forks 35 (observed 2026-08-28T04:04:13.869255+00:00)

## What it is
VineJS is a fast, schema-based form data validation library for Node.js, designed to validate HTTP request bodies and JSON payloads with both runtime and static type safety. It offers 50+ validation rules, 12 schema types, conditional validation, custom error messages, and pre-compiled schemas for high performance.

## Use cases
- validate http request body in node.js backend
- validate json payloads against a schema
- validate html form data and normalize empty strings to null
- define conditional validation rules like requiredIf
- get typed validation output in typescript
- custom error messages for validation failures

## When to choose
- you need one of the fastest node.js validation libraries with pre-compiled schemas
- you want runtime and static type safety together
- you validate form data and need html form normalization helpers
- you need extensible custom rules, unions, and conditional groups

## When to avoid
- your project uses CommonJS since VineJS is ESM-only
- you need browser-side or frontend validation
- you want deeply composable schema pick/omit APIs, which VineJS intentionally limits

## Facets
- artifact type: library
- maturity: active
- function: form-handling, serialization
- domain: web-development, backend, developer-tools
- platform: cli
- tags: schema-validation, runtime-type-safety, typescript, esm-only, http-request-validation, nodejs

## Member repositories
- vinejs/vine (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.869255+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-30T05:02:34.174915+00:00, confidence not recorded.
  - readme: https://github.com/vinejs/vine (fetched 2026-08-28T04:04:13.869255+00:00, sha e9512baf680a)
  - homepage: https://vinejs.dev (fetched 2026-08-29T12:13:21.054490+00:00, sha 947984e60753)
  - site_page: https://vinejs.dev/docs/getting_started (fetched 2026-08-29T12:13:21.065272+00:00, sha 0c7f7f391558)
  - site_page: https://vinejs.dev/docs/schema_101 (fetched 2026-08-29T12:13:21.066925+00:00, sha be261ee5a286)
  - site_page: https://vinejs.dev/docs/html_forms_and_surprises (fetched 2026-08-29T12:13:21.068951+00:00, sha 94b799ccd90c)
  - site_page: https://vinejs.dev/docs/conditional_validation (fetched 2026-08-29T12:13:21.070910+00:00, sha 72d80922162b)
  - site_page: https://vinejs.dev/docs/field_context (fetched 2026-08-29T12:13:21.072667+00:00, sha 42c9d3a63fb3)
  - site_page: https://vinejs.dev/docs/custom_error_messages (fetched 2026-08-29T12:13:21.074523+00:00, sha ca4b341a94b8)
  - site_page: https://vinejs.dev/docs/error_reporter (fetched 2026-08-29T12:13:21.076355+00:00, sha 39c52cb1125e)
  - site_page: https://vinejs.dev/api (fetched 2026-08-29T12:13:21.063563+00:00, sha e3e35fd8c516)
- Data as of 2026-08-30T08:39:29.467469+00:00.
