Your Cart
Loading

Localpane EnvGuard: Typed, validated env vars before your Node.js app boots

On Sale
$29.00
$29.00
Added to cart

A missing DATABASE_URL, PORT=eighty, or DEBUG=false that is truthy because it is a non-empty string: configuration bugs are boring, and they surface at the worst moment, after a deploy.


EnvGuard moves those failures to start-up and to CI. Describe your configuration once as a schema. EnvGuard loads .env files with a careful parser, converts values into real types (ports, URLs, booleans, durations, lists, JSON), collects every problem into one readable report, and redacts secrets everywhere it prints. You get back a deeply frozen object whose TypeScript type is inferred from the schema.


The envguard CLI checks configuration in CI, compares .env files, generates .env.example and Markdown docs from the schema, and scans the repository for committed credentials and .env files that git would not ignore.


For Node.js developers and teams who want config errors caught before production, without adding a single runtime dependency.


Features:


  • Schema types: str, int, num, bool, port, url, email, host, oneOf, json, list, duration and custom
  • Collects every problem into one readable report with hints and "did you mean" suggestions
  • Secrets redacted in errors, reports, CLI output and console.log
  • Deeply frozen config object with TypeScript types inferred from the schema
  • Defaults, development-only defaults and optional variables
  • dotenv-compatible parser with line and column errors, multi-line values and ${VAR} expansion
  • Predictable .env.local / .env loading; real environment variables win
  • envguard check for CI with --json output and documented exit codes
  • envguard diff to compare .env.example with .env
  • Generates a commented .env.example and Markdown docs from the schema
  • envguard scan finds committed AWS, GitHub, Stripe, Slack and other credentials
  • Zero runtime dependencies, Node.js 18+

What's included:


  • Complete source code
  • TypeScript declarations
  • 203 automated tests (node:test)
  • Examples
  • Free 1.x updates

Requirements:


  • Node.js 18+
  • No runtime dependencies
  • TypeScript 5.0+ for type inference (optional)

Licence


Commercial licence, single developer: one licence covers one individual developer, and you can use it in unlimited projects you build for yourself or clients. Don't redistribute the source. Team or company licences: contact the seller for a quote (the support email is in LICENSE.md and on the purchase receipt). Full text is in LICENSE.md inside the download. Summary: https://localpane.atrosen1.workers.dev/license/


Updates and refunds


Free updates for all 1.x releases through your purchase link. If the package doesn't work as documented and we can't fix it, you get a full refund within 30 days.

This product's licence terms (in the download and summarised on our site) supplement Payhip's standard terms of use.

You will get a ZIP (94KB) file