iii Examples
February 26, 2026 ยท View on GitHub
Official examples for the iii engine.
Prerequisites
Install the iii engine:
curl -fsSL https://install.iii.dev/iii/main/install.sh | sh
Verify:
iii --version
Examples
| Example | Description |
|---|---|
| api-frameworks-orchestration | Run 4 API frameworks (Express, Fastify, Hono, Koa) in a single file |
| api-frameworks-workers | Run 4 API frameworks as separate workers |
| api-frameworks-auto-register | Auto-registration + shared context (logging, state, request tracking) |
| iii-vs-traditional | Side-by-side: connect a Python service with iii (~120 lines) vs traditional gateway (~465 lines) |
Quick Start
git clone https://github.com/iii-hq/iii-examples.git
cd iii-examples
cd examples/api-frameworks-orchestration
npm install
# Start the iii engine in a separate terminal
iii
# Run the example
npm run dev
How It Works
- Workers connect to the iii engine via WebSocket
- Functions are registered with the engine
- Triggers (HTTP, cron, queue, stream) invoke functions
SDK Quick Reference
| SDK | Init | Connect |
|---|---|---|
| Node.js | const iii = init('ws://localhost:49134') | Auto on init() |
| Python | iii = III('ws://localhost:49134') | await iii.connect() required |
| Rust | let iii = III::new("ws://127.0.0.1:49134") | iii.connect().await? required |
Resources
License
Apache 2.0