[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111195":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":8,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":13,"starSnapshotCount":13,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},111195,"ai-portals","emollick\u002Fai-portals","emollick",null,"JavaScript",198,48,3,0,25,106,8,64.57,"Other",false,"main",true,[],"2026-11-10 03:05:23","2026-11-23 07:34:25","# Portals\n\nAn 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](https:\u002F\u002Fportals-endless-worlds.netlify.app) (press S for sound).\n\n[![The Midwinter Express, one of the worlds of Portals: a steam train crosses a stone viaduct above a snowy town at dusk](readme\u002Fthe-midwinter-express.jpg)](https:\u002F\u002Fportals-endless-worlds.netlify.app)\n\nThis 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.\n\n- **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.)\n- **Two worlds run at once,** the one on screen and the one behind the portal, so a crossing has no cut and no fade.\n- **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.\n\n## Quick start\n\n[Node](https:\u002F\u002Fnodejs.org) 18 or later, and nothing else.\n\n```\ngit clone https:\u002F\u002Fgithub.com\u002Femollick\u002Fai-portals.git\ncd ai-portals\nnpm start\n```\n\nThat serves the source as it stands at http:\u002F\u002Flocalhost: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.)\n\nTo make the package that gets deployed:\n\n```\nnpm install\nnpm run build\nnpm run preview\n```\n\nThe result is in `dist`, plain static files that any web host can serve, and the preview is at http:\u002F\u002Flocalhost: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.\n\n## Controls\n\n| Key | What it does |\n|---|---|\n| Space | Pause |\n| → | Hurry to the next portal |\n| S | Sound on or off (it starts off) |\n| G | Gentle: a steady camera and a level horizon, if the motion is too much |\n| H | Keep this world as a favorite |\n| P | Save a picture |\n| I | The gallery: every world, the journeys, and a search box |\n| O | Options: graphics, camera, art style, ride, companion, time of day |\n| F | Fullscreen |\n\nMove 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).\n\n## Layout\n\n```\nindex.html     the page\nsrc\u002Fmain.js    the page's wiring: keys, options, the bar\nsrc\u002Fcore       the engine: the flight, the portal, the picker, sound, graphics quality\nsrc\u002Fkit        shared building blocks for worlds\nsrc\u002Fworlds     one file per world, the list of them, and the hall every visit opens in\nsrc\u002Fparts      the worlds' set pieces\nsrc\u002Fextras.js  the list of rides, companions and art styles\nsrc\u002Frides, src\u002Fcompanions, src\u002Fstyles\n               the extras themselves\nsrc\u002Fui         the gallery, sharing, and ui.css, the page's only style sheet\nvendor\u002Fthree   three.js, the only library\nthumbs         the gallery's thumbnails\ndesign         two tables the build reads: each world's text, and the release it arrived in\nicons, og.jpg, manifest.webmanifest\n               the home-screen install and the picture a shared link shows\nreadme         the two screenshots on this page\ntools          the build script and a small local server\n```\n\n## How it works\n\n**A world** is a file in `src\u002Fworlds` whose default export is an object with a `build` function, listed in `src\u002Fworlds\u002Findex.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\u002Fparts`. `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.\n\n**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.\n\n![A castle gate at the end of a snowy bridge. Through the gate, instead of a courtyard, a small green world floats in space.](readme\u002Fportal.jpg)\n\n*The castle gate at the end of The Midwinter Express. On the other side, The World Turtle is already running.*\n\n**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.\n\n**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.\n\n**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.\n\n## The worlds\n\nThe 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.\n\nThere are also 20 journeys, which fly a set of worlds in order: [One Drop of Water](https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fj\u002Fone-drop-of-water\u002F) goes from a hailstone to the deep sea, [Zooming Out](https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fj\u002Fzooming-out\u002F) starts inside a living cell, and in [Seven Insides](https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fj\u002Fseven-insides\u002F) each world is inside something in the one before.\n\nThe 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.\n\n## How it was built\n\nEthan 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.\n\nThe 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.\n\n## License and credits\n\nThis repository is under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license](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](https:\u002F\u002Fthreejs.org) and a number of short functions are MIT-licensed, and [THIRD-PARTY-NOTICES.txt](THIRD-PARTY-NOTICES.txt) lists the ones the agents traced as they worked.\n\nA 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.\n\n## Gallery\n\nFifteen 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.\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fmillion-mirrors\u002F\">\u003Cimg src=\"thumbs\u002Fmillion-mirrors.jpg\" alt=\"Hall of a Million Mirrors\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fmillion-mirrors\u002F\">\u003Cb>Hall of a Million Mirrors\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Interiors\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fmarigold-way-home\u002F\">\u003Cimg src=\"thumbs\u002Fmarigold-way-home.jpg\" alt=\"The Marigold Way Home\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fmarigold-way-home\u002F\">\u003Cb>The Marigold Way Home\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>At home\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fthousand-kite-roofs\u002F\">\u003Cimg src=\"thumbs\u002Fthousand-kite-roofs.jpg\" alt=\"Kites at Uttarayan\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fthousand-kite-roofs\u002F\">\u003Cb>Kites at Uttarayan\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Cities\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fstorm-bands\u002F\">\u003Cimg src=\"thumbs\u002Fstorm-bands.jpg\" alt=\"Living Balloons over a Gas Giant\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fstorm-bands\u002F\">\u003Cb>Living Balloons over a Gas Giant\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Alien\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fprismatic-dawn\u002F\">\u003Cimg src=\"thumbs\u002Fprismatic-dawn.jpg\" alt=\"Bison in the Coloured Steam\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fprismatic-dawn\u002F\">\u003Cb>Bison in the Coloured Steam\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Wilderness\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fhanging-sea-lilies\u002F\">\u003Cimg src=\"thumbs\u002Fhanging-sea-lilies.jpg\" alt=\"The Hanging Meadow\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fhanging-sea-lilies\u002F\">\u003Cb>The Hanging Meadow\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Prehistoric\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fthe-turning-night\u002F\">\u003Cimg src=\"thumbs\u002Fthe-turning-night.jpg\" alt=\"The Sky Drains into the Moon\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fthe-turning-night\u002F\">\u003Cb>The Sky Drains into the Moon\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>after Vincent van Gogh\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fstairway-everywhere\u002F\">\u003Cimg src=\"thumbs\u002Fstairway-everywhere.jpg\" alt=\"Stairway Everywhere\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fstairway-everywhere\u002F\">\u003Cb>Stairway Everywhere\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>after M. C. Escher\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Flitho-medusae\u002F\">\u003Cimg src=\"thumbs\u002Flitho-medusae.jpg\" alt=\"A Page of Jellyfish\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Flitho-medusae\u002F\">\u003Cb>A Page of Jellyfish\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>after Ernst Haeckel\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fcarnival-on-the-frozen-river\u002F\">\u003Cimg src=\"thumbs\u002Fcarnival-on-the-frozen-river.jpg\" alt=\"Carnival on the Frozen River\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fcarnival-on-the-frozen-river\u002F\">\u003Cb>Carnival on the Frozen River\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>inspired by \u003Ci>Orlando\u003C\u002Fi> by Virginia Woolf\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fpharos-of-alexandria\u002F\">\u003Cimg src=\"thumbs\u002Fpharos-of-alexandria.jpg\" alt=\"The Lighthouse of Alexandria\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fpharos-of-alexandria\u002F\">\u003Cb>The Lighthouse of Alexandria\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>a Wonder of the Ancient World\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fpelican-peloton\u002F\">\u003Cimg src=\"thumbs\u002Fpelican-peloton.jpg\" alt=\"The Pelican Peloton\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fpelican-peloton\u002F\">\u003Cb>The Pelican Peloton\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>AI in-jokes\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Forbit-dawn\u002F\">\u003Cimg src=\"thumbs\u002Forbit-dawn.jpg\" alt=\"Orbital Sunrise\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Forbit-dawn\u002F\">\u003Cb>Orbital Sunrise\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Skies\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fatoll-pass-shark-wall\u002F\">\u003Cimg src=\"thumbs\u002Fatoll-pass-shark-wall.jpg\" alt=\"Shark Pass\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fatoll-pass-shark-wall\u002F\">\u003Cb>Shark Pass\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Oceans\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\" valign=\"top\">\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fsun-in-the-antlers\u002F\">\u003Cimg src=\"thumbs\u002Fsun-in-the-antlers.jpg\" alt=\"The Elk Who Carries the Sun\" width=\"100%\">\u003C\u002Fa>\u003Cbr>\u003Ca href=\"https:\u002F\u002Fportals-endless-worlds.netlify.app\u002Fw\u002Fsun-in-the-antlers\u002F\">\u003Cb>The Elk Who Carries the Sun\u003C\u002Fb>\u003C\u002Fa>\u003Cbr>\u003Csub>Bizarre\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n","这是一个基于浏览器的无限生成式3D漫游体验项目，用户可无需交互地自动穿越471个完全由代码实时生成的三维世界。核心特点是纯前端运行、零外部资源加载（所有几何体、纹理、音效均在浏览器内动态合成），采用双世界并行渲染实现无缝门户过渡，并依赖three.js构建静态站点，无后端、无追踪、数据全本地存储。适合用于WebGL创意展示、AI生成内容实验、沉浸式数字艺术浏览及轻量级3D交互教学演示。",2,"2026-11-24 04:40:23","CREATED_QUERY"]