PSPratyush Shivam

Built to be held.

Fifteen things I built outside the day job. Each takes a system that is usually explained with a diagram and turns it into something you can play with. All open source, all running in a browser tab, none needing an account.

  1. 01Understory
  2. 02Thin Air
  3. 03Eden
  4. 04Event Horizon
  5. 05Rookie
  6. 06Doodle Drive
  7. 07Whisper
  8. 08Lookback
  9. 09Latency
  10. 10Junction
  11. 11Paper Plane
  12. 12Nine Zeros
  13. 13Likely
  14. 14Unasked
  15. 15The Blockchain Wire

01 / Experience

Understory

One night on the floor of the Amazon, with one torch.

Understory: One night on the floor of the Amazon, with one torch.

You stand in lowland rainforest at Yasuní, in Ecuador, as the light goes. Your torch shows a cone of wet leaves, trunks and mist, and everything else is black and full of sound. Eyes shine back at you in the colour each animal's eyes really shine. The whole night, 17:45 to 06:25, plays in about ten minutes. Every animal in it has a record from this forest, sits at the height it really lives at and is out at the hours it is really out. Most of them you will only hear.

In the forest
58 entries, 52 named species
Voices
25 field recordings
Download
2.7 MB

TypeScript · three.js · WebGL2 · Web Audio · Vite

02 / Game

Thin Air

Climb Mount Everest on the real mountain, by the real route.

Thin Air: Climb Mount Everest on the real mountain, by the real route.

You climb from Base Camp to the summit by the South Col route, on a mountain built from satellite elevation data. There is one control: hold to climb, let go to breathe. The barometer, your blood oxygen, the wind chill and the gauge on your oxygen bottle are worked out from published formulas and pinned to measurements taken on Everest. You can reach the top. You can turn round a hundred metres short of it and walk away. You can also not come down.

Summit
8,848.86 m
Route
12.4 km, 611 mapped points
One climb
About 12 minutes

TypeScript · three.js · Vite

03 / World

Eden

A whole small planet where every creature thinks for itself.

Eden: A whole small planet where every creature thinks for itself.

It starts with water, plants and nothing else, and every creature that will ever live on it is one you set down. Each carries its own small neural network that decides where it goes, what it eats, whom it follows and what it runs from, and children inherit their brains from their parents. One kind, the kith, hold beliefs, pass them on, invent things and name them. You can take a body of your own, walk among them and find out what they make of you.

Kinds of creature
7, in 3 tiers of mind
Alive at once
Up to 800
Brains
One network each

TypeScript · three.js · WebGL2 · neural networks from scratch

04 / Game

Event Horizon

Fly a ship around a real black hole, traced live.

Event Horizon: Fly a ship around a real black hole, traced live.

For every pixel of every frame, a ray of light is followed backwards through curved spacetime on your graphics card, so you see what a camera there would see: the shadow, the ring of light, the disk bent over the top. Brake and you fall closer; the lower and faster you fly, the slower your clock runs against Earth's. Climb back out and it tells you how much time went by at home.

Black holes
3, at published masses
Clocks
Yours and Earth's
Server
None

TypeScript · WebGL2 shader ray tracing · Vite

05 / Game

Rookie

Draw a race track. Fifty cars learn to drive it in front of you.

Rookie: Draw a race track. Fifty cars learn to drive it in front of you.

You drag one loop and it becomes a road. Fifty cars line up, each with a small brain full of random numbers, and drive into the walls. The ones that got furthest are kept and bred, and within a few generations one laps cleanly. Then you race the driver you trained, and the link you share carries both the track and its brain.

Cars per generation
50
First clean lap
Median generation 6
Size
About 58 kB

TypeScript · neuroevolution from scratch · 2D canvas

06 / Game

Doodle Drive

Draw any vehicle with one finger. Real physics does the rest.

Doodle Drive: Draw any vehicle with one finger. Real physics does the rest.

Whatever you draw becomes solid, anything round becomes a wheel with a motor in it, and your drawing has to cross hills, steps and wobbly planks to reach a flag. Good drawings get there. Bad drawings are funnier. The hard part is turning a wobbly finger stroke into shapes a physics engine can simulate.

Courses
10
A go
10 to 30 s
Script
67 kB

TypeScript · 2D canvas · planck.js · WebAudio

07 / Game

Whisper

The telephone game, played by ten AIs in your browser.

Whisper: The telephone game, played by ten AIs in your browser.

You type one sentence and a small language model passes it along a line of ten listeners, each with a personality: the Worrier, the Show-off, the one who is sure it was about a cat. No single step ruins it, yet it arrives wrong. That is what happens when AI agents hand work to each other, and careful mode shows what checking at each hand-off buys you.

Listeners
10
Model
SmolLM2, 360M
Server
None

TypeScript · WebGPU · in-browser inference · canvas

08 / Experience

Lookback

The universe at true scale, in one browser tab.

Lookback: The universe at true scale, in one browser tab.

You start a few thousand kilometres above Earth and scroll out in one unbroken motion, past the Moon, the planets, the nearest stars and the Milky Way, to the edge of the observable universe. Every size and distance is real, the planets are where they are today, and the stars and galaxies come from real catalogues.

Range
20 orders of magnitude
Galaxies
156,940
Download
Under 3 MB

TypeScript · three.js · WebGL2 · Vite

09 / Game

Latency

A three minute game about the speed of light.

Latency: A three minute game about the speed of light.

Cities light up and ask for service. You place data centres and lay cables so every city gets an answer in under 100 milliseconds. Signals travel at the real speed of light in fibre along great circles, so 100 ms buys 10,210 km and no more. The whole game follows from that one fact.

A round
180 s
Cities
36 of 86
Map
New every day

Next.js · TypeScript · three.js

10 / Game

Junction

Draw every car a path home. One finger.

Junction: Draw every car a path home. One finger.

Cars, vans and trucks drive into a yard from all four sides, and each belongs in the garage of its own colour. Press on one and drag a line; it follows it home. It starts calm, then a third garage opens, the trucks arrive and the gaps shrink. Every garage also has a shape, so it never depends on telling colours apart.

Garages
Up to 5
Today's round
Same for everyone
Size
About 45 kB

TypeScript · 2D canvas · WebAudio

11 / Game

Paper Plane

Pull back, aim, let go. See how far today's sky carries it.

Paper Plane: Pull back, aim, let go. See how far today's sky carries it.

A paper plane, a top-floor window and a long hand-drawn world of rooftops, a park, a river and hills. One gesture throws it, and after that the air decides: wind, warm air rising off sunny roofs, cold air sinking over the water. There is one sky a day, the same for everyone, so a distance means something.

Throws
3, best counts
Sky
One a day
Script
About 29 kB

TypeScript · glider flight model · canvas · WebAudio

12 / Explainer

Nine Zeros

Will it scale, and what will it cost?

Nine Zeros: Will it scale, and what will it cost?

One slider, from one user to a billion. As you drag, the system redraws itself: one small server becomes a load balancer, a cache, a queue, shards and regions, with the monthly bill and cost per user beside it. Freeze the system and keep adding users to watch it slow down and fail.

Slider
1 to 1,000,000,000
Stages
7
Assumptions
16, all editable

TypeScript · 2D canvas · no framework

13 / Explainer

Likely

Watch a language model choose its next word.

Likely: Watch a language model choose its next word.

A real language model runs in your browser and shows the odds it gives every next word before it picks one. Turn one dial to bend those odds, or click any word and follow the sentence that was never written. Nothing is mocked and your text never leaves the page.

Model
SmolLM2, 135M
Runs
On your device
Server
None

TypeScript · WebGPU · in-browser inference

14 / Explainer

Unasked

The file your browser hands to every website.

Unasked: The file your browser hands to every website.

With no clicks and no permission prompts, the page writes out 41 plain sentences about you: your machine, your software, where you are and how you got here. Every line turns over to show how it was found and what reduces it. All of it is worked out on your own device.

Sentences
41
Permissions asked
0
Sent anywhere
Nothing

TypeScript · Vite · GSAP · Lenis

15 / Publication

The Blockchain Wire

Every blockchain headline, as it happens.

The Blockchain Wire: Every blockchain headline, as it happens.

One page for the day's blockchain news, read every hour from the outlets that report it and linked straight back to them. Nothing is picked or ranked by hand. Pieces I write are marked From the editor. One script, no backend, and it costs nothing to run.

Sources
13 outlets
Refresh
Every hour
Backend
None

Node · GitHub Actions · Cloudflare