Mojiroom
A real-time collaborative canvas where everyone in a room drops emojis to express how they feel — and the room reads the mood and changes color to match. No accounts, no installs. The URL is the room.
I conceived, designed, and built Mojiroom — a single-file vanilla web app on a 52-line multiplayer server — with AI coding tools supporting implementation and iteration.
Drop an emoji anywhere to capture the energy in the room
01The idea
Some feelings don't survive being typed
Every group tool asks people to put their state into words — a poll, a form, a message nobody wants to write first. Mojiroom lowers the cost of expression to a single tap: pick an emoji, drop it anywhere, watch it land for everyone at once.
- One tap to speak. No text box, no right answer, no waiting for your turn.
- Everyone sees it live. Each drop appears on every screen in the room as it happens.
- The room answers back. Past three emojis, Mojiroom names the dominant mood and turns the whole canvas its color.
The use cases aren't a marketing list — they're built into the product. Each of the six emoji themes is a room it was designed for, its ten emojis chosen as that room's vocabulary:
Icebreakers and team check-ins
How is everyone arriving today?
Live events and Q&A
React together without unmuting.
Sprint retrospectives
What shipped, what hurt, what to fix.
Lectures and workshops
Raise a hand, ask to slow down, signal “got it.”
Energy checks in long sessions
Who is on fire — and who needs a break?
Launches, wins, birthdays
Fill the room until the confetti flies.
“Try it” retunes the live room above and summons a crowd in that scenario. In the product, rooms can also run timed rounds — 30, 60, or 90 seconds, locking the canvas when time is up — to keep check-ins snappy.
02One file, one room, 52 lines
The whole backend fits on one screen
The client is a single 1,841-line HTML file — no framework, no build step. The multiplayer server is 52 lines on PartyKit, running in a Cloudflare Durable Object per room: it remembers the placements, counts the people, and relays five message types. Below, the protocol is running between two simulated clients — drop an emoji on the phone, read the wire, then join the projector and watch sync replay the room.
Two clients, one protocol — simulated in this page with the same message shapes the real server relays.
Drop on either side once both are in — place travels the wire; joining late triggers a full sync.
party/server.ts — complete, verbatim
placeone emoji, broadcast to everyone elsesyncfull board state, sent to each new joinercountpeople in the room, on join and leaveclearwipe the room, broadcastround-startstart a shared countdown
import type * as Party from "partykit/server";
interface EmojiPlacement {
emoji: string;
x: number;
y: number;
}
export default class EmojiMoodServer implements Party.Server {
placements: EmojiPlacement[] = [];
connections: Set<string> = new Set();
constructor(readonly room: Party.Room) {}
onConnect(conn: Party.Connection) {
this.connections.add(conn.id);
// Send full board state + current people count to new joiner
conn.send(JSON.stringify({
type: "sync",
placements: this.placements,
count: this.connections.size
}));
// Broadcast updated count to everyone else
this.broadcastCount();
}
onClose(conn: Party.Connection) {
this.connections.delete(conn.id);
this.broadcastCount();
}
broadcastCount() {
this.room.broadcast(JSON.stringify({ type: "count", count: this.connections.size }));
}
onMessage(message: string, sender: Party.Connection) {
const data = JSON.parse(message);
if (data.type === "place") {
this.placements.push({ emoji: data.emoji, x: data.x, y: data.y });
this.room.broadcast(message, [sender.id]);
} else if (data.type === "clear") {
this.placements = [];
this.room.broadcast(message, [sender.id]);
} else if (data.type === "round-start") {
// Broadcast round start to all other clients
this.room.broadcast(message, [sender.id]);
}
}
} Every multiplayer feature in the product — live drops, late-join sync, people count, clear, shared countdowns — is these 52 lines.
- 1
- HTML file
- 1,841
- lines of app
- 52
- lines of server
- 0
- frameworks
- 0
- databases
- 135
- commits in one week
Counted from the archived repository — attributes, not outcomes.
03The room reads itself
Forty-three emojis, nine moods, one dominant color
The mood engine is deliberately simple: every emoji maps to one of nine moods, each drop is a vote, and once three emojis are down the dominant mood names the room and repaints it. No sentiment model, no API — a hand-tuned table and honest arithmetic, fast enough to run on every single placement. Cast some votes:
Tap to vote
🎨 Setting the Mood… drop 3 to reveal the vibe
The product's real mapping and math — the panel background is the actual gradient the room would turn.
04Decisions that kept it light
Everything Mojiroom refuses to have
The product's character comes from subtraction. Each of these was a real decision with a cheaper, heavier alternative on the table:
- No accounts, no sign-up
- A room should cost nothing to join. The URL is the room — share a link or a QR code and you are in.
- No database
- Rooms are moments, not archives. The server keeps placements in memory and forgets them — by design, not by accident.
- No framework, no build step
- One HTML file is the whole client. Deploying is copying a file; there is nothing to update or break.
- Client-side QR codes
- Originally an external API — switched to an in-browser generator so room URLs never leave the device and projectors work offline.
- Native canvas export
- html2canvas choked past 200 emojis. Drawing the gradient, title, and glyphs directly is instant at 500+.
Rooms name themselves: 20 adjectives × 20 nouns, friendly enough to read out loud across a classroom. A different name is a completely different room.
05The unglamorous 80%
Where the week actually went
The mood engine took an afternoon. Most of the 135 commits went into the parts nobody screenshots — real devices, real accessibility, and exports that survive real browsers:
- The iOS gradient layer
- Safari cannot paint a CSS gradient on a fixed body. The mood background lives on its own fixed #bgLayer div — one of those fixes you only find by owning a real device.
- Menu scrolling took five iterations
- display:block over flex, overflow-y:scroll, touch-action: pan-y, a stopPropagation, and dvh units — before the menu scrolled on both Safari and Chrome for iOS.
- Motion that asks permission
- prefers-reduced-motion swaps the rotating hints for a static tip and stills the shimmer — the same check this demo page honors.
- Hints that talk to screen readers
- The rotating tip is a polite aria-live region, and its contrast was tuned against every one of the nine mood backgrounds.
- 44 pixels or it did not happen
- The hamburger sits at 42×42 with padding to spare — iOS touch-target minimums are a floor, not a suggestion.
- Three export paths
- PNG through the native Canvas API, a 10-second WebM replay through MediaRecorder, and an animated GIF through a gif.js worker — each with its own browser-support cliffs.
06What this demonstrates
What Mojiroom demonstrates
- Product restraint
- Choosing what not to build — accounts, databases, frameworks — and turning those absences into the product's character.
- Realtime UX
- Presence, late-join sync, shared countdowns, and milestone moments designed around a five-message protocol.
- Playful systems
- A legible mood model — a mapping table and arithmetic — that makes a crowd's feeling visible without pretending to be AI.
- Device-level craft
- iOS rendering quirks, touch targets, reduced motion, ARIA live regions, and export codec cliffs, handled one commit at a time.
- Speed with judgment
- Concept to live product in one week — 135 commits — using AI tools for implementation while the product decisions stayed deliberate.
Where it stands
- Live and free at mojiroom.com — rooms work on any screen, no install
- Built 2026: concept to launch in one week, 135 commits
- Rooms are ephemeral by design — the server keeps no history
- v1 source archived; the demo on this page ports its real code paths
Every room has a mood. Mojiroom gives it a color.