# plumatic/schema

Clojure(Script) library for declarative data description and validation

Repository: https://github.com/plumatic/schema
Canonical: https://ross.abutalabs.com/products/plumatic-schema
Language: Clojure
License: NOASSERTION
License Family: other
Last push: 2026-08-09T20:05:22+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 4790, "days_push": 24, "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 2462, forks 254 (observed 2026-08-28T04:06:53.502847+00:00)

## What it is
A Clojure/ClojureScript library for declaratively describing data shapes and validating data against those schemas. It supports descriptive validation errors, function argument/return annotation with optional runtime checks, schema-driven coercion, and test data generation.

## Use cases
- validate nested data structures in Clojure
- document function argument and return types
- coerce incoming API payloads into typed data
- generate test data from schemas
- give teams a lightweight alternative to a full type system

## When to choose
- you write Clojure or ClojureScript and need runtime data shape validation
- you want descriptive validation errors for complex nested maps
- you need automatic coercion of loosely-typed external data
- you want to annotate function signatures with data shapes

## When to avoid
- you need compile-time static type checking rather than runtime validation
- you work outside the Clojure ecosystem
- you need a spec-based approach integrated with clojure.spec tooling

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling, serialization, testing
- domain: developer-tools, programming-languages, data-science
- platform: jvm, jvm-scripting
- tags: clojure, clojurescript, data-validation, data-description, coercion, runtime-validation, declarative-schemas

## Member repositories
- plumatic/schema (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.502847+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:29:18.817888+00:00, confidence not recorded.
  - readme: https://github.com/plumatic/schema (fetched 2026-08-28T04:06:53.502847+00:00, sha 1d5d44ca946f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
