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

flareguard

v0.1.0

Published

Unified Cloudflare Security Guardian — AST secret scanning, Worker binding verification, Zone posture auditing, and origin IP leak hunting.

Readme

🛡️ Flareguard

The Unified Cloudflare Security & Architecture Guardian
High-performance Rust CLI & library providing AST secret scanning, Worker binding verification, Zone security posture auditing, and origin IP leak hunting.

CI crates.io npm version License: MIT GitHub Pages


⚡ The 4 Pillars of Flareguard

| Pillar | Subcommand | Description | |---|---|---| | 🔑 Secrets | flareguard secrets | High-throughput multithreaded scanner preventing Cloudflare API tokens, Global Keys, and Turnstile secrets from leaking into client bundles or git history. | | ⚡ Bindings | flareguard bindings | OXC JavaScript/TypeScript AST scanner that cross-references wrangler.toml / wrangler.jsonc declarations against actual code usage (D1, KV, R2, Vectorize, Hyperdrive, AI). | | 🌐 Zone Audit | flareguard zone | Comprehensive live security posture auditor for Cloudflare zones (SSL/TLS Strict, HSTS, WAF Managed Rules, Bot Fight Mode, DNSSEC, security headers). | | 🎯 Origin Hunter | flareguard origin | Probes and discovers unmasked backend origin IPs behind Cloudflare reverse proxies using DNS SPF/MX records, CRT.sh Certificate Transparency logs, and active HTTP signatures. |


🔑 Supported Secret Detection Rules (15 Built-in Rules)

| Rule ID | Name | Severity | Description | |---|---|---|---| | CF-001 | Cloudflare API Token | CRITICAL | Scoped API token (40 characters) | | CF-002 | Cloudflare Global API Key | CRITICAL | Legacy global account key (37-hex characters) | | CF-003 | Cloudflare Origin CA Key | CRITICAL | Origin certificate creation key (v1.0- prefix) | | CF-004 | Cloudflare Turnstile Secret Key | CRITICAL | Server-side verification secret (0x4AAAA...) | | CF-005 | Zero Trust Access Service Token | CRITICAL | Service token secret for Zero Trust policies | | CF-006 | Cloudflare Account ID Context | MEDIUM | Account ID assigned in sensitive config contexts | | CF-007 | R2 / S3 Secret Access Key | CRITICAL | Object storage secret key (40 characters) | | CF-008 | Database URI / D1 Secret | CRITICAL | Embedded Postgres/MySQL connection string or D1 token | | CF-009 | Standalone High-Entropy Token | HIGH | High Shannon-entropy token matching Cloudflare signatures | | CF-010 | Hyperdrive Origin Secret | CRITICAL | Database credentials or pooling passwords | | CF-011 | Cloudflare Tunnel Token | CRITICAL | cloudflared ingress tunnel credentials (eyJh...) | | CF-012 | AI Gateway & LLM API Key | CRITICAL | AI Gateway token, OpenAI (sk-proj), Anthropic (sk-ant), Gemini (AIzaSy) | | CF-013 | Vectorize Admin Secret | CRITICAL | Vector database index management key | | CF-014 | Email / MailChannels Secret | HIGH | DKIM / transactional mail dispatch credentials | | CF-015 | SSL/TLS Private Key | CRITICAL | Unencrypted RSA/EC private key (BEGIN PRIVATE KEY) |

🚀 Installation & Quickstart

# Install via Cargo (Rust)
cargo install flareguard

# Or install globally via npm
npm install -g flareguard

# Or run directly via npx without installation
npx flareguard --help

# Or build from source
git clone https://github.com/bhubbard/flareguard.git
cd flareguard
cargo build --release

1. Scan for Leaked Cloudflare Secrets

# Scan static build directory (e.g. dist, public)
flareguard secrets dist/

# Run in CI mode (fails with exit code 1 on leaks)
flareguard secrets dist/ --check --format sarif --output results.sarif

2. Validate Worker / Pages Bindings

# Validate wrangler.jsonc or wrangler.toml against src/ AST usage
flareguard bindings src/ --config wrangler.jsonc --strict

3. Audit Cloudflare Zone Security

# Live zone audit via API Token
flareguard zone --token $CF_API_TOKEN --zone example.com --check

# Offline mock audit
flareguard zone --mock

4. Hunt for Unmasked Origin IPs

# Scan domain for direct-to-origin leak vectors
flareguard origin example.com --check

# Offline mock scan
flareguard origin --mock

5. End-to-End Workspace Check

# Run all local security checks across repository
flareguard check .

📜 Architecture & Core Principles

  • Zero-Latency Parallelism: Rayon-powered parallel directory traversal and memory-mapped file inspection (memmap2).
  • Precision AST Analysis: Powered by OXC (Oxford JavaScript Compiler in Rust) for nanosecond JS/TS parsing without runtime node/v8 dependencies.
  • Actionable Remediation: Every finding includes clear, copy-paste shell commands and Cloudflare dashboard remediation instructions.
  • Enterprise CI/CD Integration: Direct SARIF output for GitHub Actions Code Scanning and customizable compliance gates.

📄 License

MIT © 2026 Brandon Hubbard (brandonhubbard.com)