← willhsu.dev

Field notes · 2 to 3 November 2026

WoW Companion

My World of Warcraft character on my phone. One addon in the game, one server on the Mac mini, one app on the home screen: who she is, every spec's loadout, her gear and stats, every keybind on every bar, the spec guide with my own keys on each step, and a journal that writes its own chapter at night. Built in one evening, as an MVP, on retail. Forever next.

The idea

I'd asked for a "WoW Forever Companion iPhone app", something like Scarletfire's page but live and in my pocket, with the roleplay side Rambleon has. Addons have hard limits: no network, no files of their own, and the game only writes their saved data on /reload or logout. So the shape is a relay. The addon collects, the game writes the file, the mini reads it over ssh, the phone reads the mini.

It is a standalone thing, but almost nothing in it is new. The capture is RP Spec, the addon I built the night before (spec, talents, gear, every bar and binding, a journal). The chat capture is Rambleon's. The look code and the portrait are Mogshot's. The companion takes those pieces, renames them, adds the two things they lacked, and puts a phone in front.

Scarletfire, level 22 Feral, as the app showed her at 10:30 pm. The screenshots are headless Chrome at iPhone size; the phone itself had not opened it yet.

The next afternoon, from the real client: Alaranarises, level 80, the first character the Companion addon itself wrote to the file. No photo yet, so the hero is Transmogify's render of her look code. The guide's red badge is Explosive Shot, which turned out to be on no key.

The flow

WoW runs on the MacBook; the mini has no game. The two talk over the tailnet, so the app only works on my own devices.

The spec

Addon
addon/Companion, retail 12.1.5 (Interface: 120105), SavedVariables CompanionDB, slash /companion and /comp. Eight Lua files, two spec guides (Feral Druid, Marksmanship Hunter), 52 checks under a stub client.
Server
server.mjs, Node 26, no dependencies. Port 4210 on localhost and the Tailscale address. launchd com.william.wow-companion.
App
Vanilla HTML, CSS and JS, hash-routed bottom tabs, safe areas, apple-mobile-web-app-capable, a manifest and a home-screen icon. No framework, no build, no service worker (plain http).
Sync
ssh with 5 s connect timeout, a shared control connection, 15 s between checks, 60 s after three failures. A sleeping MacBook turns the header red; the last file is kept on disk so a restart serves at once.
Snapshot
character (name, realm, level, race, class, spec, faction, guild, title, ilvl, mounts), stats, gear with bonus ids, talents with the game's own descriptions and the import string, every spec's saved loadouts, every bar and form page with its binding, the guide.
Journal
level, zone, boss, achievement, death, mount, quest, spec, note, mark, photo, and chat: /say, /emote, /yell, and party or raid if asked. Never whispers. Since day two, only scenes: another player's line is kept while you have spoken in the last two minutes, a kept reply holds the scene a minute longer, and a line that says your name always gets in.
Pictures
The hero is the last /companion photo, a screenshot with the UI hidden. Otherwise Transmogify renders her MOG2 code, with her barber choices from a side file until she sits in a chair.
Icons
Wowhead's icon name by spell or item id, the icon CDN, cached on the mini. The game's own icon by file id through Transmogify as the fallback.
Chapter
claude -p with the newest day of the journal, chat included: about 150 words in her voice, 11 seconds, cached per day.
Notes
Typed on the phone, kept on the mini, shown in the timeline marked "from your phone". They don't reach the game yet.

The tabs

In the game

/companion
who you are, one line
/companion snap
take the snapshot now (it also happens on login, level, spec, talent, gear, bar and binding changes)
/companion save
write the file now (reloads the UI); the phone sees it within 15 s
/companion note <text>
a line in the journal; mark does the same with a picture
/companion photo
a screenshot with the UI hidden, the phone's hero picture
/companion mog
the Mogshot code
/companion rp on|off
record your scenes: your own lines, replies in the two minutes after you speak, and anything that names you. rp party on adds the group, rp everyone on keeps all of earshot
/companion shots, journal
pictures at level ups and marks; the journal itself

The rules are Rambleon's and RP Spec's: only plain values are stored, never secret values, nothing read in combat except chat (which isn't protected), no combat log, no protected API, no automation. The addon can't send anything anywhere. It writes a file and the mini comes to get it.

Working around the addon limits

Out of the game (built)
  • SavedVariables are the only door, and the game opens it on reload or logout. /companion save is a reload.
  • The mini polls the file's modification time over ssh and only reads it when it moved.
  • Screenshots come the same way, paired to journal entries by the second they were asked for.
  • The header says "synced 4 min ago" so I know what I'm looking at.
Into the game (not yet)
  • An addon can't read a file at runtime, but a Lua file loaded as code is read on every reload. Rambleon already does this for its chapters. An Inbox.lua could carry phone notes and the day's plan into /companion inbox.
  • A keystroke bridge on the MacBook (osascript, with Accessibility granted to sshd) would let the phone /em or /companion save for real.
  • The Battle.net Profile API would cover characters without the addon.

Who does what

Me
  • One message at 9:50 pm: "come up with ideas, I want an MVP tonight"
  • Four answers to four questions (standalone, use what you need, journal plus notes plus chapter, call it Companion)
  • Playing the druid while it was built
  • The next afternoon: logged in on the hunter, so the real client wrote the file
Claude
  • Found RP Spec on the MacBook and read it as the data layer
  • The addon rename, the loadouts, the chat capture, the tests
  • The server, the sync loop, the icon and portrait caches
  • The app, the icon, the launchd service, this page
  • Phone-sized screenshots over the DevTools protocol, because nobody had opened it on a phone

Status

Next

Use: Add it to the home screen. Look at your keys on the train. Read what she said last night. "The addon can't send anything anywhere. It writes a file and the mini comes to get it."