node.js · real-time web app · tooling

Isle Compass

A live companion for Archipelago multiworld randomizers — personal tool, unaffiliated

Solo Developer · Tools & Systems Programmer · UX/UI Designer

In Archipelago, several games are shuffled into one “multiworld”: the items of your game are hidden in your friends' games, and the other way around. You often play several games at once while waiting for the others' items — and quickly lose track of what to do and where to go.

I designed and built on my own Isle Compass, a real-time web app that connects to the game read-only and answers those questions for all my games in a room: what is doable, what is blocking me, what the others are waiting for — without ever revealing what a check holds.

Node.js JavaScript WebSocket Real-time Zero dependencies Tooling
Isle Compass — overview of a game: checks done, reachable now, items, play time, check map and where to go next
0npm dependencies: Node.js only
3games tracked at once in my room
12front-end modules, after refactoring
EN · FRbilingual interface, English by default
01

The problem

The existing tools each cover part of the need: the Archipelago website's tracker lists checks but doesn't say what is doable; PopTracker draws great maps, but for a single game and knows nothing about the room; the Universal Tracker knows the game's real logic, but as a raw list. When you play three games in the same multiworld, you juggle three windows and a Discord channel.

The goal: one screen for the whole room, bringing together the real logic, a live map and what the other players are doing — with one absolute rule, no spoilers: the app tells you what you're missing, never where it is.

Archipelago roomThe game server (WebSocket)
⇄
Local server (Node.js)Read-only connections, logic, maps, security
⇄
Live web pagePC, and phone on the same Wi-Fi
Universal TrackerDriven headless: each game's real logic
PopTracker packsMaps and location positions
Public tracker pageEvery player's progress in the room
DiscordOptional webhook: items received, player stuck
02

My role

Solo Developer · Tools & Systems Programmer · UX/UI Designer

From the idea to a tool used in real sessions

I did everything end to end: the design, the server, the interface, the security and the tests. The app runs during our real sessions with friends, and every feature came from a need met while playing — then was reworked from feedback.

  • Back-end: Archipelago network protocol, Universal Tracker driving, PopTracker pack parsing, Windows window capture
  • Front-end & UX: live interface without a framework, zoomable map, console, display options, English and French
  • Security & quality: audit, protection against other websites, read-only phone access, automated tests
03

Programming: the systems

A Node.js server with zero dependencies does all the heavy lifting; the page only displays the result, updated live.

What would unlock you: the items that open the most checks, and the hint advice

Logic · Universal Tracker

Each game's real logic

Instead of rewriting each game's logic, the server drives the Universal Tracker headless: it sends it commands and reads its answers, to know which checks are doable and what each of the others is missing.

It then adds up those needs per item: “this item would open 14 checks on its own”. That's what powers the hint advice — which item to ask for when you have enough points — without ever saying where it is.

See the code · ut.mjs, a console driven by messagesJS
The Universal Tracker is a console program: there's no way to know when its answer ends. Each question is followed by a unique unknown command: its error message marks the end of the answer.
// ut.mjs — one question at a time, answers delimited by a sentinel command
_ask(lines, timeout = 30000) {
  const run = () => new Promise((resolve) => {
    if (this.closed || !this.proc) return resolve("");
    const sentinel = `zz_fin_${++this.seq}_x`;
    this.wait = { from: this.buf.length, sentinel, resolve,
                  timer: setTimeout(() => { this.wait = null; resolve(null); }, timeout) };
    // the question, then an unknown command whose "not found" echo ends the answer
    this.proc.stdin.write(lines.map((l) => `${l}\n`).join("") + `/${sentinel}\n`);
  });
  const p = this.queue.then(run);   // questions are queued: never two at once
  this.queue = p.catch(() => {});
  return p;
}

// ut.mjs — refreshed on every check or item, debounced so UT sees the new items
refresh(delay = 2500) {
  clearTimeout(this.timer);
  this.timer = setTimeout(async () => {
    const out = await this._ask(["/locations_in_logic"]);
    if (out === null || this.closed) return;
    const ids = [];
    for (const line of out.split(/\r?\n/)) {
      const id = this.idOf.get(line.trim());
      if (id !== undefined) ids.push(id);
    }
    this.state = { ...this.state, status: "ready", at: Date.now(), inLogic: ids };
    this.onUpdate(this.state);
    this._explainLocked(new Set(ids));   // then: what each blocked check is missing
  }, delay);
}
Live map of the world in full screen, with the map list and the live console

Map · PopTracker packs

A live map

The server reads PopTracker packs (maps, locations, positions) and crosses them with the logic: each dot gets its colour — to do, partly, not doable yet, done, hint here. It also works out which map each check belongs to, so a zone is counted only once.

  • Follows the player: the map switches by itself when they move
  • Zoom with the wheel, drag to pan, full screen with fixed columns
  • Live console: received items highlighted, colour per item type and per player
Zoomed map: hovering a dot shows what its check still needs

UX · No spoilers

What's missing, never where it is

Hovering a dot lists the place's checks and, for the blocked ones, the missing item (“missing: Earth Badge”). It's the information you need to play, without spoiling the surprise.

The same principle guides the whole app: it can say what you need, what an item unlocked, or that a friend is waiting for an item from your world; it never says what a check holds.

Room progress: checks done by every player of the room

Multiplayer · Alerts

Playing together, not side by side

The game protocol only gives the other players' status. By reading the room's public tracker page, the app shows everyone's progress, at most once a minute.

  • Alerts: progression item received, nothing doable left, a friend waits for an item from your world, enough points for a hint
  • “I'm stuck”: one click tells the room and Discord, with the item that would unlock the most
  • Screen: a friend's Discord stream shown next to the map, captured by the server
Endgame: every remaining check with what it still needs

Endgame

The last checks

When few checks are left, the overview switches to endgame mode: every remaining check, doable ones first, each with what it needs, and at the top the items that would unlock most of the rest.

Security · Audit

A local tool that stays local

While auditing the app, I found a real vulnerability: through “DNS rebinding”, any website open in the browser could pose as the tracker and read the game state, the phone key, even the image of captured windows. I proved it, fixed it, then covered it with automated tests.

See the code · security.mjs + its testsJS
The host name must be this PC, and the API only answers the tracker's own pages (Sec-Fetch-Site and Origin headers). A link posted on Discord still opens the page normally.
// security.mjs — only this PC, and only the tracker's own pages, may use the API
export function trustedRequest(req, url, lanAddresses = []) {
  const host = String(req.headers.host || "").toLowerCase();
  const name = host.replace(/:\d+$/, "").replace(/^\[|\]$/g, "");
  // DNS rebinding: a foreign name pointed at 127.0.0.1 is refused
  if (!["localhost", "127.0.0.1", "::1", ...lanAddresses].includes(name)) return false;
  if (!url.pathname.startsWith("/api/")) return true;   // the page itself: links from anywhere are fine
  const site = req.headers["sec-fetch-site"];
  if (site && site !== "same-origin" && site !== "none") return false;
  const origin = req.headers.origin;
  if (origin === "null") return false;
  if (origin) { try { if (new URL(origin).host.toLowerCase() !== host) return false; } catch { return false; } }
  return true;
}

// security.test.mjs — run with `npm test` (node:test, no library)
test("DNS rebinding: a foreign host name is refused, page and API", () => {
  assert.equal(ok(...req("/api/lan", { host: "attacker.example:8787" })), false);
  assert.equal(ok(...req("/", { host: "attacker.example:8787" })), false);
});
test("other sites cannot use the API", () => {
  assert.equal(ok(...req("/api/runs", { "sec-fetch-site": "cross-site" })), false);
  assert.equal(ok(...req("/api/lan", { origin: "https://evil.example" })), false);
});
04

The whole room in one app

Beyond the map, the app supports everything else in a session: choosing what to launch, talking to the room, knowing what you received — and even picking your next game.

Runs page: every game of the room, with progress, play time, reachable checks and what others need from you

Multi-game · Play time

All my games at a glance

When you play several slots in the same multiworld, they are grouped by room, and the app tells you which one to launch now: the one where other players are waiting for you, where you received something new, or that is close to the end.

  • Play time per game, measured from the game client's connections and the checks
  • Cover art fetched automatically from Steam, else from Wikipedia
  • Pause a run: the connection closes and the room can go to sleep
Advice page: which run to play now, and which game to pick for a new multiworld

Advice · Data

Which game to pick next

Even before a multiworld starts, the app suggests a game (or a bundle of 2–3 games) whose length and number of checks match the other players', of a different genre, and open enough early on if their games start closed.

The number of checks isn't guessed: the app generates a real one-player game with each installed apworld and counts the placed items. It also cross-references the community list of about 880 Archipelago games.

Command bar with autocompletion of the Archipelago commands

Commands · Autocompletion

Talk to the room without leaving the app

The command bar replaces Archipelago's text client: !hint, !missing, chat… with autocompletion of commands, item names and locations, history with the arrow keys, and a confirmation before irreversible commands.

Items tab: received items sorted by Archipelago type, key items marked

Items · Readability

A colour per item type

Everywhere in the app, an item wears the colour of its Archipelago type (progression, useful, filler, trap), the same for every game in the room; each player keeps their own colour too. On hover, the app tells how many checks were stuck behind an item.

05

Your session, everywhere

The rest of the features, in pictures.

Last session and progress chart
Session goalsCheck goal, stop time with an alert, and progress chart.
Exported recap page
Shareable recapA self-contained HTML page: numbers, chart, progression items received.
The tracker on a phone
On the phoneOver Wi-Fi, with a secret key, read-only by default.
The Screen panel: a window of the PC or a video next to the map
ScreenA window of the PC (a friend's Discord stream) or a YouTube / Twitch video next to the map.
Options: language, theme, text size, tabs and windows
Your wayLanguage, theme, text size, which tabs and windows to show.
A game without a map: key items and tracker links
Games without a mapKey items received and awaited, and the tracker given by the community list.
06

Engineering choices

A few decisions that shaped the project, and what they taught me.

Design rule

Never a spoiler

Every screen was designed to help without revealing: needs, yes; what checks hold, never.

Network

Read-only

The tracker connects as a mere observer: it sends no check and cannot harm a game.

Architecture

Zero dependencies

Node.js only, no npm packages nor build step: a friend runs start.bat and that's it.

Real-time

Server → page, live

WebSocket to the room, Server-Sent Events to the page: everything updates without reloading.

Mobile

Read-only phone

Wi-Fi access with a secret key; by default, the phone can look but cannot send anything to the room.

Quality

Refactor & tests

A 1,900-line file split into 12 modules, dead code removed, and automated tests on security and translation.

Want to know more?

It's a personal tool, used during our sessions with friends. I'd be happy to show it to you in a demo.

Contact me Other projects