ecs
say hello

Blog

A web page, a machine and a 3D object, in one night

At noon Body's sky was a web page. By 1:30 a.m. it was a 2D machine, a 3D object you can look around, and a kit for building more.

6 min read

Yesterday I posted about Body, the health app that sends my day’s numbers to Haru. The same day, those numbers got a public page on the lab. By the end of the night that page had been through four shapes.

Where it ended up: the 3D machine arriving, rewinding the week behind its shutter.
Where it ended up: the 3D machine arriving, rewinding the week behind its shutter.

Noon. A web page with a sky

The idea came first: every day of the record is drawn as its own sky. Steps are the wind, sleep is the night, HRV calms the clouds, hard minutes light an aurora, each workout is a shooting star, the horizon beats at my resting heart rate, and the sea sits at my weight trend. It’s numbers only. No meals, notes or photos leave the health repo.

The first version was a web page. The sky filled the window, a glass card floated over it with a one-line verdict and seven tiles, a rail on the right jumped between days, and a plain table sat underneath.

The first /body, at noon on November 2: the sky full-window, a glass card over it.
The first /body, at noon on November 2: the sky full-window, a glass card over it.

It worked. It also felt detached, like a weather app floating over a screensaver.

9:48 p.m. The page becomes a machine

So the sky moved into an old desktop device: an anodized cyan case with countersunk screws, the sky on a bezelled screen, a channel rack down the right, and a cassette deck along the bottom. The card’s seven tiles became the rack’s eight channels. The day rail became a row of day keys with a scrub under it.

The first machine, at 9:48 p.m.
The first machine, at 9:48 p.m.

9:48 p.m. to 1:10 a.m. The parts

Most of the night went into the parts, one at a time.

The screen. Point at anything in the sky and it reads out: the sun is active energy, the pulse on the horizon is resting heart rate. With labels on, every element gets a tag, and the tags dodge each other so nothing overlaps.

The sky with labels on.
The sky with labels on.

The channel rack. Each sky element is a channel. Read it, solo it, or label it. Solo the clouds and the rest of the sky dims, and the readout under the rack says what you’re looking at. The rack never moves, so pointing at the sun doesn’t shove the rows around.

Clouds soloed: 46 ms HRV, against an average of 53.
Clouds soloed: 46 ms HRV, against an average of 53.
The rack.
The rack.

The deck. Rewind, Play and Now are graphite keys that latch down and light a small lamp. Every key on the machine is the same cap on a shared plate, so nothing looks like a website button anymore. The day keys show each day’s sun and stars, and the scrub runs through the hours.

The deck: the cassette, the transport, the clock and the week.
The deck: the cassette, the transport, the clock and the week.

The cassette. The day picker is a tape. By 1:10 a.m. it was a shell sitting in its own bay: it lifts a little under the pointer, tips in when you press it and clunks as it seats. Play spins the reels up and Pause lets them coast.

The cassette in its bay.
The cassette in its bay.

The day card. Pressing the cassette folds the day card out from the left: the same numbers as tiles, each with its target.

The day card out beside the sky.
The day card out beside the sky.

The printer. The plain table used to scroll over everything. Now Print feeds it out of a slot under the title bar on thermal paper, and Tear off rips it away.

The record, printed.
The record, printed.

It’s still a plain web page underneath. Text is selectable, keys are buttons, and it works with a keyboard and a screen reader.

The 2D machine, finished.
The 2D machine, finished.

11:59 p.m. The machine becomes an object

The flat machine looked like it should have sides. So /body/3d puts the live page inside a three.js case with real thickness, a chamfered edge and steel screws, and bolts an armoured front frame over it: gunmetal bezels round each module, a shutter housing in the title bar, a caution bar at the foot, hinges and a grip.

The trick is that the face isn’t a picture of the page. It is the page, laid onto the case with one transform per frame, so every control still works: point at the sky, solo a channel, print the record. The transport keys are real 3D caps that travel and latch. The case tilts toward your pointer and swings when you drag it. When you arrive, a STANDBY shutter rolls up while the record rewinds behind it. Tear off the record and it falls out of the machine onto the desk.

The 3D machine, reading the clouds on October 30.
The 3D machine, reading the clouds on October 30.
The case leaning toward the pointer.
The case leaning toward the pointer.

Phones and reduced motion get the flat machine.

12:24 a.m. One becomes the other

Two versions means picking one, so they got joined. On a desktop that can handle it, /body now builds itself: the camera swings to three-quarters, the case grows its side walls, the bezels land, bolts spin in left to right and the shutter drops with a jolt, all to synthesized clunks. Any key skips it, and there’s a key to go back to 2D.

1:04 a.m. The object becomes a kit

Nothing in the case was specific to health. The keys, the cassette, the printer, the armour and the 3D stage would work around any page, so they came out of the lab into their own package, instrument-kit. It’s getting its own announcement, so that’s all I’ll say here.

The night, in numbers

From the first machine commit to the kit’s last fix was a bit under four hours: 9:48 p.m. to 1:29 a.m. The lab side was 62 files and about 6,900 lines added since noon. Claude wrote most of the code. My job was taste: saying no to the cheap palette, asking for real keys, and saying “this is awesome” when the 3D version first loaded.

Next is a small 3D world around the machine, built from the same kind of reusable pieces. Go point at the sky.

Liked this?

The next one comes to your inbox. Unsubscribe whenever.