Prerequisites
Before installing the III SDK, ensure you have the following prerequisites for your chosen language:- Node.js
- Python
- Rust
III Engine Setup
The III Engine should be running and accessible via WebSocket. By default, the engine runs on:Refer to the III Engine documentation for installation and setup instructions.
Installing the SDK
- Node.js
- Python
- Rust
Using npm
Using pnpm
Using yarn
Package Information
- Package Name:
iii-sdk - Current Version: 0.4.1
- Registry: npm
- License: Apache-2.0
Available Exports
The Node.js SDK provides multiple entry points:TypeScript Configuration
The SDK includes TypeScript definitions. Ensure yourtsconfig.json is configured for ES modules:Dependencies
The SDK includes the following key dependencies:ws- WebSocket client@opentelemetry/*- OpenTelemetry packages for observability
All dependencies are automatically installed when you install the SDK.
Environment Configuration
Setting the Engine URL
You can configure the III Engine URL using environment variables:Verifying Installation
Create a simple test to verify your installation:Troubleshooting
Connection refused or timeout errors
Connection refused or timeout errors
This usually means the III Engine is not running or not accessible.Solutions:
- Verify the engine is running: Check the engine process is active
- Check the URL: Ensure you’re using the correct WebSocket URL
- Check firewall: Ensure port 49134 is not blocked
- Check network: If using Docker, ensure proper network configuration
Module not found errors (Node.js)
Module not found errors (Node.js)
This can happen with ES module configuration.Solutions:
- Ensure your
package.jsonincludes"type": "module" - Use
.mjsfile extension for ES modules - Check your Node.js version is 20+
Import errors (Python)
Import errors (Python)
This can happen with virtual environment or Python path issues.Solutions:
- Activate your virtual environment
- Verify installation:
pip show iii-sdk - Reinstall:
pip install --force-reinstall iii-sdk - Check Python version:
python --versionshould be 3.10+
Compilation errors (Rust)
Compilation errors (Rust)
This can happen with Rust version or dependency issues.Solutions:
- Update Rust:
rustup update - Check Rust version:
rustc --versionshould be 1.85+ - Clean build:
cargo clean && cargo build - Update dependencies:
cargo update
OpenTelemetry errors
OpenTelemetry errors
Issues with telemetry exports or configuration.Solutions:
- Verify OpenTelemetry collector is running (if using one)
- Check OTLP endpoint configuration
- Disable telemetry temporarily to isolate the issue
- Check environment variables for OTEL configuration
Next Steps
Quickstart Guide
Build your first application with the III SDK
API Reference
Explore the complete API documentation
Examples
Browse complete example applications
Telemetry Setup
Configure OpenTelemetry for observability