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

dotkc

v0.3.10

Published

Encrypted vault (iCloud Drive) secrets + dotenv-style runner for OpenClaw/local-agent security

Readme

dotkc

npm version license

dotkc is a small secrets CLI + dotenv-style runner for OpenClaw/local-agent workflows.

  • Encrypted vault file (typically iCloud Drive synced)
  • Per-machine local key file (NOT synced)

Usage manual + best practices: https://dotkc.hczhang.com/

OpenClaw plugin (typed tools integration): https://dotkc-openclaw.hczhang.com/


Install

npm i -g dotkc
# or
pnpm add -g dotkc

Paths & environment variables

Vault / key locations

Defaults:

  • DOTKC_VAULT_PATH~/Library/Mobile Documents/com~apple~CloudDocs/dotkc/dotkc.vault
  • DOTKC_VAULT_KEY_PATH~/.dotkc/key

Override:

export DOTKC_VAULT_PATH="/path/to/dotkc.vault"
export DOTKC_VAULT_KEY_PATH="$HOME/.dotkc/key"

No-leak mode (recommended for OpenClaw)

Set DOTKC_NO_LEAK=1 to refuse operations that would print secret values.

  • Blocks: dotkc get, --unsafe-values
  • Still allows: dotkc run ... -- <cmd> (env injection without printing values)

Backup settings (P0 safety)

Before overwriting the vault, dotkc creates a backup and refuses to write if backup fails. If the vault changes on disk during an operation (sync conflict), dotkc refuses to overwrite and asks you to retry.

  • DOTKC_BACKUP_KEEP=3 keep last 3 backups (default)
  • DOTKC_BACKUP_KEEP=0 disable backups
  • DOTKC_BACKUP_DIR=/path/to/dir store backups in a separate directory

Backup filenames look like:

  • dotkc.vault.bak-YYYYMMDD-HHMMSSmmm

Command reference

dotkc init

dotkc init [--vault <path>] [--key <path>]

Creates the vault (if missing) and the local key file (if missing). If they already exist, dotkc may prompt before overwriting.

dotkc status

dotkc status [--vault <path>] [--key <path>]

Prints JSON describing paths + whether the vault can be decrypted.

dotkc doctor

dotkc doctor [--vault <path>] [--key <path>] [--json]

Runs diagnostics for common issues (missing key/vault, wrong permissions, decrypt failures) and prints suggested fixes.

dotkc key install

# reads key from stdin
cat ~/.dotkc/key | dotkc key install [--key <path>] [--force]

Installs a key file (chmod 600). Refuses to overwrite an existing key unless --force.

dotkc set

dotkc set <service> <category> <KEY> [value|-]
  • Omitting value prompts (hidden input)
  • value=- reads from stdin (non-interactive)

dotkc get

dotkc get <service> <category> <KEY>

Prints the secret to stdout.

dotkc del

dotkc del <service> <category> <KEY>

Deletes the secret.

dotkc list

dotkc list <service> [category]
  • If category omitted: prints categories
  • If category provided: prints keys

dotkc search

dotkc search <query> [--json]

Search keys by substring across service/category/KEY. Never prints secret values.

dotkc export

dotkc export <spec>[,<spec>...] [--unsafe-values]

Exports matching keys as dotenv-style KEY=VALUE lines.

  • By default values are redacted (safe for inspection).
  • Use --unsafe-values to output full values (unsafe; keep out of logs and git).

dotkc copy

dotkc copy <srcService>:<srcCategory> <dstService>:<dstCategory> [--force]

Copies an entire category to a new location. Refuses to overwrite unless --force.

dotkc move

dotkc move <srcService>:<srcCategory> <dstService>:<dstCategory> [--force]

Moves an entire category to a new location (copy then delete). Refuses to overwrite unless --force.

dotkc import

dotkc import <service> <category> [dotenv_file]

Interactive picker to import keys from a dotenv file (default: .env).

dotkc run

# inspect mode (no command): prints redacted values by default
dotkc run [options] <spec>[,<spec>...]

# agent-friendly JSON (inspect mode)
dotkc run --format openclaw <spec>[,<spec>...]

# exec mode: inject env and run a command
dotkc run [options] <spec>[,<spec>...] -- <cmd> [args...]

Spec formats:

  • wildcard: <service>:<category>
  • exact: <service>:<category>:<KEY>

Run options:

  • --json inspect mode: output JSON (redacted unless --unsafe-values)
  • --format openclaw inspect mode: structured JSON for agents ({ format, redacted, specs, env })
  • --unsafe-values inspect mode: print full secret values (unsafe)
  • --dotenv / --dotenv-file <path> / --dotenv-override / --no-default-dotenv
  • --spec-file <path> load specs from a file (one per line; supports comments with #)

Spec-file example:

# env allowlist for an agent
fly.io:acme-app-dev
vercel:acme-app-dev:CLERK_SECRET_KEY

Exit codes (selected)

  • 3 NOT_FOUND

License

Apache-2.0