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

env-key-store

v1.0.0

Published

A CLI tool for managing encrypted project secrets

Readme

Store - Encrypted Project Secrets Manager

A CLI tool for managing encrypted project secrets and environment variables.

Features

  • 🔐 Encrypted storage of project secrets
  • 🗂️ Project-based organization
  • 🔑 Password-protected access (stored securely)
  • 📁 Configurable storage location
  • 🚀 Easy CLI interface
  • 🔄 Multiple store files support
  • 🔐 Custom password per operation

Installation

# Clone the repository
git clone <repository-url>
cd store-encrypter

# Install dependencies
yarn install

# Build the project
yarn build

# Link globally (optional)
yarn link

Usage

Initial Setup

  1. Initialize with a master password:
env-key-store init
  1. Configure storage location (optional):
env-key-store use '/path/to/your/storage/file'

Managing Secrets

Set secrets for a project:

env-key-store set <project-name> KEY=value
env-key-store set <project-name> KEY1=value1 KEY2=value2

Examples:

env-key-store set projecta API_KEY=abc123
env-key-store set projecta ENDPOINT=https://api.example.com DATABASE_URL=postgres://...

Pull secrets to .env file:

env-key-store pull <project-name> [output-file]

Examples:

env-key-store pull projecta .env
env-key-store pull projecta .env.local

Push secrets from a .env file:

env-key-store push <project-name> <envfile>

Examples:

env-key-store push projecta .env

Replace all secrets in a project:

env-key-store replace <project-name> <envfile>

Examples:

env-key-store replace projecta .env

Remove specific keys from a project:

env-key-store unset <project-name> <keys...>

Examples:

env-key-store unset projecta API_KEY DATABASE_URL

List projects:

env-key-store list

Remove a project:

env-key-store remove <project-name>

Change master password:

env-key-store change-password

Advanced Options

All commands support these optional flags:

  • -s, --store <path> - Use a custom store file path
  • -p, --password <password> - Use a custom password for this operation

Examples:

# Use different store file
env-key-store set projecta API_KEY=abc123 -s /path/to/other/store

# Use different password
env-key-store pull projecta .env -p mypassword

# Use both custom store and password
env-key-store list -s ./backup.store -p backup-password

# Change password for specific store
env-key-store change-password -s /path/to/store

Security

  • All secrets are encrypted using AES-256-GCM
  • Master password is encrypted and stored locally
  • Storage file can be placed anywhere (including cloud storage)
  • No secrets are ever stored in plain text
  • No password prompts required after initial setup
  • Support for multiple encrypted stores with different passwords

Configuration

The tool stores configuration in:

  • ~/.env-key-store/config.json - Configuration and encrypted password
  • Custom storage file (configurable via env-key-store use)

Development

# Run in development mode
yarn dev

# Run tests
yarn test

# Lint code
yarn lint

# Format code
yarn format

Architecture

The project follows Domain-Driven Design (DDD) principles:

  • Domain Layer: Core business logic for encryption/decryption
  • Application Layer: CLI commands and orchestration
  • Infrastructure Layer: File system operations and crypto utilities

License

MIT