npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

envlt

v0.2.1

Published

Encrypted environment variable manager for Git repositories.

Readme

envlt

Encrypted environment variable manager for Git repositories.

envlt helps teams keep .env values encrypted in-repo, validate required variables, and run processes with decrypted environment values at runtime.

Why envlt

  • Encrypts env files with AES-256-GCM.
  • Uses a local key store with strict file permissions.
  • Supports per-environment encrypted files.
  • Adds guardrails for key naming and required variable checks.
  • Supports shared encrypted entries from GitHub repos.

Install

npm install -g envlt

Or run with npx:

npx envlt --help

Quick Start

Initialize in your project:

envlt init

This creates:

  • envlt.config.json
  • Encrypted env files for selected environments
  • A generated key in .envlt/keys/ (local to project)
  • .gitignore additions for local plaintext/temp files and .envlt/

Set variables:

envlt set DATABASE_URL=postgres://localhost:5432/app --env development
envlt set API_KEY=secret --env production

Declare expected variables:

envlt declare DATABASE_URL --description "Primary DB connection string" --required
envlt declare PUBLIC_BASE_URL --description "Public app URL" --no-secret

Validate config/env completeness:

envlt check --env development
envlt check --env production --strict

Run commands with decrypted env:

envlt use --env development -- node server.js
envlt use --env production --strict-shared -- node dist/server.js

Edit encrypted env in your editor:

envlt edit --env development

Core Commands

  • envlt init
  • envlt set <KEY=VALUE...> [--env <name>] [--key-id <id>]
  • envlt declare <KEY> --description <text> [--env <name>] [--required|--no-required] [--secret|--no-secret]
  • envlt check [--env <name>] [--strict] [--key-id <id>]
  • envlt edit [--env <name>] [--key-id <id>] [--editor <command>]
  • envlt use [--env <name>] [--key-id <id>] [--passthrough] [--strict-shared] -- <command ...>
  • envlt shared clear-cache [--repo <org/repo>]
  • envlt hooks install [--force]
  • envlt hooks uninstall
  • envlt hooks status

Config

Minimal envlt.config.json:

{
  "appName": "my-app",
  "envs": ["development", "staging", "production"],
  "keyId": "my-app-12345678"
}

With shared entries:

{
  "appName": "my-app",
  "envs": ["development", "staging", "production"],
  "keyId": "my-app-12345678",
  "extends": [
    "github:my-org/shared-secrets/payments/base",
    "github:my-org/shared-secrets/analytics/core"
  ]
}

extends entries are resolved from a local cache and merged in order. Later entries override earlier ones.

Sharing Keys with Team

Master keys are stored locally in .envlt/keys/ within your project (auto-added to .gitignore).

To share the master key with teammates:

  1. Archive the keys folder:

    zip -r envlt-keys.zip .envlt/
  2. Send securely via your password manager (1Password, LastPass, Bitwarden, etc.) or secure channel

  3. Teammate extracts in their project root:

    unzip envlt-keys.zip

The key is now available for the entire team without committing it to git.

For CI/CD, set the ENVLT_KEY secret (shown during envlt init).

Security Notes

  • Encryption algorithm: AES-256-GCM.
  • Master keys are stored in .envlt/keys/ within each project (not globally).
  • Key file permissions are validated and enforced (chmod 600).
  • Temporary plaintext files used by edit are protected and cleaned up.
  • use can run with isolated env (--passthrough is opt-in).

Shared Secrets Cache

Shared repos are cached under:

~/.envlt/cache

Clear one repo cache:

envlt shared clear-cache --repo my-org/shared-secrets

Clear all cache:

envlt shared clear-cache

Git Hooks

Install pre-commit validation hook:

envlt hooks install

Force install/update if a hook already exists:

envlt hooks install --force

Development

npm ci
npm run typecheck
npm run lint
npm test
npm run test:coverage:ci
npm run build

License

MIT