---
title: "envsafe"
description: "Tiny runtime validator that parses and coerces environment variables against a schema and fails the process at boot with a readable report."
canonical: "https://vibing.inc/library/envsafe-vg-0955"
category: "Dev Utilities & Vibe-Coding Tooling"
subcategory: "Type-safe TypeScript"
license: "MIT"
author: "Alex Johansson (@alexdotjs)"
source: "https://github.com/KATT/envsafe"
---

# envsafe
Tiny runtime validator that parses and coerces environment variables against a schema and fails the process at boot with a readable report.
## Facts
- Source: https://github.com/KATT/envsafe
- Category: Dev Utilities & Vibe-Coding Tooling / Type-safe TypeScript
- Author: Alex Johansson (@alexdotjs)
- Licence: MIT
- Tags: env, validation, typescript, node
## Why it's a gem
By tRPC's author; fails fast at startup instead of undefined three screens deep.
---
Listed in The Vibeary: https://vibing.inc/library/envsafe-vg-0955 · JSON: https://vibing.inc/api/public/library/gems/envsafe-vg-0955