stoplightio/spectral
A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI (v3.1, v3.0, and v2.0), Arazzo v1.0, as well as AsyncAPI v2.x. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 33.5
- age_days: 2940
- days_rel: 30
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
3189 stars · 291 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Spectral is a flexible JSON/YAML linter for creating automated API style guides, with built-in rulesets for OpenAPI v2/v3.x, AsyncAPI v2.x, and Arazzo v1.0. It runs as a CLI, JavaScript library, or Docker image, and supports custom rules and functions for linting any JSON or YAML documents.
Use cases
- lint openapi specifications for style guide violations
- enforce api naming conventions across a team
- validate asyncapi documents in ci
- create custom rulesets for /yaml files
- automate api governance checks in a pipeline
- check swagger v2 documents for consistency
When to choose
- you need automated API style guide enforcement
- you want ready-made OpenAPI/AsyncAPI linting rules
- you need a generic JSON/YAML linter with custom rules
When to avoid
- you need runtime API validation rather than document linting
- you lint formats other than JSON/YAML
Facets
cli-tool · maturity active
linter parser developer-tools cli apis developer-tools web-development cli cross-platform openapi asyncapi arazzo -yaml-linter api-style-guides rulesets api-governance automation nodejs docker
9 sources
- readme: https://github.com/stoplightio/spectral · fetched 2026-08-28 · dc8e5c918766
- homepage: https://stoplight.io/spectral · fetched 2026-08-29 · 68450a7b037b
- site_page: https://docs.stoplight.io/ · fetched 2026-08-29 · a30be4a84572
- site_page: https://stoplight.io/about · fetched 2026-08-29 · 2ed9f2f75d44
- site_page: https://docs.stoplight.io/docs/spectral/01baf06bdd05a-rulesets · fetched 2026-08-29 · 70b95ceab15a
- site_page: https://docs.stoplight.io/docs/spectral/a630feff97e3a-concepts · fetched 2026-08-29 · deca956698a1
- site_page: https://docs.stoplight.io/docs/spectral/9ffa04e052cc1-spectral-cli · fetched 2026-08-29 · abdbf934eaa0
- site_page: https://docs.stoplight.io/docs/platform/7975f76a794c4-validation-and-linting · fetched 2026-08-29 · 2f2621e82320
- site_page: https://stoplight.io/pricing · fetched 2026-08-29 · 070c1e91d9e8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stoplightio/spectral | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="stoplightio/spectral")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem