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.

build: wire /home-v2 into vite dev server + build inputs

nirholas38e077d5f6a9
diff --git a/dropdown-vis.mjs b/dropdown-vis.mjs
index 71f1d09cd..8ce82235f 100644
--- a/dropdown-vis.mjs
+++ b/dropdown-vis.mjs
@@ -5,18 +5,26 @@ await page.goto('http://localhost:3000/marketplace', { waitUntil: 'networkidle'
await page.waitForSelector('.home-nav .nav-root', { timeout: 5000 });
await page.waitForTimeout(700);
-// Hover then click the Build trigger
-const build = await page.locator('.home-nav .nav-trigger:has-text("Build")').first();
-await build.click();
-await page.waitForTimeout(400);
-await page.screenshot({ path: '/tmp/dropdown-build.png', clip: { x: 0, y: 0, width: 800, height: 280 } });
-
-// Close, then open Labs
-await page.mouse.click(5, 700);
-await page.waitForTimeout(200);
-const labs = await page.locator('.home-nav .nav-trigger:has-text("Labs")').first();
-await labs.click();
-await page.waitForTimeout(400);
-await page.screenshot({ path: '/tmp/dropdown-labs.png', clip: { x: 500, y: 0, width: 940, height: 700 } });
-
+const data = await page.evaluate(() => {
+ const h1 = document.querySelector('.site-header-brand');
+ const header = document.querySelector('.site-header');
+ const rect = (el) => el ? el.getBoundingClientRect() : null;
+ const cs = (el) => el ? getComputedStyle(el) : null;
+ const h1cs = cs(h1);
+ return {
+ h1: rect(h1),
+ h1cs: {
+ lineHeight: h1cs.lineHeight,
+ height: h1cs.height,
+ fontSize: h1cs.fontSize,
+ display: h1cs.display,
+ alignSelf: h1cs.alignSelf,
+ verticalAlign: h1cs.verticalAlign,
+ margin: h1cs.margin,
+ },
+ header: rect(header),
+ headerScroll: { scrollHeight: header.scrollHeight, clientHeight: header.clientHeight, scrollTop: header.scrollTop },
+ };
+});
+console.log(JSON.stringify(data, null, 2));
await browser.close();
diff --git a/vite.config.js b/vite.config.js
index cf53b5622..721052111 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -118,6 +118,7 @@ const appConfig = {
app: resolve(__dirname, 'pages/app.html'),
'app-demo': resolve(__dirname, 'pages/app-demo.html'),
home: resolve(__dirname, 'pages/home.html'),
+ 'home-v2': resolve(__dirname, 'pages/home-v2.html'),
features: resolve(__dirname, 'pages/features.html'),
tutorials: resolve(__dirname, 'pages/tutorials.html'),
tutorial: resolve(__dirname, 'pages/tutorial.html'),
@@ -279,6 +280,8 @@ const appConfig = {
'/demo/coin/': resolve(root, 'public/demo/coin/index.html'),
'/': resolve(root, 'pages/home.html'),
'/home': resolve(root, 'pages/home.html'),
+ '/home-v2': resolve(root, 'pages/home-v2.html'),
+ '/home-v2/': resolve(root, 'pages/home-v2.html'),
'/features': resolve(root, 'pages/features.html'),
'/features/': resolve(root, 'pages/features.html'),
'/agent': resolve(root, 'pages/agent-home.html'),