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

@seekrit/cli

v0.17.1

Published

End-to-end encrypted secrets manager CLI — inject decrypted secrets into any command.

Readme

@seekrit/cli

The seekrit command-line client for seekrit — an end-to-end encrypted secrets manager. Secrets are encrypted and decrypted on your machine; the API only ever stores ciphertext. The CLI is the piece that holds your keys, so plaintext, private keys, and passphrases never leave the device.

Use it to manage secrets from a terminal, inject them into a process (seekrit run), export them for another tool (seekrit export), and give CI or agents scoped access via service tokens.

Install

npm  install -g @seekrit/cli    # or: pnpm add -g @seekrit/cli
seekrit --help

Requires Node ≥ 20. You can also run it without installing via npx @seekrit/cli ….

Quickstart

# 1. Authenticate (a service token, or a dev identity for a local API)
seekrit login --token skt_…

# 2. Set up your encryption keypair (protected by a passphrase that never
#    leaves this machine). Only needed once per account.
seekrit keys setup

# 3. Link the current directory to an org / app / environment. Writes
#    seekrit.json, which is safe to commit.
seekrit init --org acme --app storefront --env production

# 4. Work with secrets
seekrit secrets set DATABASE_URL 'postgres://…'
seekrit secrets list
seekrit run -- ./server            # runs ./server with secrets in its env
seekrit export --format dotenv > .env

New to seekrit? The Quickstart walks through creating the org/app/environment from scratch, and the CLI guide covers day-to-day workflows.

Commands

Run seekrit <command> --help for full flags. The CLI reference is the complete list.

| Command | What it does | | --- | --- | | login [--token \| --dev-user] [--api-url] | Save credentials to the global config. | | whoami | Show the authenticated identity and org membership. | | keys setup | Generate your keypair and protect it with a passphrase. | | init --org --app --env | Link this directory to an environment (seekrit.json). | | org create / app create / env create | Create organizations, apps, and environments. | | secrets list | List secret names (never values). | | secrets get <name> | Decrypt and print one secret value. | | secrets set <name> [value] | Encrypt and store a secret (reads stdin if value is omitted or -). | | secrets rm <name> | Delete a secret. | | run <command…> | Run a command with decrypted secrets in its environment. | | export [--format dotenv\|json\|shell] | Print decrypted secrets in the chosen format. | | grant [--user \| --token] | Grant a member or service token access to the linked environment. | | token create / list / revoke | Manage service tokens for CI, Docker, and agents. | | audit [--limit] | Show the org audit trail. |

seekrit run passes flags through to the child command — put them after -- (e.g. seekrit run -- node app.js --port 3000). secrets set NAME - reads the value from stdin, so you can pipe: printf '%s' "$VALUE" | seekrit secrets set NAME -.

Service tokens (CI, Docker, agents)

A service token carries its own private key in the token string; the server stores only a hash and the public key, so it can be granted access without a passphrase.

seekrit token create --name ci-deploy --grant     # prints the token once — save it
SEEKRIT_TOKEN=skt_… seekrit run -- ./deploy.sh
SEEKRIT_TOKEN=skt_… seekrit export --format dotenv
seekrit token revoke <tokenId>

See the service tokens guide.

Docker

The CLI also ships as a container image — the full toolchain on a Node runtime, for CI runners and agent sandboxes. Multi-arch images (linux/amd64 + linux/arm64) are on Docker Hub as seekritdev/cli:

docker run --rm \
  -e SEEKRIT_TOKEN=skt_… \
  -v "$PWD:/work" -w /work \
  seekritdev/cli run -- ./deploy.sh

The entrypoint is seekrit, so pass subcommands directly (e.g. docker run seekritdev/cli secrets list). It runs unprivileged (node) and writes config under $HOME/.config. Tags: :latest, :<version> / :<major>.<minor>, and :edge (latest main).

For a Node-free runtime image (inject secrets and exec, nothing else), prefer the seekrit-run launcher — seekritdev/run.

Configuration

Credentials and defaults are read from (highest precedence first) environment variables, then the global config file, then built-in defaults.

| Variable | Overrides | Notes | | --- | --- | --- | | SEEKRIT_TOKEN | token | Service token (skt_…). | | SEEKRIT_DEV_USER | devUser | Dev-mode identity for a local API running with AUTH_MODE=dev. | | SEEKRIT_API_URL | apiUrl | API base URL (default http://localhost:8787). | | SEEKRIT_PASSPHRASE | — | Unlocks your private key non-interactively (CI, scripts). |

  • Global config — written by seekrit login to $XDG_CONFIG_HOME/seekrit/config.json (default ~/.config/seekrit/config.json), created with 0600 permissions.
  • Project configseekrit.json, written by seekrit init and resolved by walking up from the current directory. Safe to commit; it holds only org/app/environment identifiers, never secrets.

Local development

From the repo root, after building once (pnpm --filter @seekrit/cli build), you can run the local build against a dev API:

alias seekrit="node $PWD/apps/cli/dist/index.js"
export SEEKRIT_PASSPHRASE=dev-only-passphrase
seekrit login --dev-user [email protected] --api-url http://localhost:8787

See the root README for the full end-to-end local loop.

Build

The CLI is bundled with tsdown. Workspace packages (@seekrit/*) are inlined, so the published package's only runtime dependencies are commander, zod, and @modelcontextprotocol/sdk.

pnpm build       # bundle to dist/index.js
pnpm dev         # rebuild on change (tsdown --watch)
pnpm typecheck   # tsc --noEmit