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

@kedgr/cli

v0.2.2

Published

AI-powered code analysis CLI that runs in your terminal

Readme

Kedgr CLI

AI-powered code analysis that runs in your terminal.

The CLI supports two scan modes:

  • Cloud mode: upload a redacted archive to https://codechecker.pxxl.pro/api and run the exact rulesets attached to your Kedgr dashboard project.
  • Offline mode: analyze only the local project on disk with built-in heuristics and secret detection, with no network access required.

Installation

npm install -g @kedgr/cli

Quick Start

# Login with your API key
kedgr login --api-key YOUR_API_KEY

# Pick a default project and its attached rulesets
kedgr project list

# Run a cloud scan
kedgr scan .

# Run a local-only offline scan
kedgr scan . --offline

# Check status
kedgr status

Commands

kedgr scan [path]

Scan a project for issues.

By default this uses the selected Kedgr project and its dashboard rulesets. If the backend is unreachable, the CLI automatically falls back to an offline local scan. You can also force offline mode explicitly.

Options:

  • --dry-run - Prepare the archive without executing a scan
  • --offline - Run local-only analysis on the current project
  • --format <type> - Output format: text, json, sarif (default: text)
  • --severity <level> - Minimum severity: low, medium, high, critical (default: low)
  • --project-id <id> - Project ID to scan against in cloud mode

Examples:

# Scan current directory with the default dashboard project
kedgr scan

# Scan a specific directory against a specific project
kedgr scan ./my-project --project-id YOUR_PROJECT_ID

# Force offline mode
kedgr scan . --offline

# Dry run to inspect packaging behavior
kedgr scan --dry-run

# SARIF output for CI tools
kedgr scan --format sarif

kedgr login

Authenticate with Kedgr.

Options:

kedgr logout

Remove stored credentials.

kedgr status

Show authentication status, backend URL, default project, and attached rulesets when available.

kedgr project list

List available projects and save a default project for future scans.

Offline Capabilities

Offline mode only inspects the project currently on disk and does not use dashboard rulesets. It includes:

  • Smart file filtering via .gitignore and .kedgrignore
  • Secret redaction for cloud packaging
  • Local secret detection findings
  • Fast heuristic checks for common issues
  • Project summary generation
  • Text, JSON, and SARIF output

Configuration

Configuration is stored in ~/.kedgr/config.json.

Environment variables are also supported:

  • KEDGR_API_URL - Override API URL (default: https://codechecker.pxxl.pro/api)
  • KEDGR_API_KEY - Provide API key without saving it locally

Development

npm install
npm run build
npm run dev -- scan .
npm run dev -- scan . --offline

License

MIT