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: enhance agent UI and database schema

nirholas9998dca23c15
diff --git a/agent-home.html b/agent-home.html
index 7251a8da0..375fece3d 100644
--- a/agent-home.html
+++ b/agent-home.html
@@ -74,16 +74,14 @@
outline-offset: 2px;
}
- /* ── Agent title row (name + deploy chip) ─────────────────────────── */
- .agent-title-row {
- display: inline-flex;
- align-items: center;
- gap: 12px;
+ /* ── Deploy chip / status (sits below the hero, never inline) ────── */
+ .agent-deploy-chip-mount {
+ display: flex;
justify-content: center;
+ margin-top: 0.85rem;
}
- .agent-deploy-chip-mount {
- display: inline-flex;
- align-items: center;
+ .agent-deploy-chip-mount:empty {
+ display: none;
}
/* ── Toast ────────────────────────────────────────────────────────── */
@@ -469,6 +467,166 @@
text-align: center;
padding: 2rem;
}
+
+ /* ── Manage Permissions Panel ─────────────────────────────────────── */
+ .mp-panel {
+ padding: 0.85rem 1rem 1rem;
+ border-top: 1px solid rgba(255, 255, 255, 0.06);
+ }
+ .mp-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 0.5rem;
+ }
+ .mp-title {
+ font-size: 0.62rem;
+ color: rgba(255, 255, 255, 0.4);
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ font-weight: 500;
+ }
+ .mp-header-actions {
+ display: flex;
+ align-items: center;
+ gap: 0.382rem;
+ }
+ .mp-refresh-btn {
+ background: none;
+ border: none;
+ color: rgba(255, 255, 255, 0.3);
+ cursor: pointer;
+ padding: 0.25rem;
+ border-radius: 4px;
+ line-height: 0;
+ transition: color 0.15s;
+ }
+ .mp-refresh-btn:hover {
+ color: rgba(255, 255, 255, 0.8);
+ }
+ .mp-grant-header-btn {
+ background: rgba(255, 255, 255, 0.06);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ color: rgba(255, 255, 255, 0.7);
+ font-size: 0.65rem;
+ font-family: inherit;
+ padding: 0.2rem 0.6rem;
+ border-radius: 999px;
+ cursor: pointer;
+ transition: background 0.15s, color 0.15s;
+ }
+ .mp-grant-header-btn:hover {
+ background: rgba(255, 255, 255, 0.1);
+ color: #fff;
+ }
+ .mp-loading,
+ .mp-empty,
+ .mp-error {
+ font-size: 0.72rem;
+ color: rgba(255, 255, 255, 0.35);
+ padding: 0.75rem 0 0.25rem;
+ text-align: center;
+ }
+ .mp-error { color: #fca5a5; }
+ .mp-empty p { margin: 0 0 0.55rem; }
+ .mp-empty-hint {
+ font-size: 0.68rem;
+ color: rgba(255, 255, 255, 0.3);
+ margin: 0.382rem 0 0;
+ font-style: italic;
+ }
+ .mp-grant-btn {
+ background: rgba(255, 255, 255, 0.06);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ color: rgba(255, 255, 255, 0.85);
+ font-size: 0.72rem;
+ font-family: inherit;
+ padding: 0.4rem 0.85rem;
+ border-radius: 999px;
+ cursor: pointer;
+ transition: background 0.15s, border-color 0.15s, color 0.15s;
+ }
+ .mp-grant-btn:hover {
+ background: rgba(255, 255, 255, 0.1);
+ border-color: rgba(255, 255, 255, 0.25);
+ color: #fff;
+ }
+ .mp-card {
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.07);
+ border-radius: 10px;
+ padding: 0.6rem 0.85rem;
+ margin-bottom: 0.5rem;
+ transition: border-color 0.2s;
+ }
+ .mp-card--active { border-color: rgba(134, 239, 172, 0.18); }
+ .mp-card--revoked { opacity: 0.5; }
+ .mp-card--expired { border-color: rgba(251, 191, 36, 0.18); }
+ .mp-card-top {
+ display: flex;
+ align-items: center;
+ gap: 0.382rem;
+ margin-bottom: 0.382rem;
+ }
+ .mp-badge {
+ font-size: 0.6rem;
+ padding: 0.1rem 0.45rem;
+ border-radius: 999px;
+ font-weight: 500;
+ }
+ .mp-badge--active { background: rgba(134, 239, 172, 0.15); color: #86efac; }
+ .mp-badge--revoked { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.4); }
+ .mp-badge--expired { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
+ .mp-chain-chip {
+ font-size: 0.6rem;
+ background: rgba(255, 255, 255, 0.07);
+ color: rgba(255, 255, 255, 0.5);
+ padding: 0.1rem 0.45rem;
+ border-radius: 999px;
+ }
+ .mp-card-scope { font-size: 0.74rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 0.236rem; line-height: 1.4; }
+ .mp-card-hash { font-size: 0.6rem; font-family: monospace; color: rgba(255, 255, 255, 0.25); margin-bottom: 0.236rem; }
+ .mp-card-usage { font-size: 0.6rem; color: rgba(255, 255, 255, 0.35); margin-bottom: 0.5rem; }
+ .mp-card-addresses { display: flex; align-items: center; gap: 0.382rem; margin-bottom: 0.5rem; }
+ .mp-addr-link { font-size: 0.6rem; font-family: monospace; color: rgba(255, 255, 255, 0.4); text-decoration: none; }
+ .mp-addr-link:hover { color: rgba(255, 255, 255, 0.85); }
+ .mp-addr-arrow { font-size: 0.6rem; color: rgba(255, 255, 255, 0.2); }
+ .mp-card-actions { display: flex; gap: 0.5rem; }
+ .mp-revoke-btn {
+ background: rgba(239, 68, 68, 0.1);
+ border: 1px solid rgba(239, 68, 68, 0.25);
+ color: #f87171;
+ font-size: 0.68rem;
+ font-family: inherit;
+ padding: 0.25rem 0.65rem;
+ border-radius: 999px;
+ cursor: pointer;
+ transition: background 0.15s;
+ }
+ .mp-revoke-btn:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); }
+ .mp-revoke-btn:disabled { opacity: 0.5; cursor: default; }
+ .mp-card-error { font-size: 0.6rem; color: #fca5a5; margin-top: 0.382rem; }
+ .mp-card-pending {
+ display: flex;
+ align-items: center;
+ gap: 0.382rem;
+ font-size: 0.6rem;
+ color: rgba(255, 255, 255, 0.5);
+ margin-top: 0.382rem;
+ }
+ .mp-tx-link { color: rgba(255, 255, 255, 0.4); text-decoration: none; }
+ .mp-tx-link:hover { color: rgba(255, 255, 255, 0.8); }
+ .mp-indexer-pending { font-size: 0.6rem; color: rgba(251, 191, 36, 0.7); font-style: italic; }
+ @keyframes mp-spin { to { transform: rotate(360deg); } }
+ .mp-spinner {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ border: 1.5px solid rgba(255, 255, 255, 0.15);
+ border-top-color: rgba(255, 255, 255, 0.6);
+ border-radius: 50%;
+ animation: mp-spin 0.7s linear infinite;
+ }
</style>
</head>
<body>
diff --git a/api/_lib/migrations/2026-04-29-agent-marketplace.sql b/api/_lib/migrations/2026-04-29-agent-marketplace.sql
new file mode 100644
index 000000000..ce694cb62
--- /dev/null
+++ b/api/_lib/migrations/2026-04-29-agent-marketplace.sql
@@ -0,0 +1,74 @@
+-- Migration: agent marketplace.
+--
+-- Adds marketplace columns to agent_identities (category, tags, is_published,
+-- system_prompt, greeting, capabilities, fork_of, counters) and creates
+-- agent_versions (snapshot history) and agent_bookmarks (per-user saves).
+--
+-- Idempotent.
+
+begin;
+
+alter table agent_identities
+ add column if not exists category text,
+ add column if not exists tags text[] not null default '{}',
+ add column if not exists is_published boolean not null default false,
+ add column if not exists published_at timestamptz,
+ add column if not exists fork_of uuid references agent_identities(id) on delete set null,
+ add column if not exists forks_count int not null default 0,
+ add column if not exists views_count int not null default 0,
+ add column if not exists system_prompt text,
+ add column if not exists greeting text,
+ add column if not exists capabilities jsonb not null default '{}'::jsonb;
+
+create index if not exists agent_identities_published_idx
+ on agent_identities (is_published, published_at desc)
+ where deleted_at is null;
+
+create index if not exists agent_identities_category_idx
+ on agent_identities (category)
+ where is_published = true and deleted_at is null;
+
+create index if not exists agent_identities_tags_idx
+ on agent_identities using gin (tags);
+
+create index if not exists agent_identities_fork_of_idx
+ on agent_identities (fork_of);
+
+-- pg_trgm for similar-agent search by name/description.
+create extension if not exists pg_trgm;
+
+create index if not exists agent_identities_name_trgm
+ on agent_identities using gin (name gin_trgm_ops);
+
+create index if not exists agent_identities_description_trgm
+ on agent_identities using gin (description gin_trgm_ops);
+
+create table if not exists agent_versions (
+ id uuid primary key default gen_random_uuid(),
+ agent_id uuid not null references agent_identities(id) on delete cascade,
+ version int not null,
+ system_prompt text,
+ greeting text,
+ category text,
+ tags text[] not null default '{}',
+ capabilities jsonb not null default '{}'::jsonb,
+ changelog text,
+ created_by uuid references users(id) on delete set null,
+ created_at timestamptz not null default now(),
+ unique (agent_id, version)
+);
+
+create index if not exists agent_versions_agent_idx
+ on agent_versions (agent_id, version desc);
+
+create table if not exists agent_bookmarks (
+ user_id uuid not null references users(id) on delete cascade,
+ agent_id uuid not null references agent_identities(id) on delete cascade,
+ created_at timestamptz not null default now(),
+ primary key (user_id, agent_id)
+);
+
+create index if not exists agent_bookmarks_agent_idx
+ on agent_bookmarks (agent_id);
+
+commit;
diff --git a/api/marketplace/[action].js b/api/marketplace/[action].js
new file mode 100644
index 000000000..110b07920
--- /dev/null
+++ b/api/marketplace/[action].js
@@ -0,0 +1,445 @@
+/**
+ * Agent Marketplace API
+ * ---------------------
+ * GET /api/marketplace/categories
+ * GET /api/marketplace/agents ?category=&q=&sort=&cursor=
+ * GET /api/marketplace/agents/:id
+ * GET /api/marketplace/agents/:id/versions
+ * GET /api/marketplace/agents/:id/similar
+ * POST /api/marketplace/agents/:id/fork
+ * POST /api/marketplace/agents/:id/bookmark
+ * DELETE /api/marketplace/agents/:id/bookmark
+ * POST /api/marketplace/agents/:id/publish
+ * POST /api/marketplace/agents/:id/view
+ *
+ * Routed via vercel.json — see top of file path patterns.
+ */
+
+import { sql } from '../_lib/db.js';
+import { authenticateBearer, extractBearer, getSessionUser } from '../_lib/auth.js';
+import { cors, error, json, method, readJson, wrap } from '../_lib/http.js';
+import { clientIp, limits } from '../_lib/rate-limit.js';
+
+const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
+
+const CATEGORIES = [
+ 'academic',
+ 'career',
+ 'copywriting',
+ 'design',
+ 'education',
+ 'emotions',
+ 'entertainment',
+ 'games',
+ 'general',
+ 'life',
+ 'marketing',
+ 'office',
+ 'programming',
+ 'translation',
+];
+
+const SORTS = new Set(['recommended', 'recent', 'popular']);
+
+export default wrap(async (req, res) => {
+ const url = new URL(req.url, 'http://x');
+ const parts = url.pathname.split('/').filter(Boolean); // ['api','marketplace',...]
+ const head = parts[2]; // 'categories' | 'agents'
+ const id = parts[3];
+ const sub = parts[4];
+
+ if (head === 'categories') return handleCategories(req, res);
+
+ if (head === 'agents') {
+ if (!id) return handleList(req, res, url);
+ if (!UUID_RE.test(id)) return error(res, 404, 'not_found', 'agent not found');
+ if (!sub) return handleDetail(req, res, id);
+ if (sub === 'versions') return handleVersions(req, res, id);
+ if (sub === 'similar') return handleSimilar(req, res, id);
+ if (sub === 'fork') return handleFork(req, res, id);
+ if (sub === 'bookmark') return handleBookmark(req, res, id);
+ if (sub === 'publish') return handlePublish(req, res, id);
+ if (sub === 'view') return handleView(req, res, id);
+ return error(res, 404, 'not_found', 'unknown marketplace action');
+ }
+
+ return error(res, 404, 'not_found', 'unknown marketplace action');
+});
+
+// ── Auth ───────────────────────────────────────────────────────────────────
+
+async function resolveAuth(req) {
+ const session = await getSessionUser(req);
+ if (session) return { userId: session.id };
+ const bearer = await authenticateBearer(extractBearer(req));
+ if (bearer) return { userId: bearer.userId };
+ return null;
+}
+
+// ── Categories ─────────────────────────────────────────────────────────────
+
+async function handleCategories(req, res) {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const rows = await sql`
+ SELECT category, count(*)::int AS count
+ FROM agent_identities
+ WHERE is_published = true AND deleted_at IS NULL
+ GROUP BY category
+ `;
+ const counts = Object.fromEntries(
+ rows.filter((r) => r.category).map((r) => [r.category, r.count]),
+ );
+ const total = rows.reduce((s, r) => s + r.count, 0);
+ return json(
+ res,
+ 200,
+ {
+ data: {
+ total,
+ categories: CATEGORIES.map((slug) => ({ slug, count: counts[slug] || 0 })),
+ },
+ },
+ { 'cache-control': 'public, max-age=60' },
+ );
+}
+
+// ── List ───────────────────────────────────────────────────────────────────
+
+async function handleList(req, res, url) {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const category = url.searchParams.get('category') || null;
+ const q = (url.searchParams.get('q') || '').trim().slice(0, 80);
+ const sort = SORTS.has(url.searchParams.get('sort')) ? url.searchParams.get('sort') : 'recommended';
+ const limit = Math.min(48, Math.max(1, Number(url.searchParams.get('limit')) || 24));
+ const cursor = url.searchParams.get('cursor');
+ const offset = cursor ? Math.max(0, Number(cursor) || 0) : 0;
+
+ const orderBy =
+ sort === 'recent'
+ ? sql`published_at DESC NULLS LAST, created_at DESC`
+ : sort === 'popular'
+ ? sql`(forks_count + views_count) DESC, published_at DESC NULLS LAST`
+ : sql`(forks_count * 5 + views_count) DESC, published_at DESC NULLS LAST`;
+
+ const cat = category && CATEGORIES.includes(category) ? category : null;
+ const qLike = q ? `%${q}%` : null;
+
+ const rows = await sql`
+ SELECT id, name, description, category, tags, avatar_id, user_id,
+ forks_count, views_count, published_at, created_at, skills
+ FROM agent_identities
+ WHERE is_published = true
+ AND deleted_at IS NULL
+ AND (${cat}::text IS NULL OR category = ${cat})
+ AND (
+ ${qLike}::text IS NULL
+ OR name ILIKE ${qLike}
+ OR description ILIKE ${qLike}
+ OR EXISTS (SELECT 1 FROM unnest(tags) t WHERE t ILIKE ${qLike})
+ )
+ ORDER BY ${orderBy}
+ LIMIT ${limit + 1} OFFSET ${offset}
+ `;
+
+ const hasMore = rows.length > limit;
+ const items = rows.slice(0, limit).map(toCard);
+
+ return json(
+ res,
+ 200,
+ {
+ data: {
+ items,
+ next_cursor: hasMore ? String(offset + limit) : null,
+ },
+ },
+ { 'cache-control': 'public, max-age=15' },
+ );
+}
+
+// ── Detail ─────────────────────────────────────────────────────────────────
+
+async function handleDetail(req, res, id) {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const [row] = await sql`
+ SELECT a.*, u.display_name AS author_name, u.avatar_url AS author_avatar
+ FROM agent_identities a
+ LEFT JOIN users u ON u.id = a.user_id
+ WHERE a.id = ${id} AND a.deleted_at IS NULL AND a.is_published = true
+ `;
+ if (!row) return error(res, 404, 'not_found', 'agent not found');
+
+ const auth = await resolveAuth(req).catch(() => null);
+ let bookmarked = false;
+ if (auth) {
+ const [b] =
+ await sql`SELECT 1 AS x FROM agent_bookmarks WHERE user_id = ${auth.userId} AND agent_id = ${id}`;
+ bookmarked = !!b;
+ }
+
+ return json(
+ res,
+ 200,
+ { data: { agent: toDetail(row), bookmarked } },
+ { 'cache-control': 'public, max-age=15' },
+ );
+}
+
+// ── Versions ───────────────────────────────────────────────────────────────
+
+async function handleVersions(req, res, id) {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const rows = await sql`
+ SELECT id, version, changelog, category, tags, created_at
+ FROM agent_versions
+ WHERE agent_id = ${id}
+ ORDER BY version DESC
+ LIMIT 50
+ `;
+ return json(res, 200, { data: { versions: rows } });
+}
+
+// ── Similar ────────────────────────────────────────────────────────────────
+
+async function handleSimilar(req, res, id) {
+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const [base] = await sql`
+ SELECT id, name, description, category, tags FROM agent_identities
+ WHERE id = ${id} AND deleted_at IS NULL
+ `;
+ if (!base) return error(res, 404, 'not_found', 'agent not found');
+
+ const rows = await sql`
+ SELECT id, name, description, category, tags, avatar_id, user_id,
+ forks_count, views_count, published_at, created_at, skills,
+ (
+ (CASE WHEN category = ${base.category} THEN 3 ELSE 0 END)
+ + cardinality(ARRAY(SELECT unnest(tags) INTERSECT SELECT unnest(${base.tags}::text[])))
+ + similarity(name, ${base.name})
+ + similarity(coalesce(description,''), ${base.description || ''}) * 0.5
+ ) AS score
+ FROM agent_identities
+ WHERE is_published = true
+ AND deleted_at IS NULL
+ AND id <> ${id}
+ ORDER BY score DESC
+ LIMIT 8
+ `;
+ return json(res, 200, { data: { items: rows.map(toCard) } });
+}
+
+// ── Fork ───────────────────────────────────────────────────────────────────
+
+async function handleFork(req, res, id) {
+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;
+ if (!method(req, res, ['POST'])) return;
+
+ const auth = await resolveAuth(req);
+ if (!auth) return error(res, 401, 'unauthorized', 'sign in required');
+
+ const rl = await limits.authIp(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const [src] = await sql`
+ SELECT * FROM agent_identities
+ WHERE id = ${id} AND deleted_at IS NULL AND is_published = true
+ `;
+ if (!src) return error(res, 404, 'not_found', 'agent not found');
+
+ const [created] = await sql.transaction([
+ sql`
+ INSERT INTO agent_identities (
+ user_id, name, description, avatar_id, skills, meta,
+ category, tags, system_prompt, greeting, capabilities, fork_of
+ )
+ VALUES (
+ ${auth.userId},
+ ${src.name},
+ ${src.description},
+ ${src.avatar_id},
+ ${src.skills},
+ '{}'::jsonb,
+ ${src.category},
+ ${src.tags},
+ ${src.system_prompt},
+ ${src.greeting},
+ ${src.capabilities}::jsonb,
+ ${src.id}
+ )
+ RETURNING id, name, description, category, tags, fork_of, created_at
+ `,
+ sql`UPDATE agent_identities SET forks_count = forks_count + 1 WHERE id = ${id}`,
+ ]);
+
+ return json(res, 201, { data: { agent: created } });
+}
+
+// ── Bookmark ───────────────────────────────────────────────────────────────
+
+async function handleBookmark(req, res, id) {
+ if (cors(req, res, { methods: 'POST,DELETE,OPTIONS', credentials: true })) return;
+ if (!method(req, res, ['POST', 'DELETE'])) return;
+
+ const auth = await resolveAuth(req);
+ if (!auth) return error(res, 401, 'unauthorized', 'sign in required');
+
+ const rl = await limits.authIp(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ if (req.method === 'DELETE') {
+ await sql`DELETE FROM agent_bookmarks WHERE user_id = ${auth.userId} AND agent_id = ${id}`;
+ return json(res, 200, { data: { bookmarked: false } });
+ }
+
+ await sql`
+ INSERT INTO agent_bookmarks (user_id, agent_id)
+ VALUES (${auth.userId}, ${id})
+ ON CONFLICT DO NOTHING
+ `;
+ return json(res, 200, { data: { bookmarked: true } });
+}
+
+// ── Publish ────────────────────────────────────────────────────────────────
+
+async function handlePublish(req, res, id) {
+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;
+ if (!method(req, res, ['POST'])) return;
+
+ const auth = await resolveAuth(req);
+ if (!auth) return error(res, 401, 'unauthorized', 'sign in required');
+
+ const rl = await limits.authIp(clientIp(req));
+ if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
+
+ const body = await readJson(req).catch(() => ({}));
+
+ const [existing] = await sql`
+ SELECT id, user_id, system_prompt, greeting, category, tags, capabilities
+ FROM agent_identities WHERE id = ${id} AND deleted_at IS NULL
+ `;
+ if (!existing) return error(res, 404, 'not_found', 'agent not found');
+ if (existing.user_id !== auth.userId) return error(res, 403, 'forbidden', 'not your agent');
+
+ const category =
+ body.category && CATEGORIES.includes(body.category) ? body.category : existing.category;
+ if (!category) return error(res, 400, 'validation_error', 'category required');
+
+ const tags = Array.isArray(body.tags)
+ ? body.tags
+ .filter((t) => typeof t === 'string')
+ .map((t) => t.trim().toLowerCase())
+ .filter(Boolean)
+ .slice(0, 12)
+ : existing.tags;
+
+ const systemPrompt =
+ typeof body.system_prompt === 'string' ? body.system_prompt.slice(0, 16000) : existing.system_prompt;
+ const greeting = typeof body.greeting === 'string' ? body.greeting.slice(0, 1000) : existing.greeting;
+ const capabilities = body.capabilities && typeof body.capabilities === 'object' ? body.capabilities : existing.capabilities;
+ const changelog = typeof body.changelog === 'string' ? body.changelog.slice(0, 1000) : null;
+
+ const [{ next_version }] = await sql`
+ SELECT COALESCE(MAX(version), 0) + 1 AS next_version
+ FROM agent_versions WHERE agent_id = ${id}
+ `;
+
+ const [updated] = await sql.transaction([
+ sql`
+ UPDATE agent_identities
+ SET is_published = true,
+ published_at = COALESCE(published_at, now()),
+ category = ${category},
+ tags = ${tags},
+ system_prompt = ${systemPrompt},
+ greeting = ${greeting},
+ capabilities = ${JSON.stringify(capabilities || {})}::jsonb
+ WHERE id = ${id}
+ RETURNING *
+ `,
+ sql`
+ INSERT INTO agent_versions (
+ agent_id, version, system_prompt, greeting, category, tags, capabilities, changelog, created_by
+ )
+ VALUES (
+ ${id}, ${next_version}, ${systemPrompt}, ${greeting},
+ ${category}, ${tags}, ${JSON.stringify(capabilities || {})}::jsonb,
+ ${changelog}, ${auth.userId}
+ )
+ `,
+ ]);
+
+ return json(res, 200, { data: { agent: toDetail(updated), version: next_version } });
+}
+
+// ── View counter ───────────────────────────────────────────────────────────
+
+async function handleView(req, res, id) {
+ if (cors(req, res, { methods: 'POST,OPTIONS' })) return;
+ if (!method(req, res, ['POST'])) return;
+
+ const rl = await limits.widgetRead(clientIp(req));
+ if (!rl.success) return json(res, 200, { data: { ok: true } });
+
+ queueMicrotask(() => {
+ sql`UPDATE agent_identities SET views_count = views_count + 1 WHERE id = ${id} AND is_published = true`.catch(
+ (err) => console.error('[marketplace/view]', err),
+ );
+ });
+ return json(res, 200, { data: { ok: true } });
+}
+
+// ── Shaping ────────────────────────────────────────────────────────────────
+
+function toCard(row) {
+ return {
+ id: row.id,
+ name: row.name,
+ description: row.description,
+ category: row.category,
+ tags: row.tags || [],
+ avatar_id: row.avatar_id,
+ author_id: row.user_id,
+ skills: row.skills || [],
+ forks_count: row.forks_count || 0,
+ views_count: row.views_count || 0,
+ published_at: row.published_at,
+ created_at: row.created_at,
+ };
+}
+
+function toDetail(row) {
+ return {
+ ...toCard(row),
+ system_prompt: row.system_prompt,
+ greeting: row.greeting,
+ capabilities: row.capabilities || {},
+ fork_of: row.fork_of || null,
+ author_name: row.author_name || null,
+ author_avatar: row.author_avatar || null,
+ };
+}
diff --git a/home.css b/home.css
index 30e93a374..03cf861dc 100644
--- a/home.css
+++ b/home.css
@@ -3,24 +3,35 @@
/* ── Custom cursor ───────────────────────────────────────────────────────── */
@media (hover: hover) {
- body { cursor: none; }
+ body {
+ cursor: none;
+ }
.cursor {
position: fixed;
- top: 0; left: 0;
- width: 10px; height: 10px;
+ top: 0;
+ left: 0;
+ width: 10px;
+ height: 10px;
border-radius: 50%;
background: rgba(255, 215, 106, 0.9);
- box-shadow: 0 0 16px rgba(255, 215, 106, 0.7), 0 0 36px rgba(255, 215, 106, 0.3);
+ box-shadow:
+ 0 0 16px rgba(255, 215, 106, 0.7),
+ 0 0 36px rgba(255, 215, 106, 0.3);
pointer-events: none;
z-index: 99999;
will-change: transform;
mix-blend-mode: screen;
- transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
+ transition:
+ width 0.2s ease,
+ height 0.2s ease,
+ background 0.2s ease,
+ box-shadow 0.2s ease;
}
.cursor--hover {
- width: 36px; height: 36px;
+ width: 36px;
+ height: 36px;
background: rgba(255, 215, 106, 0.12);
border: 1px solid rgba(255, 215, 106, 0.55);
box-shadow: none;
@@ -52,17 +63,26 @@
.home-page header {
position: fixed !important;
- top: 0; left: 0; right: 0;
+ top: 0;
+ left: 0;
+ right: 0;
z-index: 200 !important;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.9rem clamp(1rem, 4vw, 2rem);
- background: linear-gradient(to bottom, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.3) 75%, transparent 100%);
+ background: linear-gradient(
+ to bottom,
+ rgba(10, 8, 6, 0.78) 0%,
+ rgba(10, 8, 6, 0.3) 75%,
+ transparent 100%
+ );
backdrop-filter: blur(14px) saturate(140%);
-webkit-backdrop-filter: blur(14px) saturate(140%);
border-bottom: 1px solid rgba(255, 215, 106, 0.06);
- transition: background 0.3s ease, border-color 0.3s ease;
+ transition:
+ background 0.3s ease,
+ border-color 0.3s ease;
}
.home-page header h1 {
@@ -82,7 +102,8 @@
}
.home-page header h1 a .wordmark-dot {
- width: 8px; height: 8px;
+ width: 8px;
+ height: 8px;
border-radius: 50%;
background: linear-gradient(135deg, #ffd76a, #ff8f4d);
box-shadow: 0 0 12px rgba(255, 143, 77, 0.6);
@@ -94,15 +115,20 @@
display: inline-block;
}
-
/* ── Loading flash on page reveal ────────────────────────────────────────── */
@keyframes h-page-in {
- from { opacity: 0; }
- to { opacity: 1; }
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
}
-.home-page main { animation: h-page-in 0.6s ease both; }
+.home-page main {
+ animation: h-page-in 0.6s ease both;
+}
/* ── Trust strip ─────────────────────────────────────────────────────────── */
@@ -165,7 +191,12 @@
position: relative;
z-index: 30;
background:
- linear-gradient(180deg, rgba(8, 7, 11, 0) 0%, rgba(8, 7, 11, 1) 25%, rgba(8, 7, 11, 1) 100%),
+ linear-gradient(
+ 180deg,
+ rgba(8, 7, 11, 0) 0%,
+ rgba(8, 7, 11, 1) 25%,
+ rgba(8, 7, 11, 1) 100%
+ ),
radial-gradient(ellipse at 50% 0%, rgba(255, 175, 60, 0.08) 0%, transparent 60%);
padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 4vw, 2rem);
}
@@ -210,8 +241,7 @@
z-index: 30;
background:
radial-gradient(ellipse at 0% 0%, rgba(255, 175, 60, 0.05) 0%, transparent 50%),
- radial-gradient(ellipse at 100% 100%, rgba(140, 80, 220, 0.05) 0%, transparent 50%),
- #06070b;
+ radial-gradient(ellipse at 100% 100%, rgba(140, 80, 220, 0.05) 0%, transparent 50%), #06070b;
padding: clamp(5rem, 10vh, 9rem) var(--space-lg);
max-width: 1200px;
margin: 0 auto;
@@ -241,7 +271,9 @@
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 8px;
overflow: hidden;
- transition: border-color 0.3s ease, transform 0.3s ease;
+ transition:
+ border-color 0.3s ease,
+ transform 0.3s ease;
display: flex;
flex-direction: column;
}
@@ -314,7 +346,9 @@
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
- transition: color 0.2s, background 0.2s;
+ transition:
+ color 0.2s,
+ background 0.2s;
line-height: 1;
}
@@ -332,8 +366,13 @@
padding-bottom: 4px;
}
-.h-bento-anim-grid::-webkit-scrollbar { height: 4px; }
-.h-bento-anim-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }
+.h-bento-anim-grid::-webkit-scrollbar {
+ height: 4px;
+}
+.h-bento-anim-grid::-webkit-scrollbar-thumb {
+ background: rgba(255, 255, 255, 0.12);
+ border-radius: 2px;
+}
.h-bento-anim-btn {
display: flex;
@@ -404,8 +443,12 @@
margin-bottom: 0.2rem;
}
-.h-bento-tag--mint { color: rgba(110, 231, 183, 0.8); }
-.h-bento-tag--violet { color: rgba(167, 139, 250, 0.8); }
+.h-bento-tag--mint {
+ color: rgba(110, 231, 183, 0.8);
+}
+.h-bento-tag--violet {
+ color: rgba(167, 139, 250, 0.8);
+}
.h-bento-card h3 {
font-family: 'Space Grotesk', 'Inter', sans-serif;
@@ -537,7 +580,8 @@
}
.h-dev-code-dot {
- width: 10px; height: 10px;
+ width: 10px;
+ height: 10px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
}
@@ -562,10 +606,18 @@
color: rgba(255, 255, 255, 0.55);
}
-.h-dev-pre .c { color: rgba(255, 255, 255, 0.22); }
-.h-dev-pre .tag { color: rgba(125, 200, 255, 0.85); }
-.h-dev-pre .attr { color: rgba(168, 220, 140, 0.85); }
-.h-dev-pre .val { color: rgba(255, 200, 100, 0.8); }
+.h-dev-pre .c {
+ color: rgba(255, 255, 255, 0.22);
+}
+.h-dev-pre .tag {
+ color: rgba(125, 200, 255, 0.85);
+}
+.h-dev-pre .attr {
+ color: rgba(168, 220, 140, 0.85);
+}
+.h-dev-pre .val {
+ color: rgba(255, 200, 100, 0.8);
+}
/* ── CTA inner wrapper ───────────────────────────────────────────────────── */
@@ -596,9 +648,9 @@
background: linear-gradient(
90deg,
transparent 0%,
- rgba(255, 255, 255, 0.0) 10%,
+ rgba(255, 255, 255, 0) 10%,
rgba(255, 255, 255, 0.75) 50%,
- rgba(255, 255, 255, 0.0) 90%,
+ rgba(255, 255, 255, 0) 90%,
transparent 100%
);
box-shadow:
@@ -626,15 +678,19 @@
}
@keyframes hFloorScroll {
- 0% { background-position: 0 0; }
- 100% { background-position: 0 64px; }
+ 0% {
+ background-position: 0 0;
+ }
+ 100% {
+ background-position: 0 64px;
+ }
}
.h-footer-haze {
position: absolute;
inset: 0;
background:
- radial-gradient(60% 70% at 30% 110%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
+ radial-gradient(60% 70% at 30% 110%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
radial-gradient(55% 70% at 75% 110%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
filter: blur(40px);
z-index: 1;
@@ -674,7 +730,7 @@
height: 200px;
z-index: 3;
pointer-events: none;
- filter: grayscale(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.30));
+ filter: grayscale(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
}
.h-footer-avatar model-viewer {
@@ -731,7 +787,9 @@
color: rgba(255, 255, 255, 0.45);
text-decoration: none;
font-size: var(--text-sm);
- transition: color 0.2s ease, text-shadow 0.2s ease;
+ transition:
+ color 0.2s ease,
+ text-shadow 0.2s ease;
}
.h-footer-links a:hover {
@@ -783,7 +841,11 @@
font-weight: 500;
letter-spacing: 0.01em;
text-decoration: none;
- transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
+ transition:
+ color 0.2s ease,
+ border-color 0.2s ease,
+ background 0.2s ease,
+ transform 0.2s ease;
}
.h-footer-badge:hover {
@@ -810,8 +872,15 @@
}
@keyframes hStatusPulse {
- 0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
- 50% { opacity: 0.55; box-shadow: 0 0 4px rgba(74, 222, 128, 0.35); }
+ 0%,
+ 100% {
+ opacity: 1;
+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
+ }
+ 50% {
+ opacity: 0.55;
+ box-shadow: 0 0 4px rgba(74, 222, 128, 0.35);
+ }
}
@media (max-width: 720px) {
@@ -945,8 +1014,12 @@
}
@keyframes h-star-drift {
- from { transform: translateY(0); }
- to { transform: translateY(-50%); }
+ from {
+ transform: translateY(0);
+ }
+ to {
+ transform: translateY(-50%);
+ }
}
/* ── Ghost model (depth 3) ───────────────────────────────────────────────── */
@@ -984,46 +1057,101 @@
transform-origin: 50% 95%;
}
-.h-avatar-viewer.cz-fall { animation: cz-fall 1.4s cubic-bezier(.4,1.6,.6,1) both; }
-.h-avatar-viewer.cz-spin { animation: cz-spin 1.2s cubic-bezier(.5,0,.5,1) both; }
-.h-avatar-viewer.cz-pushup { animation: cz-pushup 1.8s ease-in-out both; }
-.h-avatar-viewer.cz-jump { animation: cz-jump 0.9s cubic-bezier(.3,1.4,.6,1) both; }
-.h-avatar-viewer.cz-dance { animation: cz-dance 2.0s ease-in-out both; }
+.h-avatar-viewer.cz-fall {
+ animation: cz-fall 1.4s cubic-bezier(0.4, 1.6, 0.6, 1) both;
+}
+.h-avatar-viewer.cz-spin {
+ animation: cz-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) both;
+}
+.h-avatar-viewer.cz-pushup {
+ animation: cz-pushup 1.8s ease-in-out both;
+}
+.h-avatar-viewer.cz-jump {
+ animation: cz-jump 0.9s cubic-bezier(0.3, 1.4, 0.6, 1) both;
+}
+.h-avatar-viewer.cz-dance {
+ animation: cz-dance 2s ease-in-out both;
+}
@keyframes cz-fall {
- 0% { transform: rotate(0deg); }
- 35% { transform: rotate(-22deg); }
- 55% { transform: rotate(-22deg); }
- 78% { transform: rotate(-18deg); }
- 100% { transform: rotate(0deg); }
+ 0% {
+ transform: rotate(0deg);
+ }
+ 35% {
+ transform: rotate(-22deg);
+ }
+ 55% {
+ transform: rotate(-22deg);
+ }
+ 78% {
+ transform: rotate(-18deg);
+ }
+ 100% {
+ transform: rotate(0deg);
+ }
}
@keyframes cz-spin {
- 0% { transform: rotateY(0) scale(1); }
- 50% { transform: rotateY(180deg) scale(0.97); }
- 100% { transform: rotateY(360deg) scale(1); }
+ 0% {
+ transform: rotateY(0) scale(1);
+ }
+ 50% {
+ transform: rotateY(180deg) scale(0.97);
+ }
+ 100% {
+ transform: rotateY(360deg) scale(1);
+ }
}
@keyframes cz-pushup {
- 0%, 100% { transform: translateY(0); }
- 25% { transform: translateY(8px) scale(1, 0.97); }
- 50% { transform: translateY(0); }
- 75% { transform: translateY(8px) scale(1, 0.97); }
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+ 25% {
+ transform: translateY(8px) scale(1, 0.97);
+ }
+ 50% {
+ transform: translateY(0);
+ }
+ 75% {
+ transform: translateY(8px) scale(1, 0.97);
+ }
}
@keyframes cz-jump {
- 0%, 100% { transform: translateY(0) scale(1, 1); }
- 30% { transform: translateY(0) scale(1.05, 0.93); }
- 60% { transform: translateY(-32px) scale(0.96, 1.06); }
- 85% { transform: translateY(0) scale(1.04, 0.96); }
+ 0%,
+ 100% {
+ transform: translateY(0) scale(1, 1);
+ }
+ 30% {
+ transform: translateY(0) scale(1.05, 0.93);
+ }
+ 60% {
+ transform: translateY(-32px) scale(0.96, 1.06);
+ }
+ 85% {
+ transform: translateY(0) scale(1.04, 0.96);
+ }
}
@keyframes cz-dance {
- 0%, 100% { transform: rotate(0) translateX(0); }
- 15% { transform: rotate(4deg) translateX(-6px) translateY(-2px); }
- 40% { transform: rotate(-5deg) translateX(6px) translateY(-1px); }
- 65% { transform: rotate(3deg) translateX(-4px) translateY(-3px); }
- 85% { transform: rotate(-2deg) translateX(4px) translateY(0); }
+ 0%,
+ 100% {
+ transform: rotate(0) translateX(0);
+ }
+ 15% {
+ transform: rotate(4deg) translateX(-6px) translateY(-2px);
+ }
+ 40% {
+ transform: rotate(-5deg) translateX(6px) translateY(-1px);
+ }
+ 65% {
+ transform: rotate(3deg) translateX(-4px) translateY(-3px);
+ }
+ 85% {
+ transform: rotate(-2deg) translateX(4px) translateY(0);
+ }
}
/* ── Avatar centered in its depth-1 parallax layer ─────────────────────── */
@@ -1077,9 +1205,16 @@
}
@keyframes hero-avatar-float {
- 0% { transform: translateY(0) scale(1); }
- 60% { transform: translateY(-24px) scale(1.03); }
- 100% { transform: translateY(-56px) scale(0.94); opacity: 0.3; }
+ 0% {
+ transform: translateY(0) scale(1);
+ }
+ 60% {
+ transform: translateY(-24px) scale(1.03);
+ }
+ 100% {
+ transform: translateY(-56px) scale(0.94);
+ opacity: 0.3;
+ }
}
.h-layer {
@@ -1089,8 +1224,12 @@
}
@keyframes h-layer-parallax {
- from { transform: translateY(calc(var(--depth, 0) * 30px)); }
- to { transform: translateY(calc(var(--depth, 0) * -30px)); }
+ from {
+ transform: translateY(calc(var(--depth, 0) * 30px));
+ }
+ to {
+ transform: translateY(calc(var(--depth, 0) * -30px));
+ }
}
}
@@ -1114,11 +1253,21 @@
}
.h-act-warp--amber {
- background: linear-gradient(to bottom, rgba(6, 7, 11, 1) 0%, rgba(255, 180, 60, 0.04) 60%, transparent 100%);
+ background: linear-gradient(
+ to bottom,
+ rgba(6, 7, 11, 1) 0%,
+ rgba(255, 180, 60, 0.04) 60%,
+ transparent 100%
+ );
}
.h-act-warp--mint {
- background: linear-gradient(to bottom, rgba(6, 7, 11, 1) 0%, rgba(110, 231, 183, 0.04) 60%, transparent 100%);
+ background: linear-gradient(
+ to bottom,
+ rgba(6, 7, 11, 1) 0%,
+ rgba(110, 231, 183, 0.04) 60%,
+ transparent 100%
+ );
}
/* ── Act layer backgrounds ───────────────────────────────────────────────── */
@@ -1138,7 +1287,7 @@
.h-layer-bg--mint {
background:
radial-gradient(ellipse at 30% 40%, rgba(110, 231, 183, 0.12) 0%, transparent 55%),
- radial-gradient(ellipse at 70% 60%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
+ radial-gradient(ellipse at 70% 60%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 80% 75%, rgba(255, 215, 106, 0.04) 0%, transparent 55%),
linear-gradient(180deg, #060e14 0%, #06070b 100%);
}
@@ -1161,7 +1310,11 @@
}
.h-layer-orb--mint {
- background: radial-gradient(circle, color-mix(in srgb, #6ee7b7 60%, #38bdf8 40%), transparent 70%);
+ background: radial-gradient(
+ circle,
+ color-mix(in srgb, #6ee7b7 60%, #38bdf8 40%),
+ transparent 70%
+ );
top: 18%;
right: 8%;
}
@@ -1590,7 +1743,9 @@
font-weight: 600;
font-size: 0.9rem;
box-shadow: 0 4px 18px -6px rgba(255, 143, 77, 0.6);
- transition: transform 0.25s cubic-bezier(.2,.9,.3,1), box-shadow 0.25s ease;
+ transition:
+ transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
+ box-shadow 0.25s ease;
}
.home-nav .nav-cta:hover {
@@ -1630,6 +1785,135 @@
background: rgba(255, 255, 255, 0.07);
}
+/* ── Dropdown nav ── */
+.home-nav .nav-root {
+ display: flex;
+ align-items: center;
+ gap: var(--space-lg);
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+.home-nav .nav-item {
+ position: relative;
+}
+
+.home-nav .nav-trigger {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ background: none;
+ border: 0;
+ padding: 0;
+ cursor: pointer;
+ color: rgba(255, 255, 255, 0.6);
+ font: inherit;
+ font-size: 0.92rem;
+ font-weight: 500;
+ letter-spacing: 0.005em;
+ font-family: 'Space Grotesk', 'Inter', sans-serif;
+ transition: color 0.2s ease;
+}
+
+.home-nav .nav-trigger:hover,
+.home-nav .nav-trigger[aria-expanded='true'] {
+ color: #fff;
+}
+
+.home-nav .nav-caret {
+ font-size: 0.7em;
+ opacity: 0.7;
+ transition: transform 0.2s ease;
+}
+
+.home-nav .nav-trigger[aria-expanded='true'] .nav-caret {
+ transform: rotate(180deg);
+}
+
+.home-nav .nav-menu {
+ position: absolute;
+ top: calc(100% + 14px);
+ left: -12px;
+ min-width: 240px;
+ margin: 0;
+ padding: 8px;
+ list-style: none;
+ background: rgba(14, 12, 22, 0.92);
+ backdrop-filter: blur(18px) saturate(140%);
+ -webkit-backdrop-filter: blur(18px) saturate(140%);
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 12px;
+ box-shadow:
+ 0 20px 40px -12px rgba(0, 0, 0, 0.6),
+ 0 4px 12px -4px rgba(0, 0, 0, 0.5);
+ opacity: 0;
+ transform: translateY(-6px);
+ pointer-events: none;
+ transition:
+ opacity 0.18s ease,
+ transform 0.18s ease;
+ z-index: 1000;
+}
+
+.home-nav .nav-trigger[aria-expanded='true'] + .nav-menu {
+ opacity: 1;
+ transform: translateY(0);
+ pointer-events: auto;
+}
+
+.home-nav .nav-menu li {
+ list-style: none;
+}
+
+.home-nav .nav-menu a {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ padding: 10px 12px;
+ border-radius: 8px;
+ color: rgba(255, 255, 255, 0.85);
+ text-decoration: none;
+ transition:
+ background 0.15s ease,
+ color 0.15s ease;
+}
+
+.home-nav .nav-menu a:hover,
+.home-nav .nav-menu a:focus-visible {
+ background: rgba(255, 255, 255, 0.06);
+ color: #fff;
+}
+
+.home-nav .nav-mi-title {
+ font-size: 0.92rem;
+ font-weight: 500;
+ letter-spacing: 0.005em;
+}
+
+.home-nav .nav-mi-sub {
+ font-size: 0.78rem;
+ color: rgba(255, 255, 255, 0.45);
+ font-weight: 400;
+}
+
+.home-nav .nav-menu a:hover .nav-mi-sub,
+.home-nav .nav-menu a:focus-visible .nav-mi-sub {
+ color: rgba(255, 255, 255, 0.65);
+}
+
+@media (max-width: 900px) {
+ .home-nav .nav-root {
+ gap: var(--space-md);
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ }
+ .home-nav .nav-menu {
+ left: auto;
+ right: 0;
+ }
+}
+
/* ── Scroll reveal ── */
.h-reveal {
@@ -1858,13 +2142,17 @@
text-decoration: none;
letter-spacing: 0.005em;
font-family: 'Space Grotesk', 'Inter', sans-serif;
- transition: all 0.3s cubic-bezier(.2,.9,.3,1);
- box-shadow: 0 6px 24px -8px rgba(255, 143, 77, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
+ transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
+ box-shadow:
+ 0 6px 24px -8px rgba(255, 143, 77, 0.55),
+ 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.h-btn-primary:hover {
transform: translateY(-2px) scale(1.02);
- box-shadow: 0 12px 32px -8px rgba(255, 143, 77, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
+ box-shadow:
+ 0 12px 32px -8px rgba(255, 143, 77, 0.7),
+ 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.h-btn-primary .arrow {
@@ -1888,7 +2176,7 @@
font-family: 'Space Grotesk', 'Inter', sans-serif;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 8px;
- transition: all 0.3s cubic-bezier(.2,.9,.3,1);
+ transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
@@ -2377,8 +2665,10 @@
.h-cta-section::before {
content: '';
position: absolute;
- top: 0; left: 50%;
- width: 1px; height: 60px;
+ top: 0;
+ left: 50%;
+ width: 1px;
+ height: 60px;
background: linear-gradient(to bottom, transparent, rgba(255, 175, 60, 0.6), transparent);
transform: translateX(-50%);
}
diff --git a/home.html b/home.html
index d53d8d2e6..c7e668c01 100644
--- a/home.html
+++ b/home.html
@@ -26,7 +26,10 @@
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="three.ws — Give Your AI a Body" />
- <meta name="twitter:description" content="Drop any GLB model into three.ws — view it, animate it, embed it anywhere, and give it a verifiable on-chain identity." />
+ <meta
+ name="twitter:description"
+ content="Drop any GLB model into three.ws — view it, animate it, embed it anywhere, and give it a verifiable on-chain identity."
+ />
<meta name="twitter:image" content="https://three.ws/og-image.png" />
<link rel="canonical" href="https://three.ws/" />
@@ -55,19 +58,181 @@
<header>
<h1>
<a href="/" aria-label="three.ws home"
- ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a
+ ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span
+ class="wordmark-dot"
+ aria-hidden="true"
+ ></span
+ >three.ws</a
>
</h1>
-<nav class="home-nav" aria-label="Primary">
- <a href="/app">Viewer</a>
- <a href="/discover">Discover</a>
- <a href="/features">Features</a>
- <a href="/widgets">Widgets</a>
- <a href="/studio">Studio</a>
- <a href="/docs">Docs</a>
- <a href="/my-agents" id="home-nav-my-agents" hidden>My Agents</a>
- <a href="/dashboard" id="home-nav-user" hidden class="nav-user"></a>
- <a href="/login" class="nav-cta" id="home-nav-cta">Get started</a>
+ <nav class="home-nav" aria-label="Primary">
+ <ul class="nav-root" role="menubar">
+ <li class="nav-item nav-has-menu" role="none">
+ <button
+ type="button"
+ class="nav-trigger"
+ aria-haspopup="true"
+ aria-expanded="false"
+ role="menuitem"
+ >
+ Build<span class="nav-caret" aria-hidden="true">▾</span>
+ </button>
+ <ul class="nav-menu" role="menu" aria-label="Build">
+ <li role="none">
+ <a href="/create" role="menuitem"
+ ><span class="nav-mi-title">Create agent</span
+ ><span class="nav-mi-sub">Avatar + brain wizard</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/app" role="menuitem"
+ ><span class="nav-mi-title">Viewer</span
+ ><span class="nav-mi-sub">Drag-and-drop GLB</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/validation" role="menuitem"
+ ><span class="nav-mi-title">glTF Validator</span
+ ><span class="nav-mi-sub">Khronos spec check</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/hydrate" role="menuitem"
+ ><span class="nav-mi-title">Hydrate</span
+ ><span class="nav-mi-sub">Import on-chain agent</span></a
+ >
+ </li>
+ </ul>
+ </li>
+ <li class="nav-item nav-has-menu" role="none">
+ <button
+ type="button"
+ class="nav-trigger"
+ aria-haspopup="true"
+ aria-expanded="false"
+ role="menuitem"
+ >
+ Discover<span class="nav-caret" aria-hidden="true">▾</span>
+ </button>
+ <ul class="nav-menu" role="menu" aria-label="Discover">
+ <li role="none">
+ <a href="/discover" role="menuitem"
+ ><span class="nav-mi-title">Agents</span
+ ><span class="nav-mi-sub">Public directory</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/widgets" role="menuitem"
+ ><span class="nav-mi-title">Widgets gallery</span
+ ><span class="nav-mi-sub">Embeddable showcases</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/reputation" role="menuitem"
+ ><span class="nav-mi-title">Reputation</span
+ ><span class="nav-mi-sub">ERC-8004 registry</span></a
+ >
+ </li>
+ </ul>
+ </li>
+ <li class="nav-item nav-has-menu" role="none">
+ <button
+ type="button"
+ class="nav-trigger"
+ aria-haspopup="true"
+ aria-expanded="false"
+ role="menuitem"
+ >
+ Solana<span class="nav-caret" aria-hidden="true">▾</span>
+ </button>
+ <ul class="nav-menu" role="menu" aria-label="Solana">
+ <li role="none">
+ <a href="/pumpfun" role="menuitem"
+ ><span class="nav-mi-title">Pump.fun launcher</span
+ ><span class="nav-mi-sub">Mint agent tokens</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/vanity-wallet" role="menuitem"
+ ><span class="nav-mi-title">Vanity wallet</span
+ ><span class="nav-mi-sub">Grind a Solana address</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/strategy-lab" role="menuitem"
+ ><span class="nav-mi-title">Strategy Lab</span
+ ><span class="nav-mi-sub">DCA + subscriptions</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/docs/solana" role="menuitem"
+ ><span class="nav-mi-title">Solana SDK</span
+ ><span class="nav-mi-sub">Attestations + agent-kit</span></a
+ >
+ </li>
+ </ul>
+ </li>
+ <li class="nav-item nav-has-menu" role="none">
+ <button
+ type="button"
+ class="nav-trigger"
+ aria-haspopup="true"
+ aria-expanded="false"
+ role="menuitem"
+ >
+ Embed<span class="nav-caret" aria-hidden="true">▾</span>
+ </button>
+ <ul class="nav-menu" role="menu" aria-label="Embed">
+ <li role="none">
+ <a href="/studio" role="menuitem"
+ ><span class="nav-mi-title">Widget Studio</span
+ ><span class="nav-mi-sub">Pick avatar → copy snippet</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/artifact" role="menuitem"
+ ><span class="nav-mi-title">Artifact viewer</span
+ ><span class="nav-mi-sub">Claude artifact bundle</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/docs/embedding" role="menuitem"
+ ><span class="nav-mi-title">Embed docs</span
+ ><span class="nav-mi-sub">iframe + oEmbed</span></a
+ >
+ </li>
+ <li role="none">
+ <a href="/docs/web-component" role="menuitem"
+ ><span class="nav-mi-title">&lt;agent-3d&gt;</span
+ ><span class="nav-mi-sub">Web component reference</span></a
+ >
+ </li>
+ </ul>
+ </li>
+ <li class="nav-item" role="none"><a href="/docs" role="menuitem">Docs</a></li>
+ <li class="nav-item" role="none">
+ <a href="/features" role="menuitem">Features</a>
+ </li>
+ <li class="nav-item" role="none">
+ <a href="/my-agents" id="home-nav-my-agents" hidden role="menuitem"
+ >My Agents</a
+ >
+ </li>
+ <li class="nav-item" role="none">
+ <a
+ href="/dashboard"
+ id="home-nav-user"
+ hidden
+ class="nav-user"
+ role="menuitem"
+ ></a>
+ </li>
+ <li class="nav-item" role="none">
+ <a href="/login" class="nav-cta" id="home-nav-cta" role="menuitem"
+ >Get started</a
+ >
+ </li>
+ </ul>
</nav>
</header>
@@ -139,9 +304,9 @@
</div>
<h2 class="h-title h-reveal">Give your AI<br />a <em>body</em>.</h2>
<p class="h-subtitle h-reveal">
- Born in 3D. Raised on-chain. Yours forever.
- Your AI has been a chatbox long enough — give it a body, a personality,
- and a permanent home open to every human, app, and agent that comes looking.
+ Born in 3D. Raised on-chain. Yours forever. Your AI has been a chatbox long
+ enough — give it a body, a personality, and a permanent home open to every
+ human, app, and agent that comes looking.
</p>
<div class="h-cta-row h-reveal">
<a href="/create" class="h-btn-primary">
@@ -172,16 +337,16 @@
<h3>A 3D body for any agent</h3>
<p>
Drop any GLB into the browser and your AI agent appears as a fully
- rendered 3D avatar — animated, reactive, and ready to embed anywhere
- you can drop a script tag.
+ rendered 3D avatar — animated, reactive, and ready to embed anywhere you
+ can drop a script tag.
</p>
</article>
<article class="h-pillar h-reveal">
<h3>Your stack, your brain</h3>
<p>
Connect any LLM via MCP or A2A — Claude, GPT, Gemini, or your own.
- Built-in empathy layer for real-time emotion. No SDK on the consumer side.
- No vendor lock-in.
+ Built-in empathy layer for real-time emotion. No SDK on the consumer
+ side. No vendor lock-in.
</p>
</article>
<article class="h-pillar h-reveal">
@@ -200,17 +365,33 @@
<div class="h-act-warp h-act-warp--amber" aria-hidden="true"></div>
<div class="h-layer" style="--depth: 8" aria-hidden="true">
<div class="h-layer-bg h-layer-bg--amber"></div>
- <canvas class="h-star-canvas" data-role="star-canvas" data-tint="255,190,80" data-count="200"></canvas>
+ <canvas
+ class="h-star-canvas"
+ data-role="star-canvas"
+ data-tint="255,190,80"
+ data-count="200"
+ ></canvas>
</div>
<div class="h-layer" style="--depth: 4" aria-hidden="true">
- <svg class="h-layer-words" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMid slice" role="presentation">
- <g fill="rgba(255,200,80,0.13)" font-family="'Space Grotesk','Inter',sans-serif" font-weight="600">
- <text x="80" y="200" font-size="52">Dance</text>
+ <svg
+ class="h-layer-words"
+ viewBox="0 0 1600 900"
+ preserveAspectRatio="xMidYMid slice"
+ role="presentation"
+ >
+ <g
+ fill="rgba(255,200,80,0.13)"
+ font-family="'Space Grotesk','Inter',sans-serif"
+ font-weight="600"
+ >
+ <text x="80" y="200" font-size="52">Dance</text>
<text x="1100" y="160" font-size="44">Wave</text>
- <text x="200" y="710" font-size="44">Jump</text>
- <text x="980" y="760" font-size="40">ThumbsUp</text>
- <text x="560" y="440" font-size="96" fill="rgba(255,255,255,0.05)">Idle</text>
- <text x="55" y="860" font-size="40">Punch</text>
+ <text x="200" y="710" font-size="44">Jump</text>
+ <text x="980" y="760" font-size="40">ThumbsUp</text>
+ <text x="560" y="440" font-size="96" fill="rgba(255,255,255,0.05)">
+ Idle
+ </text>
+ <text x="55" y="860" font-size="40">Punch</text>
<text x="1260" y="520" font-size="48">Run</text>
</g>
</svg>
@@ -235,18 +416,42 @@
<span>Pick &amp; animate</span>
</div>
<h2 class="h-act-title">Your agent.<br /><em>Any move.</em></h2>
- <p class="h-act-lede">Choose an avatar, trigger an animation. This is exactly what lives on your site.</p>
+ <p class="h-act-lede">
+ Choose an avatar, trigger an animation. This is exactly what lives on your
+ site.
+ </p>
<div class="h-avatar-picker" role="group" aria-label="Choose avatar">
- <button class="h-av-opt" data-src="/animations/robotexpressive.glb" aria-pressed="true">Robot</button>
- <button class="h-av-opt" data-src="/animations/soldier.glb" aria-pressed="false">Soldier</button>
- <button class="h-av-opt" data-src="/avatars/cz.glb" aria-pressed="false">CZ</button>
+ <button
+ class="h-av-opt"
+ data-src="/animations/robotexpressive.glb"
+ aria-pressed="true"
+ >
+ Robot
+ </button>
+ <button
+ class="h-av-opt"
+ data-src="/animations/soldier.glb"
+ aria-pressed="false"
+ >
+ Soldier
+ </button>
+ <button class="h-av-opt" data-src="/avatars/cz.glb" aria-pressed="false">
+ CZ
+ </button>
</div>
- <div class="h-anim-chips" role="group" aria-label="Trigger animation" data-role="anim-chips"></div>
+ <div
+ class="h-anim-chips"
+ role="group"
+ aria-label="Trigger animation"
+ data-role="anim-chips"
+ ></div>
<div class="h-act-cta">
- <a href="/app" class="h-btn-primary"><span>Open full viewer</span><span class="arrow">→</span></a>
+ <a href="/app" class="h-btn-primary"
+ ><span>Open full viewer</span><span class="arrow">→</span></a
+ >
<a href="/create" class="h-btn-ghost">Create your agent</a>
</div>
</div>
@@ -257,7 +462,12 @@
<div class="h-act-warp h-act-warp--mint" aria-hidden="true"></div>
<div class="h-layer" style="--depth: 8" aria-hidden="true">
<div class="h-layer-bg h-layer-bg--mint"></div>
- <canvas class="h-star-canvas" data-role="star-canvas" data-tint="110,231,183" data-count="200"></canvas>
+ <canvas
+ class="h-star-canvas"
+ data-role="star-canvas"
+ data-tint="110,231,183"
+ data-count="200"
+ ></canvas>
</div>
<div class="h-layer" style="--depth: 2" aria-hidden="true">
@@ -266,13 +476,22 @@
<div class="h-layer" style="--depth: 1" aria-hidden="true">
<div class="h-avatar-stage h-avatar-stage--trio">
<div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas id="act3-avatar-a" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
+ <canvas
+ id="act3-avatar-a"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
</div>
<div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas id="act3-avatar-b" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
+ <canvas
+ id="act3-avatar-b"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
</div>
<div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
- <canvas id="act3-avatar-c" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
+ <canvas
+ id="act3-avatar-c"
+ class="h-avatar-viewer h-avatar-viewer--tall"
+ ></canvas>
</div>
</div>
</div>
@@ -285,13 +504,26 @@
<span class="h-act-dot h-act-dot--mint"></span>
<span>ERC-8004 native</span>
</div>
- <h2 class="h-act-title h-act-title--mint">One transaction.<br /><em>One identity.</em></h2>
- <p class="h-act-lede">Register onchain. Get a portable, verifiable agentId discoverable by any A2A or MCP client.</p>
+ <h2 class="h-act-title h-act-title--mint">
+ One transaction.<br /><em>One identity.</em>
+ </h2>
+ <p class="h-act-lede">
+ Register onchain. Get a portable, verifiable agentId discoverable by any A2A
+ or MCP client.
+ </p>
<form class="h-deploy-form" id="home-deploy-form" action="/deploy" method="get">
<div class="h-form-row">
<label class="h-form-label" for="agent-name-home">Agent name</label>
- <input id="agent-name-home" name="name" class="h-form-input" type="text" placeholder="my-agent" autocomplete="off" spellcheck="false" />
+ <input
+ id="agent-name-home"
+ name="name"
+ class="h-form-input"
+ type="text"
+ placeholder="my-agent"
+ autocomplete="off"
+ spellcheck="false"
+ />
</div>
<div class="h-form-row">
<label class="h-form-label" for="chain-home">Chain</label>
@@ -307,9 +539,18 @@
</select>
</div>
<div class="h-deploy-stats">
- <div><span class="h-stat-label">Chains</span><span class="h-stat-val">20+</span></div>
- <div><span class="h-stat-label">Standard</span><span class="h-stat-val">ERC-721</span></div>
- <div><span class="h-stat-label">Protocol</span><span class="h-stat-val">ERC-8004</span></div>
+ <div>
+ <span class="h-stat-label">Chains</span
+ ><span class="h-stat-val">20+</span>
+ </div>
+ <div>
+ <span class="h-stat-label">Standard</span
+ ><span class="h-stat-val">ERC-721</span>
+ </div>
+ <div>
+ <span class="h-stat-label">Protocol</span
+ ><span class="h-stat-val">ERC-8004</span>
+ </div>
</div>
<button type="submit" class="h-btn-primary h-btn-deploy">
<span>Deploy your agent</span>
@@ -353,7 +594,9 @@
<section class="h-bento-section">
<div class="h-bento-header h-reveal">
<p class="h-section-label">What you get</p>
- <h2 class="h-section-title">Everything an agent needs<br />to exist in the world.</h2>
+ <h2 class="h-section-title">
+ Everything an agent needs<br />to exist in the world.
+ </h2>
</div>
<div class="h-bento-grid">
<!-- Large card: 3D viewer + inline animation panel -->
@@ -364,14 +607,24 @@
<div class="h-bento-anim-panel" data-role="bento-anim-panel">
<div class="h-bento-anim-header">
<span class="h-bento-anim-title">Animations</span>
- <button type="button" class="h-bento-anim-stop" data-role="bento-anim-stop" title="Stop all">⏹</button>
+ <button
+ type="button"
+ class="h-bento-anim-stop"
+ data-role="bento-anim-stop"
+ title="Stop all"
+ >
+ ⏹
+ </button>
</div>
<div class="h-bento-anim-grid" data-role="bento-anim-grid"></div>
</div>
<div class="h-bento-body">
<span class="h-bento-tag">Viewer</span>
<h3>WebGL rendering, zero install.</h3>
- <p>Drag any GLB into the browser. Full animations, lighting, and materials — instantly, on any device.</p>
+ <p>
+ Drag any GLB into the browser. Full animations, lighting, and
+ materials — instantly, on any device.
+ </p>
<a href="/app" class="h-feature-link">Open viewer →</a>
</div>
</div>
@@ -383,7 +636,10 @@
<p>Notion, Ghost, WordPress, Framer. No SDK on the consumer side.</p>
<div class="h-bento-code">
<span class="tag">&lt;agent-3d</span>
- <br />&nbsp;&nbsp;<span class="attr">agent-id</span>=<span class="val">"0x3d…"</span>
+ <br />&nbsp;&nbsp;<span class="attr">agent-id</span>=<span
+ class="val"
+ >"0x3d…"</span
+ >
<br /><span class="tag">&gt;&lt;/agent-3d&gt;</span>
</div>
</div>
@@ -392,10 +648,23 @@
<div class="h-bento-body">
<span class="h-bento-tag h-bento-tag--mint">On-chain</span>
<h3>Verifiable identity.</h3>
- <p>ERC-8004 registration. One transaction. Discoverable by any A2A or MCP client on 20+ chains.</p>
+ <p>
+ ERC-8004 registration. One transaction. Discoverable by any A2A or
+ MCP client on 20+ chains.
+ </p>
<div class="h-bento-id">
- <span class="h-id-dot" style="background:#6ee7b7;box-shadow:0 0 8px #6ee7b7"></span>
- <span style="font-family:monospace;font-size:12px;color:rgba(255,255,255,0.6)">0x3d…a9f · Base</span>
+ <span
+ class="h-id-dot"
+ style="background: #6ee7b7; box-shadow: 0 0 8px #6ee7b7"
+ ></span>
+ <span
+ style="
+ font-family: monospace;
+ font-size: 12px;
+ color: rgba(255, 255, 255, 0.6);
+ "
+ >0x3d…a9f · Base</span
+ >
</div>
</div>
</div>
@@ -403,7 +672,10 @@
<div class="h-bento-body">
<span class="h-bento-tag h-bento-tag--violet">AI</span>
<h3>Six emotions. Real time.</h3>
- <p>Built-in empathy layer. Your agent reacts — speaking, thinking, succeeding, failing.</p>
+ <p>
+ Built-in empathy layer. Your agent reacts — speaking, thinking,
+ succeeding, failing.
+ </p>
<div class="h-bento-emotions">
<span>✦ celebration</span>
<span>? curiosity</span>
@@ -416,7 +688,10 @@
<div class="h-bento-body">
<span class="h-bento-tag">Widgets</span>
<h3>5 widget types.</h3>
- <p>Turntable · Talking Agent · Animation Gallery · ERC-8004 Passport · Hotspot Tour</p>
+ <p>
+ Turntable · Talking Agent · Animation Gallery · ERC-8004 Passport ·
+ Hotspot Tour
+ </p>
<a href="/studio" class="h-feature-link">Widget Studio →</a>
</div>
</div>
@@ -430,13 +705,19 @@
<p class="h-section-label">For developers</p>
<h2>Drop one tag.<br />Ship a 3D agent.</h2>
<p class="h-dev-sub">
- The <code>&lt;agent-3d&gt;</code> web component lazy-loads, renders anywhere,
- and connects to your existing AI stack via MCP or A2A.
- No framework. No build step.
+ The <code>&lt;agent-3d&gt;</code> web component lazy-loads, renders
+ anywhere, and connects to your existing AI stack via MCP or A2A. No
+ framework. No build step.
</p>
<div class="h-dev-links">
<a href="/features" class="h-feature-link">Read the docs →</a>
- <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener" class="h-feature-link">GitHub →</a>
+ <a
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener"
+ class="h-feature-link"
+ >GitHub →</a
+ >
</div>
</div>
<div class="h-dev-code">
@@ -446,7 +727,9 @@
<span class="h-dev-code-dot"></span>
<span class="h-dev-code-filename">index.html</span>
</div>
- <pre class="h-dev-pre"><code><span class="c">&lt;!-- 1. Load the component --&gt;</span>
+ <pre
+ class="h-dev-pre"
+ ><code><span class="c">&lt;!-- 1. Load the component --&gt;</span>
<span class="tag">&lt;script</span> <span class="attr">type</span>=<span class="val">"module"</span>
<span class="attr">src</span>=<span class="val">"https://three.ws/agent-3d/latest/agent-3d.js"</span><span class="tag">&gt;&lt;/script&gt;</span>
@@ -498,80 +781,139 @@
</div>
<div class="h-footer-cta">
- <div class="h-footer-newsletter">
- <h3>Stay in the loop</h3>
- <p>Get updates on new features, agent tooling, and protocol changes.</p>
- <form class="h-footer-newsletter-form" data-newsletter-form novalidate>
- <input
- type="email"
- class="h-footer-newsletter-input"
- name="email"
- placeholder="Enter your email"
- aria-label="Email address"
- autocomplete="email"
- required
- />
- <button type="submit" class="h-footer-newsletter-btn" aria-label="Subscribe">
- <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2 8h11m0 0L9 4m4 4l-4 4"/></svg>
- </button>
- </form>
- <p class="h-footer-newsletter-msg" data-newsletter-msg aria-live="polite"></p>
- </div>
- <div class="h-footer-community">
- <h3>Join the community</h3>
- <p>Follow along for builds, demos, and conversations with the team.</p>
- <a class="h-footer-community-btn" href="https://x.com/nichxbt" target="_blank" rel="noopener">
- <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
- Follow on X
- </a>
- </div>
- </div>
- <div class="h-footer-inner">
- <div class="h-footer-brand-col">
- <div class="h-footer-brand">
- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
- <span class="wordmark-dot" aria-hidden="true"></span>
- <span>three.ws</span>
+ <div class="h-footer-newsletter">
+ <h3>Stay in the loop</h3>
+ <p>Get updates on new features, agent tooling, and protocol changes.</p>
+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>
+ <input
+ type="email"
+ class="h-footer-newsletter-input"
+ name="email"
+ placeholder="Enter your email"
+ aria-label="Email address"
+ autocomplete="email"
+ required
+ />
+ <button
+ type="submit"
+ class="h-footer-newsletter-btn"
+ aria-label="Subscribe"
+ >
+ <svg viewBox="0 0 16 16" aria-hidden="true">
+ <path
+ fill="none"
+ stroke="currentColor"
+ stroke-width="1.6"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ d="M2 8h11m0 0L9 4m4 4l-4 4"
+ />
+ </svg>
+ </button>
+ </form>
+ <p
+ class="h-footer-newsletter-msg"
+ data-newsletter-msg
+ aria-live="polite"
+ ></p>
</div>
- <p class="h-footer-tagline">Give your AI a body.</p>
- <div class="h-footer-socials">
- <a class="h-footer-social" href="https://x.com/nichxbt" target="_blank" rel="noopener" aria-label="three.ws on X">
- <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
- </a>
- <a class="h-footer-social" href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener" aria-label="three.ws on GitHub">
- <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
+ <div class="h-footer-community">
+ <h3>Join the community</h3>
+ <p>Follow along for builds, demos, and conversations with the team.</p>
+ <a
+ class="h-footer-community-btn"
+ href="https://x.com/nichxbt"
+ target="_blank"
+ rel="noopener"
+ >
+ <svg viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
+ />
+ </svg>
+ Follow on X
</a>
</div>
</div>
- <nav class="h-footer-links" aria-label="Footer">
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Product</h4>
- <a href="/create">Create</a>
- <a href="/studio">Studio</a>
- <a href="/widgets">Widgets</a>
- <a href="/discover">Discover</a>
- </div>
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Developers</h4>
- <a href="/docs">Docs</a>
- <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>
- <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>
+ <div class="h-footer-inner">
+ <div class="h-footer-brand-col">
+ <div class="h-footer-brand">
+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
+ <span class="wordmark-dot" aria-hidden="true"></span>
+ <span>three.ws</span>
+ </div>
+ <p class="h-footer-tagline">Give your AI a body.</p>
+ <div class="h-footer-socials">
+ <a
+ class="h-footer-social"
+ href="https://x.com/nichxbt"
+ target="_blank"
+ rel="noopener"
+ aria-label="three.ws on X"
+ >
+ <svg viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
+ />
+ </svg>
+ </a>
+ <a
+ class="h-footer-social"
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener"
+ aria-label="three.ws on GitHub"
+ >
+ <svg viewBox="0 0 16 16" aria-hidden="true">
+ <path
+ fill="currentColor"
+ d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
+ />
+ </svg>
+ </a>
+ </div>
</div>
- <div class="h-footer-link-col">
- <h4 class="h-footer-link-heading">Resources</h4>
- <a href="/features">Features</a>
- <a href="/dashboard">Dashboard</a>
+ <nav class="h-footer-links" aria-label="Footer">
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Product</h4>
+ <a href="/create">Create</a>
+ <a href="/studio">Studio</a>
+ <a href="/widgets">Widgets</a>
+ <a href="/discover">Discover</a>
+ </div>
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Developers</h4>
+ <a href="/docs">Docs</a>
+ <a
+ href="https://github.com/nirholas/three.ws"
+ target="_blank"
+ rel="noopener"
+ >GitHub</a
+ >
+ <a
+ href="https://eips.ethereum.org/EIPS/eip-8004"
+ target="_blank"
+ rel="noopener"
+ >ERC-8004</a
+ >
+ </div>
+ <div class="h-footer-link-col">
+ <h4 class="h-footer-link-heading">Resources</h4>
+ <a href="/features">Features</a>
+ <a href="/dashboard">Dashboard</a>
+ </div>
+ </nav>
+ </div>
+ <div class="h-footer-bottom">
+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>
+ <div class="h-footer-legal-links">
+ <a href="/legal/privacy">Privacy Policy</a>
+ <a href="/legal/tos">Terms of Use</a>
</div>
- </nav>
- </div>
- <div class="h-footer-bottom">
- <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>
- <div class="h-footer-legal-links">
- <a href="/legal/privacy">Privacy Policy</a>
- <a href="/legal/tos">Terms of Use</a>
</div>
- </div>
- </footer>
+ </footer>
</main>
<script>
@@ -597,6 +939,55 @@
} catch (_) {}
})();
+ // Dropdown nav — click to open, Esc / outside-click to close, arrow keys within menu.
+ (function () {
+ const triggers = document.querySelectorAll('.home-nav .nav-trigger');
+ if (!triggers.length) return;
+
+ function closeAll(except) {
+ triggers.forEach((t) => {
+ if (t !== except) t.setAttribute('aria-expanded', 'false');
+ });
+ }
+
+ triggers.forEach((trigger) => {
+ trigger.addEventListener('click', (e) => {
+ e.stopPropagation();
+ const open = trigger.getAttribute('aria-expanded') === 'true';
+ closeAll(open ? null : trigger);
+ trigger.setAttribute('aria-expanded', open ? 'false' : 'true');
+ if (!open) {
+ const first = trigger.nextElementSibling?.querySelector('a');
+ first?.focus();
+ }
+ });
+
+ const menu = trigger.nextElementSibling;
+ if (!menu) return;
+ menu.addEventListener('keydown', (e) => {
+ const items = Array.from(menu.querySelectorAll('a'));
+ const idx = items.indexOf(document.activeElement);
+ if (e.key === 'ArrowDown') {
+ e.preventDefault();
+ items[(idx + 1) % items.length]?.focus();
+ } else if (e.key === 'ArrowUp') {
+ e.preventDefault();
+ items[(idx - 1 + items.length) % items.length]?.focus();
+ } else if (e.key === 'Escape') {
+ trigger.setAttribute('aria-expanded', 'false');
+ trigger.focus();
+ }
+ });
+ });
+
+ document.addEventListener('click', (e) => {
+ if (!e.target.closest('.home-nav')) closeAll(null);
+ });
+ document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape') closeAll(null);
+ });
+ })();
+
// Scroll reveal — use .home-parallax as root so IntersectionObserver
// fires against the perspective scroll container, not the window.
(function () {
@@ -628,18 +1019,32 @@
const heroAct = document.querySelector('.h-hero-act');
if (!scrollEl || !canvas || !heroAct) return;
- let mouseX = 0, mouseY = 0, scrollProgress = 0;
- const BASE_THETA = -45, BASE_PHI = 80, BASE_R = 14;
- let curTheta = BASE_THETA, curPhi = BASE_PHI, curR = BASE_R;
+ let mouseX = 0,
+ mouseY = 0,
+ scrollProgress = 0;
+ const BASE_THETA = -45,
+ BASE_PHI = 80,
+ BASE_R = 14;
+ let curTheta = BASE_THETA,
+ curPhi = BASE_PHI,
+ curR = BASE_R;
- window.addEventListener('mousemove', (e) => {
- mouseX = (e.clientX / innerWidth) * 2 - 1;
- mouseY = (e.clientY / innerHeight) * 2 - 1;
- }, { passive: true });
+ window.addEventListener(
+ 'mousemove',
+ (e) => {
+ mouseX = (e.clientX / innerWidth) * 2 - 1;
+ mouseY = (e.clientY / innerHeight) * 2 - 1;
+ },
+ { passive: true },
+ );
- scrollEl.addEventListener('scroll', () => {
- scrollProgress = Math.min(scrollEl.scrollTop / heroAct.offsetHeight, 1);
- }, { passive: true });
+ scrollEl.addEventListener(
+ 'scroll',
+ () => {
+ scrollProgress = Math.min(scrollEl.scrollTop / heroAct.offsetHeight, 1);
+ },
+ { passive: true },
+ );
function whenReady(cb) {
if (window.Act2Viewer) return cb();
@@ -654,11 +1059,11 @@
(function tick() {
if (orbitActive) {
const scrollTheta = scrollProgress * 90;
- const scrollPhi = -scrollProgress * 8;
- const scrollR = scrollProgress * 0.8;
+ const scrollPhi = -scrollProgress * 8;
+ const scrollR = scrollProgress * 0.8;
curTheta += (BASE_THETA + scrollTheta + mouseX * 16 - curTheta) * 0.07;
- curPhi += (BASE_PHI + scrollPhi + mouseY * 6 - curPhi) * 0.07;
- curR += (BASE_R + scrollR - curR) * 0.12;
+ curPhi += (BASE_PHI + scrollPhi + mouseY * 6 - curPhi) * 0.07;
+ curR += (BASE_R + scrollR - curR) * 0.12;
viewer.setOrbit(curTheta, curPhi, curR);
}
requestAnimationFrame(tick);
@@ -670,28 +1075,33 @@
alreadyPlaying=true skips the playClip call (used on first load). */
async function doFalling(alreadyPlaying = false) {
if (!alreadyPlaying) {
- try { await viewer.playClip('falling'); } catch (_) {}
+ try {
+ await viewer.playClip('falling');
+ } catch (_) {}
}
/* wait for the actual clip to finish on the ground */
const clipDur = viewer.currentAction
? viewer.currentAction.getClip().duration * 1000
: 2200;
- await new Promise(r => setTimeout(r, clipDur));
+ await new Promise((r) => setTimeout(r, clipDur));
/* expand to full-width and slide the model slowly across the ground */
wrap.classList.add('h-avatar-wrap--traversing');
const SLIDE_DUR = 3200;
const SLIDE_DIST = 8;
const t0 = performance.now();
- await new Promise(r => {
+ await new Promise((r) => {
(function step(now) {
const t = Math.min((now - t0) / SLIDE_DUR, 1);
const x = SLIDE_DIST * t;
if (viewer.model) viewer.model.position.x = x;
viewer._focusX = x;
- if (t < 1) { requestAnimationFrame(step); }
- else { r(); }
+ if (t < 1) {
+ requestAnimationFrame(step);
+ } else {
+ r();
+ }
})(performance.now());
});
@@ -703,12 +1113,15 @@
}
canvas.style.opacity = '0';
- viewer.loadModel('/avatars/cz.glb', { autoPlay: false })
+ viewer
+ .loadModel('/avatars/cz.glb', { autoPlay: false })
.then(async () => {
viewer.setOrbit(curTheta, curPhi, curR);
orbitActive = true;
/* fetch + start the falling clip before revealing — no T-pose flash */
- try { await viewer.playClip('falling'); } catch (_) {}
+ try {
+ await viewer.playClip('falling');
+ } catch (_) {}
canvas.style.transition = 'opacity 0.15s';
canvas.style.opacity = '1';
/* clip is already playing — pass flag so doFalling skips the restart */
@@ -717,11 +1130,23 @@
.catch(console.error);
/* click → random manifest animation; falling gets full traverse treatment */
- const FUN = ['falling', 'wave', 'dance', 'celebrate', 'jump', 'rumba', 'capoeira', 'thriller', 'kiss', 'taunt', 'pray'];
+ const FUN = [
+ 'falling',
+ 'wave',
+ 'dance',
+ 'celebrate',
+ 'jump',
+ 'rumba',
+ 'capoeira',
+ 'thriller',
+ 'kiss',
+ 'taunt',
+ 'pray',
+ ];
let lastAnim = null;
canvas.style.cursor = 'pointer';
canvas.addEventListener('click', async () => {
- const pool = FUN.filter(a => a !== lastAnim);
+ const pool = FUN.filter((a) => a !== lastAnim);
const name = pool[Math.floor(Math.random() * pool.length)];
lastAnim = name;
if (name === 'falling') {
@@ -730,7 +1155,7 @@
}
try {
await viewer.playClip(name);
- const def = viewer._manifest.find(d => d.name === name);
+ const def = viewer._manifest.find((d) => d.name === name);
if (def && !def.loop) {
setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
}
@@ -773,9 +1198,15 @@
btn.textContent = prettyLabel(def);
if (i === 0) btn.dataset.active = 'true';
btn.addEventListener('click', async () => {
- chipsWrap.querySelectorAll('.h-anim-chip').forEach((c) => delete c.dataset.active);
+ chipsWrap
+ .querySelectorAll('.h-anim-chip')
+ .forEach((c) => delete c.dataset.active);
btn.dataset.active = 'true';
- try { await viewer.playClip(def.name); } catch (e) { /* ignore */ }
+ try {
+ await viewer.playClip(def.name);
+ } catch (e) {
+ /* ignore */
+ }
});
chipsWrap.appendChild(btn);
});
@@ -791,13 +1222,18 @@
btn.addEventListener('click', async () => {
opts.forEach((b) => b.setAttribute('aria-pressed', 'false'));
btn.setAttribute('aria-pressed', 'true');
- try { await viewer.loadModel(btn.dataset.src); } catch (e) { console.error(e); }
+ try {
+ await viewer.loadModel(btn.dataset.src);
+ } catch (e) {
+ console.error(e);
+ }
});
});
/* click on canvas to toggle zoom (default → extra-wide) */
let wider = false;
- const NEAR = 22, FAR = 36;
+ const NEAR = 22,
+ FAR = 36;
canvas.addEventListener('click', () => {
wider = !wider;
viewer.zoom(wider ? FAR : NEAR);
@@ -842,10 +1278,14 @@
btn.appendChild(label);
if (i === 0) btn.classList.add('h-bento-anim-btn--active');
btn.addEventListener('click', async () => {
- grid.querySelectorAll('.h-bento-anim-btn').forEach((b) => b.classList.remove('h-bento-anim-btn--active'));
+ grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
+ b.classList.remove('h-bento-anim-btn--active'),
+ );
btn.classList.add('h-bento-anim-btn--active');
btn.classList.add('h-bento-anim-btn--loading');
- try { await viewer.playClip(def.name); } catch (_) {}
+ try {
+ await viewer.playClip(def.name);
+ } catch (_) {}
btn.classList.remove('h-bento-anim-btn--loading');
});
grid.appendChild(btn);
@@ -853,7 +1293,8 @@
}
viewer.onClipsReady = buildButtons;
- viewer.loadModel('/avatars/cz.glb')
+ viewer
+ .loadModel('/avatars/cz.glb')
.then(() => {
if (viewer.model) {
viewer.model.position.x -= 0.15;
@@ -867,7 +1308,9 @@
stopBtn.addEventListener('click', () => {
if (viewer.mixer) viewer.mixer.stopAllAction();
viewer.currentAction = null;
- grid.querySelectorAll('.h-bento-anim-btn').forEach((b) => b.classList.remove('h-bento-anim-btn--active'));
+ grid.querySelectorAll('.h-bento-anim-btn').forEach((b) =>
+ b.classList.remove('h-bento-anim-btn--active'),
+ );
});
}
});
@@ -877,26 +1320,51 @@
(function () {
const ribbon = document.querySelector('[data-role="home-chain-ribbon"]');
if (!ribbon) return;
- const labels = ['Solana','Base','Ethereum','BSC','Arbitrum','Avalanche','Celo','Linea','zkSync','Scroll','Optimism','Mode'];
- ribbon.replaceChildren(...labels.map(l => {
- const s = document.createElement('span');
- s.className = 'chain-pill';
- s.textContent = l;
- return s;
- }));
+ const labels = [
+ 'Solana',
+ 'Base',
+ 'Ethereum',
+ 'BSC',
+ 'Arbitrum',
+ 'Avalanche',
+ 'Celo',
+ 'Linea',
+ 'zkSync',
+ 'Scroll',
+ 'Optimism',
+ 'Mode',
+ ];
+ ribbon.replaceChildren(
+ ...labels.map((l) => {
+ const s = document.createElement('span');
+ s.className = 'chain-pill';
+ s.textContent = l;
+ return s;
+ }),
+ );
})();
// Custom cursor
(function () {
const cursor = document.getElementById('cursor');
if (!cursor || window.matchMedia('(hover: none)').matches) return;
- let cx = -100, cy = -100, tx = -100, ty = -100;
- document.addEventListener('mousemove', e => { tx = e.clientX; ty = e.clientY; });
- document.addEventListener('mouseleave', () => { tx = cy = -100; });
+ let cx = -100,
+ cy = -100,
+ tx = -100,
+ ty = -100;
+ document.addEventListener('mousemove', (e) => {
+ tx = e.clientX;
+ ty = e.clientY;
+ });
+ document.addEventListener('mouseleave', () => {
+ tx = cy = -100;
+ });
const hover = 'a,button,[role="button"],.h-av-opt,.h-anim-chip';
- document.querySelectorAll(hover).forEach(el => {
+ document.querySelectorAll(hover).forEach((el) => {
el.addEventListener('mouseenter', () => cursor.classList.add('cursor--hover'));
- el.addEventListener('mouseleave', () => cursor.classList.remove('cursor--hover'));
+ el.addEventListener('mouseleave', () =>
+ cursor.classList.remove('cursor--hover'),
+ );
});
(function loop() {
cx += (tx - cx) * 0.18;
@@ -909,9 +1377,13 @@
// Act 3 — animated trio of ghost avatars (robot, CZ, soldier)
(function () {
const configs = [
- { id: 'act3-avatar-a', src: '/animations/robotexpressive.glb', anim: 'capoeira' },
- { id: 'act3-avatar-b', src: '/avatars/cz.glb', anim: 'rumba' },
- { id: 'act3-avatar-c', src: '/animations/soldier.glb', anim: 'wave' },
+ {
+ id: 'act3-avatar-a',
+ src: '/animations/robotexpressive.glb',
+ anim: 'capoeira',
+ },
+ { id: 'act3-avatar-b', src: '/avatars/cz.glb', anim: 'rumba' },
+ { id: 'act3-avatar-c', src: '/animations/soldier.glb', anim: 'wave' },
];
function whenReady(cb) {
@@ -924,7 +1396,8 @@
const canvas = document.getElementById(id);
if (!canvas) return;
const viewer = new window.Act2Viewer(canvas, { fov: 22 });
- viewer.loadModel(src)
+ viewer
+ .loadModel(src)
.then(() => viewer.playClip(anim).catch(() => {}))
.catch(() => {});
});
@@ -952,7 +1425,8 @@
ctx.fill();
}
for (let i = 0; i < 10; i++) {
- const x = Math.random() * w, y = Math.random() * h;
+ const x = Math.random() * w,
+ y = Math.random() * h;
const g = ctx.createRadialGradient(x, y, 0, x, y, 6 * dpr);
g.addColorStop(0, `rgba(${tint},0.9)`);
g.addColorStop(1, `rgba(${tint},0)`);
diff --git a/src/agent-home-orphans.js b/src/agent-home-orphans.js
index 07cfaea78..89d079eee 100644
--- a/src/agent-home-orphans.js
+++ b/src/agent-home-orphans.js
@@ -87,24 +87,20 @@ function _mountShareButton(mount, identity) {
mount.appendChild(btn);
}
-/** Insert a chip mount span inline after the agent name heading. */
+/** Insert a chip mount in its own row beneath the hero (below the subtitle). */
function _createChipMount() {
+ const subtitle = document.getElementById('page-agent-desc');
const titleEl = document.getElementById('page-agent-name');
- if (!titleEl) {
+ const anchor = subtitle || titleEl;
+ if (!anchor) {
const fallback = document.createElement('div');
document.body.appendChild(fallback);
return fallback;
}
- // Wrap h1 + chip in a flex row so the chip sits inline at 12px gap
- const wrapper = document.createElement('div');
- wrapper.className = 'agent-title-row';
- titleEl.parentNode.insertBefore(wrapper, titleEl);
- wrapper.appendChild(titleEl);
-
const chipMount = document.createElement('div');
chipMount.className = 'agent-deploy-chip-mount';
- wrapper.appendChild(chipMount);
+ anchor.parentNode.insertBefore(chipMount, anchor.nextSibling);
return chipMount;
}
diff --git a/src/agent-solana-wallet.js b/src/agent-solana-wallet.js
index 6624d3950..af1a56a06 100644
--- a/src/agent-solana-wallet.js
+++ b/src/agent-solana-wallet.js
@@ -124,35 +124,37 @@ export async function requestAgentSolanaAirdrop(agentId) {
// ── UI card ─────────────────────────────────────────────────────────────────
const STYLE = `
-.agent-sol-wallet { border: 1px solid #e6e6ea; border-radius: 10px; padding: .85rem 1rem; margin: .85rem 0; font: 13px/1.4 system-ui, sans-serif; background: #fff; }
-.agent-sol-wallet h3 { margin: 0 0 .25rem; font-size: .95rem; font-weight: 600; color: #1a1a1a; }
-.agent-sol-wallet .sub { color: #666; font-size: .78rem; margin: 0 0 .65rem; }
-.agent-sol-wallet .addr { font-family: ui-monospace, monospace; font-size: .8rem; background: #f7f7f8; padding: .4rem .55rem; border-radius: 5px; word-break: break-all; }
+.agent-sol-wallet { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: .85rem 1rem; margin: .85rem 0; font: 13px/1.4 system-ui, sans-serif; background: rgba(255,255,255,0.03); color: #e6e6ea; }
+.agent-sol-wallet h3 { margin: 0 0 .25rem; font-size: .95rem; font-weight: 600; color: #f2f2f5; }
+.agent-sol-wallet .sub { color: rgba(230,230,234,0.6); font-size: .78rem; margin: 0 0 .65rem; }
+.agent-sol-wallet .addr { font-family: ui-monospace, monospace; font-size: .8rem; background: rgba(255,255,255,0.05); color: #e6e6ea; padding: .4rem .55rem; border-radius: 5px; word-break: break-all; border: 1px solid rgba(255,255,255,0.06); }
.agent-sol-wallet .addr .pfx { background: linear-gradient(90deg,#ffd54f,#ff8a65); color: #1a1a1a; padding: 0 2px; border-radius: 2px; font-weight: 600; }
.agent-sol-wallet .row { display: flex; gap: .5rem; align-items: center; margin-top: .65rem; flex-wrap: wrap; }
-.agent-sol-wallet button { font: inherit; padding: .4rem .8rem; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
-.agent-sol-wallet button.primary { background: #111; color: #fff; border-color: #111; }
+.agent-sol-wallet button { font: inherit; padding: .4rem .8rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #e6e6ea; cursor: pointer; }
+.agent-sol-wallet button:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
+.agent-sol-wallet button.primary { background: #f2f2f5; color: #111; border-color: #f2f2f5; }
+.agent-sol-wallet button.primary:hover:not(:disabled) { background: #fff; }
.agent-sol-wallet button:disabled { opacity: .5; cursor: not-allowed; }
-.agent-sol-wallet .progress { font-size: .75rem; color: #555; margin-top: .55rem; font-family: ui-monospace, monospace; }
-.agent-sol-wallet .err { color: #b71c1c; font-size: .75rem; margin-top: .5rem; }
-.agent-sol-wallet .src { font-size: .7rem; color: #888; margin-left: .35rem; }
-.agent-sol-wallet .balance { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .8rem; color: #333; }
+.agent-sol-wallet .progress { font-size: .75rem; color: rgba(230,230,234,0.7); margin-top: .55rem; font-family: ui-monospace, monospace; }
+.agent-sol-wallet .err { color: #ff8a80; font-size: .75rem; margin-top: .5rem; }
+.agent-sol-wallet .src { font-size: .7rem; color: rgba(230,230,234,0.5); margin-left: .35rem; }
+.agent-sol-wallet .balance { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .8rem; color: rgba(230,230,234,0.85); }
.agent-sol-wallet .balance .sol { font-family: ui-monospace, monospace; font-weight: 600; }
.agent-sol-wallet .balance .net { margin-left: auto; font-size: .7rem; }
-.agent-sol-wallet .balance select { font: inherit; font-size: .7rem; padding: .15rem .25rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
-.agent-sol-wallet .skel { color: #999; font-size: .75rem; padding: .35rem 0; }
-.agent-sol-wallet .activity { margin-top: .65rem; border-top: 1px solid #f0f0f0; padding-top: .5rem; }
-.agent-sol-wallet .activity-h { font-size: .72rem; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; display: flex; align-items: center; gap: .35rem; }
+.agent-sol-wallet .balance select { font: inherit; font-size: .7rem; padding: .15rem .25rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; background: rgba(255,255,255,0.04); color: #e6e6ea; }
+.agent-sol-wallet .skel { color: rgba(230,230,234,0.4); font-size: .75rem; padding: .35rem 0; }
+.agent-sol-wallet .activity { margin-top: .65rem; border-top: 1px solid rgba(255,255,255,0.06); padding-top: .5rem; }
+.agent-sol-wallet .activity-h { font-size: .72rem; color: rgba(230,230,234,0.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; display: flex; align-items: center; gap: .35rem; }
.agent-sol-wallet .activity-h button { padding: .1rem .4rem; font-size: .7rem; line-height: 1; }
-.agent-sol-wallet .activity-row { display: flex; align-items: center; gap: .5rem; font-size: .75rem; padding: .25rem 0; border-bottom: 1px dashed #eee; }
+.agent-sol-wallet .activity-row { display: flex; align-items: center; gap: .5rem; font-size: .75rem; padding: .25rem 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.agent-sol-wallet .activity-row:last-child { border-bottom: none; }
-.agent-sol-wallet .activity-row .sig { font-family: ui-monospace, monospace; color: #555; }
+.agent-sol-wallet .activity-row .sig { font-family: ui-monospace, monospace; color: rgba(230,230,234,0.7); }
.agent-sol-wallet .activity-row .delta { font-family: ui-monospace, monospace; margin-left: auto; }
-.agent-sol-wallet .activity-row .delta.pos { color: #1b5e20; }
-.agent-sol-wallet .activity-row .delta.neg { color: #c62828; }
-.agent-sol-wallet .activity-row .ts { color: #999; font-size: .7rem; }
-.agent-sol-wallet .activity-empty { color: #aaa; font-size: .75rem; padding: .35rem 0; }
-.agent-sol-wallet .badge-airdrop { background: #e7f5e9; color: #1b5e20; padding: .1rem .45rem; border-radius: 999px; font-size: .65rem; font-weight: 600; margin-left: .35rem; }
+.agent-sol-wallet .activity-row .delta.pos { color: #81c784; }
+.agent-sol-wallet .activity-row .delta.neg { color: #ff8a80; }
+.agent-sol-wallet .activity-row .ts { color: rgba(230,230,234,0.4); font-size: .7rem; }
+.agent-sol-wallet .activity-empty { color: rgba(230,230,234,0.4); font-size: .75rem; padding: .35rem 0; }
+.agent-sol-wallet .badge-airdrop { background: rgba(129,199,132,0.15); color: #81c784; padding: .1rem .45rem; border-radius: 999px; font-size: .65rem; font-weight: 600; margin-left: .35rem; }
`;
let _styleInjected = false;
diff --git a/src/erc8004/deploy-button.css b/src/erc8004/deploy-button.css
index 5a3a899b7..7b3106dda 100644
--- a/src/erc8004/deploy-button.css
+++ b/src/erc8004/deploy-button.css
@@ -173,18 +173,30 @@
.deploy-error {
display: inline-flex;
align-items: center;
- gap: 0.6em;
- padding: 0.4em 0.75em;
- border: 1.5px solid #7a2a2a;
- border-radius: 6px;
- background: #2e0f0f;
- font-size: 0.8rem;
- color: #f87171;
- max-width: 400px;
+ gap: 0.55em;
+ padding: 0.32em 0.32em 0.32em 0.75em;
+ border: 1px solid rgba(248, 113, 113, 0.28);
+ border-radius: 999px;
+ background: rgba(127, 29, 29, 0.18);
+ font-size: 0.72rem;
+ color: rgba(252, 165, 165, 0.95);
+ max-width: 100%;
+ line-height: 1.4;
+}
+
+.deploy-error::before {
+ content: '';
+ flex-shrink: 0;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: #f87171;
+ box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}
.deploy-error-msg {
flex: 1;
+ min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -192,18 +204,24 @@
.deploy-action-btn {
flex-shrink: 0;
- padding: 0.25em 0.7em;
- border: 1px solid #f87171;
- border-radius: 4px;
- background: transparent;
- color: #f87171;
- font-size: 0.8rem;
+ padding: 0.18em 0.65em;
+ border: 1px solid rgba(248, 113, 113, 0.35);
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.02);
+ color: rgba(252, 165, 165, 0.95);
+ font-size: 0.7rem;
+ font-family: inherit;
cursor: pointer;
- transition: background 0.15s;
+ transition:
+ background 0.15s,
+ border-color 0.15s,
+ color 0.15s;
}
.deploy-action-btn:hover {
- background: #f8717122;
+ background: rgba(248, 113, 113, 0.12);
+ border-color: rgba(248, 113, 113, 0.6);
+ color: #fecaca;
}
/* ── Tooltip ─────────────────────────────────────────────────────────────── */