@aicolab/kolo playground
Each route below mounts a slice of @aicolab/kolo against a minimal scene so the primitives can be eyeballed in isolation, away from the source repo's /hd2d demo where they were originally tuned.
Place · every chessboard place as a URL
/place/training-data/islandThe chessboard engine mounted on every world this playground serves, by URL: the village and its cottage, the Insights island with its ferry to Lantern Islet, and a REPORT ISLAND per Insight Bridge corpus whose site serves the world record (each listed below) — the record read at request time, the island its site, a paved square round the sky table, kit buildings on a ring facing it (Topics, Sources, a hall per task), rooms per topic and source behind their doors, facet lobbies as bazaars, front halls as introducing bays, exhibit cards you dive into. The map is a subset of the building by the record’s own relations: the room you stand in drawn large, every room above it to its front hall. The Training Data island on /place is the GOLDEN ORACLE the /hex and /overture routes are held equal to, object by object.
- Village
- the greenthe cottage
- Insights Island
- the harbourLantern Islet
- report-second-chair
- the harbour
- report-first-resort
- the harbour
- report-training-data
- the harbour
- report-long-form
- the harbour
- report-one-basin
- the harbour
- report-audit-corpus
- the harbour
Overture · islands declared as map data
/overture/training-data/islandIslands DECLARED in the Overture Maps schema at real coordinates — a GeoJSON feature collection of land, land use, water, infrastructure, buildings, segments with connectors and width rules, places — validated against the release’s JSON Schema (vendored in kolo, zod generated per definition), then resolved: Smelik-style layers with priorities and an interaction table (a road over water becomes a bridge; a river through a cut turns to ice), a Tutenel-style rule solver that sites things by relation (at, around, along, scattered) with backtracking, the ground’s rules (nothing plants below sea level), and the ground’s LEVELS — land declared at elevations, a way climbing from one to the next over the ramp it declares, every face of the land one solid. Realised into the very plan the /place scene builds from and held equal to it live. The realisation obeys the table: every outcome a meeting became is built from its record, and the island AS BUILT (the land once cut, each bank as laid, the boards, every way as laid) is written as a second Overture document and laid as claims of its own. A report island is declared from its record at request time; Riverside, Tundra, Fenwater and the Portal Village are authored islands, their programs written out as GeoJSON files held equal by test — the village’s cottages, mountains, crates, sky and ground drawn by the village itself, so it looks as it does on /place, and held to it live. Each island sits on its own H3 cell of one archipelago, so the whole set reads neatly in any GeoJSON reader, DuckDB or QGIS. CANBERRA is a real city read from an Overture Maps release and walked as ONE ground: seven tiles of the Parliamentary Triangle, each an H3 cell cut from the release and realised the same way, streaming in as you near them and walked across their seams with no transition.
- report-second-chair
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- report-first-resort
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- report-training-data
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- report-long-form
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- report-one-basin
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- report-audit-corpus
- the harbourdeclaration.geojsonas-built.geojsonplan (SVG)
- Riverside
- arrivaldeclaration.geojsonas-built.geojsonplan (SVG)
- Tundra
- arrivaldeclaration.geojsonas-built.geojsonplan (SVG)
- Fenwater
- the quaydeclaration.geojsonas-built.geojsonplan (SVG)
- The Portal Village
- the greenthe cottagedeclaration.geojsonas-built.geojsonplan (SVG)
- Canberra
- the lakeshoreParliament Housea tile (GeoJSON)as-built.geojson
Hex island editor · a report’s island drafted by its cells
/hex-island-editorA report’s HEX ISLAND, laid on its map’s own cells, drafted by picking cells: a building takes a kit form and faces the square, the harbour, the sea or another place; a free cell takes a lake, a pond, a river or a park, named by what it is next to (opposite the harbour, beside a place, between two places), and only the names that reach the cell are offered, the island itself asked. The report is read through its door as its island program reads it, the island laid by core’s own function and realised off the page’s thread, its chart drawn under the cells. The specification is written out as the report’s app declares it on its report host, only what differs from the default; another can be pasted in. Never coordinates.
- report-second-chair
- draft its island
- report-first-resort
- draft its island
- report-training-data
- draft its island
- report-long-form
- draft its island
- report-one-basin
- draft its island
- report-audit-corpus
- draft its island
Chessboard · isometric click-to-walk village
/chessboardThe Rogue Trader exploration grammar on the kolo chessboard engine: an isometric camera you pan, turn and zoom; click the ground to walk (the scene’s own ground, indexed into H3 cells at load); glowing ground glyphs to examine, talk and leave through; a scripted warden who walks the village and stops to talk; presence portraits, a rail, a bottom-third dialogue panel and a full-screen area map. Multiplayer by INTENT: one move command per click through a Durable Object room, replayed identically on every client — no pose stream. Guests welcome (anonymous session); the cottage interior needs `pnpm three-resources:dev`.
Chessboard · Insights Island
/chessboard-islandThe same chessboard engine mounted on the authored Insights destination (@aicolab/insights/spatial): SVG geography through the shared kolo builder, roads from the authored centrelines, the harbour pier, the Insight Library as an enterable hall with exhibit cards and a camera-facing cutaway, the other landmarks as examine glyphs, a docent on the harbour spine, and the Lantern Ferry as an exit to Lantern Islet. Its own room; the village is untouched.
Tilt-shift cubes
/tilt-shift-cubesFull-bleed WebGPU scene wiring the engine primitives — TiltShiftDiorama recipe, AdaptiveDpr, keyboard + touch input, camera follow, physics, stats panel, error capture. Cubes on a ground plane, no avatar.
Hex grid · a shader effect without its package
/hex-gridThe `shaders` npm package’s composed hex-grid preset, ported to hand-written TSL in @aicolab/kolo/shaders. Move the cursor over the canvas: the lattice thickens around it and drags colour along its lines, with ripples, glow and film grain layered on, and a panel below holds every live parameter of every layer. Under that, the plain HexGrid on its own quad, every knob a uniform, rendered one frame per change over a checkerboard so the alpha blend shows. A badge on each reports WebGPU or three’s WebGL2 fallback.
Avatar builder
/avatar-builderMounts AvatarBuilder against the in-package LPC manifest, then spawns the resulting AvatarSelection into a physics scene through LayeredAvatarAnimator. Sprite assets served by the dedicated aicolab-sprites worker through the SPRITES service binding (`pnpm sprites:dev` locally). Exercises the avatar-system subpath end to end.
Top-down squish
/topdown-squishThe avatar-system's opt-in stylised foreshortening. Build an avatar, then orbit the camera from eye-level up to straight-down: the sprite squishes toward its feet (head-dominant chibi blob instead of an edge-on sliver) while its shadow stays pinned to the feet. Curvature + engage band tunable live; off by default for every other consumer.
House interior · portal destination scene
/house-interiorA cozy tavern-room interior built as its own three.js Scene from the VoxelDungeonSet asset pack (served by the three-resources worker): modular floor/wall grid, furniture, warm flickering torch + lantern light, its own fog/atmosphere. Rendered by a standalone non-R3F harness (rendering kept separate from the scene file) so it can be eyeballed in isolation before being wired as a portal destination in /portals. Needs `pnpm three-resources:dev`.
Compose · the island scene composer
/composeThe region layer of the scene composer: one island Scene document (harbor-isle, on the carved weltenbauer GLB terrain) built up from the real asset catalogue — add models (instanced or not), move, rotate, scale and reparent them with snapping to the terrain, paint tiles from the pack atlas, sculpt stepped tile-grid ground, preview, save. /compose?gen opens a procedural island whose terrain is a worldgen recipe instead. Model metadata comes from the three-resources worker over RPC; the files stream through this worker’s /three-resources/* proxy. Needs `pnpm three-resources:dev`.
Building · the building composer
/buildingThe building layer of the same composer: one building Scene (workshop) on a neutral floor, furnished from the real asset catalogue with items snapping onto the floor and onto each other. A finished building becomes a unit you place in /compose. Saves the scene. Needs `pnpm three-resources:dev`.
Island · sky/water addon showcase
/islandthree r0.185's TSL-native sky/water addons (SkyMesh + Water2Mesh) hosted by a renderer we own — Preetham skydome with procedural clouds, and flow-based reflect+refract water for both the ocean and a lagoon pool on a procedural island (Water2Mesh chosen over the classic WaterMesh mirror ocean after an A/B: its refraction responds to the composed seabed, giving natural shoreline transitions). Six atmosphere presets (noon → golden hour → haze → squall → dusk → moonlit night) retarget every uniform and damp toward it, so switching plays as a timelapse. A viability probe for high-quality water/sky in the portal platform without giving up pipeline ownership.
Spherical water · reflection/refraction probe
/spherical-waterAn isolated adoption probe for the complete /island water path on genuine sphere geometry: native Aureole lighting, animated flow normals, analytic-sky reflection, SSR, sampled scene refraction and contact foam measured along local radial depth. No existing scene consumes its sphere-specific coordinate hooks.
Portal village · scene-linking prototype
/portalsStaging ground for the three.js portal system (linking scenes with seamless transitions). Avatar control + physics from /avatar-builder, but under a fixed-angle ORTHOGRAPHIC pan-follow camera (HD-2D 3/4 read) and a portal-ready village: cottages with glowing doorways and mountains with cave mouths. Each opening is registered as a portal anchor (world position + outward normal) — the attachment points for the real render-target portals + walk-through transitions to come.
Portal village · MoQ multiplayer
/portals-moq16The portal village with player positions carried over Media over QUIC (MoQ) through a draft-16 relay. Membership comes from a small capnweb roster room (the Moq16RosterServer Durable Object), because the relay accepts namespace subscriptions but does nothing with them; pose and avatar-profile data travel through the relay only. A per-user hub keeps your avatar and last location, so you spawn where you left off on any device. Requires an auth session; two tabs of one account are one player, so open two browsers with two accounts to see two players.
Portal village · DO-relay multiplayer
/portals-doThe same multiplayer village + engine as /portals-moq16, but with an ALTERNATE network architecture: instead of a MoQ relay, a single Cloudflare Durable Object (PortalsRelayServer) is BOTH the roster and the pose relay — coalescing every player's dead-reckoned frame into a 20 Hz binary slot-batch fan-out (area-of-interest culled, per-tab source-excluded). Faithful adoption of the /hd2d SharedWorldDO pattern; reuses the identical engine, motion-sync and pose codec over the shared PoseTransport seam. Requires an auth session; open in two browsers (two accounts) to see two players.
Portal village · SpacetimeDB multiplayer
/portals-stdbThe same village + engine again, but the network plane is SpacetimeDB — a standalone database (local in dev, maincloud in prod), NOT Cloudflare. A `player` table IS both the roster and the pose data plane: clients subscribe to it and stream pose through an update_pose reducer; row deltas drive the shared PoseTransport seam. Identity bridges via OIDC — better-auth mints an ES256 id_token (the workers.dev replica signs ES256; SpacetimeDB rejects EdDSA) and SpacetimeDB derives a stable Identity = BLAKE3(iss|sub). Avatar/last-location still persist in the Cloudflare user-hub DO. Requires an auth session; open in two browsers (two accounts) to see two players.
Portal village · collection-sync multiplayer
/portals-syncThe /portals-do village and engine again, with positions synced through a general-purpose CollectionSyncCapability over a Durable Object (PortalsSyncServer) instead of the purpose-built binary relay: players are a durable TanStack DB collection, clients subscribe to a `players` query and receive insert/update/delete diffs, and moving is a `setPose` mutation. Of one user’s connections exactly one drives the avatar; the rest mirror it. Kept beside /portals-do so the two transports can be compared directly. Requires an auth session.
Broker pattern · Morton-sharded
/brokerClient↔Worker↔DOs broker prototype on @aicolab/room-service RoomServer. Per-entity hub DOs + Morton-shard-named directory DOs; the Worker isolate brokers so two tabs interact in real time while never sharing an entity DO, and re-brokers across shard borders with no socket reconnect. Requires an auth session (real platform/auth, no placeholder).
Twilight Triad · three rooms in one scene
/twilight-triad-single-sceneThree rooms (a courtyard, a study, a corridor) joined by three doorways in a triangle whose loop does not close: going A → C → B → A turns you 90°, measured at build time and shown in the HUD. Each room exists once, and a neighbour seen through a doorway is the real room moved into place by one transform per room, with no copies. Every room is lit by its own lights and casts ordinary shadow maps where it really is. This build keeps all three rooms in one three.js scene, kept apart by a light list per room and a layer stamped on every mesh. Drag to look; WASD or the touch pad to move.
Twilight Triad · three rooms, three scenes
/twilight-triad-multi-sceneThe same triangle of rooms and doorways, identical to look at, but each room owns its own three.js Scene and a frame is three render calls into one shared colour and depth buffer. A light cannot reach a mesh in another scene and each shadow pass sees only its own room, so the per-room light lists and mesh layers of the single-scene build are gone; the price is three submissions per frame and one copy per room of anything scene-wide, such as the hemisphere light.
Portal strategy benchmark · render target vs one pass vs separate scenes
/portal-strategy-benchmarkTwo rooms of generated boxes seen through one portal, drawn three ways and timed. ?mode=render-target renders the far room into a texture shown on the portal; single-pass draws both rooms in one scene through the portal shader; multi-scene renders each room as its own scene into the same buffers (the two Twilight Triad builds). After warm-up it writes frame, CPU-submit and GPU times, draw calls, triangles and the adapter to window.__PORTAL_BENCHMARK_RESULT__. Also takes objects (default 180 per room), portalScale, width, height, warmup and frames. `pnpm benchmark:portals` runs every mode across phone and desktop profiles.
Archipelago · world-composer demo
/archipelagoFour hand-authored island scenes + an imported glTF on one flat plane wrapped onto a sphere by the shared kolo warp, with a stylised flow ocean built on the same warp; sliders for sphere radius, island scale, warp blend; legend teleport; shadow-probe diagnostic for swappable light types. Walk far enough to circle the globe.
Worldgen · the island generator lab
/worldgenThe headless worldgen store and schema (@aicolab/kolo/worldgen) drawn as a full form of knobs, regenerating a stepped tile-grid island live in a WebGPU preview. Draw rivers, ridges, hills, lakes, plateaus, shapes and biomes on the terrain; turn a filled SVG into the coastline; edit the feature stack and the whole scene-terrain JSON as text; download it, or open it in /silhouette-lab. Placeholder terrain materials, so no three-resources worker is needed.
Silhouette lab · one island, two maps
/silhouette-labAny three.js Object3D is rendered from directly overhead and its land traced as an SVG outline, then shown three ways: the baked SVG, a live overhead map, and the island itself in perspective. Sources: the hand-built Kestrel Quay, a stepped TileGridTerrain island, an imported GLB, or a worldgen scene-terrain JSON (load a file, or send one from /worldgen). The footer gives the contour count, SVG vertices and extraction time.
Torus lab · a flat torus that presents as a sphere
/torus-labA 3D inspector for a genus-1 world body that presents as a planet: the gold outer sheet is the planet’s face, the cyan tunnel wall runs pole to pole through the inside, and a white loop traces one unbroken wrap through both. Drag to orbit; scroll in to fly through a mouth. Sliders for mouth size, profile, stretch, flat-to-body morph and the first Nash–Kuiper corrugation octaves (heights exaggerated); toggles for landmasses, cutaway and spin. `pnpm torus-vis` draws the static figures from the same maths.
Icosa lab · the 20-triangle world that inflates to a sphere
/icosa-labThe icosahedral world option, beside /torus-lab: author on the flat net of twenty triangles (cyan seams, red rings on the twelve vertices, which are kept in ocean), fold it into the icosahedron, then inflate it to a sphere. Inflation is the only step that distorts, and it is the same on every face, so there are no poles. Landmasses are authored inside faces and ride every step. `pnpm warp-math icosa` prints the distortion numbers.
Home world · the platform planet
/home-worldThe platform's spatial home as a living day/night planet: feature areas are continents (real SpatialDestination exports — insights first, ghost landmasses for what's coming), each placed at a canonical H3 home cell and bent onto the globe by its own chart warp, with a lighthouse-harbour hub commons at the centre and genuine timetabled ferry lines across the straits. A real-UTC sun sweeps the terminator, so every visitor shares the same planet-time; the camera is a north-up pan (never a free twist) with fixed canonical arrivals at every place.
Home world perf · the planet shells, one cost at a time
/home-world-perfThe /home-world planet shells alone (cloud, orbital atmosphere, local sky, flow ocean) from a typical continent-arrival camera, recording frame, CPU-submit and GPU timestamp samples to window.__homeWorldPerf. ?variant= takes one cost away at a time: baseline, direct (no post pipeline), single-side-cloud, no-cloud, no-atmosphere, no-local-sky, no-water, dpr-1, dpr-1.25, no-log-depth, mobile-combined. `pnpm benchmark:home-world` runs them all in a phone-sized Playwright browser.
Library diorama · the CoLab Isles
/library-dioramaSix worldgen islands on flow water — Library, Blog, Community, Workshops, the Hive and Building Blocks — each shaped from the same SVG geography the Atlas will use. Pick an island and the camera eases in, with a detail card and its blueprint landmarks; Enter switches it to its entry state. /spatial-launcher draws the same coordinates as DOM.
Spatial launcher · canonical DOM world
/spatial-launcherA mobile-first, non-Three.js projection of the exact island and landmark coordinates authored by /library-diorama. Squircle app-like destinations preserve the same spatial hierarchy while replacing continuous 3D rendering with accessible Solid/HTML navigation.
Dashboard shells · five layouts, one core
/dashFive working shells for the Alliance dashboard sharing one core (the live world panel, the same sections, the same sample state), so the comparison is only about layout: A1 Section Sidebar, A2 Double Rail (icon rail, list pane, main pane), A4 Drawer over the World (the world full-bleed, pages sliding over it), B5 Editor Three-Column (navigation, the live world canvas, an inspector bound to the selection, ⌘K as the main way around, location kept in the URL) and B8 Mini-Map Platform (top-nav pages with a mini-globe that follows you). /dash is the hub, with a card for each.
Insights · canonical world
/insights-spatial-mpTHE Insights destination (authored by the insights worker) as one canonical world: an illustrated map and a traversable HD-2D face from the same @aicolab/kolo/spatial definition — roads/bridges/physics from shared Catmull-Rom centrelines, the enterable insight-library gallery with LIVE DOM insight-note exhibits (depth-punched CSS3D through the HD-2D post pipeline), the Lantern Ferry with walk-on flush boarding to Lantern Islet, the harbour pier, and the in-world editor exporting patches toward the authored state. Multiplayer is join-gated: the island stays explorable solo; sign in and Join MP for live presence.
Insight Museum · the notes as rooms joined by doorways
/insights-museumThe Insights workshop notes hung as a museum: an Index Hall of the newest notes, a Synthesis Rotunda of the cross-note syntheses, four theme galleries (each note placed by its tags, title and text), two chronological wings and a special exhibition of the notes with the most tags, with a room splitting into wings when it holds too many. Each room is its own scene; doorways show the next room in place, the Twilight Triad way, and only the current room and its neighbours are drawn. Signed in, it hangs the collection your Insights access allows, members-only notes marked; signed out, a preview collection. WASD, drag to look, select an exhibit; a directory and elevator go straight to any room.
Insight note · one core, two faces
/insight-noteOne headless reactive core (Solid signals) behind two faces: the note as Solid DOM, and that same DOM drawn into an HTMLTexture on a three.js panel. Toggle or select from the shared controls, the DOM list, or by clicking a row in 3D, and both faces change together. Uses the WICG html-in-canvas API where the browser has it (a Chrome flag) and the bundled polyfill otherwise; a switch forces WebGL.
Page world · enter the exhibit
/page-worldMario-64-style exhibit dive, standalone: a museum anteroom with one wall-mounted insight note (the component's live HTMLTexture face) — jump INTO it (TSL ripple + white-out on the texture itself) and land inside the note, where the FULL PAGE is the floor: a depth-punched CSS3D dom-panel walked on by the avatar under a straight-down orthographic camera. Walking down the page is scrolling (clamped follow), the chibi squish handles the top-down sprite, and the page stays a real page — text selection aside, clicks still land on it. Stand on the exit pill (or Esc) to climb back out. Knobs: pitch 60–90°, zoom, squish band, post-FX.
HTML panel probe · a GPU pick reaches an offscreen DOM
/html-panel-probeA live DOM panel drawn into the canvas as an HTMLTexture, behind a cube that really occludes it. The panel never moves and cannot be clicked directly: the multiple-render-target (MRT) GPU picker finds the panel and the hit point, depth-tested, and the real pointer event then works the element under it in code — click, focus, showPicker(), text selection, clipboard. Swap the panel’s shape; live diagnostics show the backend, html-in-canvas mode, pick reader, hover, resolved target and last action.
Custom HtmlTexture · our own GPU texture, same interactions
/html-texture-testThe /html-panel-probe interactions on our own HtmlTexture, which owns its GPU texture and its capture resolution: the texture is resized to what the view needs as you zoom (wheel or slider), and 1–4 set texels per device pixel. On WebGPU it supersamples; on WebGL2 it captures the paint record. Adds an event trace for touch-and-hold.
Curved DOM slide (A3) · move the real DOM under the cursor
/curved-slide-testThe other way to reach a DOM panel in 3D: here the panel takes pointer events, and every frame the GPU picker finds the panel point under the cursor and moves the panel so that point sits at the cursor’s pixel. The real, trusted pointer then lands on the real DOM, so native click, the <select> dropdown (Safari included), the caret, text selection and drag-and-drop all work. A forward pick (panel point to screen) slides it into place ahead of focus and keyboard popups. Shape, zoom and a full set of performance bisection switches.
DOM panel probe · the single-canvas sandwich, read back
/dom-panel-probeA minimal repro of the DOM-panel sandwich (CSS3D under a transparent canvas, shown through a mask) using the production dom-panels functions and the engine’s tilt-shift post chain: a magenta live-DOM card on a blue wall, a red box over its left edge, half-transparent green glass over its right edge, and three test quads below. After 20 frames it reads back the mask and colour at fixed pixels and logs them to the console, for headless runs.
WebGPU probe · adapter diagnostics
/webgpu-probeRun it on a device where WebGPU fails. A capability report asks for core and compatibility adapters separately, requests a device from each, and lists what needs no adapter (preferred canvas format, WGSL language features) with the user agent, so a screenshot names its device. Then set any requestAdapter options (featureLevel, powerPreference, forceFallbackAdapter, xrCompatible), run, and see the adapter or null, its info and limits, and whether a three.js cube runs on real WebGPU or on three’s WebGL2 fallback.
MoQ relay probe · the draft-16 stack by hand
/moq16-probePublish or subscribe on the MoQ relay through the same stack /portals-moq16 uses (the patched @moq/net 0.3.2, a reconnecting connection pinned to moqt-16, the private relay’s tokened URL), logging every request and frame on the page. ?role=pub&path=<relay path> publishes and serves a pose track when asked; ?role=sub&path=<relay path>&name=B subscribes from the latest group. Needs a signed-in session for the relay token. scripts/moq-probe.ts drives it.
Ferry probe · the Insights ferry on its own
/ferry-probeThe procedural Insights ferry — the ship /insights-spatial-mp, /home-world and the chessboard island all use — on a flat water plane beside its pier, for working on the hull. ?view= picks the camera: side, quarter (the default), bow, deck, stern, cabinStbd, cabinPort, cabinTop, cabinAft.