Official examples for the iii engine.
Install the iii engine:
curl -fsSL https://install.iii.dev/iii/main/install.sh | shVerify:
iii --version| 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) |
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- Workers connect to the iii engine via WebSocket
- Functions are registered with the engine
- Triggers (HTTP, cron, queue, stream) invoke functions
| 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 |
Apache 2.0