envfix is a zero-dependency CLI for diagnosing and fixing environment configuration problems. It detects missing, empty, extra, and duplicate variables, catches malformed declarations, checks Git safety, generates and syncs example environment files, and works locally or in CI. Run it instantly with npx envfix.
No reviews yetBe the first to leave a review for envfix
Maker
📌
Hey Product Hunt,
I built envfix after running into a very ordinary developer problem again and again: .env.example changes, but someone's local .env doesn't — and the application fails for a reason that takes longer to find than it should.
What started as a tiny checker has grown into a small environment configuration doctor for Node.js projects.
envfix can:
- detect missing, empty, extra, and duplicate variables
- catch malformed environment declarations
- check whether .env is safely ignored and untracked by Git
- safely fix missing configuration
- generate and sync .env.example files
- work in CI with JSON output and GitHub Actions annotations
It has zero dependencies and is deliberately conservative: it won't overwrite existing non-empty values or print environment values into logs.
You can try it without installing anything:
npx envfix
I'm currently focusing on building small open-source developer tools that remove everyday friction.
I'd love feedback, especially on the CLI experience and the .env problems you run into in real projects.
Report
Such a small problem, but one that can waste a ridiculous amount of time 😅 Really like the idea of having a tiny CLI that catches all of this before it turns into a debugging session. Congrats on the launch!
Report
Maker
@aamirxv2 Haha exactly — it's never the big architectural problems that eat your morning, it's a missing env var 😅 Thanks a lot!
Report
I keep bouncing between dotenv-cli and direnv for Node projects. Does envfix replace those or sit next to them when you've got more than one .env per app?
Such a small problem, but one that can waste a ridiculous amount of time 😅 Really like the idea of having a tiny CLI that catches all of this before it turns into a debugging session. Congrats on the launch!
@aamirxv2 Haha exactly — it's never the big architectural problems that eat your morning, it's a missing env var 😅 Thanks a lot!
I keep bouncing between dotenv-cli and direnv for Node projects. Does envfix replace those or sit next to them when you've got more than one .env per app?
BetterClaw
Simple tools that solve everyday developer pain points are always welcome—congrats on the launch! 🚀
@better_shaya Thank you! That was exactly the goal — one command, no config, no dependencies. Appreciate the support 🙌