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/sdk

v0.6.0

Published

Meego harness SDK for Feishu Project webhook events based on Hono

Readme

@meego-harness/sdk

Harness SDK for full-lifecycle Meego integrations.

What it does

  • builds on top of @meego-harness/event-sdk
  • composes @meego-harness/worker-sdk by default
  • records four event streams: meego, openapi, harness, worker
  • supports HITL storage in memory or sqlite
  • exposes a Node-only audited meegoClient

Install

pnpm add @meego-harness/sdk hono

Example

import { MeegoHarnessSDK } from '@meego-harness/sdk'

const sdk = new MeegoHarnessSDK({
  meego: {
    pluginId: process.env.MEEGO_PLUGIN_ID,
    token: process.env.MEEGO_WEBHOOK_TOKEN,
    pluginSecret: process.env.MEEGO_PLUGIN_SECRET,
  },
  openapi: {
    baseURL: process.env.MEEGO_BASE_URL,
  },
})

sdk.on('project-init', async (event) => {
  console.log(event.payload.id)
  console.log(event.payload.project_name)
})

console.log(sdk.listProjects())

await sdk.meegoClient.workItem.query({
  work_item_ids: [123456],
})

HITL sync to Meego work items

Use hitlSyncRules when a new HITL record should also create a Meego approval work item.

import { MeegoHarnessSDK } from '@meego-harness/sdk'

const sdk = new MeegoHarnessSDK({
  meego: {
    pluginId: process.env.MEEGO_PLUGIN_ID,
    token: process.env.MEEGO_WEBHOOK_TOKEN,
    pluginSecret: process.env.MEEGO_PLUGIN_SECRET,
  },
  projectInitRules: [
    {
      projectKey: 'meego-space-1',
      workItemTypeKey: 'story',
      templateId: '481329',
    },
  ],
  hitlSyncRules: [
    {
      projectKey: 'approval-space',
      workItemTypeKey: 'approval',
      templateId: '900001',
      type: 'worker-dispatch-blocked',
    },
    {
      projectKey: 'approval-space',
      workItemTypeKey: 'approval',
      type: 'worker-input-required',
    },
  ],
})

await sdk.createHitl({
  projectId: 7105803003,
  kind: {
    category: 'progression',
    type: 'worker-dispatch-blocked',
    reasonCode: 'manual-review-required',
  },
  title: 'Need release approval',
  summary: 'A human needs to confirm the release plan',
  operator: 'ou_xxx',
  context: {
    releaseId: 'release-42',
  },
  responseSpec: {
    required: false,
    allowedPartTypes: ['text'],
  },
})

Notes:

  • projectId is the harness project ID, not the Meego projectKey.
  • projectKey inside hitlSyncRules is the target Meego space key for the approval work item.
  • createHitl() should prefer explicit kind over legacy sourceType.
  • When operator is present, the SDK uses it as the audited OpenAPI user. To also write role_owners, configure hitlSyncRules[].roleOwnerRole with the target Meego role ID.
  • When operator is missing but the HITL has worker email context, the SDK searches Meego users by email and uses the exactly matched user_key.

OpenAPI client

  • accessor: sdk.meegoClient
  • base URL priority:
    • openapi.baseURL
    • process.env.MEEGO_BASE_URL
    • meeglesdk default
  • every outgoing Meego operation is recorded into the openapi stream

Manager-agent internal API

The remote manager WebSocket control plane has been removed. The gateway-owned manager-agent now runs in-process and calls MeegoHarnessSDK.executeManagerCommand and MeegoHarnessSDK.subscribeManagerEvent through a local control port. The worker server no longer accepts manager command or subscription frames.

OpenAPI whitelist env

  • env name: MEEGO_HARNESS_MANAGER_OPENAPI_WHITELIST
  • format: JSON array of action IDs
  • unset or []: manager can still use harness admin commands, but cannot invoke remote OpenAPI actions
  • invalid JSON, non-array values, or unknown action IDs fail fast during MeegoHarnessSDK initialization

Action IDs are derived from the actual sdk.meegoClient surface with kebab-case paths, for example:

  • openapi.get-base-url
  • openapi.work-item.query
  • openapi.work-item.comment.create