Work

Rosetta is an internal platform for visual learning roadmaps.

A learning roadmap of seven topics. A learner ticks off Basics, Networks and Storage while a teammate edits Caching and adds a CDNs topic, live.

At Carbyte, knowledge about learning a topic or joining a project lived in documents that went stale, and nobody could see what to learn first.

Rosetta gives each community one shared roadmap. Authors edit it together on a live canvas, a bit like Figma, and anyone in the company can follow it and tick off topics as they go.

I owned it from the first sketch to production on Azure: what to build, how it looks and the five services that run it. Over 17 months I wrote about three quarters of its 770 commits.

Role
Owner, end to end
Where
Carbyte, full time
When
May 2025 to Oct 2026
Stack
React, Yjs, ReactFlow, Go, Node, PostgreSQL, Azure
01

Product decisions

I started as one of the learners. Picking up new areas, I kept hitting stale docs. So the product started from that problem and from two things the company already had: communities of practice and Microsoft accounts.

A graph, because learning has an order

A list hides prerequisites. A graph shows what comes first and what hangs off each topic, and it doubles as navigation: you see the whole path and where you are on it.

Five onboarding topics listed in a document, in no particular order, rearrange into a graph: repo setup first, then code review and the test suite, then deploys, then on-call.

Access with zero setup

Internal tools often die at the sign-up form. You sign in with Microsoft, your Entra group decides your community, and permissions follow groups IT already manages.

Everyone can read every community's paths, so knowledge travels. You edit only your own community's, so someone always owns keeping a path current.

Signing in with Microsoft reads your Entra group, which sets your community. You can read every community's paths and edit your own community's.

Presence instead of locks

Two people in one topic is normal on a shared roadmap. Locks fail in practice: someone opens a topic, goes to lunch, and now you need timeouts and an admin who can release the lock.

Text merges character by character, so a topic just shows who is in it. The one thing I block is deleting a topic someone else has open. It shakes instead.

Two cursors enter the same topic. Each shows as an avatar on the topic and both can type. When the teammate tries to delete the topic while you have it open, it shakes and says it is in use.

Progress is personal

Ticks live in a Postgres table, outside the shared document. Inside it, everyone would see everyone's progress, and readers would write to a document they may not edit. As a table, one query finds every path you've started, which is what the home screen is built on.

Ticking Basics and Storage on the shared roadmap writes two rows to your own progress table, outside the shared document. Continue Learning reads those rows: System design, 2 of 3.

What I'd do differently

I built real-time collaboration first because it was the hardest part, before checking that people wanted shared roadmaps. Usage stayed light: authors carried the cost while learners got the value, and without analytics I couldn't see where people dropped off.

Next time I'd fake it for a week with a Miro board and a Notion page per topic, co-write the first paths with one community, and define the metrics before writing code.

What I did: built real-time editing first, shipped it, and usage stayed light. Next time: fake it for a week with Miro and Notion, co-write paths with one community, then measure before building.
02

UX/UI and brand

Rosetta has two surfaces: a hub to find and resume paths, and a studio to edit them. I designed both, then moved them onto one shared theme so they stopped drifting apart.

The hub opens on what you were learning

A returning learner's most common job is to resume. The old home page listed communities, which the sidebar already did, so it was navigation dressed up as a destination. Now the hub opens on Continue Learning.

The hub before and after. Before, the home page repeats the list of communities from the sidebar. After, it opens on Continue Learning with your started paths and their progress.

Reading and editing are separate modes

Most visits are reading. Drag handles and connection points get in the way and cause accidental moves, so view mode hides them. Switching is instant, with no reconnect, and the app remembers your last mode.

A roadmap in view mode shows only topics and lines. Switching to edit mode adds connection handles to every topic and lets you draw a new line, from Caching to CDNs. Switching back hides the handles again.

A save state that tells the truth

People coming from Notion look for “Saved”, and a CRDT has no obvious moment when your edit is safe. “Saved” appears only after the socket has flushed your changes, and only your own typing shows “Saving…”. A dead connection shows up as a stuck “Saving…”, never as a false “Saved”.

A topic dialog shows Saved 3 min ago. While you type, it shows Saving. Once the change has reached the server, it shows Saved just now.

Glass only on the controls

The studio follows Apple's Liquid Glass the way Sketch did. The floating toolbar and canvas controls are glass, while panels, menus and dialogs stay solid, so content never sits behind a blur. Completing a topic fills a Reminders-style ring with a check.

The studio canvas pans under a floating glass toolbar while the inspector panel beside it stays solid. In the inspector, a ring fills and turns into a check: Completed.
03

Technical implementation

Two React apps, a Go API, a Node collaboration server and a Go auth service, behind one nginx gateway and one Postgres. I split it this way on purpose, to learn distributed systems. The last point says what that cost.

One gateway, two balancing rules

nginx puts everything on one origin. REST calls spread across Go replicas by least connections. In the scaled setup, WebSockets use a consistent hash of the document's URL, so everyone editing the same roadmap reaches the same editor server.

Three browsers reach one nginx gateway. Both browsers on document A are sent to editor server 1 and the browser on document B to editor server 2, by a consistent hash. REST calls go to the Go API replicas by least connections. Everything stores to one PostgreSQL.

One edit, end to end

Dragging a node runs a Zustand action that writes to a Yjs map. Yjs emits a binary update, the socket carries it to the server, and the server forwards it to the other editors and appends it to Postgres. Every 100 updates are compacted into one snapshot. Your own edit comes back into the UI the same way a remote one does.

Dragging a node runs a Zustand action that writes to a Yjs map. Yjs sends a binary update over the WebSocket to the editor server, which forwards it to the other editors and appends it to PostgreSQL. At 100 updates, the server compacts them into one snapshot.

The first visitor saw a blank path

The sync handshake could finish before the document had loaded from Postgres, so the first person to open a path saw it empty and could save that over real content.

The fix loads the document during the WebSocket upgrade and waits for it before the handshake, with a 15-second limit, so a slow database delays the first load and never hangs everyone.

Before the fix, the server answered the browser's handshake with an empty document because the load from PostgreSQL arrived too late. After the fix, the server loads the document during the WebSocket upgrade and answers the handshake with the full document.

From two databases to one

The first version kept roadmap content in MongoDB and everything else in Postgres, held in sync by a SAGA. Yjs updates are binary blobs that Postgres stores fine, so I moved them over and deleted MongoDB and the SAGA with it.

Before: the Go API writes to PostgreSQL and the editor server writes roadmap content to MongoDB, with a SAGA keeping the two in sync. After: MongoDB and the SAGA are gone and the editor server writes Yjs updates to PostgreSQL.

Boundaries the build enforces

Docs drift, and coding agents skip prose. Import rules run in dependency-cruiser before every push and in CI: shared code can't import the apps, the apps can't import each other, and no new cycles get in. Three old cycles sit in a baseline, to shrink as those files change.

Both apps may import the shared package, and the import check passes. When the hub app imports from the studio app, the check fails and the push is blocked.

What the split cost

Auth ended up in two languages: tokens validated in Go and in Node, cookies signed in three places with one shared secret. One bug reached users: new paths showed no author, because only the editor service recorded the creator, and only once someone opened the path.

Today I'd build Rosetta as one TypeScript modular monolith, and split out a service when a second team or a different load needs one.