An endless, hands-off flight through 471 generated 3D worlds in a browser. Each world ends in a portal that opens on the next one, and nothing is steered: it flies itself. Live at portals-endless-worlds.netlify.app (press S for sound).
This repository is the code behind that site as of November 9, 2026: release s8f, 471 worlds, about 1.4 million lines of JavaScript, designed and written by AI agents apart from the three.js library and some short borrowed functions (credited at the end). It wants a real graphics card, though it runs on a phone or an older laptop at lower quality.
- Everything is generated. No world loads a 3D model, a texture image or a sound file. Each one builds its geometry and textures in the browser while the world before it is still flying, and synthesizes its own sound as it plays. The only image files here are the gallery's thumbnails, the site's icons and link preview, and the two screenshots on this page; no world loads any of them. (The nearest exception is the Utah teapot, which ships inside three.js as a list of numbers and stands on a table in a few worlds.)
- Two worlds run at once, the one on screen and the one behind the portal, so a crossing has no cut and no fade.
- Static site, no backend. three.js is the only library the site loads, and what the build produces is plain static files. Nothing leaves the browser: no account, no server, no tracking. Worlds seen, favorites and settings are kept in the browser's own storage.
Node 18 or later, and nothing else.
git clone https://github.com/emollick/ai-portals.git
cd ai-portals
npm start
That serves the source as it stands at http://localhost:8000, with nothing to install or build first. (From source the gallery can't mark which worlds are new or offer its page of descriptions, and the first time you open it the browser's console shows one missing file, atlas.json, which only the build writes.)
To make the package that gets deployed:
npm install
npm run build
npm run preview
The result is in dist, plain static files that any web host can serve, and the preview is at http://localhost:8001. Every script the project wrote is minified with esbuild, and the build adds the pieces that exist only on a deployed site: a small page for each world and journey so that shared links show a preview, a plain page that lists every world with its description, the gallery's record of which worlds are new, and the host's settings file. Each release has a short name, and this one is s8f. Run as npm run build -- --stamp s8f, this tree came out identical to the live site, file for file and byte for byte, on November 9, 2026. The site may have grown since.
| Key | What it does |
|---|---|
| Space | Pause |
| → | Hurry to the next portal |
| S | Sound on or off (it starts off) |
| G | Gentle: a steady camera and a level horizon, if the motion is too much |
| H | Keep this world as a favorite |
| P | Save a picture |
| I | The gallery: every world, the journeys, and a search box |
| O | Options: graphics, camera, art style, ride, companion, time of day |
| F | Fullscreen |
Move the mouse and a bar appears at the bottom of the screen with a button for each of these, and two sliders: Pace, and one that runs from Earthly to Strange (in a narrow window the sliders move into the options).
index.html the page
src/main.js the page's wiring: keys, options, the bar
src/core the engine: the flight, the portal, the picker, sound, graphics quality
src/kit shared building blocks for worlds
src/worlds one file per world, the list of them, and the hall every visit opens in
src/parts the worlds' set pieces
src/extras.js the list of rides, companions and art styles
src/rides, src/companions, src/styles
the extras themselves
src/ui the gallery, sharing, and ui.css, the page's only style sheet
vendor/three three.js, the only library
thumbs the gallery's thumbnails
design two tables the build reads: each world's text, and the release it arrived in
icons, og.jpg, manifest.webmanifest
the home-screen install and the picture a shared link shows
readme the two screenshots on this page
tools the build script and a small local server
A world is a file in src/worlds whose default export is an object with a build function, listed in src/worlds/index.js with its title, kind and caption; that list is what the gallery and the picker read. Nearly every world keeps its main set piece in a second file in src/parts. build returns a three.js scene, a camera path and a duration (most are 40 to 50 seconds), and the engine flies the camera along the path. A shared kit covers what many worlds need: skies, water, terrain, plants, animals, buildings, interiors.
The portal. About a second after each crossing the engine picks the next world, builds it a few milliseconds at a time between frames, and then warms up its shaders and textures out of sight, so that nothing is left to do in the frame that first shows it. What you see through the opening is that world itself, drawn into the opening on every frame by a second camera; just short of the gate the engine makes it the current world and keeps flying. If it isn't ready yet, the flight slows down and waits in front of the portal.
The castle gate at the end of The Midwinter Express. On the other side, The World Turtle is already running.
Picking the next world. Worlds you haven't seen come first, and for the first dozen worlds of a visit the picker keeps to the worlds the judging agents rated best. The Earthly to Strange slider sets how often the stranger worlds come up, and the picker leans toward a world unlike the one you're in: a different kind of place, lighter or darker, warmer or cooler.
Sound. Each world gets a slow chord and a few bells. Most also get a quiet bed (wind, water, room tone, or a still hum in space) and up to three layers out of nineteen (rain, surf, birds, a distant bell), all synthesized by the browser's audio engine.
Graphics. With graphics on Auto the site guesses a quality level from your graphics card, then raises and lowers the drawing resolution to keep the flight smooth.
The gallery (press I) sorts all 471: 64 wilderness, 49 cities, 40 bizarre, 35 oceans, 30 interiors, 26 skies, 26 at home, 26 alien and 15 prehistoric. Another 52 are original places in the manner of an artist or a work of the past (Hokusai, Vermeer, Escher, the Bayeux Tapestry), 60 are imagined from books, 7 are Wonders of the Ancient World, 26 come from film and television, and 15 are AI in-jokes. A world in the manner of an artist or an older work is marked "after" in the gallery, and one imagined from a book, a film or a series is marked "inspired by"; all of them are original places rather than copies of a scene.
There are also 20 journeys, which fly a set of worlds in order: One Drop of Water goes from a hailstone to the deep sea, Zooming Out starts inside a living cell, and in Seven Insides each world is inside something in the one before.
The worlds are uneven, and the agents' own grading says so. Every world carries a band from 1 to 5: 40 of the 471 are in band 5 and 28 in band 1. The bands are what the picker uses to decide which worlds a visit opens with.
Ethan Mollick described the idea in a paragraph in October 2026 and left the building to Claude; twenty hours later there were 204 worlds on a live website. By the tenth day there was a lead agent that owned the engine and shipped every release, and 28 teams of agents building worlds in parallel. Agents acting as judges scored the worlds, and those scores became the bands above. Before each release the lead agent's tools rendered every new world, and every world whose code had changed, at three points along its flight and checked the frames for errors and broken pixels; a world that failed was left out. Then they played the assembled site at ten times its normal speed before anything went live. Claude's own estimate, not a count, is that about 25,000 agents worked on the project. This README was written by Claude too, and other agents checked it against the code.
The comments in the code are the agents' notes to themselves and to each other, left as they were apart from a few short passages edited for this repository: lines that quoted or pointed at Ethan's messages, a few notes about the agents' own machines and working folders, and the first lines of three files that the release tooling writes. They have a dialect: the lead agent is "the owner" or "the site's owner," the teams are "crews," and a team's own head is its "lead" or "designer." So a line such as "the owner's ruling of 14 Oct" records one agent's note to another. Hundreds of comments also name screenshots, briefs, reviews and tools that aren't here, because this repository holds the site's code and leaves out the project's working files: tools keeps only the build script, edited for this repository, and a small local server written for it.
This repository is under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY-NC-SA 4.0): you can share it and build on it for non-commercial purposes, as long as you give credit and keep the same license. Some pieces keep terms of their own. three.js and a number of short functions are MIT-licensed, and THIRD-PARTY-NOTICES.txt lists the ones the agents traced as they worked.
A check made just before this repository was published found more borrowed functions than that file lists. The main ones: the water caustics in the shared water and plant code and in four worlds follow a Shadertoy shader by Dave Hoskins, which builds on a GLSL Sandbox effect by joltz0r. A three-line hash used in many worlds comes from Martijn Steinrucken's shader tutorials. Two noise routines follow scene shaders by Inigo Quilez, and a grid hash comes from a Stack Overflow answer. As far as the check could establish, the Shadertoy shaders among these were published under Creative Commons Attribution-NonCommercial-ShareAlike 3.0, which is why this repository carries that license in its current version. The Stack Overflow answer is share-alike without the non-commercial part (CC BY-SA 3.0), and the GLSL Sandbox effect states no terms. All of them remain their authors' work. On two points this paragraph differs from the notices file, which was written earlier: that file names no author for the three-line hash, and it lists one of the two noise routines as MIT. This paragraph is the later reading.
Fifteen of the 471. Each picture is the gallery's own thumbnail and opens that world on the live site; the site's gallery (press I) holds the rest.
Hall of a Million Mirrors Interiors |
The Marigold Way Home At home |
Kites at Uttarayan Cities |
Living Balloons over a Gas Giant Alien |
Bison in the Coloured Steam Wilderness |
The Hanging Meadow Prehistoric |
The Sky Drains into the Moon after Vincent van Gogh |
Stairway Everywhere after M. C. Escher |
A Page of Jellyfish after Ernst Haeckel |
Carnival on the Frozen River inspired by Orlando by Virginia Woolf |
The Lighthouse of Alexandria a Wonder of the Ancient World |
The Pelican Peloton AI in-jokes |
Orbital Sunrise Skies |
Shark Pass Oceans |
The Elk Who Carries the Sun Bizarre |

