← All Builds

Architecture · Private by Default

Mini Connector & Relay

How the app reaches the Mac Mini without opening anything to the internet.

TypeScriptHonoNodeVitestlaunchdTailscale

The Problem

The app needs live data from files and agents on the Mac Mini, but the phone should never hold secrets and nothing should be exposed to the public internet.

What It Does

A small relay service and a connector on the Mini. The connector reads the vault and local files and answers requests; the relay is the one door the app knocks on.

How We Built It

  1. App
  2. Tailscale (private HTTPS)
  3. Relay · Hono
  4. Mini connector
  5. Vault & files
Nothing in this path is reachable from the public internet.
  1. The relay is a TypeScript service built on Hono, run by launchd and tested with Vitest.
  2. The Mini connector is a separate TypeScript process that does the file work and talks to the relay.
  3. The recommended setup keeps the relay on loopback and puts Tailscale Serve in front for HTTPS reachable only from Jay's own devices.
  4. Routes nobody uses are marked and left in place, and removals happen in their own reviewed change.

Timeline

  1. Relay runtime data kept out of git.c299ad0

  2. Goals backend: connector reads and updates, relay serves it.f9601ca

  3. Quill messages: relay endpoints, connector writes to Quill's inbox.4020204

  4. Unused Ask RONIN routes removed in their own change.ebc0d10

  5. Daily quote routes added to relay and connector.a789c9c

Tools Used

TypeScriptHonoNodeVitestlaunchdTailscale

What's Next

  • Wire the small Mini services (status, Needs You) into the app.
Next Build

Front Desk Live Board →

What needs Jay, in one list, with check-offs that never touch the inbox.