Type-Safe Env
Strong typing and schema validation for environment variables. Catch config bugs before your app starts.
Schema Composition
Compose, reuse, and group environment schemas with support for defaults, environments, and namespaces.
Powerful CLI
Validate, fix, sync, generate types, and auto-document your environment with simple CLI commands.
Quick Start
npm install dotenv-gadimport { defineSchema, loadEnv } from "dotenv-gad";
const schema = defineSchema({
PORT: { type: "number", default: 3000 },
DATABASE_URL: { type: "string", required: true }
});
const env = loadEnv(schema);Read Documentation →Community & Contributors
dotenv-gad is open source and community-driven. Contributions, issues, and discussions are welcome.