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

@askman-dev/bricks-openclaw-plugin

v0.1.0

Published

Reference pull-only OpenClaw plugin runtime for Bricks platform APIs

Downloads

89

Readme

@askman-dev/bricks-openclaw-plugin

@askman-dev/bricks-openclaw-plugin is the Bricks channel plugin for OpenClaw.

  • Canonical channel/plugin id: dev-askman-bricks (must stay unchanged)
  • Distribution target: npm + ClawHub
  • Runtime mode: pull-only Bricks event runner managed by OpenClaw gateway

Public install flow (external users)

Install from package registry (OpenClaw resolves ClawHub first, then npm):

openclaw plugins install @askman-dev/bricks-openclaw-plugin
openclaw gateway restart

Inspect the installed plugin metadata:

openclaw plugins inspect dev-askman-bricks

Development-only local install is still supported, but external users should prefer package install instead of cloning this repository.

Configure / onboarding flow

After install, run one of:

openclaw onboard
# or
openclaw configure

Choose dev-askman-bricks (Bricks), then provide:

  • BRICKS_BASE_URL
  • BRICKS_PLUGIN_ID (normally dev-askman-bricks)
  • BRICKS_PLATFORM_TOKEN

Equivalent direct config commands:

openclaw config set channels.dev-askman-bricks.BRICKS_BASE_URL https://your-bricks-api.example.com
openclaw config set channels.dev-askman-bricks.BRICKS_PLUGIN_ID dev-askman-bricks
openclaw config set channels.dev-askman-bricks.BRICKS_PLATFORM_TOKEN 'your-jwt-token'
openclaw config validate
openclaw gateway restart

Update flow

Update an existing installation:

openclaw plugins update dev-askman-bricks
openclaw gateway restart

If you changed channel credentials or endpoint, re-run openclaw configure (or openclaw config set ...) and then restart gateway.

Runtime behavior summary

When OpenClaw gateway starts/restarts, the plugin runner is host-managed:

  1. Starts on gateway account lifecycle (startAccount)
  2. Polls GET /api/v1/platform/events
  3. ACKs events via POST /api/v1/platform/events/ack
  4. Hands user messages to OpenClaw inbound/session pipeline
  5. Writes assistant output via POST/PATCH /api/v1/platform/messages
  6. Stops gracefully on gateway shutdown via AbortSignal

Troubleshooting

Plugin installed but channel not responding

  • Verify config exists under channels.dev-askman-bricks.
  • Validate config and restart gateway:
openclaw config validate
openclaw gateway restart

Auth / token errors

The plugin validates platform token claims at startup (typ=platform_plugin, matching pluginId, and required userId). Regenerate token if claims are invalid.

Packaging caveat

openclaw plugins install uses npm install --ignore-scripts. Do not rely on npm postinstall to write configuration; always configure via OpenClaw onboarding/config commands.

Development-only local flow

Use local path or linked install only while developing this repository:

openclaw plugins install ./apps/node_openclaw_plugin
# or
openclaw plugins install -l ./apps/node_openclaw_plugin
openclaw gateway restart

Standalone runner debug (outside gateway lifecycle):

cd apps/node_openclaw_plugin
npm install
npm run build
npm start

Optional runtime environment variables

| Variable | Required | Description | |---|---|---| | OPENCLAW_PLUGIN_POLL_INTERVAL_MS | No | Poll interval in ms (default 2000) | | OPENCLAW_PLUGIN_DEFAULT_CURSOR | No | Initial cursor (default cur_0) | | OPENCLAW_PLUGIN_STATE_FILE | No | Local state file path (default ~/.bricks/node_openclaw_plugin_state.json) | | OPENCLAW_PLUGIN_ASSISTANT_NAME | No | Assistant name in output messages (default Node OpenClaw Plugin) |