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

@openhermit/channel-debox

v0.1.3

Published

OpenHermit channel plugin for Debox (bot API via webhook or long-polling).

Readme

Debox Channel Adapter

@openhermit/channel-debox connects an OpenHermit agent to Debox via the official bot API. The plugin is not bundled in the CLI — operators install it explicitly when they want Debox support.

v0.1 scope

  • Text inbound and outbound (markdown parse mode)
  • DMs (chat_type: private) and group chats (chat_type: group)
  • Both connection modes:
    • polling — long-poll /openapi/bot/getUpdates against Debox
    • webhook — Debox POSTs to a public URL on the gateway
  • Optional allow-lists (allowed_senders, allowed_group_ids)
  • /new command to start a fresh conversation in the current chat

Out of scope for v0.1: media uploads, inline-button callbacks, streaming edits, the setup wizard (use config-based provisioning for now).

Setup (operator)

  1. Open BotMother inside the Debox app (search address 0xda521900ac9dfeff8a8e692bb627ff8cd80a7b28) and create a bot. Set its name, avatar, and description.
  2. In Bot management, copy the bot's API Key (and optionally App Secret).
  3. Pick a mode:
    • polling: leave the webhook URL empty in the console.
    • webhook: configure an HTTPS URL pointing at your gateway (<public_gateway_url>/api/agents/<agent>/channels/debox/webhook).

Loading the plugin

Add the package to your gateway config:

// ~/.openhermit/gateway/config.json
{
  "channelPackages": ["@openhermit/channel-debox"]
}

Then install it next to the CLI:

npm install -g @openhermit/channel-debox

For monorepo dev, the workspace resolution handles it.

On gateway boot the plugin loader picks up the package via dynamic import and registers the debox manifest as an external origin. Owners add Debox per agent from the admin UI's "Add channel" picker.

Config shape

{
  "enabled": true,
  "api_key": "...",               // required
  "api_secret": "...",            // optional
  "base_url": "https://open.debox.pro", // optional override
  "mode": "polling",              // "polling" | "webhook"
  "webhook_url": "...",           // webhook mode only; derived from gateway public URL when absent
  "allowed_senders": ["u_..."],   // optional allow-list (sender IDs)
  "allowed_group_ids": ["gid"]    // optional allow-list (group IDs)
}

Standalone mode

@openhermit/channel-debox can also run as its own process talking to a remote OpenHermit gateway. Set the following env vars and run node dist/index.js:

DEBOX_API_KEY=...
DEBOX_API_SECRET=...                  # optional
DEBOX_MODE=polling                    # or "webhook"
DEBOX_WEBHOOK_URL=https://your.url    # webhook mode
DEBOX_WEBHOOK_PORT=8443               # webhook mode (when self-hosting the listener)
DEBOX_POLLING_INTERVAL=1000           # ms (polling mode)
OPENHERMIT_AGENT_URL=https://gateway.example/api/agents/<agent>
OPENHERMIT_AGENT_TOKEN=...            # the agent's `debox` token

Development

npm install
npm run typecheck
npm run build
npm test

The package depends on @openhermit/protocol and @openhermit/shared from the openhermit monorepo via local file: paths. To develop locally, clone openhermit as a sibling directory of this repo:

parent/
├── openhermit/
└── openhermit-channel-debox/    <- this repo

Once @openhermit/protocol and @openhermit/shared are published to npm, the file: references will be replaced with proper version ranges.

API references

License

MIT