oRPC Web Workers Adapter

Installation
SKILL.md

Web Workers Adapter

Web Workers run JavaScript in background threads, preventing UI blocking. Modern runtimes (Bun, Deno) also support them.

With oRPC, you get type-safe communication channels between threads. See the Message Port Adapter for more context.

Web Worker

import { RPCHandler } from '@orpc/server/message-port'
import { onError } from '@orpc/server'

const handler = new RPCHandler(router, {
  interceptors: [onError(error => console.error(error))],
})
Installs
–
GitHub Stars
8
First Seen
–
oRPC Web Workers Adapter — ali-master/skills