Skip to content

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.

fix(a11y): name every viewer control, and surface the ASL alphabet in the nav

nirholasc035639ce56d
diff --git a/public/nav-data.js b/public/nav-data.js
index 50061e927..bf918717c 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -127,6 +127,14 @@ export const NAV_GROUPS = [
badgeTone: 'live',
desc: 'Avatars that sign in ASL — fingerspell anything, signed chat replies, webcam sign input',
},
+ {
+ title: 'ASL Alphabet',
+ href: '/asl-alphabet',
+ tier: 'beginner',
+ badge: 'New',
+ badgeTone: 'live',
+ desc: 'Every letter and number on a live 3D hand, with the look-alikes named and a drill for reading it',
+ },
],
},
{
@@ -630,6 +638,7 @@ export const NAV_GROUPS = [
{ title: 'Docs World', href: '/docs/world', desc: 'Walk the docs in 3D' },
{ title: 'Tutorials', href: '/tutorials', desc: 'Step-by-step guides' },
{ title: 'Examples', href: '/examples', desc: 'Runnable copy-paste code' },
+ { title: 'Cookbook', href: '/cookbook', desc: 'Recipes you download and run' },
{ title: 'Chat', href: '/chat', desc: 'Talk to your agent' },
],
},
diff --git a/src/viewer.js b/src/viewer.js
index f22ac7932..69f59ec20 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -148,6 +148,32 @@ function makeCoinTexture() {
* @param {Element} el
* @param {object} options
*/
+
+/**
+ * dat.GUI renders every control as a bare `<input>`/`<select>` beside a text
+ * span, which leaves each one without an accessible name: a screen reader
+ * announces "checkbox" with no idea what it toggles, and axe flags it on every
+ * page that embeds a viewer. dat.GUI has no hook for this, so the rows are
+ * labelled after the fact from the property name each row already displays.
+ * @param {HTMLElement} root the GUI's DOM element
+ */
+function labelGUIControls(root) {
+ if (!root) return;
+ for (const row of root.querySelectorAll('.cr')) {
+ const name = row.querySelector('.property-name')?.textContent?.trim();
+ if (!name) continue;
+ for (const field of row.querySelectorAll('input, select')) {
+ if (!field.getAttribute('aria-label') && !field.id) field.setAttribute('aria-label', name);
+ }
+ }
+ // Folder titles are clickable <li>s, not buttons: give them a role and a
+ // name so the panel can be operated without a mouse.
+ for (const title of root.querySelectorAll('li.folder > .title')) {
+ if (!title.getAttribute('role')) title.setAttribute('role', 'button');
+ if (!title.hasAttribute('tabindex')) title.setAttribute('tabindex', '0');
+ }
+}
+
export class Viewer {
constructor(el, options) {
this.el = el;
@@ -1875,6 +1901,7 @@ export class Viewer {
guiWrap.classList.add('gui-wrap--hidden');
guiWrap.appendChild(gui.domElement);
this._guiWrap = guiWrap;
+ labelGUIControls(gui.domElement);
// Toggle button — hides dat.GUI behind an "Advanced" control
const toggle = document.createElement('button');