ctrodb
CtroEnvType-Safe Environment Variables
  • Documentation
  • API
  • Blog
v1.0.1 — Latest release

Type-Safe Environment Variables for TypeScript

Define, validate, and infer types for environment variables with zero runtime dependencies. Beautiful error messages, framework adapters, and CLI tooling.

Get StartedAPI Reference
npm install@ctroenv/coremore install options →
6Packages
Zero DepsCore runtime
MITLicense

Zero Runtime Dependencies

Core and shared packages are dependency-free. Small bundle, big confidence.

Full TypeScript Inference

Infer precise types from your schema. No more stringly-typed process.env access.

Beautiful CLI & Errors

Rich error messages with suggestions. A CLI that validates, generates, and documents.

Framework Adapters

Plug into Node.js, Vite, and Next.js. One schema works everywhere.

All Packages

@ctroenv/core
GitHubnpm
@ctroenv/cli
GitHubnpm
@ctroenv/node
GitHubnpm
@ctroenv/vite
GitHubnpm
@ctroenv/nextjs
GitHubnpm
@ctroenv/shared
GitHubnpm

Ready to get started?

Install @ctroenv/core and define your first schema in minutes.

Read the docs

Released under the MIT License. Copyright © 2026 Ctrotech.

GitHubnpmTwitterYouTube