# Keats/validator

Simple validation for Rust structs

Repository: https://github.com/Keats/validator
Canonical: https://ross.abutalabs.com/products/keats-validator
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-07-27T09:04:01+00:00

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

## Adoption (not part of the score)
Stars 2509, forks 186 (observed 2026-08-28T04:06:57.283337+00:00)

## What it is
A Rust library providing struct validation via a custom derive macro, inspired by marshmallow and Django validators. It offers built-in rules like email, url, length, and range, plus custom validation functions, returning structured validation errors.

## Use cases
- validate user signup form data in rust
- validate email and url fields on structs
- custom field validation rules in rust
- validate nested structs and collections
- validate deserialized serde input

## When to choose
- you need declarative, attribute-based validation on rust structs
- you want built-in validators like email, url, length, and range
- you need structured, serializable validation errors keyed by field

## When to avoid
- you need async or database-backed validation out of the box
- your project is not written in rust

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, serialization, developer-tools
- domain: web-development, backend, developer-tools
- platform: rust, cross-platform
- tags: validation, derive-macros, serde, data-validation

## Member repositories
- Keats/validator (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:57.283337+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:26:26.816017+00:00, confidence not recorded.
  - readme: https://github.com/Keats/validator (fetched 2026-08-28T04:06:57.283337+00:00, sha 1ff32b2138b7)
  - registry_crates: https://crates.io/api/v1/crates/validator (fetched 2026-08-29T10:08:41.408357+00:00, sha 2b0dad52a31e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
