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

@ankitbhavarthe/enclave-cli

v0.1.6

Published

Secure secrets management CLI for developer teams. Git-like push, pull, and inject.

Readme

Enclave CLI

Secure secrets management for developer teams. Push, pull, and inject environment variables with Git-like commands — no plaintext .env files.

npm version Node.js

Installation

npm install -g @ankitbhavarthe/enclave-cli

Verify installation:

enc --version

Quick Start

1. Authenticate

# Login via Google (default)
enc login

# Login via GitHub
enc login --provider github

# Login with a Personal Access Token (PAT) from the dashboard
enc login --token env_pat_xxxxx

2. Link your project

Copy the project URL from the Enclave dashboard and run:

enc init enclave://<your-project-id>

This creates a .enc/config.json in your current directory (add .enc/ to .gitignore).

3. Push your existing .env

enc push

4. Pull secrets from the server

# Pull the default environment
enc pull

# Pull a specific environment
enc pull production
enc pull --staging
enc pull --development

5. Inject secrets into a process (recommended)

Zero plaintext exposure — secrets are fetched and injected directly into memory:

enc run -- npm run dev
enc run -- python manage.py runserver
enc run -- node server.js

6. Revert secrets

# Revert a single key to a specific version
enc revert --key DATABASE_URL --ver 3

# Roll back the entire environment to a point in time
enc revert --before "2h ago"

Commands Reference

| Command | Description | |---|---| | enc login | Authenticate via Google/GitHub OAuth or PAT | | enc init <url> | Link current directory to an Enclave project | | enc pull [environment] | Download secrets to a local .env file | | enc push | Push local .env changes to the server | | enc run -- <cmd> | Inject secrets in-memory and run a command | | enc revert | Revert secrets to a previous version or point in time |

Configuration

The CLI reads the following environment variables:

| Variable | Default | Description | |---|---|---| | ENCLAVE_API_URL | https://enclaveapi.ankitbhavarthe.xyz/api | Override the API endpoint (for self-hosted instances) | | ENCLAVE_SERVER_URL | https://enclaveapi.ankitbhavarthe.xyz | Override the server URL (for OAuth login flow) |

Self-Hosted Usage

If you run your own Enclave server, set both variables:

export ENCLAVE_API_URL=https://your-server.com/api
export ENCLAVE_SERVER_URL=https://your-server.com
enc login

Token Storage

Tokens are stored securely using the OS keychain (via keytar):

  • macOS — Keychain
  • Linux — libsecret / kwallet
  • Windows — Credential Vault

Falls back to a file at ~/.enclave/auth.json (permissions 0600) if the keychain is unavailable (e.g., CI environments).

.gitignore Recommendations

Add these to your project's .gitignore:

.env
.env.*
.enc/

Requirements

  • Node.js >= 18.0.0
  • An Enclave account at https://enclave.ankitbhavarthe.xyz

Links

  • Website: https://enclave.ankitbhavarthe.xyz
  • Docs: https://enclave.ankitbhavarthe.xyz/docs
  • Issues: https://github.com/Ankit-2563/enclave-cli/issues

License

MIT