.env Environment Checker — Env Matrix
Compare environment contracts before a release without copying secret values into a report. Env Matrix reads only files you explicitly select or a bounded set of matching files in the open workspace. It does not run dotenv files, expand variables, modify source files, upload configs, or collect analytics.

Free
- Env Matrix: Compare Two .env Files — choose a reference and target, then see missing, extra, empty, duplicate, and parse findings.
- Env Matrix: Open Safe Demo — open a synthetic comparison without touching workspace files.
- Values never appear in comparison output. Source files remain unchanged.
Optional Pro
- Scan 2–50 workspace dotenv files in one matrix.
- Validate required variables and
string, boolean, integer, number, url, or enum contracts.
- Detect undefined variable references and reference cycles in unquoted and double-quoted values. Single-quoted and escaped dollar references stay literal.
- Open Markdown and JSON release reports that omit values.
- Create an untitled
.env.example with sorted key names and blank values.
- Save up to ten reusable contract presets containing key names and rules only.
- Show findings in VS Code Problems so file-and-line navigation stays native.
Pro is $1.99/week, $9.99/year, or $19.99 lifetime through Polar. Weekly and yearly plans renew until canceled. Lifetime is a one-time purchase. Up to three installations. Tax may apply. There is no free trial. Free comparison remains available without an account.
Quick start
- Open the Command Palette.
- Run
Env Matrix: Open Safe Demo or Env Matrix: Compare Two .env Files.
- For Pro workspace checks, define
envMatrix.contract in workspace settings and run Env Matrix Pro: Scan Workspace Environments.
Example contract:
{
"PORT": { "required": true, "type": "integer" },
"FEATURE_ENABLED": { "type": "boolean" },
"API_URL": { "required": true, "type": "url" },
"APP_MODE": { "enum": ["development", "staging", "production"] }
}
Privacy and security boundaries
Dotenv values remain local and are omitted from reports, diagnostics, presets, and license requests. Enum choices are stored only as local contract rules and are omitted from generated reports; enum rules are rejected for secret-like variable names. Variable names, filenames, paths, enum choices, and rule names can themselves be sensitive; review settings and reports before sharing. Pro activation sends only the Polar license key, activation ID, and a random installation label to api.polar.sh after explicit consent. The key is stored using VS Code SecretStorage, and successful entitlement checks are cached for up to 12 hours.
Env Matrix does not decrypt, evaluate, execute, source, or inject dotenv values into the extension process. It does not claim that configuration is deployable or secret-free. Shell-specific expansion, command substitution, defaults such as ${NAME:-fallback}, heredocs, backtick quoting, custom dotenv dialects, and runtime application behavior are outside its validation scope. Symlinks resolving outside the open workspace are rejected during Pro scans. Each file is limited to 2 MB; workspace scans are limited to 50 files and exclude .git and node_modules.
Supported syntax
KEY=value, optional export followed by spaces or tabs, blank values, # comments on unquoted values, single and double quotes, and multiline quoted values. A literal # must be quoted. The first duplicate value is used for analysis and every later occurrence is reported. Values are parsed for local validation only and never included in output. A required contract key must be present and non-empty.
Copyright 2026 Phuc Apps. All rights reserved.