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

crack-code

v0.1.1

Published

AI-powered CLI security auditor that scans codebases for vulnerabilities, explains findings with exact code references, and optionally applies fixes. Provider-agnostic — works with Anthropic, OpenAI, Google, and Ollama.

Readme

Crack Code

AI-powered security auditor for your codebase.

Scans for vulnerabilities, explains findings with exact code references, and optionally applies fixes — all from your terminal.

npm version license bun


Features

  • 🛡️ Security-first — finds injections, hardcoded secrets, auth flaws, SSRF, XSS, and more
  • 🤖 Provider-agnostic — Anthropic, OpenAI, Google, or Ollama with one flag
  • 🔒 Read-only by default — never modifies files unless you explicitly allow it
  • Streaming — results appear in real-time as the AI analyzes
  • 🧰 Agentic — reads files, lists directories, runs commands, and writes fixes
  • 🔐 Permission-gated — every destructive action requires your approval
  • 💬 Interactive + one-shot — use as a REPL or a single command

Install

bun install -g crack-code

Requires Bun v1.0+

Quick Start

# First run — setup wizard picks provider, model, and API key
crack-code

# One-shot scan
crack-code "scan this project for vulnerabilities"

# Target specific code
crack-code "check src/auth/ for authentication flaws"

# Interactive REPL
crack-code -i

# Enable file editing
crack-code --allow-edits "fix the SQL injection in src/db.ts"

# Skip permission prompts (use with caution)
crack-code --yolo "scan and fix everything"

CLI Options

-i, --interactive          Force interactive REPL mode
--setup                    Re-run the setup wizard
--allow-edits              Enable file writing (read-only by default)
--provider <name>          Override provider (anthropic, openai, google, ollama)
--model <name>             Override model
--key <key>                Override API key
--policy <policy>          Permission policy (ask, skip, allow-all, deny-all)
--scan <glob>              Only scan files matching this pattern
--max-steps <n>            Max agent steps (default: 30)
--max-tokens <n>           Max output tokens per response (default: 16384)
-h, --help                 Show help
-v, --version              Show version

REPL Commands

| Command | Description | | ---------- | ---------------------------------------------------- | | /help | Show available commands | | /exit | Exit the REPL | | /clear | Clear conversation history | | /usage | Show token usage for this session | | /mode | Toggle read-only ↔ edit mode | | /model | Show current model and provider | | /policy | Show or set permission policy | | /compact | Summarize conversation to reduce context size |

Tools

The AI agent has access to these tools during analysis:

| Tool | Description | Approval | | ------------- | ------------------------------------ | -------- | | read_file | Read file contents with line numbers | No | | list_files | List files matching a glob pattern | No | | run_command | Execute shell commands | Yes | | write_file | Write/overwrite files (edit mode) | Yes |

Configuration

Config is stored at ~/.crack-code/config.json and created automatically on first run.

# Re-run setup anytime
crack-code --setup

Environment Variables

| Variable | Provider | | ------------------------------ | ---------- | | ANTHROPIC_API_KEY | Anthropic | | OPENAI_API_KEY | OpenAI | | GOOGLE_GENERATIVE_AI_API_KEY | Google | | OLLAMA_ENDPOINT | Ollama |

If set, the setup wizard will detect and offer to use them.

Piped Input

# Pipe code directly for analysis
cat src/db.ts | crack-code

License

MIT