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
Add /club express entry for demos (skip alley + cover, real tip preserved)
nirholasc5683f1bd207
diff --git a/src/club-entrance.js b/src/club-entrance.jsindex 57464978d..d48c9087a 100644--- a/src/club-entrance.js+++ b/src/club-entrance.js@@ -57,6 +57,7 @@ import { AnimationManager } from './animation-manager.js';import { ClubCrowd } from './club-crowd.js';import { detectProfile, PROFILES, createFrameWatchdog } from './club-perf.js';import { log } from './shared/log.js';+import { isExpressEntry } from './shared/club-express.js';const TOUR_URL = '/club/venue/tour.glb';const ALLEYWAY_URL = '/club/venue/alleyway.glb';@@ -156,7 +157,7 @@ function hideLoader() {el.classList.add('is-done');}-if (canvas && door && !hasValidPass()) {+if (canvas && door && !hasValidPass() && !isExpressEntry()) {start(canvas).catch((err) => {log.warn('[club-entrance] scene failed', err);// Scene is dead — let the player into the cover flow directly so they're@@ -166,7 +167,8 @@ if (canvas && door && !hasValidPass()) {window.dispatchEvent(new CustomEvent('club:enter-door'));});} else {- // Paid already (or no canvas) — nothing to walk; clear the intro overlay.+ // Paid already, express/demo entry, or no canvas — nothing to walk; clear+ // the intro overlay. (Express entry drops the cover rope in src/club-gate.js.)hideLoader();canvas?.remove();}diff --git a/src/club-gate.js b/src/club-gate.jsindex 98ba27699..37c763047 100644--- a/src/club-gate.js+++ b/src/club-gate.js@@ -13,6 +13,7 @@// with a SIWX free-re-entry grant for the same wallet).import { log } from './shared/log.js';+import { isExpressEntry } from './shared/club-express.js';const COVER_ENDPOINT = '/api/x402/club-cover';const PASS_KEY = 'club:pass:v1';@@ -55,6 +56,16 @@ function initDoor(root) {return;}+ // Express/demo entry (/club?demo): skip the cover charge and drop the rope+ // straight onto the pole stage so the dance-tip flow is reachable for a+ // recording or QA without paying cover first. Deferred one frame so club.js+ // has registered its `club:admitted` listener before openDoor dispatches it.+ if (isExpressEntry()) {+ log.info('[club-gate] express entry — cover skipped (demo flag)');+ requestAnimationFrame(() => openDoor(root, { silent: true }));+ return;+ }+// The card stays hidden until you walk your avatar up to the door in the// alley (src/club-entrance.js → club:enter-door). Backing out (the card's// back button or Escape) returns control to the alley.diff --git a/src/shared/club-express.js b/src/shared/club-express.jsnew file mode 100644index 000000000..adad22dbd--- /dev/null+++ b/src/shared/club-express.js@@ -0,0 +1,35 @@+// Express entry for /club — skip the alley walk-through AND the cover charge so+// you land straight on the pole stage, with the dance-tip buttons live.+//+// This exists for demos, screen recordings, and QA of the x402 dance-tip flow:+// the full production experience (walk the alley → pay $0.01 cover → get admitted+// → reach the poles) is a lot of friction to clear before you can show the part+// that matters — tipping a dancer in USDC and watching her take the pole.+//+// Enable with any of these query flags on /club:+// /club?demo /club?express /club?skip-cover+//+// Only the *entrance gauntlet* is bypassed. The dance tip itself stays a real+// x402 payment — nothing is faked, no pass is forged, no data is mocked. A+// normal visit (no flag) is untouched: the alley and the cover door behave+// exactly as before.++const FLAGS = ['demo', 'express', 'skip-cover'];+const FALSEY = new Set(['0', 'false', 'no', 'off']);++let cached = null;++// True when the current URL opts into express entry. A flag counts as set when+// it's present and not explicitly disabled (`?demo=0` / `?demo=false` opt out),+// so `/club?demo` and `/club?demo=1` both enable it. Resolved once per load.+export function isExpressEntry() {+ if (cached !== null) return cached;+ cached = false;+ try {+ const q = new URLSearchParams(window.location.search);+ cached = FLAGS.some((f) => q.has(f) && !FALSEY.has((q.get(f) || '').toLowerCase()));+ } catch {+ cached = false;+ }+ return cached;+}