production-config-validator

Community

Type-safe production config validation.

Authorstackconsult
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Replacing ad-hoc process.env access with a centralized, type-safe ConfigService ensures all required environment variables are present and correctly typed before the application starts, reducing runtime errors and misconfigurations.

Core Features & Use Cases

  • Schema-driven validation: Define all env vars using a Zod schema with defaults and constraints.
  • Singleton ConfigService: A single source of truth for config access and validation at bootstrap.
  • Fail-fast bootstrap: Exits early if any required variable is missing or invalid to prevent faulty deployments.
  • Migration guidance: Clear steps to audit and replace direct process.env usage with the ConfigService across the codebase.

Quick Start

Initialize ConfigService early in bootstrap to validate environment variables before the app starts.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: production-config-validator
Download link: https://github.com/stackconsult/RE-Engine/archive/main.zip#production-config-validator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.