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

@twsxtd/hapi-openclaw

v0.1.8

Published

Native OpenClaw plugin that bridges HAPI to the OpenClaw Gateway route surface.

Downloads

554

Readme

@twsxtd/hapi-openclaw

Native OpenClaw plugin adapter for HAPI integration work.

This package installs as an OpenClaw native plugin and exposes the HAPI-facing /hapi/* route surface from inside the OpenClaw Gateway. V1 now creates or resumes real OpenClaw sessions, starts real embedded-agent runs, and forwards real assistant transcript messages back into HAPI. Approval bridging is still deferred.

What it does:

  • exposes /hapi/health and /hapi/channel/* through api.registerHttpRoute(...)
  • enforces plugin-managed bearer auth
  • signs callback events back to HAPI
  • derives deterministic OpenClaw session keys from HAPI namespace + user key
  • starts real OpenClaw embedded-agent runs for send-message
  • bridges assistant transcript text updates into HAPI message / state callbacks
  • returns 501 for approval endpoints until the real approval bridge lands
  • records real transcript-update payloads to plugin state when prototypeCaptureSessionKey is configured

Plugin config lives under plugins.entries.hapi-openclaw.config in OpenClaw config:

  • hapiBaseUrl base URL for HAPI hub callbacks
  • sharedSecret shared secret used for HAPI bearer auth and callback signing
  • namespace optional callback namespace override, default default
  • prototypeCaptureSessionKey optional session key whose transcript updates should be captured for real-runtime inspection
  • prototypeCaptureFileName optional JSONL file name under plugin state, default transcript-capture.jsonl

Install from npm:

openclaw plugins install @twsxtd/hapi-openclaw
openclaw gateway restart

Publish from this repo:

cd openclaw-plugin
npm publish --access public

Local packaging smoke test:

cd openclaw-plugin
npm pack --dry-run

Example OpenClaw config:

{
    "plugins": {
        "entries": {
            "hapi-openclaw": {
                "enabled": true,
                "config": {
                    "hapiBaseUrl": "http://127.0.0.1:3006",
                    "sharedSecret": "test-secret",
                    "namespace": "default",
                    "prototypeCaptureSessionKey": "agent:main:hapi-openclaw:default:debug-user"
                }
            }
        }
    }
}

Current milestone note:

  • HAPI official mode should point OPENCLAW_PLUGIN_BASE_URL at the OpenClaw Gateway base URL
  • the plugin route surface is native now
  • ensure-default-conversation and send-message use the real OpenClaw runtime now
  • assistant replies in HAPI come from real OpenClaw transcript updates, not mock text
  • approval request / approve / deny bridging is still not implemented in this milestone