# Stoplight Spectral

**Canonical:** https://apis.io/apis/stoplight/spectral/  
**Provider:** Stoplight — https://apis.io/providers/stoplight/  
**Documentation:** https://stoplight.io/open-source/spectral

Stoplight Spectral is one of 6 APIs that [Stoplight](https://apis.io/providers/stoplight/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include API Governance, AsyncAPI, CI/CD, Linting, and Open-Source. The published artifact set on APIs.io includes API documentation and a GitHub repository.

Spectral is an open-source JSON and YAML linter for creating automated API style guides and governance rulesets. Provides built-in support for OpenAPI v3.1, v3.0, and v2.0, Arazzo v1.0, and AsyncAPI v2.x. Enables teams to validate API descriptions against custom rulesets, enforce consistent design standards, and integrate API governance into CI/CD pipelines. Supports custom functions and third-party ruleset packages via npm. SmartBear has integrated Spectral into SwaggerHub for API design and governance. The spectral repository has approximately 3,115 stars.

## Machine-readable artifacts (9)

- **Documentation** — https://docs.stoplight.io/docs/spectral
- **GitHubRepository** — https://github.com/stoplightio/spectral
- **NPM** — https://www.npmjs.com/package/@stoplight/spectral-cli
- **Docker** — https://hub.docker.com/r/stoplight/spectral
- **GitHubAction** — https://github.com/stoplightio/spectral-action
- **VSCodeExtension** — https://github.com/stoplightio/vscode-spectral
- **Rulesets** — https://github.com/stoplightio/spectral-rulesets
- **OWASPRuleset** — https://github.com/stoplightio/spectral-owasp-ruleset
- **DocumentationRuleset** — https://github.com/stoplightio/spectral-documentation

## Other Stoplight APIs (5)

- [Stoplight Platform](https://apis.io/apis/stoplight/stoplight-platform/)
- [Stoplight Prism](https://apis.io/apis/stoplight/prism/)
- [Stoplight Elements](https://apis.io/apis/stoplight/elements/)
- [Stoplight Studio](https://apis.io/apis/stoplight/studio/)
- [Stoplight CLI](https://apis.io/apis/stoplight/cli/)

## Tags

API Governance, AsyncAPI, CI/CD, Linting, Open-Source, OpenAPI, Style Guides

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/stoplight/spectral/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/stoplight/.
