Skip to the systems

Astro · Lit · Motion · PixiJS

This website is alive.

Not animated — alive. One heartbeat drives everything that moves here. The sky breathes, the interface follows your cursor, the garden further down keeps growing — and cross-breeding — while this tab is closed, the weather drifts on its own, and the colour of every element on screen is a function of the actual time where you are sitting.

Nothing here is on a timeline. Leave it alone and it gets drowsy, then sleeps, then dreams. Switch tabs and it carries on in the favicon. Come back tomorrow and the plants will have grown without you. It has a voice too, but it stays quiet until you ask.

01 — Respiration

It breathes

A single oscillator runs the whole page. The horizon in the sky shader lifts on the inhale, cards ease forward, buttons swell by half a percent, and the headline's letterforms soften — all from the same number.

The curve is asymmetric on purpose. A real inhale takes about forty percent of the cycle and the exhale takes the rest, with a brief hold at the top. Make it a clean sine wave and it stops reading as breathing and starts reading as a pulsing div.

The rate is not fixed either. Move around and it climbs toward sixteen breaths a minute; sit still and it settles to seven; let it fall asleep and it drops to five.

02 — Attention

It watches you

Cursor position is the page's only sense organ, so a lot is made of it. Every eye on this page shares one pointer stream and one set of springs; what varies is where each element sits, which is enough to make six faces look like six creatures rather than six copies.

The page also measures how much you are moving, not just where. That figure drives the breath rate, the pupils, the strength of the glow around your cursor, and how long it takes to get drowsy.

Stop entirely and it works through the stages: alert, awake, drowsy at twenty-two seconds, asleep at fifty-five. Then it starts to dream — a value that builds over about fifteen seconds of sleep and is handed to the sky shader, which slowly abandons the real palette for a cosine gradient that no sky has ever been. Move the cursor and it collapses almost instantly. It should never look like the page is still hallucinating once you are obviously back.

Both pull toward your cursor from about 170 pixels away.

03 — Growth & heredity

It grows, and it breeds

Every plant carries a genome: sixteen heritable traits covering species, segment length, branching angle, curl, taper, leaf spacing, flower size, hue shift and vigour. The whole shape is grown from those numbers. A seed is still stored alongside, but all it does now is supply the jitter that stops a plant looking mechanically symmetrical — same genome, same seed, same plant.

Growth is real time, not a loop. Plants photosynthesise faster in daylight, drink when it rains, wilt in drought, and slow down but never stop at night. Around fifteen minutes of good conditions takes a seedling to maturity. Then they flower, seed, and fade back into the soil, raising the fertility for whatever grows next.

What happens at the flowering stage depends on who visits. Bees and butterflies work the bed by day, moths after dark; none of them fly in rain or a strong wind. They navigate to open flowers rather than drifting, and they prefer a plant they aren't already carrying pollen from — so pollen genuinely crosses the bed.

A plant that has been pollinated produces a seed whose genome is a cross: each trait independently dominant from one parent, dominant from the other, or intermediate, then nudged. One left alone selfs instead, drifting slightly, so a garden nobody visits still changes over generations. Ferns sit the whole thing out — they have no flowers, so nothing comes to them.

The calendar reaches the bed too, and as a cross-fade rather than a switch: four season weights that sum to one, so mid-October is mostly autumn with summer still bleeding through. Growth runs at about half speed in midwinter and a fifth above normal in spring. Canopies turn gold on a per-plant delay, so the change moves through the bed over weeks instead of happening at once, and the leaves that come off drift on the same wind the clouds are using. Snow lies on the soil while it falls and melts back into the moisture budget when the temperature climbs.

04 — The food web

It gets infested

Aphids arrive on warm dry days, mostly in spring and summer. A colony grows logistically — fastest in the middle, stalling as the plant saturates — and spreads to neighbours at a rate that falls off with distance across the bed. A stressed plant supports a bigger colony than a vigorous one, which is the detail that turns a nuisance into a feedback loop.

The damage is real. A colony drains vigour, cuts growth by up to half, and past 45% the plant stops offering flowers at all — which quietly removes it from pollination until something intervenes. An infestation in this bed costs you crosses.

Ladybirds work the day shift; lacewings take over at dusk and keep the pressure on overnight. Neither turns up until the aphid load crosses a threshold — prey needs a head start or there is never an outbreak worth seeing — and then they arrive steeply and leave slowly. That combination is the whole trick: high gain with a lag longer than the prey's own growth time makes the population overshoot, crash the colonies and have to leave again. A gentler response just finds an equilibrium, and the load sits there forever looking like a bug.

Rain washes them off, frost ends them, a gale grounds the predators, and watering the bed by hand rinses a tenth of every colony away. Leave for a few hours and you will usually come back to an outbreak, because the colonies kept growing while their predators were not being simulated alongside them.

The loop

  1. Aphids colonise a plant and multiply.
  2. Vigour falls, which raises the colony's ceiling.
  3. Flowers close above 45%; pollinators stop visiting.
  4. Predators arrive once the bed-wide load passes 1.5.
  5. The colonies crash, and the predators leave.
  6. It starts again. Roughly every few minutes.
Ladybird
Daylight above 0.3. Fast and direct, eats a third more than a lacewing, folds its wings away while feeding.
Lacewing
Dusk and after. Slower, daintier, blown further off course by wind, and the only thing hunting overnight.

The readouts under the bed in the previous section are live: aphid load, plants infested, what is currently hunting, and how much infestation has been eaten across every visit.

05 — Weather & sun

The sky moves on

Weather walks a Markov chain. Every ninety seconds to three and a half minutes the current system rolls for a successor, weighted so it can only move to something adjacent — clear never jumps straight to storm, it has to get there through fair, cloudy and rain. That constraint is the whole reason the sky feels continuous instead of shuffled.

Today's real date picks the season, which re-weights the table: snow is common in winter and impossible in summer, storms peak in July, mist belongs to autumn. Aurora only rolls after dark.

The sun runs on the standard sunrise equation against the real calendar day, so the night is genuinely long in December and short in June. Everything you see is a crossfade — no system ever cuts.

Voice

All of this can be heard as well as seen. Wind is filtered noise whose band and level track the real wind vector; rain is the same noise through a highpass, scaled by precipitation; thunder fires on the same event the lightning does, as a burst with a filter sweeping down over two and a half seconds. Crickets chirp at a rate taken from Dolbear's law, which really is a thermometer. Birds arrive within an hour of your actual sunrise. Underneath it all is a sub-bass swell on the breath.

06 — Circadian colour

It keeps your hours

There is no dark mode here, and no dark: variant anywhere in the markup. Seven palettes are pinned around the clock — deep night, first light, sunrise, midday, golden hour, dusk — and the current time is interpolated between the two it falls between, hue by hue, on the short way round the wheel.

The result is written straight onto :root as the same HSL custom properties Tailwind compiles against. So bg-primary is a different green at noon than it is at nine in the evening, and every component follows without knowing anything about it.

Writing custom properties on the root element invalidates style for the entire document, so this runs at eight hertz rather than sixty, and skips any value that has not changed. The sun does not move fast enough for anyone to notice the difference.

Drag the sun slider in the previous section to watch these move.

07 — Anatomy

One heartbeat

The rule that makes this hang together: there is exactly one requestAnimationFrame loop on the page, and every system subscribes to it. CSS animations and per-component loops each run on their own timeline and drift apart within seconds — which is precisely why most animated pages read as a pile of unrelated widgets rather than one thing.

Motion is used only for transitions that have a beginning and an end: scroll reveals, the notice that appears when you come back, the caption under the garden. Continuous motion belongs to the heartbeat. One writer per property, always.

Three substrates

A WebGL sky in PixiJS, a garden in SVG, and the interface in plain DOM — all reading the same state object on the same frame.

Light-DOM web components

Lit elements render into themselves rather than a shadow root, so one Tailwind sheet and one set of CSS variables reach every organ.

Zero binary assets

Clouds, rain, snow and sun flares are drawn into offscreen canvases at boot, and every sound is synthesized from noise and oscillators. Nothing is fetched and nothing pops in.

Alive in the tab

The favicon is a canvas redrawn every two seconds with the live sky and the sun at its real position. It runs on an interval rather than the heartbeat, because the heartbeat correctly stops when the document is hidden — which is exactly when this matters.

Organs sleep off-screen

Each element only ticks while it intersects the viewport, so an idle tab costs one shader draw instead of nine live systems.

It degrades quietly

No WebGL leaves a correct CSS gradient. No local storage starts a fresh garden. No JavaScript at all still leaves a readable page.

It respects the setting

Under prefers-reduced-motion the rhythm keeps running so timings stay correct, but the amplitude collapses to nothing.