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

@easynet-run/node

v0.36.9

Published

EasyNet Axon Node.js SDK (sidecar-first with Dendrite bridge payload).

Readme


What is this?

This is the Node.js surface for Axon, a protocol-level control plane that treats agent capabilities as first-class network objects. Every ability you expose carries its own schema, trust posture, scheduling contract, and tenant isolation rules — enforced atomically at invocation time.

Axon collapses tenant isolation, rate limiting, policy evaluation, node selection, concurrency admission, and circuit breaking into a single atomic decision against the same state snapshot. No race window between policy check and routing.

The SDK ships a native Dendrite bridge binary (loaded via koffi) that provides protocol-complete Axon gRPC calls without gRPC codegen in JavaScript.

Install

npm install @easynet-run/node

Development

Runtime .js files and package-facing .d.ts files under src/ are generated from the TypeScript sources with tsc. Edit src/**/*.ts, then run:

npm run build
npm run generated:check

Do not hand-edit generated src/**/*.js or src/**/*.d.ts files.

Quick Start

Expose an ability

import { ability, serve } from "@easynet-run/node";

ability("easynet:///r/org/reg/agent.quote-bot/abilities/order.quote@1?tenant_id=tenant-test")
  .handle(async ({ sku, qty = 1 }) => ({ sku, price: 19.9 * qty }))
  .expose();

await serve("agent.quote-bot");

Invoke an ability

import { client } from "@easynet-run/node";

const res = await client()
  .tenant("tenant-test")
  .ability("easynet:///r/org/reg/agent.quote-bot/abilities/order.quote@1?tenant_id=tenant-test")
  .call({ sku: "A1", qty: 2 });

call() returns business payload (result_json). Use callAny() or callRaw() for stream/media-oriented non-object payloads.

Bootstrap a local runtime behind NAT

import { startServer } from "@easynet-run/node";

const srv = await startServer(undefined, {
  hub: "axon://hub.easynet.run:50084",
  hubTenant: "tenant-test",
  hubLabel: "alice-macbook",
});

No public IP required — the local runtime connects outbound to the Hub and receives federated invocations over that channel.

Sub-exports

| Path | Purpose | |---|---| | @easynet-run/node/presets/remote-control | Remote device orchestration presets | | @easynet-run/node/mcp | MCP stdio server and tool provider | | @easynet-run/node/tool-adapter | Ability → LLM tool schema conversion |

Capabilities

Core Protocol

  • Fluent builders.tenant().principal().ability().call() are immutable and chainable.
  • Native Dendrite bridgeDendriteBridge loads the platform C ABI via koffi; all Axon gRPC shapes (unary, server-stream, client-stream, bidi-stream) available without gRPC codegen.
  • Subject binding.principal(...) scopes invocation to a subject identity with automatic URI visibility mapping.

Ability Lifecycle

Full lifecycle management — not just invocation:

  • createAbility() / exportAbility() — define and register abilities with schemas
  • deployToNode() — install + activate on target nodes
  • listAbilities() / invokeAbility() / uninstallAbility()
  • discoverNodes() / executeCommand() / disconnectDevice() / drainDevice()
  • buildDeployPackage() / deployPackage() — packaging and deployment workflows

MCP & A2A Protocols

  • MCP serverStdioMcpServer hosts JSON-RPC 2.0 tool endpoints over stdio.
  • MCP operations — deploy, list, call, and update MCP tools on remote nodes.
  • A2A agent protocol — inter-agent discovery and task dispatch.
  • Tool adapterAbilityToolAdapter converts abilities to OpenAI/Anthropic/generic tool definitions; supports local handler registration with zero network overhead.

Voice & Media Signaling

First-class voice call lifecycle and transport negotiation (19+ FFI bindings):

  • Call management: create, join, leave, end, watch events, report metrics
  • Transport sessions: create, set description, add ICE candidates, refresh lease
  • Media path updates and codec negotiation

Federation

  • startServer() spawns a local Axon runtime and joins the Hub — all traffic is outbound.
  • Federated node discovery and cross-network invocation dispatch.

Remote Control & Orchestration

  • Subprocess template building, descriptor parsing, orchestrator factory.
  • Ability dispatch workflows with bundle reading and media persistence.
  • Deploy trace lifecycle tracking (PhasePhaseReceipt).

License

Apache-2.0 — see LICENSE.

Author

Silan Hu · [email protected]