# arb/celebrate

A joi validation middleware for Express.

Repository: https://github.com/arb/celebrate
Canonical: https://ross.abutalabs.com/products/celebrate
Language: JavaScript
License: MIT
License Family: permissive
Topics: express-middleware, joi, validation, express, express-validation
Last push: 2026-08-26T18:06:16+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3745, "days_push": 7, "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 1347, forks 69 (observed 2026-08-28T04:04:27.569956+00:00)

## What it is
celebrate is an Express middleware that wraps the Joi validation library to validate request inputs. It validates req.params, req.headers, req.query, and optionally req.body and cookies before route handlers run.

## Use cases
- validate express request bodies with joi schemas
- validate query params and headers in express routes
- return structured validation errors from express APIs
- apply input validation globally across an express app
- validate cookies and signed cookies in express

## When to choose
- you use Express 4 or 5 and want schema-based request validation
- you already prefer Joi for schema definition
- you want per-route or global validation middleware with consistent error handling

## When to avoid
- you use a framework other than Express
- you prefer a different validation library like Zod or Yup
- you need validation outside of HTTP request handling

## Facets
- artifact type: library
- maturity: stable
- function: middleware, form-handling, web-framework
- domain: web-development, backend, apis
- platform: -
- tags: express, joi, request-validation, schema-validation, nodejs

## Member repositories
- arb/celebrate (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.569956+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-30T04:42:36.225354+00:00, confidence not recorded.
  - readme: https://github.com/arb/celebrate (fetched 2026-08-28T04:04:27.569956+00:00, sha c5dc8a5ab8bc)
  - registry_npm: https://registry.npmjs.org/celebrate (fetched 2026-08-29T12:01:48.998017+00:00, sha 4d0b5dde2659)
- Data as of 2026-08-30T08:39:29.467469+00:00.
