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

@koltvictor/env-doctor

v1.0.0

Published

Diagnose environment variable issues in any Node.js project — finds missing, undocumented, and unused vars

Readme

env-doctor

Diagnose environment variable issues in any Node.js project.

Scans your source code for process.env usage and compares it against your .env.example — surfacing missing documentation, undocumented variables, and unused entries.

✓ Documented and in use (20)
✗ Used in code but missing from .env.example (2)
⚠ In .env.example but not found in code (8)

Install

npm install -g env-doctor

Or run without installing:

npx env-doctor

Usage

Run in any Node.js project directory:

env-doctor

Or point it at a specific directory:

env-doctor ./backend

What it checks

| Status | Meaning | | -------- | ---------------------------------------------------------- | | ✓ Green | Variable is documented in .env.example and used in code | | ✗ Red | Variable is used in code but missing from .env.example | | ⚠ Yellow | Variable is in .env.example but not found in source code |

Red items are the most critical — they mean a new developer cloning your repo won't know they need that variable.


Supported file types

Scans .js, .ts, .jsx, .tsx, .mjs, and .cjs files.

Ignores node_modules, .git, dist, build, coverage, .next, and .nuxt.


Exit codes

| Code | Meaning | | ---- | ------------------------ | | 0 | No issues found | | 1 | One or more issues found |

Exit code 1 on issues makes it suitable for use in CI pipelines.


CI Usage

- name: Check environment variables
  run: npx env-doctor ./backend

Limitations

  • Only detects process.env.VARIABLE_NAME syntax — variables accessed via a config object (e.g. config.dbPassword) won't be caught
  • Does not validate variable values, only presence in .env.example

License

MIT — Kolt Adams, 2026