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

preflyt-check

v1.0.3

Published

Pre-deployment security scanner. Checks your live site for exposed secrets, open ports, and misconfigurations.

Readme

preflyt-check

Pre-deployment security scanner for your deploy pipeline. Scans your live site for exposed .env files, open database ports, missing security headers, and other misconfigurations -- in under 30 seconds, with zero dependencies.

Quick start

npx preflyt-check https://mysite.com

No install needed. No signup needed. 3 free scans.

With a Pro API key

npx preflyt-check https://mysite.com --key sk_live_xxx

Get your Pro key at preflyt.dev/pricing for unlimited scans.

Options

| Flag | Description | |---|---| | --key, -k | Pro API key for unlimited scans | | --fail | Exit code 1 if issues found (default: off) | | --fail-on <level> | Minimum severity to fail on: high, medium, low (default: high) | | --quiet, -q | Minimal output, just pass/fail | | --json | Output raw JSON instead of formatted text | | --share | Generate a shareable report link (valid 30 days) | | --timeout <sec> | Scan timeout in seconds (default: 60) | | --help, -h | Show usage |

Exit codes

Preflyt will never block your deploy due to our own errors. Exit code 1 only occurs when you explicitly use --fail and real issues are confirmed.

| Exit code | When | |---|---| | 0 | Scan clean, scan errored, timed out, API unreachable, limit reached, or --fail not set | | 1 | --fail set AND scan succeeded AND findings match --fail-on severity |

Integration

AI coding agents (recommended)

Add the skill file to your project and your agent runs a scan after every deploy:

curl -o SKILL.md https://preflyt.dev/skill.md

Or tell your agent directly: "After deploying, run npx preflyt-check <deployed-url>"

Git hook (auto-scan on push)

#!/bin/bash
# .git/hooks/post-receive
cd /home/myapp
git checkout -f
npm run build
pm2 restart app
sleep 5
npx preflyt-check https://mysite.com

GitHub Actions

# .github/workflows/preflyt.yml
name: Preflyt Scan
on:
  deployment_status:
jobs:
  scan:
    if: github.event.deployment_status.state == 'success'
    runs-on: ubuntu-latest
    steps:
      - run: npx preflyt-check ${{ vars.PRODUCTION_URL }}

Shareable reports

npx preflyt-check https://mysite.com --share

Generates a public report URL you can share with your team or post anywhere. Reports expire after 30 days.

For detailed setup instructions, see the integration guide.

Programmatic usage

const { scan } = require("preflyt-check");

const result = await scan("https://mysite.com", {
  apiKey: "sk_live_xxx", // optional
  timeout: 60,           // optional, seconds
});

console.log(result.status);       // "clean" | "issues_found" | "error"
console.log(result.total_issues); // number
console.log(result.findings);     // array of { title, severity, category }

What it checks

  • Exposed .env, .git, backup files, source maps, phpinfo
  • Open database ports (MySQL, PostgreSQL, MongoDB, Redis)
  • Exposed dev servers and admin tools
  • Missing security headers (HSTS, CSP, X-Frame-Options)
  • CORS misconfiguration
  • Insecure cookies
  • Server version leakage

Zero dependencies

This package uses only Node.js built-in modules. No node_modules tree, no supply chain risk, instant install.

Links