3d-world-building
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Fail
- child_process — Shell command execution capability in bin/cli.cjs
- spawnSync — Synchronous process spawning in bin/cli.cjs
- fs module — File system access in bin/cli.cjs
- fs.rmSync — Destructive file system operation in gallery/build.cjs
- fs module — File system access in gallery/build.cjs
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
An agent skill that builds websites a visitor travels through by scrolling: a 3D world made in code, a product built from its own label, a film, a scanned place. Next.js, React Three Fiber, three.js. Twenty examples, for Claude Code, Codex, Grok Build and more.
Websites your visitors travel through.
An agent skill that interviews you and builds a site where scrolling is travelling:
through a world made in code, round a product built from its own label, along a film, into a real place.
npx skills add haseeb090/3d-world-building # or from npm: npx 3d-world-building install
Explore the live examples · Try your own label in the playground
The banner is an illustration of the idea. Every other picture on this page is a real frame
from a site the skill made, captured in Chrome from the examples as they ship.
A real ride
Four example worlds, each straight out of the scaffolder and scrolled in a real
browser. The copy is ordinary HTML riding over one 3D scene that keeps running from page to page:
the scroll position is the ride's clock.
Four kinds of site
A site is one of four kinds, and a page of one kind can sit beside a page of another. The agent
asks which first, from what you can hand over.
![]() A world · built in code A place the visitor travels through: a valley, a cafe, a factory line, orbit. Made from your idea and your facts. There is nothing to supply but those. new my-site --world valley |
![]() A product · on a stage The thing itself, built from its pack's measurements with your flat print artwork laid on it, so the lettering is yours, on a set lit like a product shoot. It turns, changes flavour, opens, peels its label and comes apart. No 3D model is needed. new my-site --kind product --form can --label art.png |
![]() A film · played by the scroll Frames from your video, a render, or a ride of this skill baked to stills, drawn on a flat canvas: for whatever must look like a photograph. A page of films downloads no three.js, so a weak phone shows the same picture as a fast laptop. new my-site --kind film |
![]() A place · captured as it stands A room or a garden scanned on a phone as a gaussian splat, set down in the world and ridden on the same rails as anything built, with built things beside it. new my-site --kind place |
Have a label? Try it first. In the playground
you pick a form, drop your artwork, and see it turning in the browser with the same code a site
uses. It says whether the picture is the right shape and gives the one command that makes the
site. Nothing is uploaded.
A scene that answers the hand
The scroll moves the visitor through the site. The pointer, and a finger on a phone, get an
answer of their own: small, soon over, and belonging to the thing that gives it. Each is one
line in the world file or one component on the page.
| The visitor | What answers |
|---|---|
| moves the pointer through the air | dust, rain, bubbles and whatever drifts round a product part round it, or turn about it in a whirl |
| clicks or taps | the air scatters from the spot and drifts back; a product rocks on its foot and settles |
| rests the pointer on a product | it leans toward the hand |
| rests it on a picture or a product that has a second picture | a lens opens on what is underneath: the pencil drawing under the paint, what is behind a screen |
| scrolls to a product's other face | it turns right over |
| comes to a block of words | it opens through a shape: an iris, a curtain, a wipe, blinds |
| moves over a card | it leans, as a card held in the hand would |
| watches a part arrive | it lands a little past its place and settles, on a spring |
Nothing a visitor needs is found only by pointing: whatever a lens shows is also said in the
words. A phone is given the tap, a keyboard is given neither, and a visitor who has asked for
less motion is given none of it. The gallery, the carton and the phone app among the examples
below each use some of these.
Twenty examples to start from
Every site starts from the example nearest its subject, already riding in the first minute. Then
the agent designs the site's own world, palette and light from its brief. The examples are
placeholders that prove the machinery: fifteen worlds, three products, a film and a captured
place. Between them they show how to build landscapes, interiors, mechanisms, abstract spaces,
packaging and devices.
![]() Glasshouse · botanical architecture Repeated iron bays frame a lily pond, a propagation bench and a palm canopy. Suits a garden, a botanical collection or a museum. |
![]() Alpine Railway · mountain transport Follow a red passenger train from the open arches above a mountain river to the station platform. Suits a railway, a walking holiday or a transport museum. |
![]() Picture Palace · Art Deco cinema Step beneath the marquee into ruby velvet seats, jade plasterwork and opal lamps, with a moonlit skyline on the screen. Suits an independent cinema, a film festival or a performing arts venue. |
![]() valley · open countryTerrain from two small functions, hundreds of instanced trees and rocks, a river, grass and flowers along the path, seed in the morning air. Suits a retreat, an outdoor brand, a personal site about a slower life. |
![]() temple · buildings and gardensSwept roofs, turned shapes, one stone lantern set down eighteen times, leaves coming down over the path. Suits heritage, craft, hospitality, a practice built on care. |
![]() cafe · an interiorWalls with openings, lamps of the room's own, light through the windows, dust turning in it. Suits food and drink, a shop, a neighbourhood business. |
![]() harbour · land meeting waterOne terrain from hills to sea bed, a moving sea, a working quay with its lamps, ropes and fish boxes, jetties, boats, a striped lighthouse. Flat illustrated light. Suits trade and logistics, travel, a business on the coast. |
![]() reef · under waterA reef by a drop-off, eight hundred instanced corals, kelp and rocks, a hull from one function, a lit bell, bubbles in blue water. Suits an ocean cause, a dive school, a marine research group. |
![]() street · a place at nightDressed shop windows lit from within, glowing signs and lamp heads, a town of roofs and lit windows behind, real lamps on the road, rain. Suits nightlife, music, restaurants, a city's businesses. |
![]() factory · a place of workTrusses and skylights the sun comes through, presses and robots built in code, hundreds of instanced parts and cartons, warm dust in the air. Suits manufacturing, logistics, hardware, software for operations. |
![]() desk · a small worldA desk at ten times life under one real lamp, instanced keys and books, a page written as you arrive, dust in the lamplight. Suits a personal site, a writer, a designer, a consultant. |
![]() orbit · no ground at allA station from three.js's own shapes, a planet painted point by point with coasts, cloud and an edge of air, one hard sun. Suits space, satellites, deep technology, research. |
![]() network · a structure in open spaceA network in deep haze: hubs built in code, hundreds of instanced devices, one message's route lit piece by piece as you scroll. Suits AI, data, infrastructure, developer tools. |
![]() watch · a small thing that movesA pocket watch at forty times life: the lid opens on its hinge, and crystal, hands, dial and wheels lift apart with the scroll, each wheel turning at the speed its teeth give it. Suits a maker, an engineer, a product with a mechanism inside. |
![]() gallery · pictures in the sceneFramed works on white walls under a long skylight: the page's own pictures drawn in the scene, a lens that pulls focus, a change of page through a door. Suits a gallery, a museum, a portfolio of pictures. |
![]() can · a productSollund, a made-up sparkling water: a cold can on a painted sweep with water light playing over it, the other two flavours standing behind and changing places with it, buttons that pick a flavour and turn the whole set its colour, the can opened and fizzing. On the second page the label peeled flat and the lid lifted. Suits a drink, a food, anything sold in a printed pack. |
![]() carton · a product in a boxWrenfold, a made-up tea: a real folding carton in foil and varnish, its tuck and dust flaps opened, the inner bag drawn up and blossom rising out of it, a cup steaming beside it, three blends to pick between. On the second page the sheet unfolds flat with every face named. Suits a tea, a cosmetic, a game, anything sold in a printed box. |
![]() device · a product on a screenNeap, a made-up tide app: a phone in a night studio, three screens to pick between with the set's colour following, a notice lifting off the glass as the phone comes apart, the same app on a laptop and a tablet beside it. Suits an app, a tool, anything that lives on a screen. |
![]() film · a filmFrames played by the scroll on a flat canvas, with no 3D at all: a paper theatre drawn as SVG when the site is made. Each section rests on one frame. Suits footage, a render, or a ride recorded from a 3D site. |
![]() courtyard · a captured placeA garden as a gaussian-splat scan, ridden like a world, with the lane and the gate built in code round it. The scan here is a stand-in computed when the site is made. Suits a garden, a venue, a shop or a room a visitor would want to stand in. |
Every ride, beat by beat
Each home page is four beats: an opening, two stops that each show something the builder can do,
and an ending that stands for the visitor's next step.
railway · across the gorge
cinema · an evening at the picture palace
valley: down the river to a cabin
temple: through the gate to the hall
cafe: from the door to the counter
harbour: from the hill to the lighthouse
reef: down onto the reef, past the wreck, to a diving bell
street: down the street at night to a lit doorway
factory: from the roof, along the line, to the loading dock
desk: from the lamp, across the desk, to a notebook
orbit: in to a station and round to the dock
network: one message, from a device to its answer
One world, any look
The world owns its things and their paints. The theme owns the light, the sky, how things are
shaded (matte, faceted or flat illustrated) and the page's colours. Here is the same temple under
four of the starter's placeholder themes:
![]() cedar: late afternoon, faceted |
![]() tide: bright, flat illustrated light |
![]() lamplight: a lilac evening |
![]() walnut: night, the lanterns lit |
A real site's palettes are designed from its brief, never taken from these. The agent offers two
to four as live options on the page, with a picker to compare them while you scroll, and
recommends one.
On a phone
![]() |
![]() |
![]() |
![]() |
On a phone the copy docks as a sheet over the lower half and the world fills the top. A page can
give the phone a camera rail of its own, so the subject sits where it is seen. Phones that cannot
keep up get a lighter picture first, then fewer pixels.
![]() |
![]() |
![]() |
Worlds it can build
The examples are points in a wider catalogue. references/world-ideas.md in the skill has many
more, by kind: who each suits, what it is made of, how the ride goes, and which example to start
from. It lists products, films and places the same way.
| Kind | Ideas | Start from |
|---|---|---|
| Open country | a valley walk, a mountain ascent, an alpine railway, a coastline, a vineyard through a day, a desert road, a forest floor, terraces | valley, railway |
| Water | a river from source to sea, a harbour, a lake house, under the sea | harbour, reef |
| Gardens and sacred places | a temple approach, a cloister, a walled garden through the seasons, a glasshouse, a ruin | temple, glasshouse |
| Streets and towns | a market street, a hill town, a city at night, a station, a festival ground | street |
| Interiors | a coffee shop, a workshop, a gallery, a library, a home room by room, a restaurant, a shop, a cinema | cafe, cinema, gallery |
| Places of work | a factory line, a laboratory, a construction site, a control room, a warehouse, a data centre | factory |
| Small worlds | a model on a table, a desk, a map table, inside a watch or an engine, a terrarium | desk, watch |
| No ground at all | orbit, islands in the air, a cloud of things, a network made visible | orbit, network |
| Journeys through time | a day, a year, a building going up, before and after, the life of a product | any: the light and the build carry it |
What a world is made of
A world is one plain JavaScript file. Everything fixed is built in code and merged into a single
draw call; anything repeated is instanced; what drifts in the air moves on the GPU.
const b = createBuilder()
b.box(6, 3.2, 8, { at: [0, 0, -40], color: "#e9e2d0" }) // a hall
b.roof(7.5, 9.5, 2.4, { at: [0, 3.2, -40], color: "#3d4a52" }) // a roof that sweeps up at the eaves
b.lathe([[0.4, 0], [0.25, 0.3], [0.3, 1.5], [0, 1.8]], { at: [3, 0, -28] }) // a lantern, turned
b.tube([[-4, 1, -20], [0, 1.2, -24], [4, 1, -28]], 0.05, { color: "#b03a2e" }) // a rail along a curve
b.box(1.2, 1.4, 0.1, { at: [0, 1, -36], color: "#ffd58a", glow: 1 }) // a window lit from within
b.at(2.5) // from here on: built as the ride arrives
b.box(2, 2, 2, { at: [9, 0, -52], color: "#8a6f4e" })
export const BUILT = b.geometry() // all of it, one draw call
export const SCATTER = [{ geometry: pine, spots: pines }] // four hundred pines, one draw call
export const AIR = [{ kind: "leaves" }] // leaves coming down, moved on the GPU
The builder makes boxes, cylinders, cones, balls, turned profiles, extruded outlines, tubes along
curves, slabs, swept roofs and walls with openings, and takes any three.js geometry. A world can
add terrain (height and colour as two functions), water that moves in the light, real lamps, and
air: dust, snow, rain, leaves, fireflies, embers or bubbles. What code cannot make comes from
files: your own 3D model of a product, a photograph on a wall, your logo on a sign, placed in
metres like everything else (ASSETS).
Try asking
Build a 3D walkthrough site for my pottery studio. Here is our current site and some photos.
Turn my CV into a portfolio I can walk through: a valley, one stop for each job.
Make my cafe's site a walk from the street, through the door, to the counter.
Our product is an electric ferry. Make a landing page that rides its route along the coast.
Here is our brand guide and the 3D model of our speaker. Make its launch page.
I have pictured this for years: the site is a book on my bench that opens as you scroll.
My storyboard is attached.
Here is the print artwork for our three drinks. Make the launch page: the can turning, a
flavour for each section.
Our visualiser sent a ten-second fly-through of the building. Make it the site: you scroll,
and you walk through it.
I scanned our shop on my phone. Let visitors walk in from the door to the counter.
The 3D scene on my site makes laptops hot. Find out why and fix it.
The agent takes it from there, starting with the interview.
What it does
- Interviews you. It asks for what already exists (a website, a CV or LinkedIn export,
product details, print artwork, footage, photographs or a scan of a place), reads it, asks
only what that leaves open, and writes a brief. What you can hand over decides the kind: an
idea makes a world, print artwork a product, footage a film, a scan a place. It asks what
must never appear on the site, and guards that with a test. - Builds on what you already have. Your own idea of the world leads: the options it shows
are variations of it, and what is hard to build is said, not swapped out. Brand colours stay
exact (only a button that would not read is adjusted), fonts are served from the site, your
logo is used unchanged, your label goes on the product as it went to the printer, and your
photographs and 3D models are made small without changing how they look, then placed in the
world. It checks each before using it: whether a label is the shape its pack needs, whether
a video has black bars, how heavy a scan is and which way is up. - Scaffolds a site that already runs, from the example nearest in kind.
- Proposes worlds and palettes as real options on the page, designed from your brief, and
recommends one of each. You judge them by scrolling them, not by reading about them. - Builds the world and the pages. One world, and a ride through it for each page. The copy
gets entrances of its own, drawn in the world's own hand. - Audits every frame, at several window sizes and on a phone, and drives the motion by hand.
- Measures and tunes it on a weak graphics card and a slowed processor.
The skill carries no look of its own. The world, its palette, its light, its shading and how its
notes are drawn are designed for your site.
Built to run on ordinary machines
It grew out of a site whose first bug report was "my GPU fans start spinning whenever the site
is open". Everything that fixed that is in the engine every new site starts with:
- It draws only when a picture is due: sixty a second on the move, thirty once left alone,
held still in a window left out of focus, none in a hidden tab. Never the display's 144 or - It fits the machine. A machine that cannot keep up is given a lighter picture first, then
fewer pixels, and both come back when it can. A display held to thirty a second (a phone
saving battery) is not mistaken for a slow machine. - Nothing freezes on the first scroll. Shaders are compiled under the loader.
- The world is cheap by construction. Everything built is one draw call, anything repeated
is instanced, what drifts in the air is moved on the GPU, and shadows are kept while nothing
moves. - It is a real website. The copy is HTML, so search engines, AI assistants and screen
readers read the same page the visitor rides through. Text and links are visible from first
paint. Reduced motion holds a still view in each section and cuts when the reader enters the next. - Where there is no WebGL, there is still a site. A product is drawn turning on a flat
canvas, a film is the same frames on every machine, and a world gives way to the plain page,
as it does when a graphics card gives up half way. - Its tests guard the ride: every journey well formed, the view held still at every stop,
the camera above the ground and clear of everything built on every rail, every theme
readable, and the pacing rules.
Slow or hot? Your agent can find out why, and fix it. The skill gives it scripts that measure
how smoothly the site scrolls, how hard the graphics card works, what each part of the world
costs and what a first visit downloads, and the fixes to go with them: models and photographs
made many times smaller without changing how they look, repeated things drawn together, and a
lighter picture for weaker machines. Each fix is checked against the picture before it, so the
site looks the same, only lighter.
Install
With the skills installer, for Claude Code, Codex,
Grok Build (formerly Cursor), OpenCode and the other agents it supports:
npx skills add haseeb090/3d-world-building # asks which agents
npx skills add haseeb090/3d-world-building -a claude-code -a codex -g # or say so
From npm, which runs that same installer and passes your flags on:
npx 3d-world-building install # asks which agents
npx 3d-world-building install -a claude-code -a codex -g # or say so
As a Claude Code plugin:
/plugin marketplace add haseeb090/3d-world-building
/plugin install 3d-world-building@3d-world-building
Or by hand: copy skills/3d-world-building into your agent's skills folder
(~/.claude/skills/ for Claude Code).
Works well with
The skill owns the world, the rides and the engine. The page over the world (type, panels,
buttons, forms) is ordinary web design, and a design skill does that part well. If you have
impeccable installed, the skill uses it for that layer,
under one rule: every colour still comes from the site's theme. Nothing requires it.
npx skills add pbakaus/impeccable
Start a site without an agent
npx 3d-world-building new my-site --world reef # npx 3d-world-building worlds lists the examples, by kind
npx 3d-world-building new my-site --kind product --form can --label my-label.png
# or the first example of a kind, with your artwork on it
cd my-site
npm install
npm run dev # http://localhost:3000
npm test
npx 3d-world-building add . moving # one more kind of experience, later (kits lists them)
What comes out is a complete Next.js app (App Router, JavaScript, React Three Fiber, three.js):
the chosen example, a home page of four beats, a second page that the scene cuts to without
reloading, a loader, a phone layout, and a bar for comparing palettes. A site carries only the
kinds it uses: a world site has no product code in it, and a film site downloads no three.js.
What is in the skill
skills/3d-world-building/
SKILL.md where an agent starts: the order of work and the rules
references/ interview, the owner's own material, world ideas, world design,
products, films, places, moving parts, effects, material tools,
architecture, copy motion, performance, measuring, devices,
review and shipping
scripts/new-site.cjs the scaffolder
scripts/ capture, check and measure tools; and the ones that make an
owner's material ready: label-check, cutout, sprites, profile,
finish, film-frames, bake-ride, place-check
starter/ the app a new site begins as: the engine, the builder,
terrain, scatter, air, water, shading, the theme
kits/ what a site takes on for one more kind of experience:
product, film, place, moving, effects, devices
worlds/ the examples and their index
agents/openai.yaml how Codex shows the skill
Requirements
- Node 20.9 or later.
- WebGL 2 for the 3D scene. The HTML pages also work with JavaScript or WebGL disabled.
- For the capture and measuring scripts: Chrome, and
playwright-coreinstalled in the site
(npm i --prefix .journey-check/tools playwright-core). They drive the Chrome already on the
machine, headless, download nothing, and send nothing anywhere. - For a film made from a video:
ffmpegon the path. Frames from a render or a folder of stills
need nothing more.
Status
Version 1.0.0. What was checked, and what was not:
- Every example (twenty) was scaffolded, tested and built for production on Windows 11 with
Node 22.17, and each page opened in Chrome for a working scene and no errors. On Linux
(Ubuntu, under WSL) the package was installed from its tarball, and every example was started
with its own command, tested and built on Node 22.17, and four of them (valley, street, can,
gallery) on Node 20.9. Nothing has been run on macOS. - Other browsers. Five examples were run in Chrome, Firefox and WebKit on Windows, at desktop
size and two phone sizes: ninety page checks, none unexpected. Firefox drew the same scenes as
Chrome. WebKit was held to the plain HTML page, because its build for Windows could not be kept
off the graphics card, so WebKit's 3D is unchecked. That is not Safari, and a phone-sized
window is not a phone. - No real phone has run it yet.
?devicecheckis there so yours can: the page rides itself
and shows a line to send back (references/devices.md). - Every picture and check of the new kinds was drawn on the processor, because the machine's
graphics card was in use throughout. The checks ran in the lighter of the two pictures the
engine has, which is what a machine with no graphics card is given; the product pictures on
this page are the fuller one, held with?render=fulland still drawn on the processor. They
work; how fast they run on a graphics card was not measured for products, films, places or
the effects. Drawn on the processor at 1600 by 900, the product pages made 9 to 21 pictures a
second (the can's page the slowest: three cans stand on it), which is slow to look at and
says little about a graphics card. What "Built to run on ordinary machines" describes was
measured on a graphics card for the worlds, in 0.4. Four of those worlds have more in them
now (the street has six times the triangles, still in one draw call) and were not measured
again. - The owner's material. The kits were tried by three agents, each given only the skill and a
made-up client's files (three drinks labels and a packshot, a ten-second clip, a phone scan of
a shop), and their sites were marked against a written rubric. Those files were made by code.
No printer's real label file, no real footage and no scan from a real phone has been through
the kits yet. The courtyard's scan is computed too, and says so on its page. - Not built: pouring liquid (
references/products.mdsays how to do one today), a kit for
forms, scans in SPZ v4, flocks and shoals, people and animals, sound.
Made by
3D World Building is made by Haseeb Khizar, and grew out of
building haseebkhizar.com and hirubix.com.
It is sponsored by Rubix Labs.
Licence
MIT, by Haseeb Khizar. See LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found
































