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.
Feature 19: forge 3D props live inside build mode
The platform's headline capability is text to 3D, and the world's build mode can now use it: the prop palette has a Forge form (and chat takes /forge <prompt>), src/game/forge-prop.js drives the free draft lane, and the finished GLB rides the uploaded-prop pipeline so everyone in the world sees it and the room persists it (docs/play-forge-in-world.md). What shipped is the pipeline; what is still open is the placement-first hologram, the size ceiling, and the server-side abuse limits below. At a live event this is the demo moment, and the size ceiling is what keeps it from becoming the iOS crash.
Where the code lives
- Forge lane:
api/forge.js(POST /api/forgesubmits,GET /api/forge?job=polls,POST /api/forge?action=rigauto-rigs; there is no separate rig handler) and siblings (api/forge-gameready.js, which now also accepts a settled forge purchase and echoes only its own payment error codes, andapi/forge-remesh.js); in-world clientsrc/game/forge-prop.js(submit, poll every 2.5 s, up to 6 minutes for a cold GPU start, with a "Waking up a GPU" status line from the sharedcoldStartLabelinsrc/shared/forge-frames.jswhile a worker boots, reference photos via/api/forge-uploadcapped at 8 MB, keyed to the sameforge:cidhandle the /forge page uses so in-world forges land in the same history); page precedents insrc/forge.js/src/forge-studio/. Use the platform's free text-to-3D lane and its existing rate limits; do not add a new paid dependency - Prop plumbing (already networked and persistent):
src/game/world-objects.js(registerUploadedProp, mirrors the serverobjectsMapSchema),src/game/avatar-upload.js(uploadPropModel, presigned upload), the_uploadPropflow insrc/game/coincommunities.js, persistence viasrc/game/world-persist.js - Prop palette UI: the props panel in
src/game/coincommunities-ui.js(the gallery tab still fetches/api/avatars/public; the Forge form isforgeBtn/toggleForge()reporting through the shared status strip, and the game side is_forgePropinsrc/game/coincommunities.js), styles insrc/game/coincommunities.css - The mobile lesson:
src/game/ambient-crowd.jsdocuments how uncapped user models killed iOS tabs, and itsCROWD_BUDGETtiers are the sizing precedent - Generation ground truth when debugging: the
forge_creationstable carries per-generation backend, status, error, and prompt
What to build
- A Forge tab in the prop palette. Shipped as the Forge form in the props panel (prompt or reference photo, one forge at a time, progress in the status strip) plus the
/forge <prompt>chat command, which opens build mode with the result armed. Still open: a short history of this session's generations, and guidance text that sets expectations honestly (the lane comment says draft-tier generations land in about 30 to 60 s; quote observed behavior, not a made-up number). - Placement-first flow. Still open. Today the prop is armed as a ghost only after the GLB lands and the next click places it. Build the other order: the player aims and places a hologram placeholder immediately (ghost shell in the build style, clearly "generating", using the real async state, never a fake progress bar). When the GLB lands, it swaps in place with a brief materialize effect. On failure the hologram becomes a designed error marker with retry and dismiss.
- The full prop pipeline, not a side door. Shipped:
_forgeProphands the finished GLB toregisterUploadedPropand the normalobj:spawnplacement, so it is networked to every player, persists like any other build, respects the per-player build budget, and is undoable with the existing Ctrl+Z stack. A result that comes back withdurable: false(temporary storage the server's asset allow-list may refuse) already raises a warning toast in_forgeProp; verify that a refused placement never leaves a phantom in the palette. - Size discipline. Still open, and the one that matters most.
forge-prop.jsenforces no triangle or file-size ceiling and never routes through the gameready/remesh path. Run generations through it so what enters the world is capped: enforce a hard triangle and file-size ceiling in the spirit ofCROWD_BUDGETbefore a model is ever registered. An oversized result is decimated or rejected with a clear message, never placed raw. This is the difference between a demo moment and a repeat of the iOS crash. - Abuse limits. Still open beyond the lane's own rate limits and the client's one-forge-at-a-time guard. Per-player generation cooldown and a per-world concurrent-generation cap, enforced server-side on the endpoint, with the client showing queue position honestly.
Verify
- On
npm run devwith a second browser: generate a prop from a prompt, see the hologram, see the swap, confirm the second browser renders it live and after a reload (persistence). - Failure path exercised (kill the request in devtools): error marker, retry works, dismiss cleans up, budget not consumed by the failure.
- Generate an intentionally heavy prompt and confirm the size ceiling triggers with its designed message.
- Mobile emulation: the Forge tab is usable with the touch keyboard and the placed result stays within the memory budget.
npm testgreen.
Report format
Files shipped, the size ceiling values and where they are enforced, the rate-limit shape, average observed generation time during verification, and the data/changelog.json entry.