Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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/queue

Each surface is a subpath entry point, so you import only the half you need:

  • Clientimport { ReactorQueueClient } from "@reactor-team/queue";
  • Reactimport { ReactorQueueProvider, useReactorQueue } from "@reactor-team/queue/react";
  • Server (PartyKit) — import { createReactorQueueServer } from "@reactor-team/queue/server";
  • Admin@reactor-team/queue/admin and @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.