The Lab: a gallery of experiments made in code
The Lab is where I hang the experiments I build on the side. Its home is a small gallery room in real-time 3D, where each piece is a framed picture under its own lamp with a museum label, and the visitor walks up to a piece to open it. Every piece is made entirely in code, exists in English and in French, and stands on its own.
Live at lab.douare.dev since November 29, 2026.
(opens in a new tab)
The pieces
First Light, a presentation on the future of humanity, rendered live in 3D in 39 beats. A Dutch still life from 1630 says that everything ends; the painting wakes up into a lit 3D table, and each object opens onto a world that answers it with a real number: the candle flame becomes the Sun, the soap bubble the Earth and the shell the galaxy.
Lights Out, a presentation on how AI takes over, in 38 beats, told as one night in one city. An office, a factory, a data center, a lab and a boardroom go dark one after the other while the work in them carries on, each with a real number.
We Are Early, a film of 100 seconds about the next 10100 years: one hill, watched from tonight to the end of time, where every second stands for a stated number of years.
The home also lists the 3D games of the series "Software that acts", which live here on douare.dev, on the games page, next to the articles they go with.
Made in code, with no video editing
A presentation is one WebGL canvas (three.js) shipped as a single self-contained HTML file. A script file holds one entry per beat, with its words, its label, its notes and its sources, and the engine draws each beat live, so a word changed in the script changes on screen at the next build.
The film is drawn the same way. Every frame is a pure function of time, with Canvas 2D for the hill and a small WebGL2 ray tracer for the Earth, the Sun, the galaxy and the black hole, and the soundtrack is synthesized note by note. A headless browser renders it in ten segments of ten seconds and a script assembles them, so a changed caption means a new render, never an edit of the video. Nothing in it is filmed, recorded or generated by an image model.
The French is laid over the English at build time, with French typography applied by code, and a missing or extra line stops the build. Since the film's words are drawn in the picture, each language is its own render.
From a merge to the public site
The site is built on my server every five minutes by a sync script that keeps two checkouts: main becomes the public site and dev becomes a preview address that search engines don't index. A merge into dev shows up in the preview within five minutes, and the public pages change only when I merge the promotion pull request into main; after each public rebuild, the addresses of the sitemap are sent to IndexNow.
Videos stay out of the repository. The film's two files live in a media store on the server, listed with their size and their SHA-256 checksum, and a missing or different file stops the build, so the site keeps its last good state.
Decisions and why
A piece is independent. It carries its own engine and assets and imports nothing from another piece or from the home, so adding a tenth piece can't break the first.
A version that was shown is frozen. A new version of a piece is built beside the old one, which stays reachable.
A game that isn't out doesn't leak. The list of games is read from the live page of this site, never typed by hand, so a game appears in the Lab the day it is released here.
The home works without scripts. The list of pieces is real HTML, and where the browser can draw the room, the visitor sees the room first, without the list flashing before it.
Nothing is fetched from elsewhere. No CDN, no analytics and no font service: the fonts are served by the Lab itself.
Numbers
3 pieces: 39 beats, 38 beats and a 100-second film, each in English and French.
Online since November 29, 2026, the day of the first commit; 27 commits on the public branch.
The film's two video files weigh 87 MB and stay out of git.
Stack
See also
Faguibine: a presentation in live 3D on keeping water in a lake