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

@brainfog/cypher-cli

v1.0.3

Published

CLI security scanner for JavaScript and TypeScript projects

Readme

@brainfog/cypher-cli

Security scanner for JavaScript and TypeScript projects — secrets, dependencies, and routes, with optional AI analysis and fix suggestions.

Install

Nothing to install — npx fetches and runs the CLI on demand:

npx @brainfog/cypher-cli --version

npx is required. Every command below starts with npx @brainfog/cypher-cli. Launched any other way — a bare cypher from a global install, or by calling the file directly — the CLI exits with code 2 and prints the command you should have run:

Cypher must be run with npx.

  You ran:       cypher scan .
  Use instead:   npx @brainfog/cypher-cli scan .

Start here

npx @brainfog/cypher-cli login      # sign in with your dashboard email + password
npx @brainfog/cypher-cli scan .     # scan the current project
npx @brainfog/cypher-cli logout     # sign out and remove stored credentials

All commands

# Full scan (dependencies, secrets, routes), then the AI analysis menu
npx @brainfog/cypher-cli scan ./my-app

# Code-review scan (dependencies + secrets only — good for CI/PRs)
npx @brainfog/cypher-cli review ./my-app

# Write a PDF report (also: json | html | both | all)
npx @brainfog/cypher-cli scan ./my-app --format pdf

# PDF report with AI fix suggestions embedded for critical/high findings
npx @brainfog/cypher-cli scan ./my-app --format pdf --with-ai

# AI-powered fix / explanation for a finding from the last report
npx @brainfog/cypher-cli fix --id <finding-id> ./my-app
npx @brainfog/cypher-cli explain --id <finding-id> ./my-app

# Session and quota
npx @brainfog/cypher-cli whoami
npx @brainfog/cypher-cli usage

# Export the project's import/dependency graph as JSON
npx @brainfog/cypher-cli graph ./my-app

Reports are written to <project>/cypher-report/ by default (override with -o <dir>).

scan options

| Option | Description | |--------|-------------| | -f, --format <fmt> | json | html | pdf | both (default) | all | | -o, --output <dir> | Report output directory | | --fail-on <severity> | Exit 3 if findings at or above critical/high/medium/low | | --mode <mode> | AI analysis: review | audit | security | all (skips the menu) | | --depth <level> | AI scan depth: quick (default) | standard | thorough | | --concurrency <n> | Parallel AI requests, 1–32 | | --with-ai | Embed AI fix suggestions for critical/high findings in the PDF | | --no-upload | Skip the dashboard upload (results upload by default when logged in) | | --api-url <url> | API base URL (or CYPHER_API_URL) | | --token <jwt> | JWT access token (or CYPHER_TOKEN) — for CI, instead of npx @brainfog/cypher-cli login | | --project-id <id> | Upload target (or CYPHER_PROJECT_ID); defaults to a project named after the folder |

Exit codes

| Code | Meaning | |------|---------| | 0 | No findings | | 1 | Findings found | | 2 | Error while running | | 3 | Findings at or above --fail-on severity | | 2 | Not launched through npx | | 4 | Not logged in — run npx @brainfog/cypher-cli login | | 5 | Access blocked (403) | | 6 | Rate limit or token quota exceeded (429) |

Environment variables

AI runs on the Cypher backend, which holds the provider keys — there is no AI API key to set locally. All of these are optional; npx @brainfog/cypher-cli login covers the normal case.

| Variable | Purpose | |----------|---------| | CYPHER_API_URL | Override the backend base URL | | CYPHER_TOKEN | Session token, for CI where there is no interactive prompt | | CYPHER_PROJECT_ID | Default upload target | | CYPHER_BATCH_MAX_CALLS | Cap on AI fix calls per scan (default 10) | | CYPHER_NO_INK | Set to 1 for plain output with no interactive UI | | CYPHER_ALLOW_DIRECT | Set to 1 to bypass the npx-only guard (for tooling that spawns the CLI directly) |

License

MIT