Node SDK Reference
This page documents every class, type, and utility exported by @orga-ai/node. Use it when you need the exact signatures for minting ephemeral tokens, fetching ICE servers, or keeping your API key locked to the backend.
Sections
- Classes —
OrgaAIconstructor, methods, and lifecycle controls. - Types —
OrgaAIConfig,SessionConfig,IceServer, and error type definitions. - Errors — Exception hierarchy for authentication and server failures.
💡 Tip:
The Node SDK is the backbone for all client SDKs — it’s what your web and mobile apps call through your API route when they need ephemeral session credentials.
Structure
Each reference page covers:
- A concise description of the class, interface, or constant.
- Code examples in TypeScript/JavaScript.
- Detailed parameter and return value tables.
- Notes about error handling and configuration.
Runtime requirements
| Requirement | Details |
|---|---|
| Node.js ≥18 | Required for native fetch and AbortController. |
| Module system | Works with ESM or CommonJS (import or require). |
| Network access | Must allow outbound HTTPS to https://api.orga-ai.com. |
| Environment variables | ORGA_API_KEY (required). |
| Dependencies | None beyond Node’s built‑in APIs. |
Related material
- Node tutorial – build the secure proxy endpoint.
- Node architecture explanation – placement within the broader system.
- React client reference – how frontends consume the proxy output.
Next steps
Last updated on