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

@rabbitlock/runtime

v0.1.3

Published

RabbitLock runtime CLI for decrypting SOPS JSON to env vars.

Readme

@rabbitlock/runtime

Minimal RabbitLock runtime helpers for decrypting env.sops.json into runtime environment variables.

Why this exists

Teams want Git-native secrets without a central vault. SOPS lets you keep encrypted secrets in the repo, but you still need a safe way to decrypt them at runtime without writing plaintext to disk. This package provides that last step, using the same RabbitLock identity seed that encrypted the SOPS file.

Why SOPS

  • Git-native: encrypted files live with your code.
  • Auditable: diffs show which keys changed without exposing values.
  • No vault lock-in: any environment can decrypt with the right key.
  • Works offline: decryption happens locally.

How RabbitLock (UI) fits

Use the RabbitLock web app to manage env.sops.json:

  1. Open the SOPS tab and import .env or an existing SOPS file.
  2. Decrypt, edit, and re-encrypt in the browser.
  3. Download the updated env.sops.json and commit it to your repo.
  4. Store RABBITLOCK_SEED_HEX in your secrets manager for runtime use.

The runtime CLI in this package uses that same seed to decrypt the file in your app environment.

Install

npm install @rabbitlock/runtime

Requires Node.js.

Usage (CLI)

export RABBITLOCK_SEED_HEX=...
set -a
eval "$(npx rabbitlock-env --in env.sops.json --export)"
set +a
npx rabbitlock-env --in env.sops.json --json
npx rabbitlock-env --in env.sops.json --write-env .env

Usage (Python helper)

from rabbitlock_env import load_env_dict, load_env_into_os

env = load_env_dict(seed_hex="...", sops_path="env.sops.json")
load_env_into_os(seed_hex="...", sops_path="env.sops.json")

Note: the Python helper shells out to Node.js. Paths are resolved from your current working directory; pass an absolute sops_path if needed.

Using in apps

Shell or Node startup:

export RABBITLOCK_SEED_HEX=...
set -a
eval "$(npx rabbitlock-env --in env.sops.json --export)"
set +a
node server.js

Python app startup:

export RABBITLOCK_SEED_HEX=...
PYTHONPATH=node_modules/@rabbitlock/runtime python app.py

Inside app.py:

from rabbitlock_env import load_env_into_os

load_env_into_os(seed_hex="...", sops_path="env.sops.json")

Security notes

  • Keep RABBITLOCK_SEED_HEX in a secrets manager, never in Git.
  • Prefer the --export + eval flow to avoid writing plaintext to disk.
  • Use --write-env only for local debugging.

Notes

  • This package bundles the Wasm crypto artifacts in pkg/.
  • The CLI reads the SOPS file from the current working directory unless --in is provided.