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

@open-wa/integration-webhook

v5.0.0-alpha.7

Published

Webhook delivery integration plugin for open-wa

Downloads

871

Readme

@open-wa/integration-webhook

Webhook delivery integration plugin for open-wa

Part of the @open-wa v5 monorepo.

What it does

@open-wa/integration-webhook forwards public open-wa events to an external URL with HTTP POST. It supports event filtering, custom headers, request timeouts, retry with exponential backoff, and concurrent delivery through a queue.

Use this integration when another service should receive open-wa runtime events without embedding open-wa directly.

Configuration

The plugin config is validated by the plugin SDK schema in src/plugin.ts.

| Field | Required | Source-visible behavior | | --- | --- | --- | | url | Yes | Target URL for webhook delivery. Must be a URL. | | events | No | all or an array of event names. Defaults to all. Non-matching events are skipped. | | concurrency | No | Max concurrent deliveries. Defaults to 10. | | retries | No | Number of retry attempts after a failed delivery. Defaults to 3. | | retryDelay | No | Base retry delay in milliseconds. Defaults to 1000 and is exponentially backed off per attempt. | | headers | No | Additional headers merged into each request. | | timeout | No | Request timeout in milliseconds. Defaults to 30000. |

Each delivery also sends Content-Type: application/json.

Payload envelope

The payload shape is defined by WebhookPayload in src/config.ts and produced in src/plugin.ts.

| Field | Value | | --- | --- | | webhookId | A random UUID generated when the plugin initializes. | | sessionId | The current open-wa session ID from the plugin host. | | event | The event name received by the plugin. | | payload | The event payload received by the plugin. | | timestamp | Date.now() at delivery enqueue time. |

Runtime behavior

  • During initialization, the plugin creates a WebhookDeliverer, computes the allowed event set, and logs the configured target URL.
  • On each public event hook call, the plugin skips events outside the configured allowlist and enqueues the payload for delivery.
  • WebhookDeliverer posts JSON with native fetch and aborts requests with AbortController when the timeout elapses.
  • Non-2xx responses throw an error and enter the retry path.
  • Retry delay is retryDelay * 2 ** attempt until the configured retry count is exhausted.
  • Failed deliveries are logged after all attempts; the error is not rethrown from the final retry path.
  • On dispose, the plugin waits for the queue to become idle and logs that the queue drained.

Exports

  • Default export and webhookPlugin from src/plugin.ts.
  • WebhookDeliverer from src/deliverer.ts.
  • WebhookPluginConfig, WebhookConfig, Webhook, and WebhookPayload types.

Development

  • pnpm --filter @open-wa/integration-webhook build
  • pnpm --filter @open-wa/integration-webhook dev
  • pnpm --filter @open-wa/integration-webhook lint
  • pnpm --filter @open-wa/integration-webhook clean

Documentation

See the docs site.

License

H-DNH V1.0 - Hippocratic + Do Not Harm