Bridge Any Platform to Claude AI.

ORO Bridge SDK provides typed transport and high-level orchestration for building platform adapters that connect messaging platforms to Claude AI sessions via ORO Claude Bridge.

index.ts
import { createAdapterRuntime } from '@oro.ad/bridge-adapter-sdk'

const runtime = createAdapterRuntime({
  bridge: { url: 'http://localhost:3000' },
  platform: new MyPlatformAdapter(),
  formatter: new MyFormatter(),
  dataDir: './data',
})

await runtime.start()

Two packages, one system

    @oro.ad/bridge-sdk

    Low-level typed transport layer. REST API client for sessions, messages, and attachments. WebSocket client for real-time streaming events.

    @oro.ad/bridge-adapter-sdk

    High-level orchestration. Implements reconciliation, replay, deduplication, streaming, and persistent state management. Re-exports bridge-sdk.

    PlatformAdapter Interface

    Implement one interface to connect any messaging platform. Handles container lifecycle, message posting, attachment round-trip, and streaming.

    Semantic Blocks

    Platform-agnostic intermediate representation. Tool cards, text, code blocks, results — your Formatter renders them to platform-native markup.

    Persistent Store

    SQLite-backed session containers, message dedup maps, and replay cursors. Survives restarts and handles concurrent sessions.

    Turn Streaming

    TurnStreamer manages text deltas with throttled edits and graceful fallback. Native draft mode or send-then-edit — automatic per platform.