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

@sokko/cli

v0.1.2

Published

πŸͺ The Sokko CLI β€” migrate your local agent setup (secrets, memory, files) into a Sokko-hosted runtime.

Readme

πŸͺ sokko

The Sokko CLI. Bring your local agent setup β€” secrets, memory, and config/workspace files β€” into a Sokko-hosted runtime in one command.

πŸͺ sokko migrate
   πŸ₯  secrets   12 vars from .env
   🧠 memory    8 items
   πŸ“¦ files     34 files Β· 1.2 MB
   βœ… your agent is fully baked

Install

npm i -g sokko
# or run without installing
npx sokko --help

Requires Node 18+.

Quick start

sokko login                 # paste your API key (or --key / $SOKKO_API_KEY)
sokko instances ls          # see your agents
sokko migrate               # pick an agent (or create one) and migrate your local dir

Auth & config

Credentials are stored at ~/.config/sokko/config.json (respects $XDG_CONFIG_HOME), mode 0600, shape { apiUrl, apiKey }.

  • apiUrl defaults to https://sokko.ai; override with --api-url or $SOKKO_API_URL.
  • apiKey from --key or $SOKKO_API_KEY overrides the stored value.

Every request sends Authorization: Bearer <apiKey> (and x-api-key).

Commands

| Command | What it does | | --- | --- | | sokko login | Validate and store an API key. | | sokko logout | Remove stored credentials. | | sokko whoami | Show the signed-in org and role. | | sokko instances ls | List your agents (name Β· runtime Β· status Β· size). | | sokko instances create | Create a new agent (interactive). | | sokko migrate | Migrate a local agent dir into an instance. |

sokko instances create

sokko instances create [--runtime <r>] [--name <n>] [--byok | --sokko-credits]
                       [--provider <p>] [--model <id>] [--api-key <k>]
                       [--region us|eu] [--memory] [--subscribe-memory monthly|annual] [--yes]
  • Runtime: openclaw | hermes | paperclip | opensre.
  • Name β†’ an auto-derived, server-valid slug (^[a-z0-9]+(?:-[a-z0-9]+)*$).
  • Credentials:
    • BYOK (--byok): requires --api-key and --provider (e.g. anthropic, openai, openrouter).
    • Sokko credits (--sokko-credits): Sokko-managed model β€” requires --model.
  • Size is plan-derived (the server ignores any size in the body). The CLI shows it read-only after creation; change tiers in the dashboard.
  • --memory enables the Sokko Memory add-on (paid; may prompt an upsell if not subscribed).

sokko migrate

sokko migrate [--instance <id>] [--runtime <r>] [--path <dir>] [--dry-run] [--yes]
              [--on-conflict skip|replace] [--only secrets,memory,files] [--create]
              [--subscribe-memory monthly|annual]
  1. Resolve-or-create the target. Without --instance, pick from a list (plus βž• Create a new agent…); --create or no agents β†’ create flow.
  2. Detect the local dir for the instance's runtime: openclaw β†’ ~/.openclaw, hermes β†’ ~/.hermes, paperclip β†’ ~/.paperclip, opensre β†’ ~/.opensre. Override with --path. (These default paths are best-guess β€” confirm against each runtime's own docs.)
  3. Three lanes:
    • πŸ₯  secrets β€” the root .env β†’ secrets import (default --on-conflict skip).
    • 🧠 memory β€” MEMORY.md / USER.md / IDENTITY.md and everything under memory/ β†’ Sokko Memory.
    • πŸ“¦ files β€” everything else β†’ a tar.gz bundle uploaded to object storage.
  4. Ignore rules (files lane only): skips *.pem, *.key, id_rsa*, *token*, *secret*, .git/, node_modules/, caches, and oversized files. Honors a .sokkoignore (gitignore syntax) at the dir root. .env is never ignored.
  5. --dry-run previews counts and the file manifest with zero network writes.

Memory upsell

If you have memory files but no Sokko Memory add-on, migrate pitches it rather than silently skipping. Enabling it is cost-incurring, so it always needs an explicit confirm (or --subscribe-memory monthly|annual) β€” never auto-accepted by --yes. If you're not an owner or have no base plan, the CLI prints a dashboard link and continues, reporting memory as skipped.

CI / non-interactive

Honors NO_COLOR and non-TTY, degrading to plain logs. For unattended runs pass --yes --instance <id> (and --key / $SOKKO_API_KEY).

Develop

pnpm install        # inside cli/
pnpm run build      # bundles to dist/cli.js
pnpm test           # vitest
pnpm typecheck      # tsc --noEmit
node dist/cli.js --help