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

@amrendrasharma/deployguard

v1.0.4

Published

πŸš€ A lightweight CLI tool that scans your project before deployment and detects common production issues.

Readme

🚒 deployguard

A lightweight CLI tool that scans your project before deployment and detects common production issues.

npm version License: MIT Node.js Version


✨ What it does

Run npx @amrendrasharma/deployguard in any Node.js project before you deploy and get an instant health check:

──────────────────────────────────────────────────────────────────────────
  🚒 deployguard v1.0.0 β€” Pre-deployment project scanner
──────────────────────────────────────────────────────────────────────────

  Scanning: /Users/you/my-project

  βœ”  Scanning for console.log statements...
  βœ”  Checking environment variables...
  βœ”  Checking for unused dependencies...
  βœ”  Scanning for large files (> 5MB)...

──────────────────────────────────────────────────────────────────────────
  Results

  ⚠   Found 3 console.log statement(s) β€” remove before deploying
  ⚠     β†’ src/routes/auth.js:42
  ⚠     β†’ src/utils/debug.js:7
  ⚠     β†’ src/utils/debug.js:18
  ⚠   2 env var(s) from .env not found in environment:
  ⚠     β†’ STRIPE_SECRET_KEY is not set
  ⚠     β†’ SENDGRID_API_KEY is not set
  βœ”  All dependencies appear to be in use
  ⚠   1 large file(s) found β€” consider adding to .gitignore:
  ⚠     β†’ assets/promo-video.mp4 (87.3 MB)

──────────────────────────────────────────────────────────────────────────

  ⚠  Deployment Readiness Score: 62/100
     Several issues need attention

     [β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘] 62%

──────────────────────────────────────────────────────────────────────────

πŸš€ Quick Start

Run without installing:

npx @amrendrasharma/deployguard

Or install globally:

npm install -g @amrendrasharma/deployguard
deployguard

Scan a specific directory:

deployguard --dir ./my-app

πŸ“¦ Installation

# Install globally
npm install -g @amrendrasharma/deployguard

# Or use as a dev dependency
npm install --save-dev @amrendrasharma/deployguard

πŸ” Checks Performed

| Check | Points | What it detects | |-------|--------|-----------------| | console.log | 25 pts | console.log() statements left in .js, .ts, .jsx, .tsx files | | Environment Variables | 25 pts | Variables in .env that aren't set in the current environment | | Unused Dependencies | 25 pts | Packages in package.json that aren't imported anywhere in source code | | Large Files | 25 pts | Any file over 5MB (accidentally committed assets, DB dumps, etc.) |

Scoring

| Score | Status | |-------|--------| | 90–100 | πŸš€ Ready to ship! | | 70–89 | ⚠ Minor issues to fix | | 50–69 | ⚠ Several issues need attention | | 0–49 | βœ– Not ready for deployment |


πŸ”§ CLI Options

Options:
  -d, --dir <path>   Target directory to scan (default: current directory)
  --no-color         Disable colored output (useful for CI logs)
  --debug            Show verbose error information
  -v, --version      Output the current version
  -h, --help         Show help information

πŸ“‚ Project Structure

deployguard/
β”œβ”€β”€ bin/
β”‚   └── cli.js              # CLI entry point (Commander.js setup, orchestration)
β”œβ”€β”€ checks/
β”‚   β”œβ”€β”€ consoleCheck.js     # Scans for console.log statements
β”‚   β”œβ”€β”€ envCheck.js         # Verifies .env variables are set
β”‚   β”œβ”€β”€ dependencyCheck.js  # Detects unused npm dependencies
β”‚   └── sizeCheck.js        # Finds files larger than 5MB
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ display.js          # Terminal output (banner, colors, score display)
β”‚   β”œβ”€β”€ helpers.js          # Pure utility functions (formatBytes, truncatePath)
β”‚   └── score.js            # Final score calculation
β”œβ”€β”€ package.json
β”œβ”€β”€ README.md
└── .gitignore

πŸ—οΈ Adding to Your Workflow

npm script (recommended)

Add to your package.json:

{
  "scripts": {
    "precheck": "deployguard",
    "deploy": "deployguard && your-deploy-command"
  }
}

GitHub Actions

# .github/workflows/deployguard.yml
name: Pre-deploy Check

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  deployguard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm ci
      - run: npx @amrendrasharma/deployguard --no-color

🀝 Contributing

  1. Fork the repository: github.com/amrendrasharma1328-a11y/shipcheck
  2. Create your feature branch: git checkout -b feat/new-check
  3. Commit your changes: git commit -m 'feat: add secretsCheck'
  4. Push and open a Pull Request

πŸ‘¨β€πŸ’» Author

Amrendra Sharma


πŸ“„ License

MIT Β© Amrendra Sharma