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

securepush

v1.0.14

Published

A powerful and AI-driven CLI tool that automatically scans source code for hardcoded secrets before Git operations and deployments, helping developers prevent sensitive data leaks

Readme

🚀 SecurePush

An AI-powered CLI tool to detect hardcoded secrets in your codebase.


📦 Installation

npm install -g securepush
  • Requires Node.js v16+
  • Works on Windows, macOS, and Linux
  • Free tier available with basic features
  • Pro & Business tiers available for advanced features

🎯 Tiers & Pricing

| Tier | Price | Features | |------|-------|----------| | Free | $0 | Basic secret scanning, Git hooks, Pattern matching | | Pro | $20 | AI-powered scanning, Commit messages, Bug fixes, Priority support | | Business | $50 | All Pro features + Team config, Policies, Custom rules, Enterprise support |

Upgrade to Premium

# Check current tier
securepush status

# Upgrade to Pro/Business
securepush upgrade

# Activate license key
securepush activate <license-key>

✨ Features

  • 🤖 AI-Powered Detection (Google Gemini integration)
  • 🔒 Automatic Git Hooks (pre-commit & pre-push)
  • 🚫 Force Push Protection
  • 📊 Comprehensive Secret Scanning (API keys, tokens, credentials, etc.)
  • Fast Regex Scanning (offline mode)
  • 🛡️ Minimal False Positives (with AI enabled)
  • 🏢 Enterprise-Ready (audit logging, team config, CI/CD support)

⚡ Quick Start

  1. Install SecurePush globally:
    npm install -g securepush
  2. Initialize in your project:
    securepush init
    • Installs Git hooks automatically
    • Prompts for Gemini AI setup (recommended for production)
    • If you enable AI, you will be prompted to enter your Gemini API key
  3. Scan your codebase:
    securepush scan
  4. Check status/configuration:
    securepush status

🛠️ Example Commands

# Show help and all commands
securepush --help

# Initialize SecurePush in a repo (installs hooks)
securepush init

# Scan for secrets (AI-powered if enabled)
securepush scan

# Scan with regex-only (offline)
securepush scan --no-ai

# Check SecurePush status
securepush status

# Configure Gemini API key
securepush config --set geminiApiKey=YOUR_KEY

🤖 AI vs. Regex-Only Scanning

| Feature | Gemini AI Enabled | Gemini AI Disabled | |------------------------|----------------------------------|-----------------------------| | Detection | Uses Google Gemini AI to analyze code contextually and catch secrets that may not match regex patterns. | Uses only regex/pattern-based detection for secrets. | | False Positives | Lower (AI understands context, can ignore non-secrets) | Higher (regex may flag non-secrets) | | Detection Rate | Higher (can catch obfuscated or non-standard secrets) | Lower (misses secrets not matching known patterns) | | Performance | Slightly slower (AI API call latency) | Fast (local regex scan only) | | API Key Required | Yes (user must provide Gemini API key) | No | | Privacy | Code snippets sent to Gemini API for analysis | Code never leaves local machine |

  • Enable Gemini AI for maximum detection and minimal false positives (recommended for production).
  • Disable Gemini AI for fast, offline, pattern-based scanning (good for local/dev, but less secure).

📁 Project Structure

SecurePush/
├── bin/securepush.js          # Global CLI entry point
├── src/
│   ├── cli.js                 # Main CLI logic
│   ├── commands/              # CLI commands (init, scan, config, etc.)
│   ├── scanner.js             # Core scanning engine
│   ├── config.js              # Configuration manager
│   ├── git.js                 # Git operations
│   └── ...
├── .husky/                    # Git hooks
├── package.json
└── README.md

🧩 Prerequisites

  • Node.js v16 or higher
  • npm (comes with Node.js)
  • (Optional) Google Gemini API key for AI-powered scanning

🐞 Troubleshooting

  • Node version error? Upgrade Node.js to v16+
  • Permission denied on hooks? Run your terminal as administrator or with sudo
  • AI not working? Set your Gemini API key: securepush config --set geminiApiKey=YOUR_KEY
  • Still stuck? Run with debug: DEBUG=true securepush scan

📄 License

MIT License


🔗 Links


Stay secure. Ship with confidence. — SecurePush

Centralized Team Configuration (Enterprise/Team Tier)

SecurePush supports a centralized configuration system for enterprise teams. Place a securepush.json file at the root of your repository to enforce security rules and policies for all team members.

Example securepush.json

{
  "admins": ["alice", "bob"],
  "locked": true,
  "policies": {
    "blockSecrets": { "enabled": true },
    "dependencies": { "approved": ["react", "express"] }
  }
}
  • admins: List of usernames who can modify the config when locked.
  • locked: If true, only admins can change the config.
  • policies: Define commit/push rules, dependency allowlists, and more.

License Tiers

  • Free: Basic secret scanning, limited rules, community support.
  • Pro ($20): All Free features, advanced scanning, AI commit messages, bug fix suggestions, priority support.
  • Business/Team ($50): All Pro features, centralized config, enforced policies, admin lock, enterprise support.

CLI Integration

  • Team admins can lock/unlock or edit the team config via securepush config (Team tier only).
  • All commit/push/audit/scan commands will enforce the centralized config if present and license tier is Team.

See the Pricing page for a full feature breakdown.