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

@meego-harness/event-sdk

v0.9.0

Published

Meego event webhook SDK based on Hono

Readme

@meego-harness/event-sdk

event-sdk is the raw Meego webhook layer. It verifies incoming webhook requests, deduplicates events by idempotent_key, maps event type codes to typed handlers, and exposes the underlying Hono app for embedding.

Use this package when you only need Meego webhook handling. Use @meego-harness/sdk when you also need harness projects, HITL, worker orchestration, storage, or audited OpenAPI calls.

Install

pnpm add @meego-harness/event-sdk hono

Basic Usage

import { MeegoEventSDK } from '@meego-harness/event-sdk'

const sdk = new MeegoEventSDK({
  pluginId: process.env.MEEGO_PLUGIN_ID,
  token: process.env.MEEGO_WEBHOOK_TOKEN,
  pluginSecret: process.env.MEEGO_PLUGIN_SECRET,
})

sdk.onWorkItemCreate((ctx) => {
  console.log(ctx.payload.name)
})

await sdk.listen(3000)

The default webhook path is /webhook; /health is registered on the same Hono app.

Embedding In Another Hono App

import { MeegoEventSDK } from '@meego-harness/event-sdk'
import { Hono } from 'hono'

const app = new Hono()
const sdk = new MeegoEventSDK({
  app,
  path: '/meego/webhook',
  pluginId: process.env.MEEGO_PLUGIN_ID,
  token: process.env.MEEGO_WEBHOOK_TOKEN,
})

sdk.onAny((ctx) => {
  console.log(ctx.header.event_type)
})

export default app

Event Handlers

The SDK exports typed payloads and handler helpers for work item, workflow node, task, space, and timed trigger events. Handlers can be registered with or without an EventFilter:

sdk.onWorkItemUpdate({ projectKey: 'example-space' }, async (ctx) => {
  console.log(ctx.header.uuid)
})

Use onAny() for audit or logging, and onError() for central handler error reporting.

Configuration

| Option | Meaning | | --- | --- | | pluginId | Required when token is set. Used in signature verification. | | token | Callback token from Meego event listener configuration. Enables signature verification when set. | | pluginSecret | Optional plugin secret kept for integrations that need it. | | path | Webhook path, default /webhook. | | app | Custom Hono instance for embedding. | | idempotencyStore | Optional custom idempotency store. | | idempotencyCapacity / idempotencyTTL | Defaults for the in-memory LRU idempotency store. | | enableLogger | Enables Hono request logging, default true. | | onSignatureError | Receives raw body and error text when signature verification fails. |

Boundaries

  • This package does not create harness projects or HITL records.
  • This package does not own worker transport.
  • This package does not call Meego OpenAPI.
  • Idempotency defaults to process memory; use a custom idempotencyStore for multi-process deployments.