# geraintluff/tv4

Tiny Validator for JSON Schema v4

Repository: https://github.com/geraintluff/tv4
Canonical: https://ross.abutalabs.com/products/tv4
Homepage: http://geraintluff.github.io/tv4/
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-06-12T20:22:58+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4972, "days_push": 812, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1166, forks 181 (observed 2026-08-28T04:03:50.142455+00:00)

## What it is
tv4 is a tiny JavaScript validator for JSON Schema draft v4, supporting $ref with JSON Pointer paths, multiple error collection, and asynchronous schema fetching. It is explicitly no longer actively maintained.

## Use cases
- validate json against a json schema draft v4
- collect multiple validation errors from json data
- validate json with $ref references to external schemas
- validate json in the browser or node
- check api request payloads against a schema

## When to choose
- you need a tiny, dependency-free JSON Schema v4 validator
- you must validate legacy schemas locked to draft v4
- you need multiple validation errors reported at once

## When to avoid
- you need JSON Schema draft 2019-09/2020-12 or newer features
- you want an actively maintained validator with security updates
- you need built-in asynchronous validation without jQuery

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, developer-tools
- domain: apis, developer-tools, web-development
- platform: browser
- tags: json-schema, json-schema-draft-v4, validation, schema-validator, data-validation, nodejs, javascript

## Member repositories
- geraintluff/tv4 (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.142455+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-30T06:28:59.176667+00:00, confidence not recorded.
  - readme: https://github.com/geraintluff/tv4 (fetched 2026-08-28T04:03:50.142455+00:00, sha 7d9b27a29719)
  - homepage: http://geraintluff.github.io/tv4/ (fetched 2026-08-29T12:35:17.533321+00:00, sha c4d59d96b800)
  - registry_npm: https://registry.npmjs.org/tv4 (fetched 2026-08-29T12:35:17.538118+00:00, sha 9393b110fba2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
