Stop your app from booting with broken env vars: a type-safe, universal config library

TL;DR AI
2 min readKey summary
@teispace/env is a zero-dependency environment config library that validates, coerces, and types env vars across Node, Bun, Deno, Cloudflare Workers, and major frameworks.
It loads environment variables once at startup, then returns typed values using built-in support or schema tools like Zod, Valibot, and ArkType.
The library aims to fix common issues with string-only `process.env`, build-time client env inlining, and runtime differences across platforms.
It also helps prevent production bugs and accidental secret leaks by validating config early and keeping client bundles safe.
