varlock
« Back to VersTracker
Description:
Add declarative schema to .env files using @env-spec decorator comments
Type: Formula  |  Latest Version: 0.1.3@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: environment validation configuration dotenv schema
Install: brew install varlock
About:
Varlock introduces a declarative schema layer to .env files using @env-spec decorator comments, enabling validation and type checking for environment variables. It allows developers to define expected types, required variables, and constraints directly within their .env files. This prevents configuration errors and ensures consistency across development and production environments.
Key Features:
  • Declarative schema definition via decorator comments
  • Runtime validation of environment variables
  • Type checking for configuration values
  • Zero-dependency CLI tool
Use Cases:
  • Validating environment variables in CI/CD pipelines
  • Documenting configuration requirements in .env files
  • Preventing runtime errors from missing or malformed env vars
Alternatives:
  • dotenv – Standard dotenv loads variables but lacks validation or schema enforcement
  • joi – General-purpose validation library requiring separate schema definitions
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 0.1.3 0 VERSION_BUMP b94445c6
Oct 4, 2025 5:17am 0 VERSION_BUMP f2aa236d
Sep 30, 2025 9:31pm 0 VERSION_BUMP 79e3b20b
Sep 30, 2025 8:22pm 0 VERSION_BUMP b43d1cd1