Skip to content
cable
Esc
navigateopen⌘Jpreview
On this page

cable

Define procedures and durable typed channels once, then use them from your server and TypeScript client.

cable is a TypeScript library for procedures and durable typed channels on actor runtimes. Define the API in a shared contract. Your server implements its leaves, and your client calls the same leaves with inferred inputs, outputs, and declared failures.

Start with the small procedure flow, then add an authenticated Cloudflare host and a room channel when the application needs live state.

Start here

Choose your next guide

  • Authorization shows context refinement with public, protected, and admin procedures.
  • React adds cable to a React component tree.
  • Channels explains channel keys, events, presence, and history.
  • Cloudflare Durable Objects runs one channel host per Durable Object.

Was this page helpful?