MCPInstall
iii-hq/iii avatar

iii-node-sdk

Node.js/TypeScript SDK for the iii engine. Use when building workers, registering functions, or invoking triggers in TypeScript or JavaScript.

Installs
193
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/iii-hq/iii --skill iii-node-sdk
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads iii-node-sdk automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Node.js SDK

The TypeScript/JavaScript SDK for connecting workers to the iii engine.

Documentation

Full API reference: https://iii.dev/docs/api-reference/sdk-node

Install

npm install iii-sdk

Key APIs

APIPurpose
registerWorker(url, { workerName })Connect to the engine and return the iii client
iii.registerFunction(id, handler, options?)Register a local async function handler
iii.registerFunction(id, httpConfig, options?)Register an HTTP-invoked external function
iii.registerTrigger({ type, function_id, config, metadata? })Bind a trigger to a function (with optional metadata)
iii.trigger({ function_id, payload, action? })Invoke a function
TriggerAction.Void()Fire-and-forget invocation mode
TriggerAction.Enqueue({ queue })Durable async invocation mode
LoggerStructured logging
withSpan, getTracer, getMeterOpenTelemetry instrumentation
iii.createChannel()Binary streaming between workers
iii.createStream(name, adapter)Custom stream implementation
iii.registerTriggerType(id, handler)Custom trigger type registration

RBAC Auth Result Fields

When implementing an auth function for RBAC workers, the AuthResult supports:

FieldPurpose
allowed_functions: string[]Additional function IDs to allow
forbidden_functions: string[]Function IDs to deny (overrides expose_functions)
allowed_trigger_types?: string[]Trigger types the worker may register
allow_trigger_type_registrationWhether the worker can register new trigger types
function_registration_prefix?Prefix applied to functions registered by worker
context: Record<string, unknown>Arbitrary context forwarded to middleware/handlers

Browser SDK

For browser environments, use iii-browser-sdk (same API, adapted for browser WebSocket constraints). See iii-browser-sdk skill for details.

Pattern Boundaries

  • For usage patterns and working examples, see iii-functions-and-triggers
  • For HTTP endpoint patterns, see iii-http-endpoints
  • For HTTP middleware patterns, see iii-http-middleware
  • For browser-side usage, see iii-browser-sdk
  • For Python SDK, see iii-python-sdk
  • For Rust SDK, see iii-rust-sdk

When to Use

  • Use this skill when the task is primarily about iii-node-sdk in the iii engine.
  • Triggers when the request directly asks for this pattern or an equivalent implementation.

Boundaries

  • Never use this skill as a generic fallback for unrelated tasks.
  • You must not apply this skill when a more specific iii skill is a better fit.
  • Always verify environment and safety constraints before applying examples from this skill.

FAQ

What does the iii-node-sdk skill do?

Node.js/TypeScript SDK for the iii engine. Use when building workers, registering functions, or invoking triggers in TypeScript or JavaScript.

How do I install iii-node-sdk?

Run npx skills add https://github.com/iii-hq/iii --skill iii-node-sdk in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/iii-node-sdk/ (personal) or .claude/skills/iii-node-sdk/ (project).

Which AI agents can use iii-node-sdk?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is iii-node-sdk safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains iii-node-sdk?

It is published by iii-hq/iii in iii-hq/iii. It has 193 recorded installs.

More from iii-hq/iii

View all →

Configure a managed iii engine through worker-compose.yaml or a directly supervised engine through config.yaml. Use for engine ports, RBAC via the rbac-proxy worker, observer limits, streams, sandboxes, and configuration storage.

5.5K installs

Install the iii engine, set up your first worker, and get a working backend running. Use when a user wants to start a new iii project, install the SDK, or needs help with initial setup and configuration.

Backend & APIs5.5K installs

Handle iii engine and SDK errors across Node, Python, Rust, and browser workers. Use when interpreting error codes, retryability, RBAC denial, timeouts, handler failures, or SDK-specific exception surfaces.

Backend & APIs5.3K installs

Use when composing iii primitives into backend architectures: durable workflows, reactive backends, observer side effects, agentic pipelines, event-driven CQRS, effect pipelines, and trigger-transform-action automation.

Use when working with iii SDK APIs across Node.js, browser, Python, Rust, or Go: package installation, worker initialization, function/trigger registration, observers, invocation, local dispatch, channels, logging, OpenTelemetry, and language-specific caveats.

Backend & APIs5.2K installs

Use when registering iii functions, binding triggers, observing functions, selecting sync/void/enqueue invocation, creating workers, inspecting the live worker registry, installing registry workers, authoring event sources, moving channel data, or adapting external HTTP functions across TypeScript, Python, and Rust.

Backend & APIs5.2K installs

Popular code quality & workflow skills

View category →
mattpocock avatar

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

mattpocock avatar

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

mattpocock avatar

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

mattpocock avatar

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

mattpocock avatar

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.