Ephemeral Collaborative Workspaces•Auto-Purge 00:00 IST

The real-time code editor engineered for teams.

Spin up instant multi-file JavaScript rooms powered by Yjs CRDTs and Monaco. Track live peer cursors, see typing status in real time, and collaborate with zero logins, zero accounts, and automated daily midnight resets.

• Sub-10ms Keystroke Latency• Deterministic CRDT Convergence• Zero-Auth Ephemeral Rooms• Neon DB + Redis Backplane
Room:room-preview
PK
AM
SS
Explorer+ New .js
Resets 00:00 IST

Ephemeral workspace with zero-auth login

index.js•JavaScript (ES2024)
1
// Collaborative Room: room-gbub50
2
// Ephemeral workspace • Synchronized via Yjs CRDTs
3
import { calculateTotal } from './calculator.js';
4
5
export function checkoutCart(items, user) {
6
const subtotal = calculateTotal(items);
7
const taxRate = 0.08;
Priya K.typing... ✎
8
const finalAmount = subtotal * (1 + taxRate);
9
10
return {
11
userId: user.id,
You
12
amount: Math.round(finalAmount * 100) / 100,
13
timestamp: Date.now(),
14
};
15
}
CRDT: Yjs v13.6•Binary lib0 Encoded•Port 4000 Active
Ln 7, Col 32•UTF-8•Synced
Multiplayer Primitives

Engineered for instantaneous collaboration.

Every component is built for deterministic convergence, real-time presence awareness, and frictionless zero-auth workflows.

01 // CONFLICT-FREE REPLICATIONlib0 binary sync

Deterministic Keystroke Convergence

Powered by Yjs mathematical CRDTs. Keystrokes execute locally with 0ms optimistic latency, while differential state vectors synchronize deterministically across peers. No merge conflicts, no centralized lockups, and no lost work.

Mathematical CRDT Verification
Concurrent Keystroke Convergence Engine
Peer A (Priya)
Clock: [A: 1, B: 0]
Action: Prepend imports at index 0
+ import { verifyToken } from './auth.js';
function handleSession(request) {
const session = verifyToken(request);
return session.user;
}
Local Execution: 0msLock-Free
Peer B (Alex)
Clock: [A: 0, B: 1]
Action: Append export at end of file
function handleSession(request) {
const session = verifyToken(request);
return session.user;
}
+ export default handleSession;
Local Execution: 0msLock-Free
Concurrent modifications without server locks: both peers apply edits instantly.
02 // PRESENCE ENGINEY.Awareness

Live Typing Cursors

Collaborators see exact cursor positions, line numbers, and custom display names. When typing, dynamic badges display [Name is typing... ✎] directly at the cursor head.

Awareness Telemetry
Priya K.
typing... ✎
Alex M.
Line 4, Col 12
03 // WORKSPACESShared Y.Map

Multi-File Projects

Create, rename, and manage multiple JavaScript modules per room. All files are synchronized inside a single authoritative CRDT document tree.

JSindex.js
2 active peers
JScalculator.js
1 peer
JSconfig.js
idle
04 // EPHEMERAL PURGE00:00 Asia/Kolkata

Automated Daily Reset at Midnight IST

Zero authentication friction: users pick their display name and start editing instantly. To maintain clean ephemeral state and high performance, BullMQ cron workers purge room updates and documents every day at 00:00 IST.

Cron Schedule
0 0 * * * (Asia/Kolkata)
Atomic transaction purge via Prisma & Neon DB
Scheduled Worker Active
System Topology

Enterprise real-time infrastructure.

A decoupled, horizontally scalable architecture engineered for high-concurrency code editing.

System Topology

Distributed CRDT & Synchronization Architecture

Decoupled tier design: sub-10ms peer sync with horizontally scaled clustering.

● 4 Nodes Healthy|Mesh Active
01 // Edge Client
Monaco Editor
In-Tree Y-Monaco Binding

Maintains local Y.Doc CRDT state. Executes keystrokes with 0ms optimistic latency.

Local Lag:< 1ms
Awareness:Line & Column
Typing Status:Live Broadcast
02 // Sync Gateway
WebSocket Cluster
Standalone Node.js Server

Multiplexes client sessions, manages in-memory RoomManager, and encodes updates using lib0 binary protocols.

Port:4000 (ws://)
Wire Protocol:Binary lib0
Debounce Save:2,000ms
03 // Scale Mesh
Redis Pub/Sub
Horizontal Interconnect

Distributes CRDT deltas across multiple server instances with strict originInstanceId loopback echo suppression.

Channel:room:{id}
Echo Defense:Suppressed
Broadcast Latency:< 3ms
04 // Storage & Purge
Neon DB & BullMQ
Bytea Snapshots & Cron

Persists binary CRDT snapshots to PostgreSQL. BullMQ compaction workers atomically purge ephemeral workspaces at 00:00 IST.

Storage:PostgreSQL bytea
Daily Reset:00:00 IST (Cron)
Compaction:100 Updates
←→Bidirectional Binary Stream: Client ↔ WebSocket Cluster ↔ Redis ↔ Neon DB
End-to-End Latency: < 10msCRDT Convergence: 100% Deterministic
Technical Benchmark

How CodeRoom compares.

Architectural comparison between CRDTs, centralized operational transform, and traditional polling.

DIMENSIONCODEROOM (YJS CRDT)TRADITIONAL WS / RESTOPERATIONAL TRANSFORM (OT)
Conflict ResolutionDeterministic mathematical mergeLast-write-wins (data loss)Complex centralized transform
Local Keystroke Latency< 1ms (Optimistic execution)Round-trip bound (50-200ms)Server ACK queue required
Offline ResiliencyBuffers updates, auto-convergesConnection drop = lost editsBuffer limits, merge friction
Network ProtocolBinary lib0 differential deltasHeavy JSON payloadsSerialized operation frames
Horizontal ScalingStateless nodes + Redis Pub/SubSticky sessions / single nodeSingle coordinator bottleneck
Instant Collaboration

Build together in real time.

No account creation. No password hurdles. Pick your display name, create a room or join existing colleagues, and start coding in seconds.

• Ephemeral JavaScript rooms• Resets daily at 00:00 IST• Zero auth friction