Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(desktop): document the Grid in STRUCTURE, the desktop guide, the module README and the changelog
nirholasa60d72dad90c
diff --git a/STRUCTURE.md b/STRUCTURE.mdindex cbff41cd4..789257f12 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -25,6 +25,7 @@ bottom.| Event Market scoring, leaderboard and rewards | [api/_lib/event-markets/scoring.js](api/_lib/event-markets/scoring.js), [rollup.js](api/_lib/event-markets/rollup.js), [fairness.js](api/_lib/event-markets/fairness.js), [leaderboard.js](api/_lib/event-markets/leaderboard.js), [api/cron/event-markets-rollup.js](api/cron/event-markets-rollup.js), [data/event-market-scoring.json](data/event-market-scoring.json), [pages/event-markets-leaderboard.html](pages/event-markets-leaderboard.html) `→ /event-markets/leaderboard`, [scripts/event-markets-season-payouts.mjs](scripts/event-markets-season-payouts.mjs) | Live once migration 20261012400000 is applied; payouts owner-gated | Scores, streaks, season ranks and badges from the rollup cron; wallet-derived names; fair-play ranking checks; season reward table printed for owner approval, never sent automatically. Docs: [docs/event-markets.md](docs/event-markets.md#scoring-and-seasons). Tests: [tests/event-markets-scoring.test.js](tests/event-markets-scoring.test.js) || Event Market live feed | [api/event-markets/stream.js](api/event-markets/stream.js), [api/_lib/event-markets/hub.js](api/_lib/event-markets/hub.js), [feed.js](api/_lib/event-markets/feed.js), [moves.js](api/_lib/event-markets/moves.js), [live-stats.js](api/_lib/event-markets/live-stats.js), [api/cron/event-markets-feed.js](api/cron/event-markets-feed.js), [src/event-markets/live-feed.js](src/event-markets/live-feed.js), [ticker.js](src/event-markets/ticker.js), [data/event-markets-feed.json](data/event-markets-feed.json) | Live (migration 20261012200000 applied) | SSE odds, picks, moves and lifecycle with Last-Event-ID resume, odds-move detector, home ticker, in-place odds on the market page with polling fallback, pulse and trending additions. Docs: [docs/event-markets.md](docs/event-markets.md#live-feed). Tests: [tests/event-markets-live-feed.test.js](tests/event-markets-live-feed.test.js), [tests/event-markets-live-stats.test.js](tests/event-markets-live-stats.test.js). Bench: [scripts/event-markets-fanout-bench.mjs](scripts/event-markets-fanout-bench.mjs) || App pages (hub plus Android, Seeker, iOS, Desktop, Web) | Pages [pages/apps.html](pages/apps.html) `→ /apps` and `pages/apps-{web,android,seeker,ios,desktop}.html` `→ /apps/*`, code [src/apps.js](src/apps.js), [src/apps.css](src/apps.css) | Built and verified locally | One page per platform with its real install path and status; the desktop page reads the live release feed. Docs: [docs/apps.md](docs/apps.md) |+| The Grid (a neon wireframe room of live app surfaces, a board, a directory, a Pulse wall and a kiosk per app) | Code [src/desktop/grid/](src/desktop/grid) `→ /?world=grid`, entered from the campus HUD, tests [tests/desktop-grid.test.js](tests/desktop-grid.test.js) | Built and verified locally | Walk up to a surface and press E to open the app on the desktop; every panel reads a live feed; byte tier comes from mined gems. Docs: [docs/desktop.md](docs/desktop.md) || The Field (a live, zoomable map of every agent and surface) | Page [pages/desktop.html](pages/desktop.html) `→ /?view=field`, code [src/field/](src/field) ([README](src/field/README.md)): pure layout and camera [logic.js](src/field/logic.js), feeds [data.js](src/field/data.js), map [field.js](src/field/field.js), entry and view switch [entry.js](src/field/entry.js) | Built and verified locally | Public agents drawn as stars in a golden-angle core around ten live districts; semantic zoom from one readout per district to full cards (avatars, launches, $THREE quote and CA, Pulse wallet moves, top skills, most-talked-to agents); Pulse events fly in as comets; search over places, agents and every nav page; any page opens in place at a shareable `/?go=` URL. The homepage `/` is the web desktop; the campus is at `/?world=1`. Docs: [docs/field.md](docs/field.md) || Web desktop (homepage as an OS, with a 3D campus in front of it) | Page [pages/desktop.html](pages/desktop.html) `→ /`, code [src/desktop/](src/desktop) ([README](src/desktop/README.md)): boot and lock screen [boot.js](src/desktop/boot.js) + [boot-logic.js](src/desktop/boot-logic.js), campus [src/desktop/world/](src/desktop/world) (rooms [rooms.js](src/desktop/world/rooms.js), props [props.js](src/desktop/world/props.js), surfaces [surfaces.js](src/desktop/world/surfaces.js), textures [public/campus/](public/campus) built by [scripts/build-campus-textures.mjs](scripts/build-campus-textures.mjs), solids [src/shared/solids.js](src/shared/solids.js)), gem ledger [api/world/gems.js](api/world/gems.js) over [api/_lib/world-gems.js](api/_lib/world-gems.js) (migration `20261015000000_world_gems.sql`); previous homepage [pages/home.html](pages/home.html) `→ /classic` | Built and verified locally | Boots with a live log of real checks (GPU, site catalog, account, fonts, avatar, $THREE feed, gem ledger), locks with a greeting and live chips, then the visitor walks in as their avatar: a daylit campus of real walk-in buildings (physical sky and sun with soft shadows, CC0 Poly Haven surfaces, props streamed from the object library, walls and furniture as solids) with the home office (sit at the desk to open the desktop on the monitor, pick up the phone for Pocket, put on the headset for WebXR), the three.ws Exchange with a live ticker (Trenches), the Launchpad, the Forge, the Gallery, Agent Plaza, the Marketplace and a gem mine with server-rolled, rate-limited digs. Real registered agents stand on the campus in their own bodies ([world/cast.js](src/desktop/world/cast.js), [agents.js](src/desktop/world/agents.js), [talk.js](src/desktop/world/talk.js)): a greeter meets you at the gate, and walking up to any of them opens a conversation through its own `/api/chat` brain, with the one-tag `<agent-3d>` embed to put it on your own site. Taskbar, Start, widgets and snappable windows framing real three.ws pages in the CTRL Mica theme; icons on a snap grid, All Apps, Settings (profile, Arrival, accent, wallpaper, icon size), session in localStorage plus IndexedDB. Framed pages hide the site nav via `public/nav.js` (`tws-os:` frame name). Docs: [docs/desktop.md](docs/desktop.md). Tests: [tests/desktop-boot.test.js](tests/desktop-boot.test.js), [tests/world-places.test.js](tests/world-places.test.js), [tests/world-rooms.test.js](tests/world-rooms.test.js), [tests/world-props.test.js](tests/world-props.test.js), [tests/solids.test.js](tests/solids.test.js), [tests/world-ticker.test.js](tests/world-ticker.test.js), [tests/desktop-layout.test.js](tests/desktop-layout.test.js), [tests/desktop-page.test.js](tests/desktop-page.test.js); browser drives [scripts/desktop-world-smoke.mjs](scripts/desktop-world-smoke.mjs), [scripts/desktop-interact.mjs](scripts/desktop-interact.mjs) || Desktop widgets and assistant | Code [src/desktop/widgets/](src/desktop/widgets) ([README](src/desktop/widgets/README.md)): pure grid, catalog and formatting [logic.js](src/desktop/widgets/logic.js), shared feeds [data.js](src/desktop/widgets/data.js), renderers [render.js](src/desktop/widgets/render.js), desktop layer, gallery and board [index.js](src/desktop/widgets/index.js); assistant [src/desktop/assistant/](src/desktop/assistant) ([README](src/desktop/assistant/README.md)) | Built and verified locally | Eleven live widgets ($THREE, Weather, Clock, Calendar, New agents, Pulse, Launches, Platform, Headlines, System, Sticky note) in three sizes, pinned to a snap grid on the desktop (drag, edit mode, Add widget gallery with live previews) or on the widgets board with a greeting and a news column; feeds shared and paused while hidden, offline states with retry. The assistant streams `/api/chat`, opens desktop apps from `[[open:id]]` tags, and switches to any public agent's persona. Docs: [docs/desktop-widgets.md](docs/desktop-widgets.md). Tests: [tests/desktop-widgets.test.js](tests/desktop-widgets.test.js), [tests/desktop-assistant.test.js](tests/desktop-assistant.test.js) |diff --git a/data/changelog.json b/data/changelog.jsonindex bfbf21e3c..3b4eba557 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-10-12",+ "title": "The Grid: walk a neon room where every app is a live surface",+ "link": "/?world=grid",+ "summary": "A new place beside the campus. Step into a wireframe room with a live board of new agents, launches, wallet moves and the $THREE quote, a directory wall, a Pulse wall and one kiosk per app. Walk up and press E to open the app on the desktop. Your byte tier, from Byte to Yottabyte, follows the gems you mine in the campus. Open it from the Grid button in the campus HUD.",+ "tags": [+ "feature"+ ]+ },{"date": "2026-10-12","title": "An in-depth X Article on how three.ws renders 3D, and a playbook for answering basic questions at length",diff --git a/docs/desktop.md b/docs/desktop.mdindex 37cc579d0..e6e67105b 100644--- a/docs/desktop.md+++ b/docs/desktop.md@@ -155,6 +155,15 @@ with `retry_in_sec`), stops at 300 digs a day (`429 daily_cap`) and rejects anunknown vein (`400 invalid_node`). Table and rules: `api/_lib/world-gems.js`;storage: migration `20261015000000_world_gems.sql`.+## The Grid++A second place to walk: a neon wireframe room where the platform's apps are things you walk up to, built in [src/desktop/grid/](../src/desktop/grid). Enter it from the campus HUD's Grid button, or open `/?world=grid`.++- **Surfaces.** A live board on the back wall (new agents from `/api/agents/public`, launches from `/api/pump/launches`, wallet moves from `/api/pulse`, the `$THREE` quote from `/api/three-token/stats`, totals from `/api/stats`), a Directory wall listing every desktop app, a Pulse wall, and one standing kiosk per dock app. Nothing is hardcoded: a feed that has not landed draws a skeleton, a failed feed says so and retries every 30 seconds.+- **Use.** WASD to walk, Shift to run, drag to look, `C` for the camera. Step up to a surface and press `E` (or tap it) to open that app on the desktop. The Campus and Desktop buttons leave the room.+- **Byte tier.** The bar at the bottom is your tier on the byte ladder (Byte to Yottabyte), read from the gems you mined in the campus (`/api/world/gems`). The ladder lives in `logic.js` (`TIERS`).+- **Rules.** Pure layout, proximity and tier maths are in `grid/logic.js` and covered by `tests/desktop-grid.test.js`. Kiosks are solid. The scene loads on first use, so the desktop boot stays light.+## What is in it- **Theme.** The CTRL design system (Windows-12 lineage): Mica gradients, glassdiff --git a/src/desktop/README.md b/src/desktop/README.mdindex af3a74278..28fdd206b 100644--- a/src/desktop/README.md+++ b/src/desktop/README.md@@ -15,6 +15,7 @@ The web desktop served at `/` (page: `pages/desktop.html`). See| `layout.js` | Pure geometry (snap zones, Snap layouts, dock magnification curve), shell styles and their bar sizes, search ranking, state and preference validation (unit tested) || `apps.js` | App registry and wallpapers || `os/` | The OS layer: virtual file system (`fs.js`), app registry, app host and the native apps in `os/apps/` (see [os/README.md](os/README.md)) |+| `grid/` | The Grid: a neon wireframe room of live app surfaces. `index.js` is the scene and controller, `panels.js` the canvas painters, `logic.js` the pure layout, proximity and tier rules (unit tested), `grid.css` the HUD || `icons.js` | Stroke glyphs || `theme.css`, `desktop.css`, `styles.css` | CTRL tokens; shell and window styles; Snap layouts, Snap assist, peek and the Fluent, Aqua and Classic skins || `world/index.js` | The campus controller: mounts the 3D world over the desktop, input, proximity prompts, sit-down and walk-in transitions, the phone, the VR headset, mining, the frame loop |