Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

iii-sdk-reference

FreeNo executable scriptsNot checked

Use when working with iii SDK APIs across Node.js, browser, Python, Rust, or Go: package installation, worker initialization, function registration, calling…

iii-hqby iii-hq★ 18,978 GitHub stars

About this skill

SDK Reference

Use this skill for language-specific SDK details. Use iii-core-primitives for the common model and iii-error-handling for exception handling.

Install

# TypeScript / Node.js
npm install iii-sdk

# Browser apps
npm install iii-browser-sdk

# Python
pip install iii-sdk

# Rust
cargo add iii-sdk

# Go
go get github.com/iii-hq/iii/sdk/packages/go/iii

Choose the SDK

SDK Package Best for Important caveat
Node.js iii-sdk Server-side TypeScript/JavaScript workers Supports custom headers, Logger, OpenTelemetry
Browser iii-browser-sdk Web apps and interactive UI callbacks Connect through the rbac-proxy worker's public port, never the engine port; keep secrets server-side
Python iii-sdk Sync or async Python workers Use call_async inside async handlers
Rust iii-sdk High-performance tokio workers Handler error type should map into iii_sdk::Error
Go github.com/iii-hq/iii/sdk/packages/go/iii Go services Handlers take (ctx, json.RawMessage); pass the handler's ctx to Call

Logger/OpenTelemetry, HTTP request/response types, stream, queue, and worker-connection types live in the helpers package, installed alongside the SDK: @iii-dev/helpers (Node, with submodules like /observability and /http) or iii-helpers (Python iii_helpers.*, Rust iii_helpers::*).

Common API Map

Capability Node / browser Python Rust Go
Connect worker registerWorker(url, options?) register_worker(address, options?) register_worker(url, InitOptions) iii.RegisterWorker(url, opts...)
Register local function registerFunction(id, handler, options?) register_function(id, handler, **options) register_function("id", RegisterFunction::new(...)) client.RegisterFunction(id, handler, opts...)
Call a function call({ function_id, payload }) call(request) / call_async(request) call(CallRequest::new(id, payload)) client.Call(ctx, iii.CallRequest{...})
Durable enqueue CallAction.Enqueue({ queue }) {"type": "enqueue", "queue": name} CallAction::Enqueue { queue } iii.EnqueueAction(queue)
Fire and forget CallAction.Void() {"type": "void"} CallAction::Void iii.VoidAction()
Observe a function observe(source, target, options?); observe('fn::id', target) observe(source, target, options) observe(Source::function(id)..., target) / observe_with(.., ObserverOptions) client.Observe(iii.Source{...}, target, opts...) / client.ObserveFunction(id, target)
Function options for observers { args_format, private, observable } args_format=, private=, observable= .args_format::<T>().private().observable(false) iii.FunctionOptions{ArgsFormat, Private, ...}
Observer hooks, one function iii.onObserverAdded(id, h), onObserverRemoved(id, h), onObservationMatch(id, m), onObservationDeliver(id, h), or the same on the FunctionRef @iii.on_observer_added(id), @ref.on_observer_removed, ref.on_observation_match(m), ref.on_observation_deliver(h) on_observer_added_for(id, h), on_observer_removed_for(id, h), on_observation_match_for(id, m), on_observation_deliver_for(id, h), or function.on_observer_added(h) client.OnObserverAddedFor(id, h), OnObserverRemovedFor, OnObservationMatchFor, OnObservationDeliverFor, or ref.OnObserverAdded(h)
Observer hooks, every function iii.onObserverAdded(h), iii.onObserverRemoved(h) @iii.on_observer_added, @iii.on_observer_removed on_observer_added(h), on_observer_removed(h) client.OnObserverAdded(h), client.OnObserverRemoved(h)
Match observers to calls onObservationMatch(id, (obs, call) => boolean) or onObservationMatch(id, { observer, call }) on_observation_match(id, predicate) or on_observation_match(id, observer=, call=) Match::predicate(f) or Match::keys(observer_keys, call_keys) iii.MatchFunc(f) or iii.MatchKeys(observerKeys, callKeys)
Call through an observer (no metadata) call({ observer: obs, payload }) call_async({"observer": obs, "payload": p}) call(CallRequest::observer(&obs, payload)) client.Call(ctx, iii.CallRequest{Observer: obs, Payload: p})
Current invocation currentInvocation() current_invocation() iii_sdk::current_invocation() iii.InvocationFromContext(ctx)
Stream data a source or a sink in payload or in the result; the other side gets InputStream / OutputStream (iii-sdk, iii-browser-sdk; the browser takes Web streams, Blob, and File) the same; InputStream.from_file(path), OutputStream.to_file(path) (iii) InputStream::from_reader(r), OutputStream::to_writer(w) fields (iii_sdk) iii.InputStreamFromReader(r), iii.OutputStreamToWriter(w); *iii.InputStream / *iii.OutputStream fields
Explicit pipe `await iii.pipe(
Full SKILL.md on GitHub

Install iii-sdk-reference in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the iii-sdk-reference skill do?

Use when working with iii SDK APIs across Node.js, browser, Python, Rust, or Go: package installation, worker initialization, function registration, calling functions, observers and observer hooks, local dispatch, streams, logging, OpenTelemetry, and language-specific caveats.

How do I install the iii-sdk-reference skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the iii-sdk-reference skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare iii-sdk-reference with