← Back to side projects
Browser Toy • 3D Layout Planner

Chuffle Town

Chuffle Town: a wooden railway with a station, a tunnel and trains on a play table
Role
Design & Development
Type
Browser Toy & Planner
Year
2026
Platform
Web (WebGL)
01Overview

A little wooden railway to plan on screen, then build on the floor.

Chuffle Town is a browser toy and planner for wooden train sets. You lay track on a play table and the pieces snap together peg to socket, the way the real ones do. Then you add scenery and trains, and run the trains round the layout.

It works as a toy and as a plan. A layout can be tried out before a single piece leaves the box, on a table set to the size of the real one, with a parts list that counts what it needs. And once the trains are running, the town around them joins in: gates close, signals change, cranes load and a steam engine stops for water.

Stackthree.js • Vanilla JS • Vite
ModelsAll generated in code, no imported 3D files
ScaleReal-world track dimensions, in millimetres

Why I Built It

I built this because I love playing with trains with my kid and this adds a layer of interactivity and planning.

02

Your Turn

Lay some track, run a train.

Chuffle Town runs in the browser: nothing to install and no account. Lay your own track, or open a ready-made scene and press play over an engine.

Play it here ↗
03

Build & Run

Track That Snaps

Straights, curves, switches, a crossing, bridge ramps, a level crossing and buffer stops. Pieces snap together peg to socket, and curves and switches can be flipped.

A Table Your Size

The play table is editable: width, depth, height and surface, so a layout is planned on the table it is meant for.

Trains That Couple

Steam, diesel and express engines, coaches, cargo wagons and a caboose. Cars couple to each other, so a train is put together one car at a time.

Click An Engine To Go

The train follows the track over bridges and through tunnels, picks a branch at random at junctions and waits for other trains.

Train Camera

A small picture-in-picture camera follows the engine and can be swung round it, for the view from beside the track.

A Town To Put Round It

Stations, a platform, an engine shed, tunnels, cranes, a quay with a cargo ship, a lighthouse, a cottage, trees, a fire station, a hospital and a windmill.

04

Scenery That Reacts

The scenery is not only decoration. Some of it watches the trains and acts on its own, and some of it is set going with a click.

Watching The Trains

✓ Level crossing: the gates come down and the lamps flash while a train is close
✓ Signals: red while a train is on the line beside them, green when the line is clear
✓ Water tower: a steam engine that draws up at the spout is held while its tank is filled

Set Going By You

✓ Cranes: a gantry crane over the track and a harbour crane beside the ship load and unload
✓ Fire station: sound the alarm, the doors open and the fire engine rolls out
✓ Hospital: an emergency call, and the helicopter takes off
✓ Windmill and lighthouse: the sails turn and the lamp sweeps round
05

Plan & Save

Start

Ready-Made Layouts And Scenes

Six track plans to build on, from a circle to a figure of eight with a bridge, and four whole scenes with scenery and trains already in place: Station town, Harbour line, Mountain pass and Crossroads.

Keep

Your Own Layouts, By Name

A layout is saved by name in the browser. It can also be downloaded as a file, opened again later, or saved as a picture.

Plan

Parts List

A list of the parts on the table, counted, so it is clear what a layout needs before it is built for real.

Experimental

See It In Your Room

An augmented-reality mode on phones, to stand the layout on a real floor or table (Android Chrome, or iPhone and iPad). It is experimental.

06

How It’s Made

Chuffle Town is three.js and WebGL with vanilla JavaScript, built with Vite. Every model is generated in code: the track, the engines, the buildings, the ship and the trees. There are no imported 3D files, and the whole app is about one megabyte.

Track geometry is built from real-world dimensions in millimetres, so the pieces, the table and the parts list all work at the size of the real thing.

Tech Stack

three.js
WebGL
Vanilla JavaScript
Vite
WebXR & USDZ (AR, experimental)
07

Screenshots

Click to enlarge

Interested in working together?

Get in Touch →