Briefle
LearnGlossaryPricing

Briefle words · Code & architecture

Environment variable

A named setting the running program reads from its surroundings, like a database address or API key, so it isn't hardcoded in the code.

Say it to an AI

TypeScript config module for our Node API that reads DATABASE_URL, COURIER_API_KEY and TRACKING_API_URL from environment variables, Twelve-Factor style. Validate them with zod at startup so the app fails fast, and no hardcoded secrets or URLs anywhere in the code.

How an expert would brief the stronger version of “App configuration”.

See it

Try it as a puzzle →

The config file of a delivery company's backend, with its database, payment and tracking settings.

Study A · the stronger one
Study B · the weaker one

Why: A reads DATABASE_URL, COURIER_API_KEY and TRACKING_API_URL from 'process.env' and nowhere else; B reads them too, but backs each one with a real value typed into config.ts.

Related words

  • Identifier
  • Intention-revealing name
  • Guard clause
  • Happy path
  • Swallowed exception
  • Structured logging
  • Conventional Commits
  • Atomic commit

Room 1 · Essentials

Learn “Environment variable” in a five-minute lesson

Start free
AI can build almost anything. The bottleneck is saying what you want.
WordsPricingTermsPrivacyRefundsContact
© 2026 Briefle