# Pratyush Shivam: full site text > Pratyush Shivam is the CTO of Konfidio, leading the technology behind TrustedTrucks: a permissioned blockchain network that gives European freight one shared record. Distributed systems, enterprise blockchain and product engineering. Canonical site: https://www.pratyushshivam.com ## Frequently asked questions ### Who is Pratyush Shivam? Pratyush Shivam is the Chief Technology Officer of Konfidio GmbH, where he leads the technology behind TrustedTrucks, a permissioned network that gives European freight one shared record of every shipment. He is also co-founder and CEO of Keisang HR. ### What does Pratyush Shivam do at Konfidio? As CTO he owns the technical vision, architecture and roadmap, and leads the engineering team. He built the TrustedTrucks platform from architecture to production, including the web platform, the Android app and the permissioned blockchain layer underneath. ### What is TrustedTrucks? TrustedTrucks is a freight platform where shippers, forwarders, carriers and consignees work from the same record of a shipment, from the first quote to proof of delivery and payment. Each company connects once and works with every partner on the network. ### Why does TrustedTrucks use a permissioned blockchain instead of a public one? Freight is business between known companies, and rates, lanes and customer lists are commercially sensitive. A permissioned network gives a shared, tamper-evident record while each party sees only what its role allows, with predictable costs and clear answers about who can see what. ### What can a blockchain prove in logistics, and what can it not? It can prove that a document has not changed since it was anchored, who approved it and when, and the order in which things happened. It cannot prove that the document was true to begin with, and a fingerprint is not a signature. ### Do TrustedTrucks users need a crypto wallet? No. The blockchain is infrastructure. A dispatcher sees "approved" and a carrier sees "paid"; nobody on the platform needs a wallet or has to think about a chain. ### Which technologies does Pratyush Shivam work with? Distributed systems and event-driven backends, permissioned blockchain with GoQuorum and Solidity, Kubernetes and AWS in production, Node.js and NestJS services, PostgreSQL, and Next.js, React and React Native on the web and mobile. ### What is Pratyush Shivam's background? He started as a software developer in 2016, worked as a frontend and full-stack engineer, joined TrustedTrucks as a Senior Software Engineer in 2021, became Lead Software Engineer in 2023 and CTO of Konfidio in 2024. He holds a B.Tech in Computer Science from Kalinga Institute of Industrial Technology (KIIT), and a certificate in blockchain and cryptocurrency from a University of Michigan online course. ### Where does Pratyush Shivam write? He writes about permissioned blockchain, freight and distributed systems on LinkedIn, and the articles are collected on this site under Writing. ### How can I contact Pratyush Shivam? By email at pratyushshivam7@gmail.com or on LinkedIn at linkedin.com/in/pratyushshivam. He is open to conversations with investors in digital freight infrastructure, logistics operators and engineers. ## Case studies ### One shared record URL: https://www.pratyushshivam.com/work/one-shared-record/ A freight platform where shipper, forwarder, carrier and consignee work from the same shipment, from the first quote to payment. **Context: Five versions of one shipment.** A single load usually lives in an email, a PDF, a tracking portal, a paper signature and a retyped invoice. Each company keeps its own copy, and the copies drift apart. **Challenge: Agreement between companies, not inside one.** Most software is built for one organisation. Freight needs several independent companies to rely on the same facts without handing control of them to any single party. **Thinking: Model the shipment, not the paperwork.** Quotes, orders, tracking, documents and invoices are treated as stages of one record rather than as separate tools. Every later step reads from what was already agreed. **Engineering: One platform, end to end.** I led the build from architecture to production: quotations and orders, live tracking, document approvals, invoicing, backhaul matching and carbon accounting, on the web and on Android. **Result: TrustedTrucks, in production.** The platform runs today as TrustedTrucks. Each company connects once and works with every partner on the network, instead of maintaining an integration per partner. **What I learned: The record is the product.** Features come and go. What customers actually rely on is that everyone sees the same thing at the same moment. Protect that and the rest follows. ### Evidence, anchored URL: https://www.pratyushshivam.com/work/evidence-anchored/ Shipment documents are fingerprinted on a permissioned blockchain, so every party can verify them instead of disputing them. **Context: Disputes start with documents.** A delivery note is signed, scanned, forwarded and re-saved. When two versions disagree weeks later, nobody can show which one is original. **Challenge: Prove integrity without exposing content.** Freight documents are commercially sensitive. The proof had to be shareable between companies while the documents themselves stayed private. **Thinking: Anchor the fingerprint, keep the file.** Only a cryptographic fingerprint of each document goes on chain. The file stays where it belongs. Anyone with the document can check it; nobody can read it from the ledger. **Engineering: Approvals as contracts.** Smart contracts encode who has to approve what, and in which order, following each company's own signing route. Transaction signing is handled by a dedicated service, so applications never touch keys. **Result: Verified instead of argued.** Any party can confirm that a document is the one that was approved, when, and by whom. The question "is this the right version?" has a checkable answer. **What I learned: Be exact about what you prove.** A fingerprint shows a document has not changed. It does not show the document was true. Saying that plainly is what makes the rest of the claim credible. ### Proof of delivery to invoice URL: https://www.pratyushshivam.com/work/proof-to-payment/ Accepted delivery evidence becomes the invoice, so carriers are paid on evidence instead of paperwork. **Context: Delivered is not the same as paid.** After a delivery, the carrier collects a signature, sends a scan, writes an invoice and waits while someone compares one against the other. **Challenge: The same facts, typed twice.** The invoice repeats what the delivery evidence already says. Every retyped field is a chance for a mismatch, a query and a delay. **Thinking: Let the evidence carry forward.** If the delivery has been accepted on the shared record, the invoice should be generated from that record instead of written again beside it. **Engineering: One flow, each company's rules.** Accepted proof of delivery flows straight into the invoice. Approvals follow each company's own signing route, so the process fits how finance teams already work. **Result: Paid on evidence.** The invoice arrives already backed by the delivery it refers to. There is nothing to reconcile, because both came from the same record. **What I learned: Remove the step, don't speed it up.** The best improvement to reconciliation was not making it faster. It was designing the flow so the two sides could not disagree in the first place. ### Carbon from the trip URL: https://www.pratyushshivam.com/work/carbon-from-the-trip/ Shipment emissions measured from the journey that actually happened, on a GLEC Framework and ISO 14083 basis. **Context: Emissions are usually guessed afterwards.** Carbon reports are often built months later from averages and spreadsheets, far from the trips they describe. **Challenge: A number people can stand behind.** An emissions figure is only useful if a shipper, a carrier and an auditor can all see where it came from. **Thinking: Carbon is a view of the shipment.** The record already knows the route, the vehicle and the load. Carbon accounting belongs inside that record, not in a separate project after the fact. **Engineering: From estimate to actuals.** Emissions are estimated at order time and then replaced with actuals from the delivered trip, aligned with the GLEC Framework and ISO 14083. **Result: Measured, not modelled after the fact.** Each shipment carries its own emissions figure with the journey behind it, available to the parties on that shipment. **What I learned: Standards are a design input.** Building to a recognised method from day one is far cheaper than retrofitting it, and it is the only way the number means the same thing to everyone. ### A permissioned network, in production URL: https://www.pratyushshivam.com/work/a-permissioned-network/ An Ethereum-compatible network between known companies, run with the same discipline as any other production system. **Context: Freight is business between known companies.** Shippers know their forwarders. Forwarders know their carriers. What the industry lacks is not identity, but a single version of the truth. **Challenge: Trust without exposure.** Rates, lanes and customer lists are competitive data. A public ledger, visible to everyone forever, works against the grain of the business. **Thinking: Visibility by design.** On a permissioned network, each party sees what its role allows and nothing more. Costs are predictable, and there is a clear answer to who can see what. **Engineering: Operated, not just deployed.** I designed and run the network layer: onboarding participants, permissioning, monitoring and upgrades, alongside containerised services with automated build, test and release pipelines. **Result: Invisible to the people using it.** A dispatcher sees "approved". A carrier sees "paid". Nobody on the platform needs a wallet or has to think about a chain. **What I learned: Production is the real test.** Designing a network is one challenge. Running it reliably every day is another, and it is the one customers notice. ### The network in a pocket URL: https://www.pratyushshivam.com/work/the-network-in-a-pocket/ The TrustedTrucks Android app on Google Play: post loads, send quotes, approve proof of delivery and confirm invoices. **Context: Freight happens away from desks.** Forwarders and carriers make most of their decisions on the move, between calls, at depots and on the road. **Challenge: A whole workflow on a small screen.** The app had to cover real work, not a read-only companion: quoting, approving and confirming, with the same record behind it as the web platform. **Thinking: Native feel, calm motion.** People should recognise the app as a tool they already know how to use. The complexity of the network stays underneath. **Engineering: One record, two surfaces.** Built with React Native on the same APIs as the web platform, so an approval made on a phone is the same approval everywhere else, immediately. **Result: Live on Google Play.** Forwarders and carriers can post loads, send quotes, approve proof of delivery and confirm invoices from the app. **What I learned: Mobile exposes every shortcut.** A flow that is merely tolerable on a desktop is unusable on a phone. Designing for the small screen improved the product everywhere. ## Projects ### Understory URL: https://www.pratyushshivam.com/projects/understory/ Live: https://pratyushshivam.github.io/understory/ Source: https://github.com/pratyushshivam/understory 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. **A forest at the measured density.** The place is terra firme forest at Tiputini Biodiversity Station in Yasuní, Ecuador. The page grows 4 hectares at 702 trees per hectare, one in ten a stilt palm, as counted on the 25-hectare Yasuní plot, with heights from the published curve for western Amazonia. The position of each tree is generated, not surveyed. About 2,400 trunks, 5,400 understory plants and 560 animals are instanced, with one draw call per species and per forest chunk. **One torch, no shadow maps.** The torch is at your eye, so its shadows hide behind the things that cast them and no shadow maps are needed. Mist in the beam is 14 steps of ray marching in one full-screen pass, 8 on phones, and the same pass does the dawn shafts, tone mapping and grain. Light on the forest floor is 1.5% of open sky, and twilight follows the standard illuminance values for the Sun's angle. If the frame rate drops, resolution is lowered before anything else. **Eyes that shine back.** Eyeshine is your own torch, returned. Its brightness falls with the fourth power of distance and with the area of the pupil, and animals with no reflecting layer behind the eye do not shine at all. It is computed per eye on the CPU by the same function the tests check. Most colours follow the animal's group: frogs and spiders green, owls, opossums and rodents red, cats golden, caimans red-orange. Where a colour is an assumption, the animal's card says so. **Sound you can walk towards.** Every voice belongs to a placed animal. There are 25 field recordings from xeno-canto, each trimmed to one clear call and played from where that animal sits through an HRTF panner, so with headphones you can turn towards a call and walk to it. Level falls 6 dB per doubling of distance, plus the forest's own loss, which rises with pitch, so the howler carries across the whole site and a katydid a few tens of metres. Katydids, crickets and cicadas are synthesised. **Every animal in its place and hour.** There are 58 entries: 52 named species, 5 insect and spider groups and one fungus that has no name yet. Each has a record from Tiputini or the Yasuní reserve, sits where it really lives and is out only in its own hours. The night runs from 17:45 to 06:25 in about ten minutes, slower at dusk and dawn. Each night has a number taken from the date, and the same number gives everyone the same trees, the same animals and rain at the same minute. 52 tests cover the core. Understory teaches that a rainforest at night is mostly heard, not seen. About 560 animals are placed around you each night, and at dawn the notebook tells you how many were there all night and never let you know. It also shows why eyeshine fades so quickly with distance: the light spreads on the way out and again on the way back. ### Thin Air URL: https://www.pratyushshivam.com/projects/thin-air/ Live: https://pratyushshivam.github.io/thin-air/ Source: https://github.com/pratyushshivam/thin-air 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. **A mountain from radar.** The shape of the mountain is Copernicus DEM GLO-30, a 30 metre elevation model made from the TanDEM-X radar satellites. The page ships a 1,024 by 1,024 grid at one arc-second around the route, about 28 by 32 km, and a coarser 512 by 512 grid for the horizon, so Makalu, Cho Oyu, Pumori and Ama Dablam stand where they stand. The line you climb is the South Col route as OpenStreetMap has it: 611 mapped points, 12.4 km from Base Camp to the summit. **Where the data runs out.** Thirty-metre data rounds off knife-edges. Copernicus reads 8,724 m at the surveyed position of the summit and is 50 to 170 m low along the whole Southeast Ridge. So I raised the ridge the route climbs to four surveyed heights, from the South Col at 7,906 m to the summit at 8,848.86, each tapering to nothing within 400 m. Within about 190 m of the climber the page adds invented ice blocks, crevasses and wind-packed snow, faded so they sit on the real surface. **Air and blood.** Air pressure follows John West's model atmosphere for the Himalaya, which gives the 253 mmHg measured on the summit in 1981 where the textbook atmosphere gives 236. Blood oxygen comes from the alveolar gas equation and the Severinghaus haemoglobin curve, fitted to arterial blood drawn from four climbers at 8,400 m in 2007. Bottled oxygen is expanded to the thin air by the gas laws and mixed into each breath, so two litres a minute lowers the mountain by about two kilometres and does not take you to sea level. **The sun, the stars and the season.** The sun's position comes from NOAA's solar position equations for the date and the Nepal clock time, and shadows are cast by the real relief. The night sky is every star to magnitude 5.6 from the HYG catalogue, turned to Everest's latitude and the hour. The weather is grown from a seed in the address. Its shape is the real one, with the jet stream on the summit through April and short calm windows in the second half of May, and the same seed always gives the same season. **Checked against measurements.** There are 40 tests. Pressure at three heights matches West's 1983 measurements within 2%, and the summit within 1 mmHg. Arterial oxygen at 8,400 m comes out within 2.5 mmHg of the 2007 samples, and wind chill reproduces four rows of Environment Canada's table. The rest play whole expeditions with a rule-following climber: a patient one summits and comes home, the same one without oxygen does not reach the top, and one who ignores the forecast and the turnaround time dies. Thin Air teaches that the top of Everest is hard because of the air. Each breath on the summit holds 29% of the oxygen of a breath at sea level, and a climber there can do under a quarter of the work. It also shows why a turnaround time matters: of the deaths above 8,000 m from 1921 to 2006, 56% were on the way down from the summit. ### Eden URL: https://www.pratyushshivam.com/projects/eden/ Live: https://pratyushshivam.github.io/eden/ Source: https://github.com/pratyushshivam/eden 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. **A planet grown from one number.** The world is not a flat map. It is a sphere of 38,400 cells, made by blowing a cube into a ball, and it grows from a single seed, so the same number always gives the same planet. Layered noise lays out continents with about a third of the surface as land. Climate comes from latitude and height, rivers are traced downhill until they reach the sea or fill a lake, and the planet turns once every two minutes with a tilt that gives the north and south opposite seasons. **Senses in, decisions out.** Every creature runs its own feed-forward network. The same 21 senses go in, among them hunger, thirst, fear, cold, the dark, food in sight and its own kind nearby, and the same 22 decisions come out. I made the first eleven decisions weights on directions rather than actions: how much to head for food, for water, for kin, or away from a threat. The creature moves along the sum. A brain of random numbers runs from food and walks at hunters, which is why brains have to be bred. **How a brain is inherited.** A creature you set down arrives with rough instincts and a lot of noise. Every creature born after that gets its weights copied in runs from its mother and its father, with about one in twelve nudged at random. Nothing is trained. The ones that live longer leave more children. A test evolves grazers for thirty days, then puts their descendants' brains against random ones on fresh ground, and it only passes if the bred brains survive far longer. **An event becomes a belief.** The kith, the thinker kind, form beliefs about places. A narrow escape, or food found while starving, becomes a belief, and that belief is a new input to its own network. When two meet, one tells the other, and one telling in eight is misheard as a different place, so wrong ideas travel too. A test runs it cleanly: twenty-four kith around one place, half told it is dangerous. After three days the believers spend less than three quarters as much time there. **Deterministic, and checked.** The engine is pure TypeScript with a fixed time step and one seeded random generator. The same seed and the same actions give the same history, and a test checks it. Another test checks the energy books: everything alive was given or grown, minus what was burned or lost, to one part in a million. A third checks that a planet restored from a save carries on exactly as the original would have. The drawing steps down by itself on slower machines. Eden shows that behaviour can come from selection alone. Nobody writes the rules for herding, fleeing or following a parent. Networks that happen to do those things leave more children, and their weights spread. It also shows how a belief can change where a whole population goes, even when that belief started as a mishearing. ### Event Horizon URL: https://www.pratyushshivam.com/projects/event-horizon/ Live: https://pratyushshivam.github.io/event-horizon/ Source: https://github.com/pratyushshivam/event-horizon 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. **One equation per pixel.** Every light path near a non-spinning black hole lies in a plane, and in that plane the null geodesic of the Schwarzschild metric reduces to one second-order equation in u = rs/r against the angle swept. The fragment shader integrates it for each pixel with fourth-order Runge-Kutta, in steps of 0.11 to 0.2 radians and at most 100 steps. A ray ends one of three ways: captured in the shadow, escaped to the sky, or crossing the disk, where it picks up the colour of the gas. **Why I step in angle.** Stepping in angle rather than distance is what makes it fast enough to run live. A ray that barely bends costs about thirty steps however far it travels, and its direction at infinity comes out exactly, with no cut-off for far enough. Rays that circle near the photon sphere cross the disk two or three times, which is what draws the thin rings. The page also counts late frames and changes its tracing resolution, from a third of the screen to one and a half times it. **A disk that glows by the textbook.** The disk ends at the innermost stable orbit, 3 Schwarzschild radii. Its brightness follows the Page and Thorne thin-disk result, which peaks at 4.78 radii, and each ring glows as a blackbody. Light is then shifted by gravity and by the orbital motion of the gas together, and brightness scales with the fourth power of that shift, so the side turning towards you is brighter and bluer. Colours come from Planck's law integrated against the CIE 1931 colour matching functions. **The ship and its clock.** The ship follows a timelike geodesic plus thrust. Where Newton has r, the equation has r minus 3GM/c², and that one term makes orbits precess and circular orbits unstable below 3 radii. The engine's push is kept perpendicular to the ship's four-velocity. Earth's time against the ship's is added up along the path actually flown, from gravity and speed together. On a circular orbit the ratio is 1.07 at the station and the square root of two at the innermost stable orbit. **Checked against known results.** There are 45 tests against answers known in advance. A ray launched sideways at exactly 1.5 radii circles the hole, while one a hair outside escapes and one a hair inside falls. Circular orbits stay circular for 50 orbits. From the published masses and distances alone, the shadow of Sagittarius A* comes out at 53.3 microarcseconds and M87* at 39.7, both inside the ring sizes the Event Horizon Telescope measured. Event Horizon teaches that gravity bends time as well as light. The lower and faster you fly, the more of Earth's time passes for each second of yours, and near the photon sphere the ratio has no limit. It also shows why a bigger black hole has a gentler edge: the tidal stretch at the horizon falls with the square of the mass. ### Rookie URL: https://www.pratyushshivam.com/projects/rookie/ Live: https://pratyushshivam.github.io/rookie/ Source: https://github.com/pratyushshivam/rookie 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. **What a car can sense.** A car never sees the track. It gets seven distances to the wall, along lines fanned from 75 degrees left to 75 degrees right and capped at 300 units, plus its own speed: eight numbers between 0 and 1. These go into a feed-forward network with 6 hidden neurons and 2 outputs, steering and pedal, joined by 68 weights. Each neuron sums its weighted inputs, adds a bias and squashes the total with tanh. It runs sixty times a second. **How a generation is bred.** After each generation the fifty cars are ranked by the furthest point they reached. The best four go through unchanged, so the best can never get worse. Every other seat is filled by tournament selection: three picked at random from the better half, the best of them kept, and half the time a second parent mixed in weight by weight. About a fifth of the child's weights are then nudged. When progress stalls the nudges grow, and after three stuck generations six newcomers join. **Why I chose evolution over gradients.** I used neuroevolution because it is honest and visible. There is no gradient, no reward during a drive and no training data. Every car on screen is a different network, and the only thing separating a good one from a bad one is how far it got. It learns fast because the problem is small on purpose: a network that merely turns away from the nearer wall already survives the first bend, and every improvement after that is a small step. **From a finger stroke to a road.** The hard part was making any scribble a drivable track. The stroke is resampled and smoothed, an overshoot is trimmed, and if the loop crosses itself the longer loop is kept. A relaxation pass then eases open any corner tighter than 42 units and pushes apart stretches closer than 82 units. The result becomes control points 28 units apart and a closed cubic B-spline. Sensor rays walk a uniform grid of 48-unit cells, testing only the walls in the cells they pass. **A link that carries the driver.** The engine steps at a fixed 1/60 of a second and takes every random number from one seeded generator, so the same seed gives the same evolution, weight for weight. That is what lets a shared rookie drive the same race for anyone. The track is about a hundred whole-number control points and the driver is 68 numbers, so both fit after the # of a link, in about 750 characters, and never reach a server. Rookie shows that nobody has to program driving. Only the scoring was written: how far round the road a car got. Selection and small random changes do the rest. It is also honest about the limit: evolution works here because the network has 68 weights, and networks with millions of weights need gradients. ### Doodle Drive URL: https://www.pratyushshivam.com/projects/doodle-drive/ Live: https://pratyushshivam.github.io/doodle-drive/ Source: https://github.com/pratyushshivam/doodle-drive 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. **From a wobbly stroke to a shape.** A physics engine wants neat convex shapes, and a finger makes wobbly loops that overshoot and never quite close. So each stroke is first resampled, so a fast hand and a slow hand give the same points. If the ends nearly meet, or the stroke crosses itself, the loop is kept and the tails are cut off. Then Ramer-Douglas-Peucker keeps only the corners that matter: a wobbly circle of sixty-odd points becomes a dozen or so. **Deciding what each shape is.** The biggest shape becomes a body. A smaller, compact shape touching a body becomes a wheel, a small shape inside a body becomes a window, and an open line becomes a stick. Hollow outlines are cut into convex pieces of at most eight corners, falling back to the hull if the cut loses area. Touching pieces are welded into one rigid group, and pieces touching nothing fall off. The whole drawing is then scaled to between 2.6 and 5.2 metres. **Making almost anything drivable.** Each wheel gets a sprung axle and a motor. Motor strength is a share of the machine's own weight, so a heavy doodle is not weaker than a light one, and every wheel aims for the same road speed whatever its size. A little traction control eases the motor when the body rears up, and the motors ease off in the air so jumps do not end in a backflip. None of this saves a bad idea. It only makes the failure entertaining. **What is real physics.** The rigid bodies, joints, friction and collisions are planck.js, a JavaScript port of Box2D, stepped at a fixed 60 times a second. Nearly round wheels roll as true circles and lumpy ones keep their lumps, which is why square wheels work, slowly. Each course is a short recipe of hills, steps and seesaws, and the tests drive every course from start to flag with four different doodles, so a physics change cannot quietly make one impossible. **Ink that looks drawn.** The world is one 2D canvas, drawn in metres. Every ink line is traced twice with a slightly different wobble, and the two are swapped seven times a second, which is what makes them look hand-drawn. Every sound is an oscillator or a burst of noise built with WebAudio at the moment it is needed, so there are no audio files. The share picture is drawn on a canvas in the browser, and nothing is uploaded. Doodle Drive shows how much work sits between a human gesture and a simulation. A physics engine only understands convex shapes, joints and motors, so a drawing has to be cleaned, sorted, cut and welded first. It also shows why wheel shape, wheel size and balance matter: a tall tower tips over, and small wheels struggle on stairs. ### Whisper URL: https://www.pratyushshivam.com/projects/whisper/ Live: https://pratyushshivam.github.io/whisper/ Source: https://github.com/pratyushshivam/whisper 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. **One small model plays everyone.** Every listener is the same model with a different instruction and five worked examples. A model this small follows examples far better than descriptions, so the Pirate is mostly five sentences said the pirate way. Each reply is cut to one or two sentences, tidied and checked. If a listener only repeated what it heard, it gets one livelier second try. The model is SmolLM2-360M-Instruct, run through Transformers.js and ONNX Runtime Web in a worker. **It never waits for you.** As the page opens it checks three things: WebGPU with half-precision support, enough reported memory, and whether the browser has asked to save data. If all is well, a worker starts fetching the model while you read. If you press go before it has arrived, that round is played by the light version, with every habit written by hand as plain rules, and the page says so in one quiet line. The next round is real. **Why 360 million parameters.** I tried smaller models first. At 135 million parameters the rewrites fell apart into nonsense words too often to be funny. At 360 million they are mostly coherent and still happily wrong, which is the whole game. The download is 276 MB with 4-bit weights, fetched once and kept by the browser. On the laptop it was built on, a ten-listener round is written in three to six seconds, well before the show finishes. **Careful mode and its blind spot.** In careful mode each listener says the sentence back before passing it on, and the sender compares. The drift meter and the check both count how many content words survive, ignoring case, plurals and small words, with a pass mark of 80%. That stops most of the drift. But a rewording passes, and so does seven socks becoming seven thousand socks, because every original word is still there. A check only catches what it looks for. **Built for a young audience.** What you type, what the model writes and what arrives in a shared link all pass the same blunt word filter. A reply that fails is thrown away, and the hand-written rule answers instead. The stage is one canvas: each listener is about sixty dots on springs, pulled towards a silhouette. A replay link carries the whole chain after the # of the address, because the model never writes the same thing twice. Whisper shows how errors compound when work is handed from one agent to the next. No single step looks wrong, yet the end is wrong, because each hand-off adds and drops a little and the next listener cannot tell what was original. Careful mode shows that checking at each hand-off helps, and what it costs in extra messages. ### Lookback URL: https://www.pratyushshivam.com/projects/lookback/ Live: https://pratyushshivam.github.io/lookback/ Source: https://github.com/pratyushshivam/lookback 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. **The float problem.** A graphics card works in 32-bit floats, about seven significant digits, but the radius of the Earth and the radius of the observable universe differ by twenty orders of magnitude. Put a planet at its real coordinates in a float and it shakes itself to pieces. So every object stores its position relative to its parent, Moon to Earth and Earth to Sun, in float64 metres, and the offset between two objects is summed through their nearest common ancestor. **A camera with no position.** The camera has no world position. It is a small offset from whatever it looks at, and everything is expressed relative to it in float64 before being narrowed to float32, so precision is best exactly where you are looking. Stars live in parsecs and galaxies in megaparsecs, and the camera's position reaches the shader as a high part and a low part. One test shows the naive approach losing a kilometre at Earth's distance from the Sun, where this keeps a micrometre. **No depth buffer covers it.** No depth range covers 1,000 km to 10^26 metres. Stars, galaxies and lines never touch the depth buffer. Solid bodies are drawn far to near, each with a depth range fitted round its own sphere, and since bodies in space do not intersect, nothing can flicker. Distance moves in log space, so one scroll notch multiplies your distance by the same factor, and the guided journey is a monotone spline through the landmarks, with no stops and no cuts. **Eight bytes per star.** Each star is packed into eight bytes: direction in two 16-bit numbers using octahedral encoding, distance in 16 bits on a log scale, and brightness and colour in 8 bits each. That puts 109,400 stars in 875 kB. The file is sorted by brightness from Earth and split in two, so a phone fetches the first 30,000 and still gets the familiar sky. Planet textures step up from a flat colour to 4,096 pixels as they grow, and are released again. **Checked against the real sky.** Planets use Kepler's equation with NASA JPL orbital elements, the Moon uses a series, and each body spins by IAU rotation models. The tests reproduce the Jupiter and Saturn conjunction of 21 December 2020, the close approach of Mars in October 2020, the solar eclipse of 8 April 2024 and the lunar eclipse of 14 March 2025. Distances past the Local Group come from redshift, in a flat universe with the Planck 2018 values. Lookback shows that space is almost entirely distance. If Earth were a full stop, the Sun would be three and a half metres away and the nearest star a thousand kilometres. It also shows that looking out is looking back in time: the edge is 46.1 billion light-years away today, but its light set out 13.8 billion years ago. ### Latency URL: https://www.pratyushshivam.com/projects/latency/ Live: https://pratyushshivam.github.io/latency/ Source: https://github.com/pratyushshivam/latency 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. **Latency is computed, never invented.** Light in vacuum travels at 299,792.458 km/s. In standard single-mode fibre it is slower by the group index of refraction, 1.4682, which gives about 204,190 km/s. A round trip is twice the path length divided by that speed, and distance is the great-circle distance by the haversine formula on a sphere of the Earth's mean radius. The Earth is 40,030 km round, so one data centre can reach a little over a quarter of the way round the planet. **Routing with Dijkstra.** Each city is served by the nearest working data centre along the cables. I compute that with one multi-source run of Dijkstra's algorithm over the cable graph, which gives every city its shortest path in a single pass. Peak demand is the square root of a city's population in millions, and it rises and falls with local solar time, so the busy part of the world moves round the globe as the round goes on. **Failures that favour rings.** From day two, cables are cut and data centres go down. A cable fault is a hazard per kilometre, so long cables and big networks are hit more often. The fault times are fixed by the map seed, so everyone playing the same day faces the same breaks. A tree has no spare path. A ring does. The score adds up the demand answered in under 100 ms across the whole round. **A pure, seeded engine.** The engine is plain TypeScript with no DOM, no clock and no Math.random. It advances in fixed 100 ms steps, so a round is decided by its seed and the player's moves alone. The same code runs in the browser, in the tests and in a greedy bot. That bot plays 24 maps to keep the rules balanced, and it also plays a round in front of you if you press Watch a round on the title screen. **Drawing the globe.** The globe is a field of points on a Fibonacci lattice, kept where the Natural Earth land mask says there is land and lit by the simulated sun. Signals on the cables are drawn at the speed of light in fibre divided by 20, so a 100 ms round trip takes two seconds on screen. Cities come from GeoNames. Prices, fault rates and the shape of the demand curve are game design, and the game says so. Latency teaches the one limit engineering cannot remove: light is fast, but not instant. The latency in the game is a floor, since real cables do not follow great circles and routers add delay. The lesson still holds. The far side of the planet is out of reach from anywhere, and the only fix for distance is to be closer. ### Junction URL: https://www.pratyushshivam.com/projects/junction/ Live: https://pratyushshivam.github.io/junction/ Source: https://github.com/pratyushshivam/junction 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. **A pure simulation.** Everything in the engine is plain TypeScript with no page, no clock and no Math.random. A round is three things: a seed, the shape of the field and the lines the player draws. It advances in fixed steps of one sixtieth of a second, so the same seed and the same lines always give the same round. That is what makes the daily round fair, and it is what makes the game easy to test. **A sequence that depends only on the date.** The date is hashed into a seed for a small random generator. Each arrival takes exactly five numbers from it: which edge, where along it, which vehicle, which garage and how long until the next. It takes those five whatever is happening on the field, so nothing you do can shift the sequence. Everyone playing on the same day gets the same vehicles in the same order, and scores can be compared. **Touching is measured, not guessed.** Each vehicle is a capsule: a line down its middle with half its width as the radius. Two vehicles touch when their capsules do. Fifteen times a second the engine also looks 1.8 seconds ahead along every line and marks the pairs that are going to meet. A line is just a list of points, thinned so a slow finger does not flood it, and it snaps to the centre of the matching garage when it passes close. **The same yard on every screen.** A phone gets a tall field and a laptop a wide one, but both are 16,000 square units, and garages sit at fractions of the width and height. Traffic is as dense in portrait as in landscape. Each vehicle walks its line at its own speed, and its body turns a little more slowly than its direction of travel, which is what makes the steering look smooth rather than jerky. **How it gets harder.** It starts with two garages. The third opens at 5 delivered, the fourth at 13 and the fifth at 24. Arrivals start about six seconds apart and come 2.8% closer after each one, never closer than 1.4 seconds, and from the fifteenth on some arrive in pairs. Slower, longer vans join from the third arrival. Sound is one note per garage from a five-note scale, so any mix of arrivals sounds fine together. Junction is a small lesson in sharing space. Nobody brakes or gives way, so every conflict has to be solved by the route you draw, and the look-ahead warning shows how far ahead you need to plan as arrivals get closer together. It also shows why a seeded, deterministic engine is what makes a daily challenge fair. ### Paper Plane URL: https://www.pratyushshivam.com/projects/paper-plane/ Live: https://pratyushshivam.github.io/paper-plane/ Source: https://github.com/pratyushshivam/paper-plane 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. **Forces, not a drawn curve.** Nothing in the flight is a drawn curve. The plane is a point with a pitch angle, and 240 times a second three forces push it and one turns it. Lift and drag both come from the angle of attack, the angle between the wing and the air moving past it, and both grow with the square of the speed. Lift acts at right angles to the airflow and drag along it. Every force uses the plane's velocity through the air, not over the ground. **Stall and pitch.** Past about 13 degrees the model blends from a lifting wing to a flat plate: lift drops, drag jumps, and the plane falls until it has the speed to fly again. Pitch has its own equation. The nose is heavy, so the plane keeps turning to meet the air at its trim angle of about 5.5 degrees, with damping. Holding the screen raises that angle by about 4 degrees, and that is the only control in the air. **The swoop is not scripted.** Throw the plane hard and it has more lift than weight, so it climbs, slows, noses over, speeds up and climbs again. That slow trade of height for speed is called a phugoid, and it falls out of the equations on its own. The air moves too: wind that is slower near the ground and gusts over time, thermals with a soft edge and a ceiling, sink over the river, and lift where wind meets a rising slope. **Why it is deterministic.** The step is fixed, there is no randomness in flight, and the world comes from a seeded generator, so the same throw into the same sky lands in the same place every time. That makes a daily sky fair, and it lets the aiming arc be the first 0.6 seconds of the real flight instead of a guess. The engine runs at 240 steps a second whatever the screen is doing, and the drawing interpolates between steps. **Skill you can measure.** A script flies each day with a look-ahead autopilot and compares it with letting go and watching. On the first six daily skies the best hands-off throw reached 128 to 417 metres and the pilot reached 205 to 527. I tuned the plane to trim at 6.5 m/s and glide 7.4 metres forward for each metre down, against about 4 for a real sheet of A4, so a throw from the window becomes a journey. Paper Plane teaches how a glider trades height for speed. Lift, drag and stall all follow from the angle of attack, and a good flight is mostly reading the air: rising over warm roofs, sinking over cold water, and lifting the nose only when there is speed to spare. Ground effect explains why a low plane floats further than expected. ### Nine Zeros URL: https://www.pratyushshivam.com/projects/nine-zeros/ Live: https://pratyushshivam.github.io/nine-zeros/ Source: https://github.com/pratyushshivam/nine-zeros 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. **Seven stages of a system.** The diagram moves through seven stages. At one user the app and database share a small server. At a thousand the database moves out, so losing the app server does not mean losing the data. At ten thousand a load balancer and a CDN arrive. At a hundred thousand a cache and read replicas mean nine requests in ten never touch the primary. Then come a queue and workers, then shards and a second region, then many regions and hundreds of shards. **The traffic model.** The model is pure functions in one file, with tests and no DOM. Traffic is daily users times requests per user, spread over a day, times a peak factor. App servers are peak requests divided by what one server can serve times how full it may run, with spare capacity once there is more than one region. Reads the cache cannot answer go to replicas, and writes and data size decide the number of shards. **Why response time explodes.** Freeze the system and the readout switches to what users feel. It uses the M/M/1 queue: the mean response is the service time divided by one minus the load, and the 99th percentile is the mean times the natural log of 100. So a server at 50% load takes twice as long as an idle one, at 90% ten times, at 98% fifty times, and past 100% the queue never empties. **List prices, editable capacities.** Cost is machines times the AWS on-demand list price for US East, plus storage and data transfer, checked on 11 November 2026. The capacities, such as 700 requests a second per app server and 4,000 reads per database machine, are rules of thumb rather than measurements of your system. That is why I made every assumption editable. The queueing formula, by contrast, is exact for the queue it describes. **Real companies along the slider.** Real companies are pinned along the way, each from what its own engineers published: Stack Overflow in 2016, Instagram in December 2011 and WhatsApp in 2015. They often ran on far fewer machines than the rules of thumb suggest. I kept them in because that gap is the point. The model adds machines where a good team would first remove work, and the real examples show what that looks like. Nine Zeros shows two things people rarely expect. Cost per user collapses, from $12 for the first user to about half a cent each from a million onwards. And at large scale the biggest line on the bill is not servers but sending data to users, which no architecture removes. It also shows why a system at 95% load is one busy afternoon from down. ### Likely URL: https://www.pratyushshivam.com/projects/likely/ Live: https://pratyushshivam.github.io/likely/ Source: https://github.com/pratyushshivam/likely 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. **How a word is chosen.** The model reads everything written so far and returns one score, a logit, for each of the 49,152 tokens in its vocabulary. The page keeps the 40 highest, which is top-k sampling. The scores become probabilities through a softmax of score divided by temperature. The probabilities are laid end to end from 0 to 1, and a number in that range picks the word whose stretch it lands in. Then it repeats, until a full stop, a line break or 16 tokens. **Why the draws are fixed.** The random draws are fixed by a seed, on purpose. With the draws held still, anything that changes when you move the dial is the dial's doing. A low temperature exaggerates the gaps between scores until the favourite takes everything. A high one shrinks them until long shots get through. The only liberties the page takes are the shortlist of 40, the fixed draws and the rule for where a sentence ends. **Opening before the model arrives.** A first visit opens at once on a recording of the model's real output, and the whole page is 0.26 MB. The recording covers the sentence at all 20 stops of the dial, and at the default setting the road from each of the top seven runner-ups at every word. One press then downloads the live model: 120 MB on WebGPU with 4-bit weights, or 140 MB on WebAssembly with 8-bit weights. Later visits start in about two seconds. **Why SmolLM2-135M.** It is the smallest model I tried that writes sensible English about whatever you type. Two smaller ones, a 15 MB model trained on children's stories and distilgpt2, were tested on the same prompts and fell short. Given the start of a sentence about the capital of France, SmolLM2-135M placed it on the left bank of the Seine. It runs through Transformers.js 4.3 on ONNX Runtime Web, in a worker, so the page stays responsive. **A tree in a link.** Click any word and pick what it could have been, and the model carries on from there. Sentences that share a beginning share nodes in a tree, so rewriting one leaves the others alone. The prompt, the dial and the whole tree are stored in the part of the link after the #. A link is treated as untrusted input: it is validated, size-limited and only ever written to the page as text. Likely shows that a language model does not write sentences. It draws one token at a time from a list of odds. Temperature is not creativity: it is a single number that sharpens or flattens those odds. The branching tree shows how one early draw can send the rest of a sentence somewhere entirely different. ### Unasked URL: https://www.pratyushshivam.com/projects/unasked/ Live: https://pratyushshivam.github.io/unasked/ Source: https://github.com/pratyushshivam/unasked 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. **One module per line.** Each line is one small module. It takes plain data and returns a sentence, how it was found, what reduces it, and whether it stays steady between visits. Only one file reads the browser: raw values in, plain data out. The split matters for honesty as much as for testing, because the tests can hand a module a browser that refuses to answer and check that the line says kept back and nothing refused reaches the mark. **Written for what browsers report today.** Several signals have been cut back in recent years, and I wrote for what browsers say now. The system version comes only from client hints, because the old label is frozen. The storage figure is described as what it now is in Chromium, usage plus a fixed 10 GiB, not the size of your disk. Media devices are reported as at least one of each kind. The page never claims to detect a private window, because browsers closed those tricks. **The mark, and what it will not claim.** At the end each answer becomes a ring whose shape comes from a hash of that answer. Under the mark sit the first 64 bits of a SHA-256 hash of the steady answers, computed with the browser's own Web Crypto. The page does not tell you that you are one in N, because it cannot know without collecting everyone else's answers. It explains bits of identifying information instead, and why correlated answers make a simple sum overstate things. **Nothing leaves, and you can check.** The first tag in the page is a Content-Security-Policy. It sets default-src to none and allows exactly one outside address, ipinfo.io, used only if you press the button that asks for your public address. The browser refuses every other request from the page. The built script contains exactly one fetch call, and the build fails otherwise. A Chrome check also fails if any request is made after loading or a cookie is set. Unasked shows that a website needs neither cookies nor permission prompts to tell browsers apart. An answer shared by half of all browsers carries one bit, bits add up when answers are unrelated, and 33 bits are enough to tell apart everyone alive. It also shows that a private window and a VPN leave almost all of this untouched. ### The Blockchain Wire URL: https://www.pratyushshivam.com/projects/the-blockchain-wire/ Live: https://theblockchainwire.com Source: https://github.com/pratyushshivam/theblockchainwire 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. **One script, run every hour.** The whole site is one Node script with no dependencies. A scheduled GitHub Action runs it every hour. It fetches each RSS or Atom feed on the list with a 20 second timeout, so one slow outlet cannot hold up the rest, and keeps only the headline, link, time and a short summary. It then writes plain HTML: a front page, a page per section, the editor's pieces, an RSS feed and a sitemap, and publishes the result to Cloudflare. **An archive kept in the repository.** New stories are merged into a JSON file in the repository, keyed by link, so a story seen twice is kept once. Anything older than 45 days, or dated more than an hour in the future, is dropped, and the archive is capped at 1,500 stories. The Action commits the updated file back on each run. If every feed failed and there are no stories at all, the build refuses to publish an empty wire. **Sections by keyword rules.** Each story is filed into one of seven sections by keyword rules, checked top to bottom with the first match winning: Regulation, Enterprise, Bitcoin, Ethereum, DeFi, Markets, and Industry for everything else. Because Regulation is checked first, a story about a court case over a stablecoin lands there and not in DeFi. I kept the rules simple on purpose, and the site says plainly that a few stories will land in the wrong section. **Linking, not copying.** The wire never copies a full story. Summaries are clipped to about 170 characters at a word boundary, and dropped when they only repeat the headline. Tracking parameters such as utm tags and fbclid are stripped from every link, and every link points straight to the outlet. On the page, a small script turns times into minutes ago and filters the wire by section or search term, and the page still works without it. **Written pieces, clearly marked.** The pieces I write are plain Markdown files with a title, date and summary at the top. The build turns each into a page with article structured data and lists it in the RSS feed, always marked From the editor, so a reader can tell written from gathered. Nothing on the wire itself is picked or ranked by hand: stories are sorted by the time their publisher gave them. The Blockchain Wire shows how little a news site needs. RSS and Atom feeds still carry most of what publishers release, a scheduled job can stand in for a server, and static files cost nothing to host. It also shows the honest limit of automatic filing: keyword rules are fast and easy to read, but they misfile some stories. ## Expertise ### Enterprise blockchain, built to be used URL: https://www.pratyushshivam.com/expertise/enterprise-blockchain/ Enterprise blockchain is useful when several independent companies need to rely on the same facts and none of them should own the record. That is the problem I work on as CTO of Konfidio, where the technology runs underneath TrustedTrucks. **Known participants, not strangers.** Public blockchains solve agreement between strangers. Business networks have a different problem: the participants are registered companies with contracts and obligations. What they lack is a single version of the truth. A permissioned network gives a shared, tamper-evident record between identified participants, with governance that matches how the industry already works. **Visibility is designed, not bolted on.** Rates, lanes and customer lists are competitive data. On a permissioned network each party sees what its role allows and nothing more. That has to be a design decision from the first day, because privacy added afterwards always works against the grain of the system. **Predictable cost, real compliance.** The cost of recording a delivery or approving an invoice should be an engineering question, not a market one. And when an auditor asks who has seen a record, there has to be a clear answer. Both are far easier to guarantee on a network whose operators and rules are known. **The best sign is silence.** The architecture is right when nobody on the platform talks about it. A dispatcher sees "approved". A carrier sees "paid". The chain is there, quietly keeping the record honest. ### GoQuorum and private Ethereum networks in production URL: https://www.pratyushshivam.com/expertise/goquorum-private-networks/ I work with Ethereum-compatible permissioned networks built on GoQuorum. The appeal is simple: you keep the languages, libraries and auditing practices of the Ethereum ecosystem, and you choose who takes part. **Why Ethereum-compatible.** Solidity, mature client libraries and well-understood security practices are years ahead of anything bespoke. Building on an Ethereum-compatible network means smart contract engineers are productive immediately and the code can be reviewed against known patterns. **What operating a network involves.** Deploying nodes is the easy part. The work is everything around them: onboarding participants, permissioning, monitoring, upgrades and incident response. A private network is a production system and deserves the same discipline as any other. **Keys stay out of applications.** Applications should never hold signing keys. Transaction signing belongs in a dedicated service, so a compromised web service cannot sign on anyone's behalf. **Test before you raise limits.** Capacity is something you measure, not assume. Load is tested against the network and its APIs before any limit is raised, so growth never becomes an experiment on customers. ### Smart contracts for agreements between companies URL: https://www.pratyushshivam.com/expertise/smart-contracts/ A smart contract is an agreement whose terms are written into code. In freight, the agreements that matter are approvals: who has to sign off on what, in which order, before money moves. **Approval is a transaction, not an email.** When an approval is recorded by a contract, there is no later argument about whether it happened, who gave it or when. The route follows each company's own signing rules, so the process fits how finance teams already work. **Anchor the fingerprint, keep the file.** Documents stay with their owners. Only a cryptographic fingerprint goes on chain. Anyone holding the document can check it against the record, and nobody can read it from the ledger. **Be exact about what is proven.** A fingerprint shows that a document has not changed since it was anchored. It does not show the document was true to begin with, and it is not a signature. Saying that plainly is what makes the rest of the claim credible. **Contracts are production code.** They are reviewed, tested and released like any other critical service, with the added constraint that mistakes are expensive to undo. That constraint is a reason for care, not for mystique. ### Distributed systems that survive production URL: https://www.pratyushshivam.com/expertise/distributed-systems/ Most of my work is distributed systems: services that have to agree with each other, stay available and keep a consistent record while real companies depend on them. **Events are the backbone.** A shipment is a sequence of events: quoted, ordered, collected, delivered, approved, invoiced. Modelling the system around those events keeps every service reading from the same history instead of keeping its own copy. **Kubernetes and AWS, run deliberately.** Containerised services, automated build, test and release pipelines, and observability from the start. None of it is exotic. The value is in doing the ordinary things consistently. **Production is the real test.** Designing a system is one challenge. Running it reliably every day is another, and it is the one customers notice. Load is tested before limits change, and incidents are written up. **An outage is a design review.** When something fails, the useful question is what in the design allowed it. Blame finds a person. A review finds the next failure before it happens. ### Logistics technology: one record instead of five URL: https://www.pratyushshivam.com/expertise/logistics-technology/ Freight is one of the largest industries in Europe and it still runs on five versions of the truth: an email, a PDF, a tracking portal, a paper signature and a retyped invoice. TrustedTrucks exists to turn them into one. **Reconciliation is the hidden cost.** Ask what freight costs and people talk about diesel, drivers and tolls. Spend a week in a forwarder's back office and you see another cost that rarely gets its own budget line: making copies of the same shipment agree. **Tracking belongs inside the shipment.** "Where is the truck?" costs a call, a screenshot and another email, for every load. When pick-up, border crossings and delivery are recorded against the shipment as they happen, every party sees the same update at the same moment. **Evidence becomes the invoice.** If a delivery has been accepted on the shared record, the invoice should be generated from that record rather than typed again beside it. The two cannot disagree, because both came from the same place. **Connect once, work with everyone.** Five companies on one shipment means ten point-to-point links. A network where each company connects once removes projects that customers would otherwise have to fund. ### Carbon accounting from the trip that happened URL: https://www.pratyushshivam.com/expertise/carbon-accounting/ An emissions figure is only useful if a shipper, a carrier and an auditor can all see where it came from. That means measuring it from the journey, not reconstructing it afterwards. **Estimates say what should have happened.** Carbon reports are often assembled months later from averages and spreadsheets. They describe a typical trip, not the one that took place. **The record already knows the trip.** Route, vehicle and load are already part of the shipment. Carbon accounting belongs inside that record as another view of the same facts, not as a separate project. **From estimate to actuals.** Emissions are estimated when the order is placed and replaced with actuals from the delivered trip, on a GLEC Framework and ISO 14083 basis, so the number means the same thing to everyone who reads it. **Standards are a design input.** Building to a recognised method from the first day is far cheaper than retrofitting one, and it is the only way a figure survives an audit. ### Technology leadership from someone who wrote the code URL: https://www.pratyushshivam.com/expertise/technology-leadership/ I joined TrustedTrucks as an engineer and moved into the CTO role at Konfidio in 2024, so I have written the code I now set direction for. That shapes how I lead. **Small teams, high ownership.** A small team that owns its outcome moves faster and builds better than a large one waiting for permission. I hire for judgement over familiarity with a particular framework. **Write decisions down.** A decision that lives only in a meeting is lost by the next one. Writing down what was decided and why lets the reasoning outlive the people in the room. **Broad enough, deep enough.** A CTO has to be broad enough to make trade-offs across product, infrastructure and security, and deep enough to own the consequences when a trade-off turns out to be wrong. **Honesty about technology.** Overselling what a system proves costs trust later. I would rather explain the limits clearly to a customer or an investor than have them discover them alone. ## Articles ### A $1M maths problem, half solved by an AI and checked by a Nobel laureate URL: https://www.pratyushshivam.com/writing/ai-solves-half-a-millennium-prize-problem/ In 2000, mathematicians picked the 7 hardest problems they knew and put $1 million on each one. In 26 years, humans have solved exactly one. This month, an AI solved half of another. On 9 November, a committee of experts led by Nobel laureate David Gross confirmed that an OpenAI model has proved the "existence" part of the Yang–Mills problem. Yang–Mills is the maths underneath the forces that hold atoms together. Physicists have used it for decades, but nobody could prove it holds up mathematically. The AI's proof is also written in Lean, so a computer has checked every step, not only people. ## The caveats are real, and they matter - The other half, the "mass gap", is still unsolved. - OpenAI appointed the committee, and some mathematicians want the review done in the open. - The committee itself says it does not fully understand the proof yet. - The Clay Institute has not awarded anything. Even so, think about what that last caveat means. A proof can now be correct, checked by a machine, and still be beyond the experts who are reviewing it. For most of history the hard part of maths was finding the proof. Soon it may be understanding the proof an AI hands you. Which of the remaining five would you bet falls next? Source: Scientific American, November 2026. ### One night in the Amazon rainforest in a browser tab: real forest, real animals, real sound URL: https://www.pratyushshivam.com/writing/one-night-in-the-amazon-in-a-browser-tab/ Understory is the floor of Yasuní, Ecuador, from 17:45 to 06:25, with one torch. Every frame of this film is the game running. ## The engineering - The forest. 702 trees per hectare and 10.3% stilt palms, from the 25-hectare Yasuní plot, with heights from Feldpausch's fitted curve for western Amazonia. About 2,400 trunks, 5,400 plants and 560 animals, instanced: one draw call per species and per chunk. - The light. One torch, held at your eye, so every shadow hides behind what casts it. No shadow maps. Mist in the beam, dawn shafts, tone mapping and grain are one full-screen pass with 14 ray-march steps. If the frame rate drops, resolution goes first. - The eyes. Eyeshine is your own torch coming back: 1/d² on the way out, 1/d² on the way back, scaled by pupil area and the reflecting layer behind the eye. No reflecting layer, no shine. Computed per eye by the same function the tests check. - The sound. 25 real field recordings from xeno-canto, each played from where its animal sits through an HRTF panner. −6 dB per doubling of distance, plus a forest absorption curve that takes the high notes first, so a howler carries across the whole site and a katydid fades within tens of metres. - The ecology. 58 species, each with a record from Tiputini or Yasuní, at its real height and only in its own hours. Placement, activity windows and dawn order are unit-tested: 52 tests. - Deterministic. Every night is seeded. Night 7 is the same trees, the same animals and rain at the same minute, for everyone. The README lists what is not real right next to what is. No server. No tracking. Walk in: pratyushshivam.github.io/understory/ Source: github.com/pratyushshivam/understory ### From space, Mount Everest is 125 metres too short URL: https://www.pratyushshivam.com/writing/from-space-everest-is-125-metres-too-short/ I sampled Copernicus GLO-30, the global elevation model built from the TanDEM-X radar satellites, along the South Col route. It puts the summit at 8,724 m. The highest pixel anywhere near the top reads 8,737 m. The surveyed height is 8,848.86 m. And it isn't one bad pixel. The whole ridge comes out low: - South Col: −59 m - Balcony: −122 m - South Summit: −152 m - Summit: −125 m Lhotse, next door, loses 111 m. Why: every pixel is a 30 m square. Average a knife-edge ridge over 30 metres and you get a rounded hill. Side-looking radar also struggles on faces this steep. I found this building Thin Air, my Everest climb in the browser. The mountain came out short, so the ridge is raised back to four surveyed heights, fading to nothing within 400 m, and the README says exactly where. The lesson travels well beyond mountains: anything sharper than your resolution gets smoothed away. Before you trust a number, ask what the pixel can see. Climb it: pratyushshivam.github.io/thin-air/ ### Mount Everest in a browser tab: the real mountain, the real route, the real air URL: https://www.pratyushshivam.com/writing/mount-everest-in-a-browser-tab/ Base Camp to 8,848.86 m by the South Col. Six weeks of expedition in twelve minutes. Every gauge on screen is physics, pinned to arterial blood drawn from climbers at 8,400 m. Every frame of this film is a real climb, played by the game's own test climber. ## The engineering - Terrain from space. TanDEM-X radar satellite data (Copernicus GLO-30): a 1,024 × 1,024 grid at one arc-second over 28 × 32 km, plus a 512 × 512 horizon so Lhotse, Makalu and Cho Oyu stand exactly where they stand. Radar rounds off knife-edges and reads the summit 125 m low, so the ridge is lifted to four surveyed heights, tapered to zero within 400 m. Disclosed in the README. - Detail below the data. One sample every 30 m can't hold an icefall tower. Within 190 m of the climber, procedural seracs, crevasses and wind-packed snow are generated and blended onto the real surface. - The sky. NOAA solar equations for the exact date and Nepal clock time, shadows cast by the real relief. Summit night: every star to magnitude 5.6, rotated to Everest's latitude and the hour. - The air. West's Himalayan model atmosphere: 253 mmHg on the summit, matching the 1981 measurement. The textbook atmosphere says 236. It's wrong up there. - The blood. Alveolar gas equation + Severinghaus haemoglobin curve with the Bohr shift, fitted to the 2007 NEJM samples. Model blood oxygen at 8,400 m: within 2.5 mmHg of measured. - Bottled oxygen. Regulator flow expanded by the gas laws into every breath. 2 l/min lowers the mountain by about 2 km. It never takes you to sea level. - Seeded weather. Jet stream on the summit through April, short calm windows in late May. Same seed, same season, every time. - 40 tests against published measurements, plus whole simulated expeditions: the patient climber summits and comes home. The one who ignores the turnaround time doesn't. No server. No tracking. No recordings: every sound is synthesised in the browser. Climb it: pratyushshivam.github.io/thin-air/ Source: github.com/pratyushshivam/thin-air ### The entire observable universe in a browser tab, true to scale, in 2.95 MB URL: https://www.pratyushshivam.com/writing/the-entire-universe-in-a-browser-tab/ Earth to 46.1 billion light-years in one continuous shot: 16,301 asteroids, 109,400 real stars and 156,940 real galaxies, every one where it actually is. 60 fps on a laptop. ## The hard part was the engineering - Precision. A GPU has 32-bit floats, about 7 digits. Earth to the edge of the universe is 20 orders of magnitude. So every object stores its position relative to its parent in float64, the camera has no world position at all, and values are narrowed to float32 only at the last step. A naive renderer loses a full kilometre at Earth's orbit; this keeps it to a micrometre. - Depth. No depth buffer spans 1,000 km to 10²⁶ m. Stars and galaxies skip it entirely; each planet gets its own range fitted around its sphere. Zero flicker. - Compression. 8 bytes per star: octahedral direction in 32 bits, log distance in 16, brightness and colour in 8 each. 109,400 stars in 875 kB, sorted brightest first so phones get the familiar sky early. - Memory. Catalogues stream in and out by scale, textures step up from 512 to 4,096 px and are released when a planet shrinks. Heap stays at 15–29 MB the whole way. 1 to 4 textures and 3 to 15 draw calls per frame. - Zero frames drawn when nothing moves. - Tested against the real sky: the 2020 Jupiter–Saturn conjunction and the 2024 solar eclipse. Fly it: pratyushshivam.github.io/lookback/ Source: github.com/pratyushshivam/lookback ### Who is really picking up your load? Checking a carrier before its first load URL: https://www.pratyushshivam.com/writing/who-is-really-picking-up-your-load/ In freight, you often hand a full truckload to a company you have never met. A name, a phone number, a price that looks right. Fake carriers and borrowed company identities are a real and growing problem in European road freight. So on TrustedTrucks, a carrier cannot just show up and take a load. Before a forwarder gives a carrier its first load, the carrier sends four documents: - Company details: the company, its address, VAT number and letterhead - EU licence: the Community licence for goods transport - Insurance certificate: carrier liability (CMR) insurance - Minimum wage: a signed confirmation for the drivers The forwarder checks every one. Something missing? It asks for a change, right on the document. Not good enough? Rejected. Only then is the carrier qualified, and only then does it get a load. For the carrier, it is simple too: documents are on file once, and sent to each forwarder in a tap. Trust in freight should not depend on a good phone call. It should be checked, every time. How do you check a new carrier today? ### No engineering beats this number: the speed of light sets your latency URL: https://www.pratyushshivam.com/writing/speed-of-light-latency-limit/ Frankfurt to Sydney and back can never take less than 161 milliseconds. Not with better code, not with a faster database, not with more servers in the same place. That is physics. Light in optical fibre travels at about 204,000 km a second, 68% of its speed in vacuum, and a request has to go out and the answer has to come back. The chart is the best case: a cable running in a perfectly straight line, with nothing else in the way. Real networks are slower, because cables follow coastlines and every router adds time. A few things this changes once you see it: - 100 ms of round trip buys about 10,210 km of fibre. One data centre can serve a little over a quarter of the planet well. Nobody can serve the far side under 196 ms. - "Make it faster" sometimes means "move it closer". The fix for a slow API in Singapore is often not in the code at all. - Every extra round trip multiplies the distance. A page that makes five calls in a row from Frankfurt to Tokyo has spent half a second on physics before any work is done. - It is why systems built for many places need many copies of the data, and why keeping those copies in agreement is one of the hard problems in distributed systems. I built a small game around this limit. You get a globe and a budget, cities ask for answers in under 100 ms, and every latency in it is computed from the same physics as this chart. Nothing is made up, and the far side of the planet stays out of reach no matter what you build. Play Latency: pratyushshivam.github.io/latency/ What is the longest round trip your users live with? ### AI found 81 Firefox flaws. How fast you ship the fix is now your security URL: https://www.pratyushshivam.com/writing/ai-found-81-firefox-flaws/ 81. That is how many previously unknown, high-severity flaws in Firefox OpenAI says its new security model, GPT-6 Cyber, found before attackers did. Mozilla has started shipping the fixes. The same model reportedly produced working exploits for 948 Linux kernel bugs. The numbers are OpenAI's own, and the model is not public. But the direction is clear, and it changes how engineering teams should think about security. For years, the scarce thing in security was finding the bug. It took rare people and a lot of time. That is now becoming cheap, for defenders and for attackers alike. So the scarce thing moves. It becomes how fast a team can go from "this is broken" to "the fix is live": - Can you trust your tests enough to ship a patch today, not next sprint? - Do you know every service that runs the vulnerable code? - Can one person roll out a fix without a release ceremony? - Can you roll it back in minutes if the fix breaks something? If AI can read your code faster than your team can, your release process is now part of your security. The teams that do well will not be the ones with the most scanners. They will be the ones that can ship a fix the same day. How fast could your team ship a security fix today? ### I folded a paper plane out of physics URL: https://www.pratyushshivam.com/writing/paper-plane-physics/ Paper Plane is a game in your browser. A top-floor window, a long hand-drawn world of rooftops, a park, a river and hills. Pull back, aim, let go. After that, the air decides. Nothing you see in the flight is a drawn curve. ## What is under the hood - The plane is a point with a pitch angle, and 240 times a second three forces push it and one turns it. Lift and drag both come from the angle of attack, the angle between the wing and the air moving past it, and both grow with the square of the speed. - The stall is real. Past about 13 degrees the model blends from a lifting wing to a flat plate: lift falls away, drag jumps, and the plane drops until it has the speed to fly again. Throw it at the ceiling and it lands at your feet. That is the model, not a rule. - Pitch has its own equation. The nose is heavy, so the plane keeps turning to meet the air at about 5.5 degrees. Holding the screen raises that by about 4 degrees: the only control in the air. It trims at 6.5 m/s and glides 7.4 metres forward for every metre down. - The swoop is not scripted. Throw it hard and level and it climbs, slows, noses over, speeds up and climbs again. That trade of height for speed is called a phugoid, and it falls out of the equations on its own. - The air moves. Wind that is slower near the ground and gusts over time, warm air rising off sunny roofs, cold air sinking over the river, lift where the wind meets a slope, and a cushion of air near the ground. Every force uses the plane's speed through the air, not over the ground. - One sky a day. The world and its weather come from a seed, and the seed is the date, so everyone flies the same sky and a distance means something. The step is fixed and nothing in flight is random: the same throw into the same sky lands in the same place every time. That is also why the aiming arc is the first 0.6 seconds of the real flight, not a guess. - Skill is measurable. A look-ahead autopilot flies each day against a hands-off throw. On the first six skies, letting go reaches 128 to 417 metres; careful holding reaches 205 to 527. - Every line is drawn by the same wobbly pen, sound is made on the spot with WebAudio, and the whole thing is about 28 kB of script. 24 tests. No account, no server, no tracking. Everything in the film is real footage from the page, or drawn from the game's own functions. The throw is a real mouse drag. The 524.9 metre flight crosses 7 columns of warm air, and the holds in it were chosen by that same look-ahead autopilot. Play it: pratyushshivam.github.io/paper-plane/ Source: github.com/pratyushshivam/paper-plane ### A game a five-year-old can play and an engineer can read URL: https://www.pratyushshivam.com/writing/junction-deterministic-game/ Junction: cars, vans and trucks drive into a yard from all four sides. With one finger you draw each one a path to the garage of its colour. Don't let them bump. You have three hearts. It starts calm. ## What is under the hood - The whole game is a pure, deterministic simulation in TypeScript: no page, no clock, no Math.random. A round is three things, a seed, the shape of the field and the lines you draw, stepped at a fixed 60 steps a second. Same seed, same lines, same round, every time. - Today's round is seeded from the date. Every arrival takes exactly five numbers from a small seeded generator (Mulberry32): which edge, where along it, which vehicle, which garage, and the gap until the next. So everyone gets the same cars in the same order and can compare scores. - A line is just a list of points, thinned to one every 1.2 units. End it near the right garage and it snaps and locks. The vehicle walks the list at its own speed, and its body turns a little slower than its direction, which is what makes the steering look smooth. - Bumps are measured, not guessed. Every vehicle is a capsule, a line down its middle with half its width as the radius, and two touch when the distance between their lines is less than their two radii. Fifteen times a second the engine looks ahead along every line, six looks 0.3 s apart up to 1.8 s, and puts a "!" between any pair about to meet. - The difficulty is one formula: the gap between arrivals is max(1.4, 5.8 × 0.972ⁿ) seconds. Vans join at the third arrival, trucks at the tenth, pairs from the fifteenth. New garages open at 5, 13 and 24 delivered. - The yard is the same 16,000 square units on every screen, tall on a phone and wide on a laptop, so the traffic is just as dense either way. - Sound is made on the spot with WebAudio, one note per garage from a five-note scale, so any mix of deliveries sounds fine together. No audio files, no images. - Every garage has a colour and a shape, so the game never depends on telling two colours apart. - About 45 kB in total. 21 tests. No account, no server, no tracking. Everything in the film is a real round, played with real pointer events, or drawn from the game's own code. Play it: pratyushshivam.github.io/junction/ Source: github.com/pratyushshivam/junction ### I built a black hole, then flew into it URL: https://www.pratyushshivam.com/writing/black-hole-ray-tracing-in-the-browser/ Event Horizon is a page where you fly a ship around a real black hole. Your clock and Earth's clock start together. They do not stay together. Nothing you see is a video or a painting. For every pixel, every frame, a ray of light is traced backwards through curved spacetime on your graphics card, live, in the browser. ## What is under the hood - Light follows the null geodesic equation of the Schwarzschild metric, d²u/dφ² = −u + (3/2)u², integrated per pixel with fourth-order Runge–Kutta in at most 100 steps. Stepping in angle instead of distance is what makes it fast enough to run live. A ray is either captured (the black shadow), escapes (you see the sky, bent), or crosses the disk, two or three times near the photon sphere, which draws the thin photon ring. - The disk glows by real physics: the Page & Thorne (1974) thin-disk formula, brightest at 4.78 Schwarzschild radii, each ring a blackbody, shifted by gravity and Doppler together. The side coming towards you is brighter and bluer, by g⁴. - The ship flies a real timelike geodesic. Newton has r where general relativity has r − 3GM/c²; that one term makes orbits precess and turns circular orbits unstable below 3 radii. - Two clocks, added up along the path you actually fly. At the station Earth runs 1.07× faster than you, at the innermost stable orbit √2×, and at the photon sphere without limit. Fall in, and from Earth you are never seen to cross. - Three real black holes at their published masses: Sagittarius A* (4.3 million Suns), M87* (6.5 billion) and Cygnus X-1 (21 Suns). From mass and distance alone, the page computes Sagittarius A*'s shadow at 53.3 microarcseconds; the Event Horizon Telescope measured 51.8 ± 2.3. - The sky is real too: NASA's Milky Way and 41,486 stars from the HYG catalogue, each at its catalogued position and colour. - 45 tests against results known in advance. About 30 kB of code. 60 frames a second on a laptop. No account, no server, no tracking. Everything in the film is real footage from the page, or drawn from the page's own equations. Fly it: pratyushshivam.github.io/event-horizon/ Source: github.com/pratyushshivam/event-horizon ### I taught fifty cars to drive. Nobody showed them how URL: https://www.pratyushshivam.com/writing/neuroevolution-fifty-cars-learn-to-drive/ Rookie is a page where you draw any race track with your finger, and fifty AI cars learn to drive it in front of you, from nothing, in under a minute. Then you race the one you trained. No training data. No dataset. No backprop. No ML library. Everything is written from scratch and runs on your own device. ## What is under the hood - Each car sees the world through 7 distance sensors fanned out from 75° left to 75° right, plus its own speed. Eight numbers between 0 and 1, sixty times a second. It never knows where it is on the track or which way round it goes. - Its brain is a feed-forward neural network: 8 inputs, 6 hidden neurons, 2 outputs (steering and pedal), tanh on every neuron. 68 weights in total. Those 68 numbers are the entire driver. - It learns by neuroevolution, a genetic algorithm over the network's weights. Rank all fifty by how far they got. The best four go through untouched, so the best can never get worse. Every other car is bred: parents picked as the best of three from the better half, weights crossed over from one parent or the other, then about one in five nudged at random. If progress stalls, the mutations grow 30% per generation and six complete newcomers join. - Generation 1 is a pile-up. In the run in this film, the first clean lap came in generation 5. Nobody drew the racing line you see wearing into the road. It is simply where the survivors kept driving. ## The numbers - 200 random tracks nobody had seen: all 200 learned to a clean lap. Median generation 6. - One physics step for all fifty cars takes about 0.03 ms on a laptop, around 600× faster than real time. - Deterministic: same seed, same evolution, weight for weight. - The track and the trained driver fit after the # of a link, so you can send someone your rookie to race. - The whole page is about 58 kB. No account, no server, no tracking. Everything in the film is real footage from the page or drawn from the real numbers in the code. Try it: pratyushshivam.github.io/rookie/ Source: github.com/pratyushshivam/rookie ### I built a planet where every creature thinks for itself URL: https://www.pratyushshivam.com/writing/eden-a-planet-where-every-creature-thinks/ It starts with water, plants and nothing else. Every creature that will ever live on it, you set down, and every one of them thinks for itself. There is no script. Each creature carries its own small neural network that decides where it goes, what it eats, whom it follows and what it runs from. When two have a child, the child's brain is built from theirs. Nobody trains anything: the ones that cope live longer, and the planet slowly gets better at surviving. One kind, the kith, go further. They hold beliefs, pass them on (sometimes wrongly), make things nobody showed them how to make, and give those things names. And you can go down there, walk among them, and talk to them. Seven kinds of creature, up to 800 alive at once, written from scratch in TypeScript and WebGL. Free and open source. Open it: pratyushshivam.github.io/eden/ ### Why Freight Belongs on a Permissioned Blockchain, Not a Public One URL: https://www.pratyushshivam.com/writing/permissioned-not-public/ Every few months someone asks me why we didn't build TrustedTrucks on a public blockchain. It's a fair question. Public networks are open, battle-tested and have enormous ecosystems. So why would a logistics platform choose a permissioned network instead? The short answer: because freight is a business between known companies, and its data is commercially sensitive. The long answer is worth writing down. ## Freight data is competitive data Think about what a single shipment reveals. Who ships what, from where, to whom. Which carrier was chosen, at what rate, on which lane. How often a customer ships, and how much. For a logistics company, that is not "transaction data". It is the business. A forwarder's customer list and its rates are exactly what a competitor would love to see. On a public chain, everything written is visible to everyone, forever. You can encrypt payloads and use clever privacy techniques, but you are always working against the grain of a system designed to be transparent to the whole world. On a permissioned network, visibility is the default you design, not the exception you fight for. Each party sees what its contract and role allow, and nothing more. ## The participants are known anyway Public blockchains solve a hard problem: how do strangers who don't trust each other agree on a shared history without any authority in the middle? Freight doesn't have that problem in the same way. A shipper knows its forwarder. A forwarder knows its carriers. A consignee knows who is delivering. These are registered companies with contracts, insurance and legal obligations. What freight lacks is not identity. It is a single version of the truth that all those known companies can rely on. A permissioned network gives exactly that: a shared, tamper-evident record between identified participants, with governance that matches how the industry already works. ## Predictable costs matter more than you'd think A carrier doesn't want to think about network fees that move with market sentiment. Neither does a finance team trying to price a service. On a permissioned network, the cost of recording a delivery or approving an invoice is an engineering and operations question, not a market one. That predictability is what lets you build a product that a dispatcher, a finance officer and a CFO can all plan around. ## Compliance needs a door you can open European freight runs under real rules: data protection, tax, customs, transport law. Regulators and auditors sometimes need to look at specific records, and companies have the right to know who saw what. Permissioned networks make that manageable. You can define who operates nodes, who can read which records, and how access is granted and logged. You can answer the question "who has seen this shipment?" without hand-waving. ## What we keep from the public world None of this means rejecting what public blockchains got right. The core ideas carry over completely: - Tamper evidence. Once something is anchored, nobody can quietly change it afterwards. - Shared history. Every party works from the same record instead of reconciling five versions. - Programmable agreements. Smart contracts encode who must approve what, in which order. - Standard tooling. An Ethereum-compatible network means mature languages, libraries and auditing practices. We take the parts that create trust between companies and leave out the parts that would expose them. ## The real test is boring The best sign that the architecture is right is that nobody on the platform talks about it. A dispatcher sees "approved". A carrier sees "paid". A finance team sees an invoice backed by evidence. The blockchain is there, quietly keeping the record honest. That is exactly where it belongs. I'm the CTO of Konfidio, where we build TrustedTrucks: one shared record for European freight. ### What a Blockchain Can Prove in Logistics, and What It Can't URL: https://www.pratyushshivam.com/writing/what-a-blockchain-can-prove/ "It's on the blockchain" is one of the most overused sentences in supply chain technology. It is often said as if it settles every argument. It doesn't, and being precise about why is what separates useful systems from expensive theatre. ## What anchoring actually does When we anchor a document, say a signed consignment note, we don't usually store the document on chain. We store its fingerprint: a cryptographic hash, a short value that changes completely if a single character of the file changes. That fingerprint, recorded on a shared ledger, proves two things very well: - The file is unchanged. Anyone holding the document can recompute its fingerprint and compare. If it matches, nothing has been altered since it was anchored. - It existed at that moment. The ledger records when the fingerprint was written, so nobody can later claim the document was created afterwards. Those are powerful guarantees. They end a whole class of disputes: "that's not the version we received", "this was edited later", "we never had that document". ## What anchoring does not prove Here is where many projects overreach. A fingerprint on a ledger does not prove: - Who agreed to the document. A hash says nothing about consent. - That the content is true. A signed delivery note can still describe the wrong quantity. - That it was legally accepted. Contractual and legal effect follow their own rules. If a system treats "anchored" as if it meant "approved" or "correct", it is quietly promising more than the technology delivers. Sooner or later that gap shows up in a dispute. ## Trust still belongs to people The part a ledger cannot do is decide who is allowed to say yes. In freight, that is a chain of real responsibilities: the carrier uploads evidence, the consignee confirms receipt, the forwarder approves, finance releases payment. So we design those as explicit steps: - Each step is performed by a specific, identified party. - Each step follows that company's own signing route. - Each step is recorded against the shipment, in order. The ledger then does what it is good at: it makes that record of decisions tamper-evident. It doesn't replace the decisions. ## Keep the states separate One design rule has saved us a lot of confusion: never collapse different states into a single flag. "Uploaded", "reviewed", "accepted", "disputed", "anchored" and "paid" are different facts with different owners. A document can be anchored and still disputed. It can be accepted and not yet paid. Systems that blur those states feel simpler at first and become impossible to audit later. ## The honest pitch The most credible way to talk about blockchain in logistics is also the most modest one: it gives every party the same tamper-evident history, and it makes rewriting that history visible. Everything else, consent, correctness and legal effect, still has to be designed deliberately. That honesty is not a weakness in the pitch. It is the reason serious companies can trust it. I'm the CTO of Konfidio, where we build TrustedTrucks: one shared record for European freight. ### The Most Expensive Part of Freight Isn't the Truck URL: https://www.pratyushshivam.com/writing/the-most-expensive-part-of-freight/ Ask people what freight costs and they'll talk about diesel, drivers, tolls and trucks. Those are real. But spend a week inside a forwarder's back office and you'll see a different cost, one that rarely shows up as its own line in any budget: reconciliation. ## Five versions of one shipment A single road shipment usually lives in at least five places: - The request arrives by email. - The agreement sits in a PDF or a portal. - The journey is tracked in a telematics or tracking tool. - The proof of delivery is a paper CMR, signed, scanned and sometimes lost. - The invoice is typed again into an ERP. Each copy is maintained by a different company, in a different system, with a different idea of what happened. They drift apart from the first minute. ## Where the money actually goes When those versions disagree, people step in. Someone re-keys data from a PDF. Someone chases a signature. Someone compares a delivery note with an order line by line. Someone disputes a waiting-time charge because the timestamps don't match. None of this moves a single pallet. All of it delays payment. For carriers, especially small ones, that delay is not an inconvenience. It is working capital tied up in paperwork. A truck that delivered on Monday is still unpaid weeks later because a document is missing or disputed. ## Integrations don't fix it The usual answer is integration: connect the TMS to the ERP, the ERP to the portal, the portal to the telematics provider. It helps, until it doesn't. Every integration is its own project, its own data format and its own failure mode. And they multiply. Five companies connected one to one need ten links. Ten companies need forty-five. Each one breaks on its own schedule, usually silently, usually right before month end. Integrations move copies around faster. They don't remove the copies. ## One record instead of five The model we've built at TrustedTrucks starts from a different question: what if there were only one record? - The request, quotes and agreement stay attached to the shipment. - Documents are uploaded once and seen by every party on it. - Approvals follow each company's own signing route and are recorded against the shipment. - Accepted delivery evidence becomes the basis of the invoice. Reconciliation becomes verification. Instead of comparing five versions, every party checks the same one. ## Why shared needs to mean trusted Sharing a record between competitors and partners only works if nobody can quietly rewrite it. That is the part where a permissioned blockchain earns its place: it anchors the record so changes are visible, and it lets each party see only what its role allows. The technology is the enabler, not the point. The point is a carrier who gets paid because the evidence is already there, and a finance team that stops chasing paper. ## The question I'd ask any logistics team Pick one shipment from last month and count how many systems it touched and how many times someone typed the same information. That number is your reconciliation cost. Most teams are surprised by it. I'm the CTO of Konfidio, where we build TrustedTrucks: one shared record for European freight. ### Carbon Accounting Belongs Inside the Shipment, Not After It URL: https://www.pratyushshivam.com/writing/carbon-accounting-inside-the-shipment/ Most freight emissions reports are built backwards. A quarter ends, someone opens a spreadsheet, multiplies planned kilometres by a default emission factor and calls the result a footprint. The truck, meanwhile, already knew what happened. It knew the distance it drove, the load it carried and the fuel it used. The information existed. It just never made it into the report. ## Why estimates aren't enough anymore For years, estimates were acceptable. Reporting was voluntary, and an average was better than nothing. That is changing. The Corporate Sustainability Reporting Directive is pushing companies towards emissions figures they can defend. ISO 14083 and the GLEC Framework give logistics a common method for calculating and allocating transport emissions. Customers increasingly ask carriers and forwarders for shipment-level figures, not company averages. When the question becomes "show me how you got this number", a spreadsheet of defaults is a weak answer. ## The shipment already has the data Here is the opportunity: almost everything a credible calculation needs is already part of the shipment. - The planned route and load at the moment of booking. - What actually happened on the road. - The confirmed delivery, with its evidence. If the emissions figure lives inside the shipment record, it can follow the same journey: an estimate when the order is placed, then an actual figure when the delivery is confirmed. ## Estimate first, actual last We think about carbon in two states, and keep them clearly separate: - Estimated at order. Everyone plans with the same figure from the start, calculated on a recognised method. - Actual at proof of delivery. Once the shipment is complete, the figure is recalculated from what really happened and attached to the same record as the delivery evidence. Keeping both, clearly labelled, matters. Mixing estimates and actuals without saying which is which is how reports lose credibility. ## Allocation is where it gets hard A truck rarely carries one customer's goods. Groupage, multi-stop routes and return legs all raise the same question: how much of this journey's emissions belongs to each shipment? Recognised frameworks answer this with allocation rules. The point of building them into the platform, rather than a spreadsheet, is consistency: the same rules applied the same way for every shipment, every time, with the inputs kept alongside the result. ## Avoided emissions count too Some of the best climate wins in freight aren't new technology. They are fewer empty kilometres. A truck that finds a load for its return leg instead of driving home empty avoids emissions that would otherwise have happened. Measuring that properly, against a clear baseline and without double counting, turns efficiency into something a company can report and stand behind. ## The bigger point Carbon reporting, invoicing and proof of delivery have all suffered from the same problem: they are reconstructed after the fact from copies that don't agree. Put them in one shared record and they stop being separate projects. They become views of the same shipment. I'm the CTO of Konfidio, where we build TrustedTrucks: one shared record for European freight. ## Films ### Final means final URL: https://www.pratyushshivam.com/films/final-means-final/ When is a record final? In this film a delivery-approved record is sent to five nodes of a permissioned network; once three of the five, a majority, have written it down, it is final on every copy. Someone then tries to change the amount and the network rejects the change. The fix is a correction: a new record that points to the original, agreed the same way, so nothing is erased and every party can see both in the order they happened. ### One night in the Amazon, in a browser tab URL: https://www.pratyushshivam.com/films/understory/ A film of Understory, a browser game by Pratyush Shivam: one night on the floor of the Amazon rainforest at Yasuní, Ecuador, with one torch, shot as real footage of the game. It shows a forest of 702 trees per hectare drawn with instancing, eyeshine from a black caiman across the river and an ocelot that fades with the fourth power of distance, animals placed at their real heights, the positions of animals with real field recordings played through an HRTF panner, and dawn light coming through the canopy. The whole game is 2.7 MB. ### I put Mount Everest in a browser tab URL: https://www.pratyushshivam.com/films/thin-air/ A film of Thin Air, a browser game by Pratyush Shivam: a climb of Mount Everest by the South Col route, from the Khumbu Icefall to the summit at 8,848.86 m, played by the game's own test climber. The mountain is built from Copernicus GLO-30 radar satellite elevation data and the route from OpenStreetMap. The instruments on screen are worked out from published physiology: West's model atmosphere gives 253 mmHg on the summit, and blood oxygen comes from the alveolar gas equation and the Severinghaus curve, fitted to blood drawn from climbers at 8,400 m. The whole game is about 1.2 MB. ### The entire universe, in a browser tab URL: https://www.pratyushshivam.com/films/lookback/ A film of Lookback, a page by Pratyush Shivam that pulls back from 19,000 km above Earth to the edge of the observable universe, 46.1 billion light-years away, in one continuous shot at true scale. It is real footage from the live page: the planets where they really are, 16,301 asteroids and Kuiper belt objects, 109,400 catalogued stars and 156,940 galaxies from the Sloan Digital Sky Survey, with a readout of the distance and the time light takes to cross it. The whole journey downloads in 2.95 MB. ### I folded a paper plane out of physics URL: https://www.pratyushshivam.com/films/paper-plane/ A film of Paper Plane, a browser game by Pratyush Shivam, shot on the live page. A paper plane is thrown from a top-floor window with a real mouse drag and flies 524.9 metres over a hand-drawn town, park, river and hills, through seven columns of warm air. Diagrams drawn from the game's own functions show the three forces on the plane and its lift and drag against the angle of attack, with the stall at 13 degrees; the day's air along the flight, with warm air rising off roofs and cold air sinking over the river; and the phugoid swoop of a hard, level throw. Five real landings follow: a washing line, a tree, a wall, the river and a stall in the room. ### Draw a line. Get it home. URL: https://www.pratyushshivam.com/films/junction/ A one-minute film of Junction, a path-drawing game by Pratyush Shivam, made from one real round played with real pointer events. Cars, vans and trucks drive into a yard from all four sides and each one is drawn a path to the garage of its colour. Between the footage, diagrams drawn from the game's own code show a line becoming a list of points that snaps to its garage, every vehicle as a capsule with the engine looking 1.8 seconds ahead to put a warning between any pair about to touch, and the difficulty curve that opens new garages at 5, 13 and 24 delivered. The round ends at 35 delivered and a new best. The whole game is about 45 kB. ### I flew into a black hole URL: https://www.pratyushshivam.com/films/event-horizon/ A film of Event Horizon, a page by Pratyush Shivam where you fly a ship around a real black hole, shot on the live page. Every pixel is a ray of light traced backwards through curved spacetime on the graphics card. The film shows the shadow and the thin photon ring, the accretion disk brighter on the side coming towards you, and a dive that crosses the horizon. Diagrams drawn from the page's own equations show how light bends around the black hole, where the disk glows brightest (4.78 Schwarzschild radii, from the Page and Thorne formula) and how the ship's clock falls behind Earth's the closer it flies. ### I taught fifty cars to drive URL: https://www.pratyushshivam.com/films/rookie/ A one-minute film of Rookie, a page by Pratyush Shivam where you draw any race track with your finger and fifty AI cars learn to drive it from nothing, shot on the live page. Generation 1 is a pile-up; in this run the first clean lap comes in generation 5. Diagrams drawn from the real numbers in the code show what a car sees (seven distance sensors and its own speed), its brain (a neural network of 8 inputs, 6 hidden neurons and 2 outputs, 68 weights in all), and how each generation is ranked, crossed over and mutated. No training data and no machine-learning library: everything is written from scratch and runs on your own device. ### I built a planet URL: https://www.pratyushshivam.com/films/eden-planet/ A one-minute film of Eden, a whole small planet in a browser tab built by Pratyush Shivam, shot on the live page itself. The camera orbits the planet by day, crosses the line into night where fires burn on the dark side, dives from orbit into a kith village at dusk, watches a herd by the water, glowing creatures in the night sea and a campfire among the huts, then pulls back out to the whole world. Every creature runs its own small neural network; there are seven kinds, up to 800 alive at once, and children inherit their parents' brains. ### Proof, on file URL: https://www.pratyushshivam.com/films/evidence-vault/ A shipment makes paper: an EU licence, a CMR, a proof of delivery, delivery photos, a carbon report and an invoice. In this 3D film each document is scanned and given a fingerprint; the document stays private and only its fingerprint goes on the chain. The papers are then filed into the four drawers of the TrustedTrucks Evidence Vault (Verification Vault, Logistics Evidence, Carbon Evidence and Finance Evidence), and the fingerprints lock into a chain that any party on the shipment can check a document against. ### Same lane again? Type it once URL: https://www.pratyushshivam.com/films/type-it-once/ Most freight is the same lane, week after week, and every week the request is typed in again: pickup, drop-off, 33 Euro pallets, 18,200 kg, incoterms, date. This film types it three times, then saves it as a template. The form turns into the template list, one tap starts from Hamburg to Munich, and the stops, freight and terms are filled in with the pickup moved to tomorrow, ready to send. A template saved in the app opens in the portal too. ### First quote, final payment URL: https://www.pratyushshivam.com/films/first-quote-final-payment/ One Hamburg to Milan shipment, followed from the first quote to the final payment. The camera follows a single dot down a route of nine stations: the request, quotes side by side, accepting in a tap, the tour plan with a QR code per stop, track and trace, proof of delivery and the eCMR, the invoice matched against the proforma, payment settled against the signed proof, and the evidence kept in the vault. A strip fills block by block as every party works from the same record, then the camera pulls back to show the whole route. ### One list, nothing missed URL: https://www.pratyushshivam.com/films/action-center/ An email, a chat message, a missed call, a sticky note: every open task in freight lives somewhere else. This film gathers them into one list, the Action Center, with proofs of delivery to review, an invoice to confirm, a payment to make and carrier qualifications to check. Each item opens where the work is, and leaves the list once it is done. ### On file once, sent in a tap URL: https://www.pratyushshivam.com/films/on-file-once/ Every new forwarder asks a carrier for the same four documents: company details, EU licence, CMR insurance and the minimum wage declaration. This film shows them kept on file once, with each expiry date in view, and sent to a forwarder for review in one tap. Each forwarder reviews the set and qualifies the carrier, who can then quote on that forwarder's freight requests. ### A code for every stop URL: https://www.pratyushshivam.com/films/tour-plan/ One tour, four stops, from Rotterdam to Milan. This film shows the tour plan made when a quotation is accepted, with a QR code for every stop. Scanned on arrival, each code opens that stop's proof of delivery, and the stops are ticked off one by one. ### One request, every quote URL: https://www.pratyushshivam.com/films/one-request-every-quote/ Pricing one load usually means a dozen emails, phone calls and a spreadsheet. This film shows one request for quotation, Hamburg to Milan, sent to 25 checked carriers. Their quotations arrive in one side-by-side list, the forwarder accepts one in a tap, the carrier confirms, and the tour plan is made with a QR code for every stop. ### Every document has a fingerprint URL: https://www.pratyushshivam.com/films/document-fingerprint/ A signed consignment note is given a fingerprint and anchored at the moment of signing. This film then changes one digit, 14.2 tonnes to 14.7, and shows the fingerprint come out completely different, so every party can tell the file is not the one that was signed. It proves the document is unchanged, not who agreed to it. ### Shared by purpose, not by default URL: https://www.pratyushshivam.com/films/shared-by-purpose/ Forward an email in freight and the rates go with it: every copy carries the whole file. This film shows the alternative. One shipment record, four views, where the shipper, forwarder, carrier and consignee each see only the fields their role needs, and an ETA change reaches all of them at once. ### Proof to payment URL: https://www.pratyushshivam.com/films/proof-to-payment/ A delivery is proven on a phone and invoiced in an ERP, with emails and reminders in between. This film follows accepted delivery evidence as it becomes the invoice on the same record, so the carrier is paid on evidence rather than paperwork. ### One network URL: https://www.pratyushshivam.com/films/one-network/ Five companies on one shipment need ten point-to-point integrations. This film draws those ten links, then replaces them with one shared shipment record that each company connects to once. ### Every load, in plain sight URL: https://www.pratyushshivam.com/films/live-track-and-trace/ "Where is the truck right now?" is asked by email for every load. This film follows a shipment from Rotterdam to Milan with pick-up, border crossing and delivery recorded against the shipment record as they happen, visible to every party. ### Documents, approved URL: https://www.pratyushshivam.com/films/documents-approved/ Which CMR is the real one? Documents travel by email, chat and photos of photos. This film shows every shipment document attached once to the shared record and approved once, ready to carry into the invoice. ### Backhaul URL: https://www.pratyushshivam.com/films/backhaul/ A large share of truck kilometres are driven empty on the way home. This film shows a return leg from Milan to Hamburg matched with open loads along the route, turning the empty leg into a paid one. ### One record URL: https://www.pratyushshivam.com/films/one-record/ Five systems hold five versions of one shipment. This film walks through the five stages of a shipment on TrustedTrucks, from request and quotes to agreement, proof and invoice, all on one record.