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.43.3

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

Platform / Native Bundle Notes

  • The published npm artifact currently comes from the Linux x86_64 SDK pack, so the embedded native file is host-matched to that pack.
  • If you need other native targets (iOS/Android/macOS/Linux arm64/Windows), use the target SDK pack from GitHub Releases:
    • sdk-packs-<target>.tar.gz
    • extract the node/ directory and install the *.tgz artifact from that directory.
  • For local source development:
    • SDK_VERSION=<version> (optional; resolver checks this and then fallback 0.1.0 in the same root)
    • EASYNET_DENDRITE_BRIDGE_LIB can force an explicit native path.
    • EASYNET_DENDRITE_BRIDGE_HOME=<pack-root> can be set to a shared extracted SDK pack path that contains native/.
    • set EASYNET_DENDRITE_BRIDGE_SOURCE=local if you want preset/CLI helpers to auto-probe local source-tree bridge artifacts.
    • EASYNET_DENDRITE_BRIDGE_PLATFORM=ios|android|linux|windows|macos if host/build target mismatch (for example macOS host + iOS pack).
  • For macOS-hosted iOS dev workflows, prefer a pack-native .a and explicit EASYNET_DENDRITE_BRIDGE_LIB path binding.

Target examples:

  • macOS arm64: sdk-packs-aarch64-apple-darwin.tar.gz
  • macOS x86_64: sdk-packs-x86_64-apple-darwin.tar.gz
  • iOS arm64 simulator/device: sdk-packs-aarch64-apple-ios.tar.gz
  • iOS x86_64 simulator: sdk-packs-x86_64-apple-ios.tar.gz
  • Android arm64: sdk-packs-aarch64-linux-android.tar.gz
  • Linux arm64: sdk-packs-aarch64-unknown-linux-gnu.tar.gz
  • Linux x86_64: sdk-packs-x86_64-unknown-linux-gnu.tar.gz
  • Windows x64: sdk-packs-x86_64-pc-windows-msvc.tar.gz

Development

Runtime .js files and package-facing .d.ts files under src/ are generated locally from the TypeScript sources with tsc, but they are intentionally gitignored and must not be committed. Edit src/**/*.ts, then run:

npm run build
npm run generated:check

npm pack and git-based installs run prepare/prepack, so published tarballs still include the generated runtime 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:

  • buildAbilityDescriptor() / 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.
  • Preset status: the dedicated federation preset helper is currently Python-only; Node exposes federation through runtime bootstrap and transport-facing APIs.

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]