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

lecoffre

v0.2.1

Published

Work in progress CLI project.

Readme

lecoffre

[!WARNING] This project is a work in progress. Expect breaking changes.

Per-project environment variable manager for the shell.

Store, load and unload environment variables by project and environment, directly in your current shell session.

Prerequisites

Installation

npm install -g lecoffre

Storage

By default, lecoffre uses 1Password as its storage backend. Variables are stored as Secure Notes inside a dedicated lecoffre vault.

[!NOTE] When importing variables, field values are briefly visible in the process argument list (/proc/<pid>/cmdline). This is a limitation of the 1Password CLI, which does not support reading field values from stdin when spawned as a child process.

To get started, initialize the vault:

lecoffre init

Alternative: JSON file storage

[!CAUTION] This storage backend is not secure. Variables are stored in plain text on disk.

For development or environments without 1Password, set the LECOFFRE_STORAGE_PATH environment variable to use a local JSON file instead:

export LECOFFRE_STORAGE_PATH=/tmp/lecoffre.json

Quick start

# Initialize the storage backend
lecoffre init

# Import variables from a .env file
lecoffre import < .env

# Load them into your shell
eval "$(lecoffre load)"

# When you're done, unload them
eval "$(lecoffre unload)"

Commands

lecoffre init

Initialize the storage backend. For 1Password, this creates the lecoffre vault if it doesn't exist.

lecoffre list [project]

List all projects and their environments. When a project name is given, list only the environments for that project.

# List all projects
lecoffre list

# List environments for a specific project
lecoffre list my-app

lecoffre import

Import variables from stdin in .env format. By default, imported variables replace all existing variables for the target environment. Use --merge to add or overwrite without removing existing variables.

# Import and replace
lecoffre import < .env

# Import and merge with existing variables
lecoffre import --merge < .env

# Pipe from another command
cat .env.production | lecoffre import -e production

lecoffre load

Output shell commands that export the stored variables. Wrap with eval to apply them to the current shell.

eval "$(lecoffre load)"

# Load a specific environment
eval "$(lecoffre load -e production)"

lecoffre unload

Output shell commands that unset the stored variables. Wrap with eval to remove them from the current shell.

eval "$(lecoffre unload)"

Common options

| Option | Alias | Description | Default | | --------------------- | ----- | ---------------- | --------------------------------- | | --project <name> | -p | Project name | basename of the current directory | | --environment <env> | -e | Environment name | default |

These options are available on import, load and unload.

Shell support

Supported shells: bash, zsh and fish. The shell is detected automatically from the parent process.

License

MIT