Skip to content

ucalyptus/roombox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoomBox

Realtime rooms on Cloudflare Workers + Durable Objects.

What it is

RoomBox is a small collaboration app where each room is owned by one Durable Object. That makes it a clean example for:

  • live room state
  • ordered message handling
  • presence tracking
  • per-room storage

Routes

  • GET / landing page
  • GET /room/:roomId room UI
  • GET /api/rooms/:roomId/state room snapshot
  • POST /api/rooms/:roomId/message send a message
  • GET /api/rooms/:roomId/connect WebSocket connection

Local dev

wrangler dev

Deploy

wrangler deploy

The worker is configured for:

  • roombox.ucalyptus.me

Durable Object use

Each room gets its own Durable Object instance. The object stores message history, broadcasts updates to connected clients, and keeps presence counts in one place.

About

Pre-Reddit era Anon Chatrooms using Cloudflare Workers and Durable Objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors