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

@nanobpm/nano-sdk

v1.2.0

Published

Drop-in replacement for @camunda8/orchestration-cluster-api that upgrades to the Nano Falcon protocol when connected to a Nano server.

Readme

@nanobpm/nano-sdk

A drop-in replacement for @camunda8/orchestration-cluster-api that transparently upgrades to Nano's falcon protocol when connected to a Nano server. Against stock Camunda 8 it behaves exactly like the upstream SDK.

- import { createCamundaClient } from "@camunda8/orchestration-cluster-api";
+ import { createCamundaClient } from "@nanobpm/nano-sdk";

Everything else is re-exported unchanged — same types, same client, same API.

What gets upgraded

When the client detects a Nano server, two hot paths move from REST onto a single persistent WebSocket (/falcon):

  • createProcessInstancecreateInstance frame, gated on the server's submission-credit window (with awaitCompletion resolved via instanceCompleted).
  • createJobWorkersubscribe + pushed job frames, acked with completeJob/failJob/throwError and credit-replenished.

This avoids the ~125 creates/s/conn ceiling of the REST long-poll path.

Detection & override

Detection is automatic: the SDK probes GET /v2/topology once and looks for the Nano falconPath advertisement. Control it via the CAMUNDA_TRANSPORT config (or env var):

| value | behaviour | | ---------------- | ------------------------------------------- | | auto (default) | falcon on Nano, REST elsewhere | | falcon | force the stream (assume Nano) | | rest | never upgrade — pure upstream behaviour |

const client = createCamundaClient({
  config: { CAMUNDA_REST_ADDRESS: "http://localhost:8080", CAMUNDA_TRANSPORT: "auto" },
});

Failing fast under backpressure (submitTimeoutMs)

On the Falcon protocol, admission backpressure is expressed by the server withholding submission credits (no 503, no retry), so a createProcessInstance otherwise waits indefinitely for the gateway to ack. To fail fast instead, set a submit timeout — per call, or client-wide via config/env:

// Client-wide default (ms); per-call submitTimeoutMs wins when both are set.
const client = createCamundaClient({
  config: { CAMUNDA_REST_ADDRESS: "http://localhost:8080", CAMUNDA_NANO_SUBMIT_TIMEOUT_MS: 2000 },
});

import { SubmissionTimeoutError } from "@nanobpm/nano-sdk";

try {
  await client.createProcessInstance({ processDefinitionId: "order", submitTimeoutMs: 500 });
} catch (err) {
  if (err instanceof SubmissionTimeoutError) {
    // Server is applying admission backpressure — back off, do NOT tight-loop retry.
  }
}

submitTimeoutMs is a client-side guard: the SDK gates each create on the server's submission-credit window (queuing client-side under backpressure rather than flooding the gateway), and this bounds how long it waits for a credit before rejecting with SubmissionTimeoutError. It is never sent on the wire. On timeout the queued create is dropped so no credit slot leaks. Omit it (the default) to wait indefinitely.

Build & verify

npm install
npm run build
npm run verify   # against a running Nano server on :8080

upstream-ref/ holds the cloned upstream SDK source for reference; the published package is the thin wrapper in src/.