Real-time collaborative workspace

Study sessions,
in sync.

Shared notes, a sandboxed Python editor, and live presence — built for focused group work. Everyone in the room sees the same thing, instantly.

A
B
Python sandbox▶ Run

Collaborative notes

Rich-text editing powered by Yjs CRDTs. Edits merge without conflicts. Cursors and selections are visible in real time.

Shared code execution

A Monaco-based Python editor, one per room. Anyone can run; everyone sees the output. Code runs in a hardened Docker sandbox.

Multi-tenant by design

Rooms isolated at the database layer via Postgres row-level security. The DB enforces tenancy — not application logic.

Under the hood

Collaboration runs on Yjs CRDTs over a stateful Hocuspocus WebSocket server. Every keystroke produces a binary delta that converges deterministically across clients. Documents are persisted as snapshots, awareness is ephemeral.

Multi-tenant isolation is enforced inside Postgres via row-level security policies, not in application code. The same policy that gates a page load gates the WebSocket connection.

Code execution runs in disposable Docker containers with the network disabled, the filesystem read-only, memory and PID limits enforced, and a wall-clock timeout. The container is the security boundary.

Built with Next.js 14, Supabase, Tiptap, and Monaco. Three independent services, deployed separately.