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

safe-env-cli

v1.0.1

Published

Pull encrypted, password-protected env vars from a safe-env link straight into your .env file

Readme

safe-env-cli

Pull encrypted, password-protected environment variables from a safe-env link straight into your .env file — no account, no install required.

Usage

npx safe-env-cli <link>

You'll be prompted for the password. Once verified, the decrypted content is written to a .env file in your current directory — appended if one already exists, created fresh if it doesn't.

$ npx safe-env-cli https://safe-envs.vercel.app/view/aBc123XyZ9
✔ Enter the password for this link: ********
Success — appended to existing .env file.

No global install needed — npx downloads and runs it once, then forgets about it.

What it does

  1. Prompts for the password tied to the link (hidden input, like a normal password field)
  2. Sends the password to the same API the safe-env web app uses to verify and decrypt the content
  3. Writes the result to .env in whatever directory you ran the command from
  4. The link is single-use — once viewed, it's deleted from the server, whether it was opened via this CLI or a browser

Security model

  • Content is encrypted client-side before it's ever sent to the server — the server stores only encrypted bytes and a hashed password, never anything readable
  • Links auto-expire after a set time (2–5 minutes) even if never opened
  • Links are deleted immediately after a successful view, so they can't be reused or shared twice
  • The CLI reads the target server directly from the link you paste (via its domain), so it works against any deployment — local dev, staging, or production — without configuration

Requirements

  • Node.js 18 or later (uses the built-in fetch API)

Install globally (optional)

If you'd rather not type npx every time:

npm install -g safe-env-cli
safe-env-cli <link>

Related

  • Web app: safe-envs.vercel.app
  • Create a link there, share it, and pull it down with this CLI wherever you need the env vars.

License

MIT