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(open-source): credit Poly Haven, meshoptimizer/glTF-Transform, and studio clip sources in-surface
nirholase847ab98f52a
diff --git a/pages/objects.html b/pages/objects.htmlindex 7a3621349..51700437c 100644--- a/pages/objects.html+++ b/pages/objects.html@@ -49,6 +49,9 @@.ch-hero-dot { width: 7px; height: 7px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 3px rgba(56,211,159,.18); }.ch-hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.04; margin: 18px 0 12px; letter-spacing: -.02em; }.ch-hero p { max-width: 62ch; color: var(--ink-dim); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; margin: 0; }+ .ch-hero-credit { margin-top: 10px !important; font-size: 13px !important; }+ .ch-hero-credit a { color: var(--accent, #6c8cff); font-weight: 600; }+ .ch-hero-credit a:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #6c8cff); outline-offset: var(--focus-ring-offset, 2px); }.ch-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }.ch-hero-stats { color: var(--ink-dim); font-size: 13px; font-family: var(--font-mono); }@@ -225,6 +228,10 @@Every one is public domain: free to use commercially, no attribution required. Preview any object livein your browser, or download the GLB and use it anywhere.</p>+ <p class="ch-hero-credit" data-i18n-html="objects.sourced_from_polyhaven">+ Sourced from <a href="https://polyhaven.com" target="_blank" rel="noopener">Poly Haven</a>, a+ nonprofit CC0 asset library funded entirely by its community.+ </p><div class="ch-hero-actions"><a href="/character-library" class="ch-hbtn ch-hbtn--primary" data-i18n="objects.character_library">Character Library</a><a href="/gallery" class="ch-hbtn ch-hbtn--secondary" data-i18n="objects.avatar_gallery">Avatar Gallery</a>diff --git a/public/app-next.css b/public/app-next.cssindex 25a8b70dd..383d80b55 100644--- a/public/app-next.css+++ b/public/app-next.css@@ -531,6 +531,23 @@ body.app-next-body {background: rgba(255, 255, 255, 0.06);}+/* Attribution, not an action: smaller and dimmer than Restyle/AR/Download so+ it reads as a credit, not another button to press. */+.nxt-action--credit {+ font-size: 11.5px;+ opacity: 0.72;+ padding: 9px 10px;+}++.nxt-action--credit:hover {+ opacity: 1;+}++.nxt-action:focus-visible {+ outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #6c8cff);+ outline-offset: 2px;+}+.nxt-action--primary {background: var(--nxt-ink);color: var(--bg-0);diff --git a/src/animations-gallery.js b/src/animations-gallery.jsindex aeefd0a13..181e421b5 100644--- a/src/animations-gallery.js+++ b/src/animations-gallery.js@@ -290,7 +290,29 @@ function refreshAfterCatalogPage() {applyFilters({ preserveShown: true });}+// The curated ("Studio") tier manifest carries no credit/license fields+// (public/animations/manifest.json), but its full provenance is documented+// by hand in public/animations/LICENSES.md. Classify by name prefix so the+// gallery shows the same credit the license doc already states, without+// touching the manifest generator. av-offabean-dance is deliberately NOT+// matched by the av- rule below: LICENSES.md flags its mocap source as+// unresolved, so it stays uncredited rather than mislabeled as Avaturn.+function studioClipCredit(name) {+ if (name === 'av-offabean-dance') return null;+ if (/^av-/.test(name) || name === 'facepalm') {+ return { credit: 'Avaturn', license: 'Avaturn platform terms' };+ }+ if (/^farm-/.test(name) || name === 'digging') {+ return { credit: 'Mixamo (Adobe)', license: 'Adobe Mixamo Terms of Use' };+ }+ if (/^soldier-/.test(name) || /^xbot-/.test(name) || name === 'michelle-samba-dance') {+ return { credit: 'three.js examples', license: 'MIT' };+ }+ return { credit: 'Mixamo (Adobe)', license: 'Adobe Mixamo Terms of Use' };+}+function normalizeLibraryClip(clip) {+ const fallback = clip.source || clip.license ? null : studioClipCredit(clip.name);return {id: clip.name,source: 'library',@@ -303,8 +325,8 @@ function normalizeLibraryClip(clip) {url: clip.url, // site-relative clip JSON — playable by the live previewthumbnail_url: `/animations/thumbs/${encodeURIComponent(clip.name)}.webp`,price: null,- credit: clip.source || null,- license: clip.license || null,+ credit: clip.source || fallback?.credit || null,+ license: clip.license || fallback?.license || null,};}diff --git a/src/app-next-overlay.js b/src/app-next-overlay.jsindex 41dfbfbd8..310d350dd 100644--- a/src/app-next-overlay.js+++ b/src/app-next-overlay.js@@ -241,8 +241,18 @@ function wireObjectActions() {`<span>${escHtml(a.label)}</span>`;frag.appendChild(el);}+ // Every prop in the /objects library comes from Poly Haven (CC0); credit+ // it right in the viewer chrome, not just on the catalog page.+ const credit = document.createElement('a');+ credit.className = 'nxt-action nxt-action--ghost nxt-action--credit';+ credit.href = 'https://polyhaven.com';+ credit.target = '_blank';+ credit.rel = 'noopener';+ credit.title = 'This object is sourced from Poly Haven, a CC0 asset library';+ credit.innerHTML = `<span>Poly Haven</span>`;+ frag.appendChild(credit);// Insert the object actions before the primary (Save/Sign-in) button so the- // bar reads: Backdrop · Upload · Restyle · AR · Download · Save.+ // bar reads: Backdrop · Upload · Restyle · AR · Download · Poly Haven · Save.const primary = document.getElementById('nxt-primary');if (primary) bar.insertBefore(frag, primary);else bar.appendChild(frag);diff --git a/src/forge-export.js b/src/forge-export.jsindex 2d600e2a7..dfd900919 100644--- a/src/forge-export.js+++ b/src/forge-export.js@@ -143,6 +143,14 @@ if (download && resultPanel) {.export-item .status:has(.export-again), .export-item .status.is-error { min-width: 9em; }.export-item .export-again { color: inherit; text-decoration: underline; text-underline-offset: 2px; }.export-item .export-again:hover, .export-item .export-again:focus-visible { opacity: 1; text-decoration-thickness: 2px; }+ .export-menu-footer {+ margin-top: 0.3rem; padding: 0.5rem 0.6rem 0.3rem;+ border-top: 1px solid var(--border, rgba(255,255,255,0.1));+ font-size: 0.72rem; line-height: 1.4; opacity: 0.7;+ }+ .export-menu-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }+ .export-menu-footer a:hover, .export-menu-footer a:focus-visible { opacity: 1; }+ .export-menu-footer a:focus-visible { outline: 2px solid var(--accent, #7c6cff); outline-offset: 1px; }.export-spinner {display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.1em;border: 2px solid currentColor; border-right-color: transparent;@@ -203,6 +211,15 @@ if (download && resultPanel) {isLocalEdit: () => (download.getAttribute('href') || '').startsWith('blob:'),});+ // How this file was made: the mesh pipeline behind every export, credited+ // right where a technical visitor would look for it.+ const footer = document.createElement('div');+ footer.className = 'export-menu-footer';+ footer.innerHTML =+ 'How this file was made: meshes are decoded and optimized with ' ++ '<a href="/open-source#area-formats" rel="noopener">meshoptimizer and glTF-Transform</a>.';+ menu.appendChild(footer);+// ---- menu behavior -------------------------------------------------------// The menu is right-anchored to the split button, which sits inset from the