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

env-rx

v1.0.0

Published

Zero-config CLI to keep .env and .env.example in sync. Detects missing environment variables and fixes them interactively.

Readme

The Problem

We've all been there: a teammate adds a new STRIPE_API_KEY to their local .env, forgets to update .env.example, and pushes the code. The next day, the CI pipeline breaks, or a new developer spends hours figuring out why the app crashes on boot.

The Solution

env-rx is a lightning-fast CLI tool that analyzes your environment files, finds missing variables, and interactively fixes them for you.

npx env-rx

✨ Features

  • Interactive Autofix: Detects missing keys and offers to safely append them to your files.
  • Zero Configuration: Works out of the box. Just run it in your project root.
  • CI/CD Ready: Use the --ci flag to automatically fail builds if files are out of sync.
  • Blazing Fast: Ships as a single dependency-free bundle. Starts in milliseconds.
  • Run Anywhere (Any OS, Any Hardware): Whether it's a modern M-series Mac, a Windows machine, or a legacy CI server running Node.js 14+ — it just works flawlessly.

🚀 Quick Start

You don't even need to install it. Just run it via npx in any Node.js project:

npx env-rx

Or install it as a dev dependency to use it in your scripts:

npm install -D env-rx

🛠 Usage & Commands

By default, env-rx looks for .env and .env.example in your current directory.

# Standard interactive check
npx env-rx

# Use custom paths (perfect for monorepos or custom setups)
npx env-rx --env ./config/.env.local --example ./config/.env.template

# Run in CI mode (Disables prompts, fails with exit code 1 if mismatch found)
npx env-rx --ci

🤖 CI/CD Integration

env-rx shines when added to your automated workflows. Protect your main branch from undocumented environment variables.

GitHub Actions

Add this step to your PR validation workflow:

steps:
  - uses: actions/checkout@v3
  - name: Setup Node.js
    uses: actions/setup-node@v3
    with:
      node-version: '18'
  
  - name: Check Environment Variables Sync
    run: npx env-rx --ci

Husky (Pre-commit hook)

Prevent commits if .env.example is outdated:

npx husky add .husky/pre-commit "npx env-rx --ci"

📝 License

MIT © xserio