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(server): document the SSR layer for JS-only pages; changelog entry
nirholas6dbd3d52b546
diff --git a/data/changelog.json b/data/changelog.jsonindex 67695b5cf..fc77ba1da 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -16662,6 +16662,34 @@"improvement"],"link": "/status"+ },+ {+ "date": "2026-07-29",+ "title": "On-chain agent pages now load their registration details reliably",+ "summary": "ERC-8004 agent pages read each agent's registration document from wherever its owner published it. Most of those hosts do not permit direct browser access, so a large share of agents showed \"Could not fetch registration JSON\" instead of their name, description, avatar, and skills. Pages now fall back to fetching that document through three.ws, so those agents render in full. The fallback validates every address it connects to and caps the download, so a hostile registration link cannot reach anything private.",+ "tags": [+ "fix"+ ],+ "link": "/docs/erc8004"+ },+ {+ "date": "2026-07-29",+ "title": "Concierge demo and the 3D home demo both work again",+ "summary": "The live widget on the Concierge page failed to start because the page ran its setup before the widget code had finished loading, leaving visitors with a dead demo on the page that sells it. The /demos/3d-home animated avatar demo never rendered its character either: the model uses compressed geometry and the page was loading it without the matching decoder. Both now load, animate, and respond as intended.",+ "tags": [+ "fix"+ ],+ "link": "/concierge"+ },+ {+ "date": "2026-07-29",+ "title": "The agent directory is now readable without JavaScript, and the homepage loads lighter",+ "summary": "Two things that made the site slower and harder to find. The Discover directory indexes over 150,000 agents but built its entire page in the browser, so search engines, link previews, and anyone on a slow or JavaScript-less connection saw an empty page. The server now sends the first page of agents and the live directory totals with the page itself, exactly matching what the browser then loads. Separately, the homepage was carrying a large duplicate copy of its own styling inline, plus two big scripts that blocked the page from drawing while they parsed. Those moved into files the browser caches once and reuses on every later visit, cutting the homepage document roughly in half.",+ "tags": [+ "improvement",+ "infra"+ ],+ "link": "/discover"}]}diff --git a/server/README.md b/server/README.mdindex 211d88cb6..ff081af81 100644--- a/server/README.md+++ b/server/README.md@@ -37,6 +37,27 @@ covers the server code itself.`[param]/` > `[...catchall].js`. Names starting with `_` or `.`(`api/_lib`, …) are never routable.+4. **Server-rendered content for JS-only pages** —+ [`ssr-pages.mjs`](ssr-pages.mjs) injects a page's own first view into its+ static shell before it is sent. Some directory pages render their whole body+ from client JS, so a crawler, a link unfurler, or a no-JS visitor saw an+ empty page: `/discover` indexes 150k+ agents and shipped a 6.8 KB shell with+ zero agents in it. The injected markup is the same default query the client+ issues on load (progressive enhancement, not cloaking), and the client clears+ the container before hydrating, so nothing is ever duplicated.++ Registered pages live in the `PAGES` array in that file. To add one, give it+ a `route`, its shell `file`, the internal `api` path to read, a `build()`+ that turns the payload into markup, and an `apply()` whose markers appear+ exactly once in the shell. `tests/ssr-pages.test.js` fails if a marker drifts+ or the client stops clearing its container.++ It never fails a page: a slow, failing, or malformed upstream falls back to+ the untouched shell. Renders are cached (5 min TTL), concurrent requests+ share one in-flight refresh, a stale render keeps serving for up to an hour+ while refreshes fail, and the upstream call is capped at 2.5 s. Only+ query-less GETs are rendered, since the injected view is the default one.+Handler-facing parity:- `req.url` is the untouched original path + query string.