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.
Viktor.comAn AI coworker that actually does the work
Promoted
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.