LeakRay
npm · Node 20+ · Zero dependencies

Run LeakRay from your terminal or CI

Execute the exact same 16 passive security checks locally via npx leakray. Scan localhost before deploying or gate preview deployments in GitHub Actions with zero signup.

$ npx leakray https://myapp.com

Common workflows

Scan any live URL

Runs all 16 passive read-only checks locally in ~2 seconds. Zero login.

npx leakray https://myapp.com

Scan localhost before deploying

Catch missing headers, exposed .env files, and leaked keys before pushing to production.

npx leakray http://localhost:3000 --allow-local

Fail CI on High or Critical findings

Exits with code 1 when any finding meets or exceeds your severity threshold.

npx leakray https://staging.myapp.com --fail-on high

Print copy-paste AI fix prompts

Outputs structured prompts ready to paste into Cursor, Claude Code, Lovable, or Bolt.

npx leakray https://myapp.com --ai-prompt

GitHub Actions preview check

Drop this workflow into .github/workflows/leakray.yml to automatically scan every Vercel, Netlify, or Cloudflare preview deployment.

name: LeakRay Security Check
on: [deployment_status]

jobs:
  leakray:
    if: github.event.deployment_status.state == 'success'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npx -y leakray "${{ github.event.deployment_status.target_url }}" --fail-on high

CLI options

--allow-local
Permit scanning localhost / loopback / private network targets
--fail-on <severity>
Exit with code 1 if any finding is >= severity (critical, high, medium, low, info)
--ai-prompt
Print copy-paste fix prompts for Cursor / Claude Code
--json
Emit machine-readable JSON for scripts and CI tooling
--timeout <ms>
Overall scan timeout in milliseconds (default: 20000)
--no-color
Disable ANSI terminal colors (also respects NO_COLOR)

Prefer a browser report with a shareable link and Grade A+ README badge?

Run web scan