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

@redpillsec/cli

v1.0.1

Published

RedPill Security CLI - OpenAPI security scanner that reveals vulnerabilities in your API specifications

Downloads

2

Readme

npm version License: MIT Node.js Version

🚀 Quick Start

# Install globally
npm install -g @redpillsec/cli

# Scan your OpenAPI specification
redpill scan openapi api.yaml

# Get help
redpill --help

📖 About

RedPill Security CLI is a powerful OpenAPI security scanner that reveals vulnerabilities in your API specifications. Take the red pill and see the security issues you didn't know existed.

🎯 Features

  • OpenAPI Security Scanning: Comprehensive analysis of OpenAPI/Swagger specifications
  • Multiple Output Formats: Text, JSON, CSV, and Markdown reports
  • Configurable Rules: Customize security rules via configuration files
  • CI/CD Ready: Perfect for automated security testing in pipelines
  • Detailed Reports: Clear explanations of vulnerabilities and recommendations

🔧 Installation

Global Installation (Recommended)

npm install -g @redpillsec/cli

Local Installation

npm install --save-dev @redpillsec/cli

📋 Usage

Basic Scanning

# Scan a single OpenAPI file
redpill scan openapi api.yaml

# Scan with JSON output
redpill scan openapi api.yaml --format json

# Save results to file
redpill scan openapi api.yaml --output results.json

Advanced Options

# Use custom configuration
redpill scan openapi api.yaml --config custom-rules.json

# Verbose output
redpill scan openapi api.yaml --verbose

# Quiet mode (errors only)
redpill scan openapi api.yaml --quiet

Configuration Management

# Create default configuration file
redpill init-config

# Create config with custom path
redpill init-config my-config.json

⚙️ Configuration

Create a redpill.config.json file to customize security rules:

{
  "rules": {
    "security-definition-required": true,
    "no-http-basic": true,
    "security-schemes-defined": true,
    "no-secrets-in-url": true,
    "https-required": true
  },
  "output": {
    "format": "text",
    "verbose": false
  }
}

📊 Output Formats

Text (Default)

Human-readable format perfect for terminal output and quick reviews.

JSON

redpill scan openapi api.yaml --format json

Machine-readable format ideal for CI/CD integration and automated processing.

CSV

redpill scan openapi api.yaml --format csv

Spreadsheet-compatible format for reporting and analysis.

Markdown

redpill scan openapi api.yaml --format markdown

Documentation-friendly format for reports and wikis.

🔍 Security Rules

RedPill Security CLI checks for various OpenAPI security issues:

  • Missing Security Definitions: APIs without proper security schemes
  • Weak Authentication: HTTP Basic auth and other weak methods
  • Insecure Protocols: HTTP instead of HTTPS
  • Exposed Secrets: API keys and tokens in URLs
  • Missing Security Requirements: Endpoints without security enforcement
  • And many more...

🛠️ CI/CD Integration

GitHub Actions

- name: Install RedPill Security CLI
  run: npm install -g @redpillsec/cli

- name: Scan OpenAPI Spec
  run: redpill scan openapi api.yaml --format json --output security-report.json

Jenkins

sh 'npm install -g @redpillsec/cli'
sh 'redpill scan openapi api.yaml --format json --output security-report.json'

📚 Examples

Check out our examples directory for:

  • Sample OpenAPI specifications
  • Configuration examples
  • CI/CD pipeline templates
  • Output format samples

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

💬 Support

🗺️ Roadmap

  • 🔜 AI-powered vulnerability analysis
  • 🔜 OWASP API Top 10 scanner
  • 🔜 Real-time API monitoring
  • 🔜 Integration with popular API gateways
  • 🔜 Custom rule development framework