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
feat(compose): show shimmering placeholders while the galleries load
nirholase16fe39f25fa
diff --git a/pages/compose.html b/pages/compose.htmlindex 1e7246ba3..b9a03c815 100644--- a/pages/compose.html+++ b/pages/compose.html@@ -199,6 +199,8 @@.gca{display:block;font-size:10px;font-weight:600;color:var(--accent-text);background:rgba(99,102,241,.28);border-radius:4px;padding:2px 6px;margin-top:3px;text-align:center;}.gcg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:10px;color:rgba(255,255,255,.2);text-align:center;padding:8px;}.ge{grid-column:1/-1;text-align:center;padding:20px 8px;font-size:11px;color:var(--ink-mute);line-height:1.6;}+ .gsk{aspect-ratio:1;border-radius:8px;background:linear-gradient(100deg,var(--surface2) 30%,rgba(255,255,255,.05) 50%,var(--surface2) 70%);background-size:220% 100%;animation:shm 1.3s ease-in-out infinite;}+ @keyframes shm{from{background-position:180% 0;}to{background-position:-80% 0;}}.geb{margin-top:8px;padding:4px 12px;border-radius:var(--rs);background:rgba(255,255,255,.05);border:1px solid var(--border);color:var(--ink-dim);font-size:11px;font-family:inherit;cursor:pointer;transition:background .1s,color .1s;}.geb:hover{background:rgba(255,255,255,.1);color:var(--ink);}#dz{position:relative;margin:0 8px 8px;border:1px dashed rgba(255,255,255,.09);border-radius:var(--r);padding:9px;text-align:center;font-size:10px;color:var(--ink-mute);cursor:pointer;transition:border-color .12s,background .12s;flex-shrink:0;}@@ -392,7 +394,7 @@<div class="fe" id="fe"></div></div><div class="gh"><span id="glh">Recent Creations</span> <a href="/forge" target="_blank" rel="noopener" data-i18n="compose.open_forge">Open Forge →</a></div>- <div id="gl" aria-busy="true"><div class="ge">Loading…</div></div>+ <div id="gl" aria-busy="true"><div class="gsk"></div><div class="gsk"></div><div class="gsk"></div><div class="gsk"></div><div class="gsk"></div><div class="gsk"></div></div><label id="dz" title="Drop a GLB/glTF file" data-i18n-attr="title:compose.drop_a_glb_gltf_file_title"><input type="file" id="gfi" accept=".glb,.gltf" />Drop GLB / glTF · or click to browsediff --git a/src/scene-compose.js b/src/scene-compose.jsindex f6363b7f0..b8c6f0cd7 100644--- a/src/scene-compose.js+++ b/src/scene-compose.js@@ -1200,7 +1200,12 @@ async function openAvatarModal() {async function loadAvatarChoices() {avatarModalBody.setAttribute('aria-busy', 'true');- avatarModalMessage('Loading avatars…');+ avatarModalBody.innerHTML = '';+ for (let i = 0; i < 8; i++) {+ const s = document.createElement('div');+ s.className = 'gsk';+ avatarModalBody.appendChild(s);+ }try {// source=avatar&only3d=1, not the invented type=avatar: /api/explore has no// `type` param, so the old call returned a mixed on-chain-agent feed whose@@ -1442,9 +1447,18 @@ async function fetchCreations(query) {return (data.creations || []).filter((c) => c.glb_url);}+function showGallerySkeleton() {+ creationsList.innerHTML = '';+ for (let i = 0; i < 6; i++) {+ const s = document.createElement('div');+ s.className = 'gsk';+ creationsList.appendChild(s);+ }+}+async function loadGallery() {creationsList.setAttribute('aria-busy', 'true');- galleryMessage('Loading…');+ showGallerySkeleton();try {// A first-time visitor has no creations of their own, and an empty strip// left the fastest path into the composer (drop a real model into the