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

securascan

v1.0.0

Published

AI-powered security scanner CLI — scans codebases for OWASP Top 10 vulnerabilities using LLMs

Downloads

251

Readme

🛡️ SecuraScan

AI-powered security scanner that analyses codebases for OWASP Top 10 vulnerabilities using LLMs.

npm version

Quick Start

# Run directly with npx (no install needed)
npx securascan config --provider anthropic --model claude-haiku-4-5-20251001 --key sk-ant-xxx
npx securascan scan ./my-project --output report.json

# Or install globally
npm i -g securascan
securascan scan . --verbose

Features

  • 12 specialist security agents — secrets, SQLi, XSS, auth, injection, IDOR, misconfig, crypto, logging, PII logging, exception handling
  • AI orchestrator — analyses your codebase and decides which agents to run
  • Multi-provider — supports Anthropic, OpenAI, and Google Gemini
  • Dual modebasic (fast, lightweight) or advanced (deep analysis)
  • Rate limited — sequential execution, 1 LLM call at a time
  • HTML reports — styled vulnerability report with risk scoring

Setup

Option 1: Environment variable

export ANTHROPIC_API_KEY=sk-ant-...
# or
export OPENAI_API_KEY=sk-...
# or
export GEMINI_API_KEY=AIzaSy...

Option 2: Config command

securascan config --provider anthropic --model claude-haiku-4-5-20251001 --key sk-ant-xxx

Option 3: .env file in your project

ANTHROPIC_API_KEY=sk-ant-...

Usage

# Configure provider and model
securascan config --provider anthropic --model claude-haiku-4-5-20251001

# Scan a local directory
securascan scan .

# Advanced mode (deeper analysis)
securascan scan ./my-project --mode advanced

# Save JSON + HTML report
securascan scan . --output report.json

# Verbose output
securascan scan . --verbose

# Scan a GitHub repo
securascan scan-github https://github.com/owner/repo

# Scan a ZIP file
securascan scan-zip ./project.zip

# Check config
securascan status

Commands

| Command | Description | |---------|-------------| | config | Configure provider, model, and API key | | scan <path> | Scan a local directory | | scan-github <url> | Scan a GitHub repository | | scan-zip <file> | Scan a ZIP archive | | status | Show current configuration | | help | Show help message |

Options

| Flag | Description | |------|-------------| | --provider <name> | anthropic, openai, or gemini | | --model <name> | Model name (e.g. claude-haiku-4-5-20251001, gpt-4o, gemini-2.0-flash) | | --key <key> | API key (stored in local config) | | --mode <mode> | basic (default) or advanced | | --output, -o <file> | Save JSON + HTML report | | --html <file> | Save HTML report only | | --json | Output raw JSON to stdout | | --verbose, -v | Show detailed progress |

How It Works

1. INGESTION     → Reads and filters source files (max 40 files, 150KB)
2. ORCHESTRATOR  → LLM analyses code, picks relevant agents     (1 API call)
3. AGENTS        → Each agent scans for specific vulnerabilities (1 call each, sequential)
4. REPORT        → Aggregates findings, calculates risk score   (0 API calls)
5. OUTPUT        → Terminal summary + JSON + styled HTML report

Total API calls: 1 (orchestrator) + N (agents selected) — typically 4-12 calls per scan.

Supported Providers

| Provider | Recommended Model | Cost | |----------|------------------|------| | Anthropic | claude-haiku-4-5-20251001 | Budget | | Anthropic | claude-sonnet-4-20250514 | Balanced | | OpenAI | gpt-4o | Balanced | | Gemini | gemini-2.0-flash | Free tier available |

License

MIT