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

@arbiterflow/client

v1.0.0

Published

Backend SDK for ArbiterFlow. Fire triggers, register dispatch handlers, and manage workflows.

Downloads

676

Readme

@arbiterflow/client

Backend SDK for ArbiterFlow. Fire triggers, execute your own node types through a dispatch handler, and manage workflows, runs, secrets, and connectors from your server.

Install

npm install @arbiterflow/client

Ships ESM and CJS builds with bundled type declarations. Node 18.17 or newer.

For embedding the editor alongside this SDK, see the integration guide.

Usage

import { createArbiterFlowClient } from "@arbiterflow/client";

const af = createArbiterFlowClient({
  apiKey: process.env.AF_API_KEY!,
  projectId: "proj_main",
  dispatchSecret: process.env.AF_DISPATCH_SECRET,
});

serverUrl defaults to https://arbiterflow-api.solopress.ai; self-hosters pass their own.

await af.triggers.fire("livechat.conversation_escalated", {
  conversationId: "conv_123",
});

createArbiterFlowClient returns namespaced groups: workflows, runs, triggers, hooks, nodes, secrets, connectors, analytics, and dispatch.

Dispatch handlers

Dispatch is how ArbiterFlow calls back into your application to execute a node. Requests are signed, so the handler takes the raw request body plus the x-af-signature header and verifies it before invoking your callback.

Framework adapters handle that plumbing:

import { createExpressDispatchHandler } from "@arbiterflow/client/express";

app.post(
  "/arbiterflow/dispatch",
  express.text({ type: "*/*" }),
  createExpressDispatchHandler(options, async ({ nodeType, input, config }) => {
    switch (nodeType) {
      case "billing.charge":
        return { output: await charge(input) };
      default:
        return { error: `unknown node type: ${nodeType}`, status: 400 };
    }
  })
);

Available adapters:

| Import | Export | |---|---| | @arbiterflow/client/express | createExpressDispatchHandler(options, fn) | | @arbiterflow/client/fastify | createFastifyDispatchHandler(options, fn) | | @arbiterflow/client/hono | mountHonoDispatch(app, path, options, fn) |

On any other framework, use the core primitive directly:

const handler = af.dispatch.handler(async (envelope) => ({ output: {} }));
const { status, body } = await handler(rawBody, signatureHeader);

Signature verification requires the raw, unparsed body — make sure your framework is not JSON-parsing it first.

Webhook signatures

signWebhookBody is exported for verifying or generating signatures yourself.

License

MIT