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

@rigstate/cli

v0.7.40

Published

Rigstate CLI - Code audit, sync and supervision tool

Readme

@rigstate/cli

The official command-line interface for Rigstate - AI-powered code audit and security analysis.

Installation

From source (development)

cd packages/cli
npm install
npm run build
npm install -g .

From npm (coming soon)

npm install -g @rigstate/cli

Quick Start

1. Login

Authenticate with your Rigstate API key:

rigstate login sk_rigstate_your_key_here

You can generate an API key from your Rigstate dashboard at the API Keys section.

2. Scan Your Code

Scan your current directory:

rigstate scan

Scan a specific directory:

rigstate scan ./src

Scan with a project ID:

rigstate scan --project abc123

Output as JSON (useful for IDE extensions):

rigstate scan --json

Commands

rigstate login <api-key>

Authenticate with your Rigstate API key. The key is securely stored locally.

Arguments:

  • api-key - Your Rigstate API key (starts with sk_rigstate_)

Example:

rigstate login sk_rigstate_1234567890abcdef

rigstate scan [path]

Scan code files for security and quality issues.

Arguments:

  • path - Directory or file to scan (default: current directory)

Options:

  • --json - Output results as JSON instead of formatted text
  • --project <id> - Project ID to associate with this scan

Example:

rigstate scan ./src --project my-project-123 --json

Features

  • 🔐 Secure Authentication - API keys stored locally using conf
  • 📁 Smart File Detection - Automatically finds code files
  • 🚫 Gitignore Respect - Honors your .gitignore patterns
  • 🎨 Beautiful Output - Color-coded results with severity levels
  • 📊 JSON Export - Machine-readable output for integrations
  • Fast Scanning - Parallel file processing

Configuration

Configuration is stored in:

  • macOS/Linux: ~/.config/rigstate-cli/config.json
  • Windows: %APPDATA%\rigstate-cli\config.json

The config file stores:

  • apiKey - Your authentication key
  • projectId - Default project ID (optional)
  • apiUrl - API endpoint (defaults to http://localhost:3000)

Environment Variables

You can override the API URL with an environment variable:

export RIGSTATE_API_URL=https://api.rigstate.com
rigstate scan

Development

# Install dependencies
npm install

# Build the CLI
npm run build

# Watch mode for development
npm run dev

# Link locally for testing
npm link

Future IDE Extensions

This CLI is the foundation for our upcoming IDE extensions:

  • VS Code Extension
  • JetBrains Plugin
  • Neovim Plugin

The --json flag is specifically designed for these integrations.

Support

For issues, questions, or feature requests, please visit our GitHub repository or contact support.

License

MIT