npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@spotlight-rules/spotlight-cli

v1.1.0

Published

Spotlight command-line linter for OpenAPI, AsyncAPI, and Arazzo descriptions, with custom ruleset support.

Readme

CircleCI NPM Downloads Stoplight Forest

  • Custom Rulesets: Create custom rules to lint JSON or YAML objects
  • Ready-to-use Rulesets: Validate and lint OpenAPI v2 & v3.x, AsyncAPI, and Arazzo v1 Documents
  • JSON Path Support: Use JSON path to apply rules to specific parts of your objects
  • Ready-to-use Functions: Built-in set of functions to help create custom rules. Functions include pattern checks, parameter checks, alphabetical ordering, a specified number of characters, provided keys are present in an object, etc.
  • Custom Functions: Create custom functions for advanced use cases
  • JSON Validation: Validate JSON with Ajv

Spotlight linting an OpenAPI document from the CLI with results being output

Overview

🧰 Installation and Usage

Install

npm install -g @spotlight-rules/spotlight-cli

# OR

yarn global add @spotlight-rules/spotlight-cli

Find more installation methods in our documentation.

Lint

spectral lint petstore.yaml

📖 Documentation and Community

ℹ️ Support

If you need help using Spotlight or have a support question, please use GitHub Discussions. It's also a great place to share your rulesets, or tools that leverage Spotlight.

If you have a bug or feature request, please create an issue.

❓ FAQs

How is this different to Ajv

Ajv is a JSON Schema validator, and Spotlight is a JSON/YAML linter. Instead of just validating against JSON Schema, it can be used to write rules for any sort of JSON/YAML object, which could be JSON Schema, or OpenAPI, or anything similar. Spotlight does expose a schema function that you can use in your rules to validate all or part of the target object with JSON Schema (we even use Ajv used under the hood for this), but that's just one of many functions.

I want to lint my OpenAPI documents but don't want to implement Spotlight right now.

No problem! A hosted version of Spotlight comes free with the Stoplight platform. Sign up for a free account here.

What is the difference between Spotlight and Speccy

Speccy was a great inspiration for Spotlight, but was designed to work only with OpenAPI v3. Spotlight can apply rules to any JSON/YAML object (including OpenAPI v2/v3, Arazzo, and AsyncAPI). Speccy has mostly been abandoned now, and is JavaScript not TypeScript.

⚙️ Integrations

🏁 Help Others Utilize Spotlight

If you're using Spotlight for an interesting use case, create an issue with details on how you're using it. We'll add it to a list here. Spread the goodness 🎉

👏 Contributing

If you are interested in contributing to Spotlight, check out CONTRIBUTING.md.

🎉 Thanks

📜 License

Spotlight is 100% free and open-source, under Apache License 2.0.

🌲 Sponsor Spotlight by Planting a Tree

If you would like to thank us for creating Spotlight, we ask that you buy the world a tree.