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.

feat(kiosk): add kiosk mode support by hiding debug controls and updating agent properties

nirholas6594cd6654e0
diff --git a/chat/src/App.svelte b/chat/src/App.svelte
index 7d4dbf62d..fc502a0ed 100644
--- a/chat/src/App.svelte
+++ b/chat/src/App.svelte
@@ -2376,7 +2376,9 @@
width="220"
height="220"
background="transparent"
- style="width:220px;height:220px;border-radius:16px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.18);"
+ kiosk
+ name-plate="off"
+ style="width:220px;height:220px;"
></agent-3d>
{:else if $talkingHeadEnabled && agentVisible}
<TalkingHead bind:this={talkingHead} on:ready={onTalkingHeadReady} avatarUrl={$talkingHeadAvatarUrl || undefined} />
diff --git a/rider/package.json b/rider/package.json
index 3cc568311..cabab2bb5 100644
--- a/rider/package.json
+++ b/rider/package.json
@@ -2,7 +2,7 @@
"private": true,
"version": "1.0.0",
"scripts": {
- "build": "cross-env NODE_ENV=production webpack",
+ "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack",
"lint": "semistandard -v | snazzy",
"lint:fix": "semistandard --fix",
"start": "webpack-dev-server --host 0.0.0.0 --progress --colors --hot-only --inline --port 3000"
diff --git a/rider/src/components/supercutfx-shader.js b/rider/src/components/supercutfx-shader.js
index 53b93e16b..46db939a8 100644
--- a/rider/src/components/supercutfx-shader.js
+++ b/rider/src/components/supercutfx-shader.js
@@ -6,29 +6,29 @@ AFRAME.registerShader('superCutFxShader', {
},
vertexShader: `
- varying vec2 uvs
- varying vec3 worldPos
+ varying vec2 uvs;
+ varying vec3 worldPos;
void main() {
- uvs.xy = uv.xy
- gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 )
+ uvs.xy = uv.xy;
+ gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
`,
fragmentShader: `
- uniform float startTime
- uniform float timeMs
- uniform vec3 color
- varying vec2 uvs
- varying vec3 worldPos
+ uniform float startTime;
+ uniform float timeMs;
+ uniform vec3 color;
+ varying vec2 uvs;
+ varying vec3 worldPos;
void main() {
- float time = (timeMs - startTime) / 2000.0
- vec2 p = uvs.xy - 0.5
- float r = p.x * p.x + p.y * p.y
- float alpha = 1.0 - smoothstep(time - 0.01, time, r)
- alpha *= smoothstep(time - 0.1, time, r)
- alpha *= 1.0 - time * 5.5
- gl_FragColor = vec4(color, alpha)
+ float time = (timeMs - startTime) / 2000.0;
+ vec2 p = uvs.xy - 0.5;
+ float r = p.x * p.x + p.y * p.y;
+ float alpha = 1.0 - smoothstep(time - 0.01, time, r);
+ alpha *= smoothstep(time - 0.1, time, r);
+ alpha *= 1.0 - time * 5.5;
+ gl_FragColor = vec4(color, alpha);
}
`
});
diff --git a/rider/src/lib/convert-beatmap.js b/rider/src/lib/convert-beatmap.js
index 2bc689a58..ff1a7b816 100644
--- a/rider/src/lib/convert-beatmap.js
+++ b/rider/src/lib/convert-beatmap.js
@@ -5,11 +5,9 @@ module.exports = function convertBeatmap (src) {
src['version'] = src['versions'][0]['hash'];
- const coverImageCorsProxy = 'https://beatproxy.b-cdn.net/';
-
src['directDownload'] = src['versions'][0]['downloadURL'];
- src['coverURL'] = coverImageCorsProxy + src['versions'][0]['coverURL'].split('/')[3];
+ src['coverURL'] = src['versions'][0]['coverURL'];
let diffs = src['versions'][0]['diffs'];
diff --git a/src/element.js b/src/element.js
index c5c6e3d80..d3561d292 100644
--- a/src/element.js
+++ b/src/element.js
@@ -301,6 +301,9 @@ const BASE_STYLE = `
background: rgba(255,255,255,0.3);
}
:host([mode="floating"]) .drag-handle { display: block; }
+ /* Kiosk mode: hide dat.GUI debug controls entirely */
+ :host([kiosk]) .gui-wrap,
+ :host([kiosk]) .gui-toggle { display: none !important; }
`;
class Agent3DElement extends HTMLElement {