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

@dougvk/askpi

v0.3.1

Published

OpenClaw askpi plugin: per-chat Pi RPC + tmux sessions with handoff/resume/reset/new workflow.

Readme

@dougvk/askpi

OpenClaw plugin that runs one Pi coding runtime per chat session, backed by dedicated tmux sessions and callback delivery.

Commands

  • /askpi help
  • /askpi status
  • /askpi new [abs path]
  • /askpi <prompt>
  • /askpi stop
  • /askpi reset
  • /askpi handoff
  • /askpi resume

Command Behavior

  • /askpi help: shows command usage for this plugin.
  • /askpi status: returns a single status mode tailored to askpi RPC/tmux session state.
  • /askpi new [abs path]: archives prior session state and starts a fresh session id.
  • /askpi <prompt>: sends a prompt to Pi; if Pi is already streaming, the message is queued as a follow-up.
  • /askpi stop: stops the active tmux session for this chat and clears in-flight runtime state.
  • /askpi reset: keeps the current session id and restarts runtime state.
  • /askpi handoff: switches the chat session into interactive Pi TUI handoff and returns attach/resume instructions.
  • /askpi resume: restarts Pi RPC automation for the same chat session after handoff/manual use.

Requirements

  • tmux available on PATH.
  • OpenClaw gateway with this plugin enabled.
  • OPENCLAW_STATE_DIR (or CLAWDBOT_STATE_DIR) must be explicitly set to a dedicated state root.
  • Dedicated askpi tmux socket env must be set (OPENCLAW_ASKPI_TMUX_SOCKET_PATH recommended).
    • Plugin load fails with a helpful error if isolation env is missing.

Install

Local tarball (recommended while private)

npm pack
openclaw plugins install ./dougvk-askpi-<version>.tgz

npm spec (private package)

openclaw plugins install @dougvk/askpi@<version>

Config

Plugin manifest config schema is in openclaw.plugin.json.

Required:

  • token: shared secret used by /askpi/notify for runtime command flows.

Install note:

  • Plugin installation can succeed without token, but new/send/reset/resume will return missing_token until configured.

Optional highlights:

  • tmuxPrefix
  • httpPath
  • deliveryResolvers

State Layout And Isolation

askpi stores session state under the agent root directory:

  • <agentRoot>/askpi/<session-hash>.json
  • <agentRoot>/askpi/<session-hash>/pi-session/
  • <agentRoot>/askpi/archive/*.json

Compatibility note:

  • If <agentRoot>/coding-sessions exists, askpi will use/migrate that legacy layout.

askpi does not currently expose a plugin config key to move these paths directly; isolate by choosing a dedicated agent root and tmux socket.

Recommended setup:

{
  "plugins": {
    "entries": {
      "askpi": {
        "enabled": true,
        "config": {
          "token": "<set-a-real-token>",
          "tmuxPrefix": "clawd-pi-prod"
        }
      }
    }
  }
}

Set a dedicated tmux socket (example):

export OPENCLAW_ASKPI_TMUX_SOCKET_PATH=/srv/openclaw/state/askpi-prod/tmux/askpi.sock

Best practices:

  • Keep a unique agent root per environment for askpi state isolation.
  • Keep askpi tmux socket separate from default tmux sockets.
  • Use restrictive permissions on state/sockets.
  • Configure session.store globally if you want session-delivery metadata in a dedicated path.

Tests

npm test