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

@hey-hey/cli

v2.1.0

Published

Hey Hey Agent Bridge — a local CLI that runs agent coding sessions and bridges the Hey Hey platform with Claude Code.

Readme

Hey Hey CLI

Development

From this directory:

pnpm dev

This runs the local API server flow from source (tsx src/index.tsx). By default (heyhey with no command), the CLI starts the local server and waits until Ctrl+C.

Other useful dev scripts:

  • pnpm dev:build - TypeScript watch build to dist/
  • pnpm dev:run - run the CLI directly from source

Register heyhey command

From this directory:

pnpm run register

This builds dist/ and globally links the package so heyhey is available in your shell.

Verify

heyhey --help

Example invocation:

heyhey

Provider credential refresh:

heyhey credential refresh --provider codex --account default

Agent Auth Mode

Agent runs can authenticate in two ways:

  • Stored credential mode: if a credential exists for the selected provider/account, Hey Hey binds it and injects auth env vars for the provider CLI.
  • Native CLI auth mode: if no stored credential exists, Hey Hey launches the provider CLI without injected auth tokens so the CLI uses its own signed-in state (for example OAuth/login done directly in codex or claude).
  • Codex invocation compatibility: Hey Hey uses codex exec --full-auto --json ... (and codex exec resume --full-auto --json ...) so orchestrated runs avoid interactive approval gates while staying sandboxed.
  • Credential refresh command: use heyhey credential refresh --provider <claude|codex> [--account <accountId>] to store/replace provider API keys used by agent runs.

Agent Invocation Recovery Config

The CLI reads agent invocation recovery settings from:

  • HEYHEY_AGENT_INVOCATION_CONFIG_PATH (explicit file path), or
  • HEYHEY_CONFIG_DIR/agent-invocation.json, or
  • default config location:
    • macOS: ~/Library/Application Support/heyhey/agent-invocation.json
    • Linux: ~/.config/heyhey/agent-invocation.json
    • Windows: %APPDATA%\\heyhey\\agent-invocation.json

Example:

{
  "agentInvocation": {
    "errorVerbosity": "compact",
    "model": "claude-sonnet-4-6",
    "reasoningEffort": "medium",
    "retryPolicies": {
      "claude": {
        "maxAttempts": 4,
        "initialDelayMs": 300,
        "maxDelayMs": 5000,
        "multiplier": 2,
        "jitterRatio": 0.2
      },
      "codex": {
        "maxAttempts": 3,
        "initialDelayMs": 250
      }
    }
  }
}
  • model — default Claude model ID (e.g. claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5-20251001). Overridden per-run via the model field on LocalCreateRunRequest.
  • reasoningEffort — default reasoning effort (low, medium, high). Overridden per-run via reasoningEffort on LocalCreateRunRequest.

Cross-Service Review Workspace Flow

The local runtime now supports preparing a multi-repository review workspace for cross-service code review runs.

API integration points:

  • POST /api/local/system/review-workspace
    • Request body:
      • sessionId (string, required)
      • repositories (non-empty array)
        • serviceId (string, required)
        • serviceName (string, required)
        • repositoryPath (string, required)
    • Response body:
      • workspaceRoot
      • workspaceLayout ("symlink_tree")
      • allowedRepositoryRoots
      • links (service-to-symlink mapping)

Runtime behavior:

  1. The UI creates a coding session for cross-service review, then calls /api/local/system/review-workspace.
  2. The local server validates repository targets, canonicalizes roots, and creates a per-session symlink-tree workspace.
  3. The prepared workspace response is used to launch /api/local/runs with scope.mode="cross_service_review", workspaceRoot, and allowedRepositoryRoots.
  4. Run creation/recovery persists scope on the local run record.
  5. Runner execution resolves working directory from run scope:
    • default runs execute in the mapped service repository
    • cross-service review runs execute in the prepared symlink-tree workspaceRoot
  6. Prompt reference validation enforces that resolved references stay within the run's allowed repository roots.

Unregister

From this directory:

pnpm run unregister