Skip to content
Work

Baseband

Your router, managed from your phone.

Role
Design and engineering, start to finish
Built with
Expo, React Native, Reanimated, Skia
Price
Free, supported by donations
Links
baseband.dalgoridim.com
The first Baseband hub: every block in an identical card, yellow accents everywhere
The redrawn hub: one large data-left figure, the speed trace and plain rows, with no cards
Fig. 1The hub in April, and as redrawn in September.

I captured all 21 screens over adb against the real router and wrote down where they failed before drawing anything. Everything was a card, so the balance and a settings row weighed the same. Yellow marked icons, buttons, links and badges alike, so it pointed at nothing. States were never designed, only defaulted: a broken link opened a blank black screen. The rules for the redesign came straight from that list: one question per screen, never state more than is known, every state drawn.

The hub used to lead with a data balance read from the carrier's SMS, which only works on a network the app knows. Everywhere else it showed an empty card apologising for itself. Now the headline walks down a ladder to the first thing it can actually answer: data left, else the router's own monthly counter, else the connection, else nothing is claimed at all. The counter says it's the router's, so nobody mistakes it for their bill, and a YouTube bonus is shown but never added to the total, because it won't open a web page.

Hub headline: 7.63 GB data left, from the network
Fig. 2The same headline on four routers. Rung 3 needs a router that reports its status but no monthly counter, which the MF935 never does, so it's covered by tests until a second model turns up.
lib/hub/headline.ts · ts
export function resolveHeadline(input: HeadlineInput): Headline {
  const { carrierProfiled, balance, usage, status } = input;

  if (carrierProfiled && balance) {
    const usable = spendable(balance.bundles);
    if (usable.length > 0) {
      return { rung: "data-left", … };
    }
  }

  if (usage && usage.bytes > 0) {
    return { rung: "used-this-month", bytes: usage.bytes };
  }

  if (status?.reachable) {
    return { rung: "connection", … };
  }

  return { rung: "not-identified" };
}
Excerpt, trimmed with …

Capabilities were eleven booleans, so false meant three things at once: this model can't, we never found out, and we never wrote it. Now each one has four states and a reason. Unsupported stays on screen, disabled, with the reason under it. Unknown is offered with a small dot, and when the router carries it out it upgrades itself to supported, remembered by model and firmware so it survives a restart. Not written yet draws nothing. Deleting a message was the first write ever confirmed on this firmware.

Fig. 3Never tried on this model, so the drawer says so. Tapped, Restarting… in the same place, then done. Simulated: the router wasn't actually restarted.

The first drawers were hand-animated modals that travelled a fixed 400 or 600px and vanished the moment they were told to close, so they could never animate out. Every drawer now sits on one Sheet. It stays mounted until its exit finishes, travels exactly its measured height, follows the finger, and decides on release whether to close or spring back by projecting where the flick would land. It rides the keyboard frame by frame, never shrinks below the tallest state it has shown, and refuses the backdrop, the drag and Android's back while its own Cancel is disabled.

Fig. 4Opens to its measured height, springs back from a short drag, and a flick closes it on a timed slide.
components/ui/Sheet.tsx · ts
const hide = useCallback(
  (velocity = 0) => {
    "worklet";
    leaving.set(true);
    …
    const distance = Math.max(0, height.get() - offset.get());
    const flung = velocity > 0 ? (3000 * distance) / velocity : Infinity;
    const duration = Math.max(
      Motion.sheetOut.min,
      Math.min(Motion.sheetOut.duration, flung),
    );
    offset.set(slide(height.get(), duration, done));
  },
  …
);
Excerpt, trimmed with …. sheetOut is 240 ms, never under 120.

Top up and Dial were two hand-animated sheets that kept the network's answer to themselves, so closing one lost the request, and the two could start competing sessions on a modem that holds one. They now share one session. Close and keep it running really keeps it: reopen either sheet and the answer or the menu is where it stopped. The answer is one box that changes shape between waiting, a menu to reply to and the answer, never a new box at a new size.

Fig. 5*310# sent through the router: one box waits for the network, then springs to the size of the answer.
lib/motion.ts · ts
export const morph = LinearTransition.springify()
  .stiffness(Motion.spring.gentle.stiffness)
  .damping(Motion.spring.gentle.damping)
  .reduceMotion(ReduceMotion.System);

export const contentIn = FadeIn.duration(
  Motion.surfaceIn.duration,
).reduceMotion(ReduceMotion.System);
gentle is stiffness 385, damping 39. The text fades in over 200 ms, and both go instant under reduced motion.
  1. A speed line drawn on the UI thread

    The live trace is drawn with Skia from shared values. The first version, in SVG, re-parsed a path string every frame and loaded the phone. It spans the latest unbroken minute of readings, so the line always fills the width.

  2. Speed that is actually measured

    A capture proved the router's realtime counter equals the change in its byte counter each second, so the live speed is a real rate, read once a second apart from the slower status poll.

  3. Native where the platform has it

    On iOS the tab bar, headers, long-press menus and confirmations are the system's own; Android keeps the drawn design. Both share the same copy.

A layout study for a foldable iPhone. Folded, the hub reflows wider and shorter. Unfolded, it splits into two equal halves so the fold falls between them, with your devices beside the hub. Same components and data, only reflowed.

Baseband unfolded on a foldable iPhone: the hub on the left half, connected devices on the right
Fig. 6Unfolded: the hub on one half, devices on the other. A study; the shipped app is unchanged.