# Spectral: 6.7 out of 10

Reasonable, with limits. 7th of 9 in [OpenAPI tools](https://elestia.ai/opensource/openapi/index.md).

Spectral is the long-standing JSON/YAML linter for OpenAPI, AsyncAPI and Arazzo documents, and its ruleset format is a de facto standard for API style guides. It does not make docs, types or clients. It remains a sound linter to add to a spec pipeline. Maintenance has picked up in 2026, after a slow period under SmartBear, but faster rivals such as vacuum now read the same rulesets.

**Best for:** Teams that keep an OpenAPI or AsyncAPI spec and want to enforce an API style guide in CI with custom rules.

## Scores

- **Overall: 6.7** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.0): Spectral is still the reference OpenAPI linter, and 2026 brought real releases, including OpenAPI 3.2 support. It does only a side job of this category, and its maintenance record under SmartBear is uneven. vacuum reads the same rulesets and is faster. It is a reasonable pick for spec linting, but not a core tool for docs or code generation.
  - GPT-6.2 Sol (7.4): Spectral is a strong choice when shared OpenAPI rules need to run in every pull request. Its configurable rules and active maintenance make it useful alongside Swagger UI for documentation and Orval for typed clients. Uneven validation and performance on complex specs, plus weaknesses in release controls, keep it below a default recommendation for the full category.
- **Needed by many: 4.1** (likely 3.1 to 5.3)
  - Claude Opus 5.5 (4.0): Spectral serves the teams that maintain a formal API spec and want to enforce rules on it. That is a clear niche inside a category whose main jobs are docs and code generation. It runs on any runtime and lints many formats, which widens it a little.
  - GPT-6.2 Sol (4.2): Spectral serves teams that maintain API specifications and want automated checks for consistency. It works across application frameworks and also handles AsyncAPI and Arazzo. Postman’s survey shows that specification work is common among API practitioners, but the share of all JavaScript and TypeScript projects that need a dedicated linter is unclear.
- **Helps a lot: 7.1** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.5): Spectral has the richest ecosystem of custom rules and broad format support, and it added OpenAPI 3.2 in v6.17.0. It slows down and uses a lot of memory on very large specs, and it ships few built-in style rules. It does not diff two specs. The main source on speed is a competitor, which keeps the range wide.
  - GPT-6.2 Sol (7.7): Version 6.17.1 ships built-in rules through OpenAPI 3.2, documented JSONPath selectors, typed custom functions, and clearer schema errors. The examples give developers and coding agents a starting point for routine rules, while selectors that follow references need care. An independent OpenAPI 3.1 test found 69 correct verdicts out of 83, and a separate benchmark hit a five-minute limit on one large split specification. Those results leave room for variation across rulesets and document sizes.
- **Holds up over time: 6.3** (likely 4.9 to 7.6)
  - Claude Opus 5.5 (5.0): Releases resumed in 2026: 5 releases and 198 commits in the last year, and a release in November. Issue triage dropped steeply after the SmartBear acquisition, and 199 issues remain open. A security issue sat unanswered for a while. A community fork exists because of this. The work depends on one company's priorities.
  - GPT-6.2 Sol (7.6): SmartBear uses Spectral in Swagger Studio, and the repository recorded 198 commits and five releases in the past year. The stable 6.x line added OpenAPI 3.2 and shipped fixes from several contributors, including a recent ruleset alias fix. A backlog of 199 open issues and limited visibility into how many people can publish releases widen the two-year range.
- **Used widely: 5.1** (likely 4.0 to 6.3)
  - Claude Opus 5.5 (5.5): The CLI has about 9.7M downloads every 4 weeks, up 4.6x in a year. That is slightly above the 4.1 median, so it is roughly holding ground. Much of this comes from CI runs and other tools that install it. It has 600 dependent repos, more than Orval and well below Redoc or openapi-typescript. Social attention is very low.
  - GPT-6.2 Sol (4.7): CLI installs grew 4.64 times year over year, modestly ahead of the 4.1 catalog median and slower than openapi-typescript and Orval. Ecosyste.ms counted 600 repositories and 28 packages, ahead of Orval’s indexed repository count and well behind openapi-typescript’s. Repeated CI installs and packages such as IBM’s validator inflate downloads, while the CLI count misses teams using Spectral through its core library alone. Two Bluesky links and zero matched Hacker News stories offer little evidence about how many projects chose it recently.
- **Vouched for: 7.0** (likely 5.7 to 8.0)
  - Claude Opus 5.5 (6.0): Many organisations publish their API style guides as Spectral rulesets, and other linters, such as vacuum, copy its format. That shows wide industry trust. Current, independent write-ups are mostly vendor blogs, and recent commentary on its health is critical.
  - GPT-6.2 Sol (8.0): Microsoft documents Spectral as a lint engine for Azure API Center, and IBM builds it into its OpenAPI validator. Independent testing confirms that it handles many conformance cases, with stronger results available from other linters on that test. These integrations provide direct evidence of use, while broad evidence on developer satisfaction is sparse.
- **Safe: 5.9** (likely 4.8 to 7.0)
  - Claude Opus 5.5 (6.0): There are no known advisories, and the licence is Apache-2.0. The OpenSSF Scorecard is 4.8, with zero scores for security policy, signed releases, token permissions and SAST. The CLI pulls 20 direct dependencies. A supply-chain issue report went unanswered for a time. Scarf install telemetry was added in 2026.
  - GPT-6.2 Sol (5.8): The CLI has a permissive Apache-2.0 licence and zero direct OSV advisories in the snapshot. Fresh installs could briefly pull a compromised AsyncAPI dependency in July 2026, and Spectral shipped a version pin in v6.16.3. Its 20 direct dependencies and a 4.8 OpenSSF Scorecard leave meaningful supply-chain risk, especially around workflow token permissions, dependency pinning, and release signing. The patch is documented, while publisher access and the scope of subsequent hardening remain unclear.

## Good

- Its ruleset format is widely shared, and many companies publish their API style guides as Spectral rulesets.
- It lints OpenAPI 2.0, 3.0, 3.1 and 3.2, AsyncAPI 2 and 3, Arazzo and any JSON or YAML document.
- Custom rules are written in YAML with JSONPath, plus JavaScript functions when needed, all in one config file.
- It is Apache-2.0 licensed, has no known advisories and ships TypeScript types for its JavaScript API.

## Bad

- It only lints specs: it makes no docs, types or clients, so it is an add-on to the other tools in this category.
- It is slow and uses a lot of memory on very large specs, compared with Go-based linters like vacuum.
- Issue triage fell sharply after the SmartBear acquisition, and a community fork appeared in 2026.
- Scarf install telemetry was added in v6.16.2, and CI and regulated setups must opt out of it.

## The numbers

- Downloads, 4 weeks: 9.7M
- In a year: ×4.6
- GitHub stars: 3.3k
- Commits, 12 months: 198
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/stoplightio/spectral
- npm: https://www.npmjs.com/package/@stoplight/spectral-cli

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
