@reactor-team/queue
v0.0.3
Published
Drop-in waiting room for Reactor demos: a browser client (framework-agnostic + React) and a PartyKit server that gate access to a capacity-limited app and admit waiting users in order.
Keywords
Readme
@reactor-team/queue
Drop-in waiting room for Reactor demos, in one package. A
PartyKit server lines users up, creates Reactor sessions, and mints short-lived
JWTs; a framework-agnostic + React client gates your app on the queue and hands
the SDK a getJwt resolver and a sessionId.
pnpm add @reactor-team/queueEach surface is a subpath entry point, so you import only the half you need:
- Client —
import { ReactorQueueClient } from "@reactor-team/queue"; - React —
import { ReactorQueueProvider, useReactorQueue } from "@reactor-team/queue/react"; - Server (PartyKit) —
import { createReactorQueueServer } from "@reactor-team/queue/server"; - Admin —
@reactor-team/queue/adminand@reactor-team/queue/admin/react - Protocol —
@reactor-team/queue/protocol(shared wire types; rarely imported directly)
react/zustand (client) and partykit (server) are optional peer
dependencies — install only the ones for the surfaces you import.
See the repo README for the full architecture, configuration, and deployment guide.
