Elestia Open Source Ratings
6.7

Spectral

Reasonable, with limits. 7th of 9 OpenAPI tools.

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.

WebsiteGitHubnpm

Scores

Overall6.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 6.2 to 8.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 many4.1

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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.

  • github description: A JSON/YAML linter for OpenAPI, Arazzo and AsyncAPI, not a generator
  • apidog.com/blog/openapi-linter: Linting is described as one layer of a spec pipeline, beside bundling and docs

GPT-6.2 Sol: 4.2, likely 3.1 to 5.5

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 lot7.1

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.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, likely 6.5 to 8.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 time6.3

Will it still be a good choice in two years?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

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, likely 6.3 to 8.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 widely5.1

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.5 to 6.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.

  • npm downloadsLast4Weeks: 9.73M, against 2.10M a year ago: a ratio of 4.64, compared with a median of 4.1
  • dependents: 600 repos and 28 packages
  • bluesky posts / hackerNews: 2 Bluesky posts and 0 HN stories

GPT-6.2 Sol: 4.7, likely 3.4 to 6.1

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.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 9.73 million versus 2.10 million, or 4.64 times against a 4.1 median.
  • dependents repos, packages; peers: 600 indexed repositories versus 305 for Orval and 8,379 for openapi-typescript.
  • github stars; bluesky posts; hackerNews stories: 3,262 stars, two Bluesky links, and zero matched Hacker News stories.
  • github.com/IBM/openapi-validator/blob/main/packages/validator/package.json: IBM’s validator installs the CLI and core as dependencies.
Vouched for7.0

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.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, likely 6.9 to 8.9

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.

Safe5.9

How safe is it to depend on?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 4.6 to 7.0

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

npm downloads, 4 weeks
9.7M ×4.6 in a year
GitHub stars
3.3k
Commits, 12 months
198
npm version
6.17.1 Nov 2026
Versions, 12 months
7
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.8 out of 10, Nov 2026
Licence
Apache-2.0

Read on 21 November 2026 from GitHub (stoplightio/spectral), npm (@stoplight/spectral-cli), OSV and the OpenSSF Scorecard.

OpenAPI tools

  1. 8.1Scalar
  2. 7.7Orval
  3. 7.3Swagger UI
  4. 7.1Hey API
  5. 6.9Kubb
  6. 6.9zod-to-openapi
  7. 6.7Spectral
  8. 6.7Redoc
  9. 3.2openapi-typescript
Compare all 9 on six scores