Stackness
d

direnv

Environment switcher that loads/unloads env vars per directory

0 members list direnv, unchanged over the last 12 weeks, data as of 10 September 2026

Usage on Stackness
0membersunchanged over the last 12 weeks

Members who list direnv in their Stack, by week.

History
Collected from public datasets outside Stackness, not from stacks on this site. Each series is scaled to its own peak because the units do not compare. Data sources
Mentions, monthly

Hacker News mentions mentions: 1 mentions (2011) to 1 mentions (2026)

20112015201920222026

Imported from Hacker News mentions

Questions asked, monthly

Stack Exchange data explorer questions asked: 1 questions (2017) to 1 questions (2025)

20172019202220232025

Imported from Stack Exchange data explorer

No users yet.

Moves that use direnv

I used to keep prod secrets in encrypted files checked into git. This meant every deploy required decryption, every env had its own schema, and one careless moment leaked everything. The cognitive load was constant. I moved to the pattern where only env var names live in version control. I commit a .env.example that lists what keys must exist, nothing more. All actual values come from the runtime environment. For local dev I use direnv to load from a .env file that git ignores. For production, Vercel handles injection directly in the UI. Running direnv allow in a project directory loads the .env automatically whenever you cd into it. The.env.example file stays lean: API_KEY=, DATABASE_URL=, AUTH_SECRET=. If someone forks the repo, they see the shape of what they need without seeing actual values. A leaked .env.example is just a checklist. This breaks down in teams that refuse to use direnv or need secrets in CI/CD systems that don't integrate cleanly. If your pipeline expects files instead of environment variables, you end up bolting on an extra layer anyway. But for anything touching Docker or serverless platforms, this approach removes a whole category of mistakes.

83
See all moves that use direnv

Posts about direnv

  • What is a move, anyway?

    Tools are what you install. Moves are how you actually work: the habits, rituals and workflow tricks that make a stack yours. What a move is, and how to write one worth stealing.