PublishedProject_id: envguard

envguard

Runtime environment validation with fail-fast startup checks.

TypeScriptNode.js
01.

Overview

A configuration safety library that turns drift into immediate startup feedback.

envguard validates required environment variables up front with consistent, readable failure output.

02.

Problem Solved

Configuration mistakes often appear late in runtime instead of at process start when the fix is cheaper and clearer.

03.

Install

install.sh
$ npm install @krazybean/envguard
04.

Usage Example

Quick start

import { envguard } from "@krazybean/envguard";

envguard({ required: ["DATABASE_URL", "REDIS_URL"] });
05.

Key Design Decisions

Key Design Decisions

Runtime Validation

Configuration is checked before the rest of the process starts work.

Startup Checks

Fail Fast Startup

Broken configuration stops boot immediately with readable errors.

Failure Model

Typed Configuration

Validation helpers are shaped for predictable service bootstrapping.

Config Surface

06.

Links