Envelope

Dev tools

environment variable manager

SHOW HN2024

103points
55comments
#814of 3,515 in 2024
Top 24%of 2024 by points

How HN took it

MixedNo clear lean

3 positive, 12 neutral or asking, 0 mixed, 13 critical, out of 28 comments about the project. Thread score -0.28.

Idea: 1 for, 4 againstDesign: 0 for, 3 againstPrivacy: 0 for, 2 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good idea for managing env variables simply

    From 1 comment
    • I like it. Env variables should be a solved problem but no one has made the simplest general solution yet. Seems like you are on track. One suggestion: no need to use SQLite.…
      breck on HN
  • Useful packaging and install options requested and added

    From 2 comments

Objections

  • Storing secrets in shell history is risky

    From 1 comment
    • A word of caution - this is a way to leak your secrets through your shell history: ``` $ envelope add dev db_pwd pwd ``` There are settings such that a command that starts with a…
      leetrout on HN
  • Plain-text .env files and shell already solve this

    From 2 comments
    • > Env variables should be a solved problem I think the main problem is that this problem is 99% solved by the shell alone. Shells are very versatile and it is quite easy to setup…
      eikenberry on HN
    • The docs don’t make it very obvious how are the environment variables actually applied. And I think .env files are much easier to manage and share. `envelope check` could be…
      Kwpolska on HN
  • Custom format means tools like dotenv cannot read it

    From 1 comment
    • > Actually, they are not applied. This is a tool that helps you manage them, you can see it as a replacement of .env files. The point of .env files is for tools (shells or…
      Kwpolska on HN
  • direnv or symlinked .env files do the job

    From 2 comments
    • Seems neat, but direnv can do more despite this claiming to be "modern".
      globular-toast on HN
    • But running: ``` ln -sf .env.dev .env ``` doesn't seem any worse than running: ``` envelope export dev ? ```
      another-dave on HN

Requests

  • Arch package

    From 1 comment
  • Encryption at rest

    From 1 comment
  • Plain text DSL instead of SQLite

    From 1 comment
    • I like it. Env variables should be a solved problem but no one has made the simplest general solution yet. Seems like you are on track. One suggestion: no need to use SQLite.…
      breck on HN

Questions

  • How to install the tool

    From 1 comment
  • How the variables are actually applied

    From 1 comment
    • The docs don’t make it very obvious how are the environment variables actually applied. And I think .env files are much easier to manage and share. `envelope check` could be…
      Kwpolska on HN
  • What the threat model is for shell history leaks

    From 1 comment
    • What’s the threat model? If an attacker has access to your shell history then don’t they then already have access to basically everything else?
      bomewish on HN

Alternatives named

  • direnv

    From 1 comment
  • mise-en-place

    From 1 comment
    • Interesting! Have you looked at mise-en-place at all? It's written in rust too, and might have some cool ideas to use: https://mise.jdx.dev/
      bloopernova on HN
  • envkey

    From 1 comment
  • Shell scripts sourcing variable files

    From 1 comment
    • Hmm I fairly recently started saving variables which tend to be shared among multiple projects in a central location, grouped in sh files and sourcing as needed. This gives me an…
      skeledrew on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/40758703)