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

opscms-openwa-plugin

v1.3.1

Published

Connect a WhatsApp number through the OpenWA bridge: pair by QR code or phone number, and manage the session and its webhooks, for an OpsCMS platform. Needs a platform that builds its admin with the package (the pairing panel is an admin component), so it

Readme

opscms-openwa-plugin

Connect a WhatsApp number through the OpenWA bridge. A channel plugin for the OpsCMS platform, built with opscms-sdk.

  • The WhatsApp channel: the platform's notification service asks it to send; it sends plain text through the OpenWA gateway. A site's official Meta number, when it has one, is tried first.
  • Session endpoints (/api/openwa/...): create a session, pair it by QR code or phone number, start it and log it out, and manage its webhooks. On the platform's shared gateway a site can only reach the sessions its own settings record, and a gateway address a site types in must be a public host.
  • Its own settings table, openwa-settings: the gateway address, the session and the key, for a site, an organization (used when a site has none) or the whole platform (used when neither has). Admins only; a site's admin never writes the platform-wide row. The key is encrypted and shown masked.
  • The pairing panel: an admin component on the settings form, with its style shipped inside it.
  • WhatsApp among the owner alerts: where a site's owner is told about new orders and leads.

Install

This plugin has an admin screen of its own (the pairing panel), and an admin component is compiled into the platform's admin when the platform is built. So it is added to the platform's build, not installed from the admin:

  1. Depend on the published, pinned version in the platform's package.json.
  2. In the platform's payload.config.ts, import openwaPlugin and add it to plugins after the platform's automation (which owns the notification settings).
  3. Run the platform's migrations: the plugin's one migration creates its table. Removing the plugin and running its down drops the table and the keys in it.

The platform currently carries this plugin in its own code under the same key; remove that copy when you add the package. The platform's seed for the OpenWA session-status webhook belongs to the platform's automation and stays there.

Needs

payload ^3, @payloadcms/ui ^3, react ^19 and opscms-sdk ^0.1.6.

Develop

npm install
npm run typecheck && npm test && npm run build && npm pack --dry-run

opscms-sdk is linked from a sibling checkout (file:../opscms-sdk) until it is published.