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.
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.
- github.com/stoplightio/spectral/releases: Active releases in 2026, with OpenAPI 3.2 in v6.17.0
- speakeasy.com/blog/why-we-built-our-own-openapi-linter: Performance and investment concerns
- npm downloadsLast4Weeks: Growth slightly above the median
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.
- github.com/stoplightio/spectral/releases/tag/v6.17.1: Current stable release improves ruleset behavior and diagnostics.
- learn.microsoft.com/en-us/azure/api-center/enable-api-analysis-linting?tabs=portal: Documents a concrete workflow for enforcing shared API rules.
- dev.to/albinator/openapi-linters-which-one-is-the-best-in-a-real-test-1n2j: Independent tests found validation gaps and a large-spec timeout.
- github.com/swagger-api/swagger-ui: Peer supplies interactive API documentation.
- github.com/orval-labs/orval: Peer generates typed clients from OpenAPI.
- scorecard score, checks: Workflow permissions and release signing remain weak points.
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.
- postman.com/state-of-api/2025: 58% of survey respondents create or update API specifications.
- github.com/stoplightio/spectral: Framework-independent linter with several API formats.
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.
- github.com/stoplightio/spectral/releases: v6.17.0 adds OpenAPI 3.2 and AsyncAPI 3.1; v6.17.1 makes schema errors clearer
- speakeasy.com/blog/why-we-built-our-own-openapi-linter: A competitor reports Spectral up to 19x slower on large specs, with fewer built-in rules
- apidog.com/blog/openapi-linter: Called the de facto standard; custom rules need JSONPath; no diffing
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.
- github.com/stoplightio/spectral/blob/v6.17.1/packages/rulesets/src/oas/index.ts: Tagged stable ruleset includes OpenAPI 3.2.
- github.com/stoplightio/spectral/blob/develop/docs/guides/5-custom-functions.md: Documents typed functions, JSONPath selection, and resolved references.
- github.com/stoplightio/spectral/releases/tag/v6.17.1: Improves schema diagnostics and fixes rule alias handling.
- github.com/stoplightio/spectral/issues/3069: A user reports missed invalid reference objects in OpenAPI 3.1.
- apievangelist.com/2026/11/13/twelve-openapi-validators-and-the-rules-none-of-them-check: Spectral scored 69 of 83, Redocly CLI 71, and vacuum 75.
- dev.to/albinator/openapi-linters-which-one-is-the-best-in-a-real-test-1n2j: Spectral hit the time limit on a large split specification.
- github.com/stoplightio/spectral/blob/develop/docs/guides/2-cli.md: Documents CLI diagnostics and output formats.
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.
- github commitsLastYear / releasesLastYear: 198 commits and 5 releases; the latest is v6.17.1 from 2026-11-06
- raw.githubusercontent.com/api-evangelist/posts/main/_posts/2026-07-29-i-am-forking-spectral.md: Closed issues fell from 157 in 2021 to 12 in 2025; the author forked the project in July 2026
- speakeasy.com/blog/why-we-built-our-own-openapi-linter: Calls the project largely dormant after the acquisition
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.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests: 198 commits, five releases, 199 open issues, and 29 open pull requests.
- blog.stoplight.io/an-update-on-spectral-from-smartbear: SmartBear maintains Spectral and uses it for Swagger Studio governance.
- github.com/stoplightio/spectral/releases: The 6.x line added OpenAPI 3.2 and continued shipping fixes.
- github.com/stoplightio/spectral/releases/tag/v6.17.1: November patch includes fixes from multiple contributors.
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.
- public Spectral rulesets: Companies such as Azure, Adidas and Box publish Spectral-based API style guides
- bump.sh/blog/api-linting-with-vacuum: vacuum reuses existing .spectral.yaml rulesets
- apidog.com/blog/openapi-linter: Named the de facto standard OpenAPI linter
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.
- learn.microsoft.com/en-us/azure/api-center/enable-api-analysis-linting?tabs=portal: Microsoft documents a Spectral-powered API governance workflow.
- github.com/IBM/openapi-validator/blob/main/packages/validator/package.json: IBM’s validator directly depends on Spectral.
- apievangelist.com/2026/11/13/twelve-openapi-validators-and-the-rules-none-of-them-check: Independent conformance testing puts Spectral near the middle of the field.
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.
- advisories total: 0 advisories
- scorecard score: 4.8 overall; weak checks on Security-Policy, Signed-Releases and Pinned-Dependencies
- npm dependencies: 20 direct dependencies
- raw.githubusercontent.com/api-evangelist/posts/main/_posts/2026-07-29-i-am-forking-spectral.md: A supply-chain issue went unanswered; Scarf telemetry was added
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.
- npm license, dependencies; advisories total: Apache-2.0, 20 direct dependencies, and zero recorded OSV advisories.
- scorecard score, checks: 4.8 overall, zero for token permissions and signed releases, and two for dependency pinning.
- blog.stoplight.io/an-update-on-spectral-from-smartbear: Maintainer disclosure describes exposure and follow-up hardening work.
- asyncapi.com/blog/miasma-supply-chain-attck: Upstream postmortem confirms the compromised releases and registry removal.
- github.com/stoplightio/spectral/releases/tag/v6.16.3: August 3 release pins the affected dependency to a clean version.
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
- 8.1Scalar
- 7.7Orval
- 7.3Swagger UI
- 7.1Hey API
- 6.9Kubb
- 6.9zod-to-openapi
- 6.7Spectral
- 6.7Redoc
- 3.2openapi-typescript