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
Feature 13: event quest line with a live leaderboard
Give event visitors something to chase. A time-boxed quest line that runs only during the event window, scored server-side, with a live leaderboard in the world and a cosmetic reward for finishers. The pieces all exist; this task wires them into one loop.
Where the code lives
- Quests:
src/game/quests-ui.js,src/game/npc/quest-npcs.js,src/game/npc/quest-markers.js - Event window:
public/event.json(the same configsrc/game/event-countdown.jsreads; do not invent a second source of truth) - Live scoreboard precedent: the King of the Totem round HUD in
src/game/coincommunities-ui.js(server-authoritative scores pushed through the room) - Server:
multiplayer/src/rooms/WalkRoom.js; persistent scores belong in the database via anapi/handler (migrations inapi/_lib/migrations/, preview withnpm run db:status) - Leaderboard OG precedent:
api/og-leaderboard.js; cosmetics reward path:src/game/cosmetics-*.jsand the cosmetics API
What to build
- The quest line. Three to five event quests using existing verbs (visit landmarks, gather, emote with another player, take a photo if Feature 12 landed, make one x402 micro-purchase). Defined in data, gated on the event window from
event.json; outside the window the quest giver and markers do not exist. - Server-authoritative scoring. Completion is validated and scored server-side (room or API, whichever the verb already trusts); the client never self-reports a finished quest. Persist per-wallet (signed-in) with a per-session fallback for anonymous players that clearly says sign in to enter the leaderboard.
- Live leaderboard. An in-world board (panel or world screen) showing top players and your own rank, updating live without refresh. Also expose it at an API endpoint so the event host can put it on a projector.
- The reward. Finishers get a real cosmetic granted through the existing cosmetics ownership path, visibly equipped-able immediately, with a celebration moment on grant.
- Anti-grief basics. Rate limits on completion attempts, idempotent grants (finishing twice never double-grants), and no negative or NaN scores possible.
Verify
- Full loop on
npm run devwith two browsers: complete quests in one, watch the leaderboard move in both; reward granted once, persists across reload. - Event window off: zero event-quest UI anywhere.
npm testgreen; add tests for the scoring endpoint (auth, idempotency, window gating).npm run db:statusbefore any migration; note whatdb:migratewould apply.
Report format
The quest list as players will see it, files shipped, the leaderboard endpoint URL, migration status, and the data/changelog.json entry. One line on anything deferred.