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

@panitw/todo4-openclaw-plugin

v0.5.0

Published

OpenClaw plugin that onboards Todo4 from chat and ships an MCP-aware work skill.

Readme

todo4-openclaw-plugin

OpenClaw plugin that onboards Todo4 from chat and ships an MCP-aware work skill.

What it does

  • Onboards Todo4 from chat via four agent tools — email → OTP → agent connection, no browser or password required.
  • Wires up the Todo4 MCP server — writes the server entry into ~/.openclaw/openclaw.json (under mcp.servers.todo4) (deep-merge, preserves other servers) and stores the agent token in ~/.openclaw/.env.
  • Bundles two skills — installed to ~/.openclaw/skills/ on plugin load:
    • todo4-onboard — the interview flow (email → OTP → connect) the agent runs when the user asks to "set me up with Todo4".
    • todo4-work — tells the agent which Todo4 MCP tools to call (and which not to reach for) when the user asks task-related things.

This complements the existing openclaw-onboard skill on ClawHub: that skill drives a conversational onboarding interview using bash scripts; this plugin exposes the same flow as typed agent tools so other skills/agents can invoke them programmatically.

Install

openclaw plugins install does not accept raw GitHub URLs. Pick one of the supported install specs:

a. From ClawHub (once published)

openclaw plugins install clawhub:@panitw/todo4-openclaw-plugin

b. From npm (once published)

openclaw plugins install @panitw/todo4-openclaw-plugin

c. From a local clone (for development or install-from-source)

git clone https://github.com/panitw/todo4-openclaw-plugin
cd todo4-openclaw-plugin
npm install
openclaw plugins install --link "$(pwd)"

Then, in all three cases, restart the gateway so the plugin's register() runs and the bundled todo4-work skill lands in ~/.openclaw/skills/:

openclaw gateway restart

Verify

openclaw plugins list | grep todo4
openclaw skills list  | grep todo4-work

Usage

In chat, trigger onboarding by saying any of:

  • "Run the todo4-onboard skill" (uses the existing ClawHub skill if installed)
  • "Use todo4_register to sign me up — my email is [email protected]" (calls the plugin tool directly)

The flow asks for your email, sends a one-time code, verifies it, and connects this OpenClaw instance as your Todo4 agent. Restart OpenClaw afterwards (or reload the MCP config) so the new MCP server is picked up.

Tools exposed to the agent

| Tool | Purpose | |---|---| | todo4_register | Send a one-time code to the user's email. | | todo4_verify_otp | Verify the code and return an ephemeral accessToken. | | todo4_connect | Register this OpenClaw instance as a Todo4 agent. Writes MCP config + .env token. Returns a one-time webLoginUrl for the user. | | todo4_status | Report whether MCP is configured, token is present, and the API is reachable. |

Bundled skills

| Skill | Where | Loads when | |---|---|---| | todo4-onboard | ~/.openclaw/skills/todo4-onboard/SKILL.md (installed by this plugin) | The user asks to sign up for, install, connect, or get started with Todo4. | | todo4-work | ~/.openclaw/skills/todo4-work/SKILL.md (installed by this plugin) | The user mentions Todo4, their tasks, planning, or triage. |

Environment

| Variable | Default | Purpose | |---|---|---| | TODO4_API_URL | https://todo4.io/api/v1 | Todo4 API base. Override for staging. | | OPENCLAW_HOME | ~/.openclaw | OpenClaw config root. Override for isolated testing. | | TODO4_AGENT_TOKEN | (set by the plugin) | Agent bearer token, stored in $OPENCLAW_HOME/.env. |

Security

| What the plugin does | With | |---|---| | Calls POST /auth/register-passwordless | User email only | | Calls POST /auth/verify-otp | Email + 6-digit code | | Calls POST /auth/agent-connect | Access-token JWT (ephemeral, 1-hour expiry) | | Writes MCP server entry into $OPENCLAW_HOME/openclaw.json under mcp.servers.todo4 | Merge, preserves every other key in the config | | Writes agent token to $OPENCLAW_HOME/.env | As TODO4_AGENT_TOKEN=..., file mode 0o600 |

The MCP entry stores the authorization header as Bearer ${TODO4_AGENT_TOKEN} — the raw agent token only lives in .env, never in openclaw.json.

Tool handlers never throw, never log secrets, and never return raw tokens in their response payload.

Development

npm install
npx tsc --noEmit

(There's no build step at runtime — OpenClaw loads the .ts files directly via its plugin SDK loader.)

License

MIT — see LICENSE.