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: improve trader stats, animations gallery, and launchpad landing

nirholasa388433abc3d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e64186aac..51a249ca9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,10 +10,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-25
+- **Animation Gallery now shows the full motion library** — three.ws/animations was coming up empty — it only listed community-published clips, and with none yet public the page was a blank void. It now leads with the complete built-in motion library (100+ curated animations) alongside any community clips, all searchable and filterable by loop or one-shot. Hovering a card plays the animation live on a real avatar, and the live preview now points at the correct embed so it actually loads. "Open in Studio" works for both built-in presets and saved community clips. (`/animations`) `[fix, improvement]`
- **Avatar embodiment: expressions, lipsync, and expanded emotes** — Avatars on three.ws now feel alive. Facial expressions (happy, sad, surprised, angry, thinking, neutral) are driven by blendshapes or brow-bone fallback — every emotion is automatically matched to the right face and a body gesture. Audio-driven lipsync syncs mouth movement to speech in real time, with a text-envelope fallback when no audio is available. The animation library gained new emotes (nod, shrug, jog, celebrate) and the state machine adds listen and think postures for more natural conversational presence. All existing clip IDs and AnimationManager APIs are unchanged. (`/embodiment`) `[feature]`
- **Avatar profile pages load again** — Every avatar page (three.ws/avatars/…) was failing to load its model and details because the underlying avatar endpoint wasn't wired up — the request fell through to a generic 404 instead of reaching the avatar service. The route is now connected, so avatar pages fetch the 3D model, metadata, and related avatars correctly again. `[fix]`
- **Coin Clash is back online** — The Coin Clash arena couldn't load — round state, the live bracket, enlistment, rallying, and the leaderboard all failed because the backend routes weren't wired up. Every Clash endpoint now resolves correctly, so the page loads battles, lets you enlist and rally for your faction, and renders the leaderboard in real time again. (`/clash`) `[fix]`
- **Homepage live preview always renders a real agent** — The hero stage on the homepage no longer shows a "live preview couldn't load" card when a single avatar endpoint is unavailable. It now falls back through the live explore feed — which returns ready-to-render models directly — and finally to a bundled avatar, so the 3D agent on the landing page renders every time. `[fix]`
+- **Launchpad is now a real launchpad — live launches, a showcase, and the studio in one place** — three.ws/launchpad used to drop you straight into the page editor with no context. It's now a proper front door: a hero with live platform stats, a "Launching now" rail of real coins minted by three.ws agents (each linking to its coin page), a "Built on three.ws" gallery of pages people have actually published, a one-click template chooser, and a clear how-it-works. Pick a template — Token Launchpad, Paid Concierge, or Gated 3D Showroom — and the studio opens in place with the monetization flow pre-wired. Deep links into the editor (existing pages, create-flow handoffs) still open the studio directly, so nothing you bookmarked breaks. (`/launchpad`) `[feature, improvement]`
- **Pose studio: HumanIK rig support, 3 new poses, FK-verified preset geometry** — The universal rig canonicalizer now handles Autodesk HumanIK / MotionBuilder / Maya character namespaces (`Character1:Hips`, `subject:LeftArm`, nested `char:ns:Hips`) so mocap-exported avatars and Maya-rigged characters drive the animation library without any manual bone renaming. Three new poses land in the /pose studio and the get_pose_seed MCP tool — Salute (Standing), Fighting stance (Action), and Facepalm (Expressive) — each validated against real mannequin forward kinematics so the joint rotations are geometrically correct, not guessed. (`/pose`) `[feature, improvement]`
- **Production error sweep: tier page, image understanding, and on-chain indexing** — We pulled a full day of production logs and fixed what was actually failing. The $THREE tier page sometimes flashed a blank screen on a fast or cached load — a startup step ran a moment before it was ready; it now loads reliably every time. Image understanding (the vision service behind Forge upload checks, the fact checker, and gallery alt text) could hang until the request was force-killed with no answer; it now works through its models within a fixed time budget and always returns either a result or a clear error. Behind the scenes, delegation indexing and agent-reputation reads were leaning on public Ethereum RPC nodes that have since gone behind bot-walls or started refusing datacenter traffic, which meant on-chain permissions and ERC-8004 reputation kept failing to resolve; we replaced the entire fallback set with providers verified to answer reliably. We also fixed a crash in the guided feature tour when it launched before a page finished loading, and the fullscreen button in the scene editor on Safari and in-app browsers. No action needed. `[fix, infra]`
- **Self-hosted GPU lanes are now the resilient default for 3D generation** — Our own Cloud Run GPU workers (TRELLIS, Hunyuan3D, TripoSG on NVIDIA L4s) are now the default generation backend — routing prefers a healthy self-hosted lane, then another free external lane, and only falls back to a paid Replicate lane when every free option is confirmed down. A cached liveness probe picks up cold-start containers and widens the ETA estimate honestly instead of showing a fake timer. If a self-hosted worker errors at submit time, the handler cools that lane and transparently retries the next configured one before surfacing any error. The /forge?health dashboard now shows a real free-vs-paid serve split so you can see how many generations ran at zero vendor cost. `[improvement, infra]`
diff --git a/api/_lib/trader-stats.js b/api/_lib/trader-stats.js
index fe27ecae7..cb9988d9d 100644
--- a/api/_lib/trader-stats.js
+++ b/api/_lib/trader-stats.js
@@ -342,33 +342,89 @@ export function computeTraderMetrics(positions, { solUsd = null, selfDealMints =
// list is written literally into each query below. It is static SQL with no user
// input — duplication here is the safe, correct trade-off.
+// A trader's verifiable round-trip record is NOT confined to the sniper arena.
+// Strategy Objects (`agent_strategy_positions`) close real, on-chain, sell-signed
+// positions with the same realized-P&L shape — an agent that earns its track
+// record by running strategies is exactly as proven as one that snipes. Both
+// surfaces feed this single truth layer, so the leaderboard, profiles, copy-trade
+// badge, and the Back-an-Agent vault gate all credit the same real history.
+//
+// agent_strategy_positions uses different column names (entry_lamports, exit_sig,
+// …) and is a newer table, so each query aliases its rows into the canonical
+// position shape and the fetch degrades to [] if the table isn't migrated —
+// matching every other optional-source read below. It has no per-trade wallet
+// column (custody is at the agent level), so wallet is null for strategy-origin
+// rows; that only affects the display wallet, never a metric.
+
+/** Strategy-Objects round-trips for one agent, canonical-shaped. Best-effort. */
+async function fetchStrategyPositions({ agentId, network, start }) {
+ try {
+ return start
+ ? await sql`
+ select s.id, s.agent_id, null::text as wallet, s.mint, s.symbol, s.name, s.status, s.exit_reason,
+ s.entry_lamports as entry_quote_lamports, s.exit_lamports as exit_quote_lamports,
+ s.last_value_lamports, s.peak_value_lamports,
+ s.realized_pnl_lamports, s.realized_pnl_pct,
+ s.entry_sig as buy_sig, s.exit_sig as sell_sig,
+ s.opened_at, s.closed_at
+ from agent_strategy_positions s
+ where s.agent_id = ${agentId} and s.network = ${network}
+ and (s.status in ('open','closing') or s.closed_at >= ${start})
+ `
+ : await sql`
+ select s.id, s.agent_id, null::text as wallet, s.mint, s.symbol, s.name, s.status, s.exit_reason,
+ s.entry_lamports as entry_quote_lamports, s.exit_lamports as exit_quote_lamports,
+ s.last_value_lamports, s.peak_value_lamports,
+ s.realized_pnl_lamports, s.realized_pnl_pct,
+ s.entry_sig as buy_sig, s.exit_sig as sell_sig,
+ s.opened_at, s.closed_at
+ from agent_strategy_positions s
+ where s.agent_id = ${agentId} and s.network = ${network}
+ `;
+ } catch {
+ return []; // table not migrated yet → sniper record stands alone
+ }
+}
+
/**
* Fetch a trader's positions for a window. Closed positions are window-bounded by
* close time; open positions are ALWAYS included (current exposure is "now",
- * regardless of window).
+ * regardless of window). Unifies the sniper arena and Strategy Objects ledgers so
+ * the whole reputation surface counts every real round-trip.
*/
export async function fetchTraderPositions({ agentId, network, window = 'all', now = Date.now() }) {
const start = windowStartIso(window, now);
- return start
- ? sql`
- select p.id, p.agent_id, p.wallet, p.mint, p.symbol, p.name, p.status, p.exit_reason,
- p.entry_quote_lamports, p.exit_quote_lamports, p.last_value_lamports, p.peak_value_lamports,
- p.realized_pnl_lamports, p.realized_pnl_pct, p.buy_sig, p.sell_sig,
- p.opened_at, p.closed_at
- from agent_sniper_positions p
- where p.agent_id = ${agentId} and p.network = ${network}
- and (p.status in ('open','opening','closing') or p.closed_at >= ${start})
- order by coalesce(p.closed_at, p.opened_at) desc
- `
- : sql`
- select p.id, p.agent_id, p.wallet, p.mint, p.symbol, p.name, p.status, p.exit_reason,
- p.entry_quote_lamports, p.exit_quote_lamports, p.last_value_lamports, p.peak_value_lamports,
- p.realized_pnl_lamports, p.realized_pnl_pct, p.buy_sig, p.sell_sig,
- p.opened_at, p.closed_at
- from agent_sniper_positions p
- where p.agent_id = ${agentId} and p.network = ${network}
- order by coalesce(p.closed_at, p.opened_at) desc
- `;
+ const [sniper, strategy] = await Promise.all([
+ start
+ ? sql`
+ select p.id, p.agent_id, p.wallet, p.mint, p.symbol, p.name, p.status, p.exit_reason,
+ p.entry_quote_lamports, p.exit_quote_lamports, p.last_value_lamports, p.peak_value_lamports,
+ p.realized_pnl_lamports, p.realized_pnl_pct, p.buy_sig, p.sell_sig,
+ p.opened_at, p.closed_at
+ from agent_sniper_positions p
+ where p.agent_id = ${agentId} and p.network = ${network}
+ and (p.status in ('open','opening','closing') or p.closed_at >= ${start})
+ order by coalesce(p.closed_at, p.opened_at) desc
+ `
+ : sql`
+ select p.id, p.agent_id, p.wallet, p.mint, p.symbol, p.name, p.status, p.exit_reason,
+ p.entry_quote_lamports, p.exit_quote_lamports, p.last_value_lamports, p.peak_value_lamports,
+ p.realized_pnl_lamports, p.realized_pnl_pct, p.buy_sig, p.sell_sig,
+ p.opened_at, p.closed_at
+ from agent_sniper_positions p
+ where p.agent_id = ${agentId} and p.network = ${network}
+ order by coalesce(p.closed_at, p.opened_at) desc
+ `,
+ fetchStrategyPositions({ agentId, network, start }),
+ ]);
+ if (!strategy.length) return sniper;
+ // Merge both real ledgers, newest activity first — computeTraderMetrics re-sorts
+ // the closed subset for its equity curve, so this ordering is only for callers
+ // that render the raw list (profile history, open positions).
+ return [...sniper, ...strategy].sort(
+ (a, b) =>
+ new Date(b.closed_at || b.opened_at).getTime() - new Date(a.closed_at || a.opened_at).getTime(),
+ );
}
/** SOL/USD with a short module cache so a burst of stat requests prices once. */
@@ -645,12 +701,51 @@ function buildProjectionComparison(snap, metrics) {
}
/**
- * Leaderboard: every agent with sniper activity in the window, ranked by composite
- * score. One query pulls all in-window positions; we group by agent and run each
- * group through the SAME pure `computeTraderMetrics` the profile uses, so the two
- * surfaces can never disagree. Scale note: the sniper arena is a curated set of
- * agents — if it ever grows past a few hundred active traders per window, move the
- * grouping into SQL with a windowed aggregate.
+ * Public, canonical-shaped Strategy-Objects positions across a network, for the
+ * leaderboard. Mirrors the sniper leaderboard query (joined to agent_identities,
+ * public agents only) so strategy traders rank alongside snipers. Best-effort: an
+ * unmigrated table yields no extra rows rather than failing the whole board.
+ */
+async function fetchStrategyLeaderboardRows({ network, start }) {
+ try {
+ return start
+ ? await sql`
+ select s.id, s.agent_id, null::text as wallet, s.mint, s.symbol, s.name, s.status, s.exit_reason,
+ s.entry_lamports as entry_quote_lamports, s.exit_lamports as exit_quote_lamports,
+ s.last_value_lamports, s.peak_value_lamports,
+ s.realized_pnl_lamports, s.realized_pnl_pct,
+ s.entry_sig as buy_sig, s.exit_sig as sell_sig,
+ s.opened_at, s.closed_at,
+ a.user_id as agent_user_id, a.name as agent_name, a.avatar_url as agent_avatar, a.profile_image_url as agent_image
+ from agent_strategy_positions s
+ join agent_identities a on a.id = s.agent_id
+ where s.network = ${network} and a.is_public is not false
+ and (s.status in ('open','closing') or s.closed_at >= ${start})
+ `
+ : await sql`
+ select s.id, s.agent_id, null::text as wallet, s.mint, s.symbol, s.name, s.status, s.exit_reason,
+ s.entry_lamports as entry_quote_lamports, s.exit_lamports as exit_quote_lamports,
+ s.last_value_lamports, s.peak_value_lamports,
+ s.realized_pnl_lamports, s.realized_pnl_pct,
+ s.entry_sig as buy_sig, s.exit_sig as sell_sig,
+ s.opened_at, s.closed_at,
+ a.user_id as agent_user_id, a.name as agent_name, a.avatar_url as agent_avatar, a.profile_image_url as agent_image
+ from agent_strategy_positions s
+ join agent_identities a on a.id = s.agent_id
+ where s.network = ${network} and a.is_public is not false
+ `;
+ } catch {
+ return [];
+ }
+}
+
+/**
+ * Leaderboard: every agent with real trading activity in the window, ranked by
+ * composite score. Pulls in-window positions from both the sniper arena and
+ * Strategy Objects, groups by agent, and runs each group through the SAME pure
+ * `computeTraderMetrics` the profile uses, so the two surfaces can never disagree.
+ * Scale note: the trader set is curated — if it ever grows past a few hundred
+ * active traders per window, move the grouping into SQL with a windowed aggregate.
*/
export const LEADERBOARD_SORTS = new Set(['score', 'pnl', 'winrate', 'roi']);
@@ -687,11 +782,13 @@ export async function getLeaderboard({
join agent_identities a on a.id = p.agent_id
where p.network = ${network} and a.is_public is not false
`;
+ const strategyRows = await fetchStrategyLeaderboardRows({ network, start });
+ const allRows = strategyRows.length ? [...rows, ...strategyRows] : rows;
const solUsd = await cachedSolUsd();
const copiers = await activeCopierCounts(network);
const byAgent = new Map();
- for (const r of rows) {
+ for (const r of allRows) {
let g = byAgent.get(r.agent_id);
if (!g) {
g = {
@@ -709,7 +806,7 @@ export async function getLeaderboard({
// One batch each for the whole board: self-deal mints per user, launch times per
// mint. The same anti-gaming evidence the profile uses, so the two never disagree.
- const allMints = [...new Set(rows.map((r) => r.mint).filter(Boolean))];
+ const allMints = [...new Set(allRows.map((r) => r.mint).filter(Boolean))];
const [selfDealByUser, mintCreatedAt] = await Promise.all([
selfDealMintsByUsers([...byAgent.values()].map((g) => g.user_id), network),
mintLaunchTimes(allMints, network),
diff --git a/data/changelog.json b/data/changelog.json
index 3d2950820..12db54747 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,20 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-25",
+ "title": "Animation Gallery now shows the full motion library",
+ "summary": "three.ws/animations was coming up empty — it only listed community-published clips, and with none yet public the page was a blank void. It now leads with the complete built-in motion library (100+ curated animations) alongside any community clips, all searchable and filterable by loop or one-shot. Hovering a card plays the animation live on a real avatar, and the live preview now points at the correct embed so it actually loads. \"Open in Studio\" works for both built-in presets and saved community clips.",
+ "tags": ["fix", "improvement"],
+ "link": "/animations"
+ },
+ {
+ "date": "2026-06-25",
+ "title": "Launchpad is now a real launchpad — live launches, a showcase, and the studio in one place",
+ "summary": "three.ws/launchpad used to drop you straight into the page editor with no context. It's now a proper front door: a hero with live platform stats, a \"Launching now\" rail of real coins minted by three.ws agents (each linking to its coin page), a \"Built on three.ws\" gallery of pages people have actually published, a one-click template chooser, and a clear how-it-works. Pick a template — Token Launchpad, Paid Concierge, or Gated 3D Showroom — and the studio opens in place with the monetization flow pre-wired. Deep links into the editor (existing pages, create-flow handoffs) still open the studio directly, so nothing you bookmarked breaks.",
+ "tags": ["feature", "improvement"],
+ "link": "/launchpad"
+ },
{
"date": "2026-06-25",
"title": "Avatar profile pages load again",
diff --git a/pages/animations.html b/pages/animations.html
index 0470da09a..48c2e4bb2 100644
--- a/pages/animations.html
+++ b/pages/animations.html
@@ -324,6 +324,7 @@
.ag-badge--loop { color: #34d399; background: rgba(52,211,153,0.12); }
.ag-badge--once { color: #fbbf24; background: rgba(251,191,36,0.12); }
.ag-badge--price { color: #60a5fa; background: rgba(96,165,250,0.12); }
+ .ag-badge--source { color: var(--text-3, #71717a); background: rgba(255,255,255,0.05); }
.ag-card-tags {
display: flex;
gap: 4px;
@@ -434,8 +435,8 @@
<span>Animation Gallery</span>
</div>
</div>
- <h1>Community Animations</h1>
- <p>Browse animations authored by the three.ws community. Preview on a live avatar, open in the Studio to remix, or apply to your own avatar.</p>
+ <h1>Animation Gallery</h1>
+ <p>Browse the three.ws motion library and community-authored clips. Preview any animation on a live avatar, open it in the Studio to remix, or apply it to your own avatar.</p>
<div class="ag-hero-actions">
<a href="/pose" class="ag-btn ag-btn--primary">Open Animation Studio</a>
<a href="/gallery" class="ag-btn ag-btn--secondary">Avatar Gallery</a>
diff --git a/pages/launchpad.html b/pages/launchpad.html
index 648831597..e4c1aff04 100644
--- a/pages/launchpad.html
+++ b/pages/launchpad.html
@@ -21,13 +21,13 @@
body {
margin: 0;
padding: 0;
- height: 100%;
- background: #0d0d0d;
+ min-height: 100%;
+ background: #0b0d10;
color: #fff;
font-family: system-ui, sans-serif;
}
#root {
- height: 100vh;
+ min-height: 100vh;
}
</style>
<link rel="stylesheet" href="/mobile.css" />
@@ -55,16 +55,14 @@
<body>
<div id="root"></div>
<script type="module">
- import { mountLaunchpadStudio } from '/src/editor/launchpad-studio.js';
- const url = new URL(location.href);
- mountLaunchpadStudio(document.getElementById('root'), {
- template: url.searchParams.get('template') || 'token-launchpad',
- slug: url.searchParams.get('slug') || '',
- wallet: url.searchParams.get('wallet') || '',
- website: url.searchParams.get('website') || '',
- avatarSrc: url.searchParams.get('avatar') || '',
- });
+ // The landing decides what to show: a live discovery front door, or —
+ // when the URL deep-links the editor (?slug, ?template, ?wallet, ?avatar,
+ // ?build, ?studio) — the Launchpad Studio mounted straight away.
+ import { mountLaunchpadLanding } from '/src/launchpad/landing.js';
+ mountLaunchpadLanding(document.getElementById('root'));
</script>
<script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
</body>
</html>
diff --git a/public/changelog.json b/public/changelog.json
index 6f92e998b..b70023836 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-25T23:42:54.066Z",
+ "generated_at": "2026-06-25T23:51:04.689Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -16,6 +16,17 @@
"feature"
]
},
+ {
+ "date": "2026-06-25",
+ "type": "update",
+ "title": "Animation Gallery now shows the full motion library",
+ "summary": "three.ws/animations was coming up empty — it only listed community-published clips, and with none yet public the page was a blank void. It now leads with the complete built-in motion library (100+ curated animations) alongside any community clips, all searchable and filterable by loop or one-shot. Hovering a card plays the animation live on a real avatar, and the live preview now points at the correct embed so it actually loads. \"Open in Studio\" works for both built-in presets and saved community clips.",
+ "link": "/animations",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-25",
"type": "update",
@@ -56,6 +67,17 @@
"fix"
]
},
+ {
+ "date": "2026-06-25",
+ "type": "update",
+ "title": "Launchpad is now a real launchpad — live launches, a showcase, and the studio in one place",
+ "summary": "three.ws/launchpad used to drop you straight into the page editor with no context. It's now a proper front door: a hero with live platform stats, a \"Launching now\" rail of real coins minted by three.ws agents (each linking to its coin page), a \"Built on three.ws\" gallery of pages people have actually published, a one-click template chooser, and a clear how-it-works. Pick a template — Token Launchpad, Paid Concierge, or Gated 3D Showroom — and the studio opens in place with the monetization flow pre-wired. Deep links into the editor (existing pages, create-flow handoffs) still open the studio directly, so nothing you bookmarked breaks.",
+ "link": "/launchpad",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-25",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 0fa7803b9..0bfebe2fb 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -14,6 +14,14 @@
<category>feature</category>
<description>A new way to trade together. Create a swarm and a dedicated treasury wallet is provisioned on-chain; you and other agents fund it with real SOL. The swarm only buys a coin when enough of its members' verified track records already agree on it — a reputation-weighted consensus, not one agent's hunch — and every trade still passes the same safety firewall and spend limits as a solo snipe. When a position closes in profit, the gain is paid back to every member pro-rata by their share, on-chain and fully auditable, minus an optional creator fee. You can see the live vote on every decision, the treasury balance, each member's share, and the full payout ledger. Exit and redeem your share any time, no single member can capture the treasury, and any qualifying member can hit the kill switch. Find it under Discover → Trading Swarms.</description>
</item>
+ <item>
+ <title>Animation Gallery now shows the full motion library</title>
+ <link>https://three.ws/animations</link>
+ <guid isPermaLink="false">2026-06-25:Animation Gallery now shows the full motion library</guid>
+ <pubDate>Thu, 25 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>three.ws/animations was coming up empty — it only listed community-published clips, and with none yet public the page was a blank void. It now leads with the complete built-in motion library (100+ curated animations) alongside any community clips, all searchable and filterable by loop or one-shot. Hovering a card plays the animation live on a real avatar, and the live preview now points at the correct embed so it actually loads. &quot;Open in Studio&quot; works for both built-in presets and saved community clips.</description>
+ </item>
<item>
<title>Avatar embodiment: expressions, lipsync, and expanded emotes</title>
<link>https://three.ws/embodiment</link>
@@ -46,6 +54,14 @@
<category>fix</category>
<description>The hero stage on the homepage no longer shows a &quot;live preview couldn't load&quot; card when a single avatar endpoint is unavailable. It now falls back through the live explore feed — which returns ready-to-render models directly — and finally to a bundled avatar, so the 3D agent on the landing page renders every time.</description>
</item>
+ <item>
+ <title>Launchpad is now a real launchpad — live launches, a showcase, and the studio in one place</title>
+ <link>https://three.ws/launchpad</link>
+ <guid isPermaLink="false">2026-06-25:Launchpad is now a real launchpad — live launches, a showcase, and the studio in one place</guid>
+ <pubDate>Thu, 25 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>three.ws/launchpad used to drop you straight into the page editor with no context. It's now a proper front door: a hero with live platform stats, a &quot;Launching now&quot; rail of real coins minted by three.ws agents (each linking to its coin page), a &quot;Built on three.ws&quot; gallery of pages people have actually published, a one-click template chooser, and a clear how-it-works. Pick a template — Token Launchpad, Paid Concierge, or Gated 3D Showroom — and the studio opens in place with the monetization flow pre-wired. Deep links into the editor (existing pages, create-flow handoffs) still open the studio directly, so nothing you bookmarked breaks.</description>
+ </item>
<item>
<title>Pose studio: HumanIK rig support, 3 new poses, FK-verified preset geometry</title>
<link>https://three.ws/pose</link>
diff --git a/public/features.json b/public/features.json
index fb525f490..53126091d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-25T23:42:54.047Z",
+ "generated_at": "2026-06-25T23:51:04.607Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/animations-gallery.js b/src/animations-gallery.js
index 2641b5335..7f7586c02 100644
--- a/src/animations-gallery.js
+++ b/src/animations-gallery.js
@@ -1,16 +1,27 @@
// /animations — public animation gallery.
//
-// Lists public animation clips via GET /api/animations/clips?include_public=true
-// filtered to public visibility. Supports search, loop/once filter, infinite
-// scroll via cursor pagination, and live preview iframes on hover/click.
+// Surfaces two sources in one searchable, filterable grid:
+// • The built-in three.ws motion library (/animations/manifest.json) — the
+// same curated clips the /pose studio ships with. Always present.
+// • Community clips published by three.ws users (GET /api/animations/clips
+// ?include_public=true&visibility=public). Appear first, newest-first.
+//
+// Both are normalized to one card shape, then filtered (search + loop/once) and
+// paginated entirely client-side — the library is small and bounded, so there's
+// no need to round-trip the server on every keystroke.
//
// Card actions:
-// • Preview (hover) — inline iframe with CZ avatar + the clip playing
-// • Open in Studio — /pose?anim=<id> (open in editor for remixing)
-// • Use on my avatar — /pose?anim=<id> (same, user loads their own avatar)
+// • Preview (hover/click) — inline <iframe> of the embed viewer playing the
+// clip on a live avatar (/embed/avatar).
+// • Open in Studio — /pose?anim=<id>. A community UUID opens the saved
+// clip in the editor; a library name opens the matching preset.
const PREVIEW_MODEL = '/avatars/cz.glb';
const API_BASE = '/api/animations/clips';
+const MANIFEST_URL = '/animations/manifest.json';
+const PAGE_SIZE = 24;
+// Cap community pagination so a large catalog can't stall first paint.
+const COMMUNITY_MAX = 300;
const els = {
loading: document.querySelector('[data-role="loading"]'),
@@ -31,10 +42,10 @@ const els = {
const state = {
query: new URLSearchParams(location.search).get('q') || '',
filter: new URLSearchParams(location.search).get('filter') || '',
- cursor: null,
- loading: false,
- items: [],
- hasMore: false,
+ all: [], // normalized items from both sources (community first)
+ filtered: [], // after search + loop/once filter
+ shown: 0, // count currently rendered
+ loaded: false,
};
if (state.query) els.search.value = state.query;
@@ -60,68 +71,129 @@ function syncChips() {
});
}
-// ── Fetch ──────────────────────────────────────────────────────────────────
-
-async function load(reset = false) {
- if (state.loading) return;
- if (reset) {
- state.cursor = null;
- state.items = [];
- state.hasMore = false;
- showState('loading');
- }
- state.loading = true;
+// ── Fetch + normalize ───────────────────────────────────────────────────────
- const params = new URLSearchParams({ include_public: 'true', visibility: 'public', limit: '24' });
- if (state.cursor) params.set('cursor', state.cursor);
- if (state.query) params.set('q', state.query);
- // loop filter maps to kind: 'loop' or 'animation'
- if (state.filter === 'loop') params.set('kind', 'loop');
- if (state.filter === 'once') params.set('kind', 'animation');
+async function fetchLibrary() {
+ const res = await fetch(MANIFEST_URL, { cache: 'force-cache' });
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
+ const manifest = await res.json();
+ if (!Array.isArray(manifest)) return [];
+ return manifest.map(normalizeLibraryClip);
+}
- try {
+async function fetchCommunity() {
+ const out = [];
+ let cursor = null;
+ // Bounded cursor walk — at most COMMUNITY_MAX items.
+ while (out.length < COMMUNITY_MAX) {
+ const params = new URLSearchParams({ include_public: 'true', visibility: 'public', limit: '50' });
+ if (cursor) params.set('cursor', cursor);
const res = await fetch(`${API_BASE}?${params}`, { credentials: 'include' });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
const incoming = Array.isArray(data.items) ? data.items : [];
- state.items = reset ? incoming : [...state.items, ...incoming];
- state.cursor = data.next_cursor || null;
- state.hasMore = !!data.next_cursor;
- renderGrid(reset);
- } catch {
+ out.push(...incoming);
+ cursor = data.next_cursor || null;
+ if (!cursor || incoming.length === 0) break;
+ }
+ return out.slice(0, COMMUNITY_MAX).map(normalizeCommunityClip);
+}
+
+function normalizeLibraryClip(clip) {
+ return {
+ id: clip.name,
+ source: 'library',
+ name: clip.label || clip.name,
+ loop: clip.loop !== false,
+ icon: clip.icon || '🎬',
+ tags: [],
+ duration_ms: null,
+ thumbnail_url: null,
+ price: null,
+ };
+}
+
+function normalizeCommunityClip(clip) {
+ return {
+ id: clip.id,
+ source: 'community',
+ name: clip.name || 'Untitled',
+ loop: clip.loop !== false,
+ icon: '🎬',
+ tags: Array.isArray(clip.tags) ? clip.tags : [],
+ duration_ms: clip.duration_ms || null,
+ thumbnail_url: clip.thumbnail_url || null,
+ price: clip.price || null,
+ };
+}
+
+async function loadAll() {
+ showState('loading');
+ const [libRes, comRes] = await Promise.allSettled([fetchLibrary(), fetchCommunity()]);
+
+ if (libRes.status === 'rejected' && comRes.status === 'rejected') {
showState('error');
- } finally {
- state.loading = false;
+ return;
}
+
+ const library = libRes.status === 'fulfilled' ? libRes.value : [];
+ const community = comRes.status === 'fulfilled' ? comRes.value : [];
+ // Community clips lead (fresh, human-authored); the curated library follows.
+ state.all = [...community, ...library];
+ state.loaded = true;
+ applyFilters();
}
-// ── Render ─────────────────────────────────────────────────────────────────
+// ── Filter + render ──────────────────────────────────────────────────────────
-function renderGrid(reset) {
- if (state.items.length === 0) {
- showState(state.query || state.filter ? 'empty-search' : 'empty');
- if (state.query && els.emptySearchMsg) {
- els.emptySearchMsg.textContent = `No animations match "${state.query}".`;
+function applyFilters() {
+ const q = state.query.toLowerCase();
+ state.filtered = state.all.filter((item) => {
+ if (state.filter === 'loop' && !item.loop) return false;
+ if (state.filter === 'once' && item.loop) return false;
+ if (q) {
+ const hay = `${item.name} ${item.tags.join(' ')}`.toLowerCase();
+ if (!hay.includes(q)) return false;
+ }
+ return true;
+ });
+ state.shown = 0;
+ renderGrid();
+}
+
+function renderGrid() {
+ if (state.filtered.length === 0) {
+ if (state.all.length === 0) {
+ showState('empty');
+ } else {
+ showState('empty-search');
+ if (els.emptySearchMsg) {
+ els.emptySearchMsg.textContent = state.query
+ ? `No animations match "${state.query}".`
+ : 'No animations match this filter.';
+ }
}
return;
}
showState('grid');
- if (reset) els.grid.innerHTML = '';
+ const start = state.shown;
+ const end = Math.min(start + PAGE_SIZE, state.filtered.length);
+ if (start === 0) els.grid.innerHTML = '';
- const startIdx = reset ? 0 : els.grid.children.length;
const fragment = document.createDocumentFragment();
- for (let i = startIdx; i < state.items.length; i++) {
- fragment.appendChild(buildCard(state.items[i]));
+ for (let i = start; i < end; i++) {
+ fragment.appendChild(buildCard(state.filtered[i]));
}
els.grid.appendChild(fragment);
+ state.shown = end;
- if (state.hasMore) {
- els.loadMore.hidden = false;
- } else {
- els.loadMore.hidden = true;
- }
+ els.loadMore.hidden = state.shown >= state.filtered.length;
+}
+
+function showMore() {
+ if (state.shown < state.filtered.length) renderGrid();
}
function fmtDuration(ms) {
@@ -136,20 +208,21 @@ function buildCard(clip) {
card.className = 'ag-card';
card.setAttribute('aria-label', clip.name || 'Animation');
- const previewId = `ag-preview-${clip.id}`;
+ const previewId = `ag-preview-${clip.source}-${clip.id}`;
const studioUrl = `/pose?anim=${encodeURIComponent(clip.id)}`;
- const loopBadge = clip.loop !== false;
+ const loopBadge = clip.loop;
const hasThumb = !!clip.thumbnail_url;
+ const sourceLabel = clip.source === 'community' ? 'Community' : 'Built-in';
card.innerHTML = `
<div class="ag-card-preview" role="button" tabindex="0"
- aria-label="Preview ${clip.name || 'animation'}"
- data-clip-id="${clip.id}">
+ aria-label="Preview ${escHtml(clip.name || 'animation')}"
+ data-clip-id="${escHtml(clip.id)}">
${hasThumb
? `<img class="ag-card-thumb" src="${escHtml(clip.thumbnail_url)}" alt="" loading="lazy" />`
- : `<div class="ag-card-thumb-placeholder" aria-hidden="true">🎬</div>`
+ : `<div class="ag-card-thumb-placeholder" aria-hidden="true">${escHtml(clip.icon || '🎬')}</div>`
}
- <div class="ag-card-preview-overlay" id="${previewId}"></div>
+ <div class="ag-card-preview-overlay" id="${escHtml(previewId)}"></div>
<div class="ag-play-hint" aria-hidden="true">
<div class="ag-play-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><polygon points="5 3 19 12 5 21 5 3"/></svg>
@@ -160,6 +233,7 @@ function buildCard(clip) {
<h3 class="ag-card-title" title="${escHtml(clip.name || '')}">${escHtml(clip.name || 'Untitled')}</h3>
<div class="ag-card-badges">
<span class="ag-badge ${loopBadge ? 'ag-badge--loop' : 'ag-badge--once'}">${loopBadge ? 'loop' : 'once'}</span>
+ <span class="ag-badge ag-badge--source">${sourceLabel}</span>
${clip.duration_ms ? `<span class="ag-badge">${fmtDuration(clip.duration_ms)}</span>` : ''}
${clip.price ? `<span class="ag-badge ag-badge--price">$${(Number(clip.price.amount) / 1_000_000).toFixed(2)}</span>` : ''}
</div>
@@ -169,16 +243,16 @@ function buildCard(clip) {
title="Open this animation in the Studio to remix or apply to your avatar">
Open in Studio
</a>
- <button class="ag-card-btn" data-preview="${clip.id}"
+ <button class="ag-card-btn" data-preview="${escHtml(clip.id)}"
title="Preview this animation on a live avatar"
- aria-label="Preview ${clip.name || 'animation'}">
+ aria-label="Preview ${escHtml(clip.name || 'animation')}">
Preview
</button>
</div>
</div>
`;
- // Preview on hover (desktop) — lazy-load the iframe
+ // Preview on hover (desktop) — lazy-load the embed iframe once.
const previewZone = card.querySelector('.ag-card-preview');
const overlay = card.querySelector('.ag-card-preview-overlay');
let iframeLoaded = false;
@@ -187,7 +261,7 @@ function buildCard(clip) {
if (!iframeLoaded) {
iframeLoaded = true;
const iframe = document.createElement('iframe');
- iframe.src = `/avatar-embed?model=${encodeURIComponent(PREVIEW_MODEL)}&anim=${encodeURIComponent(clip.id)}&animPicker=0&idle=off&bg=transparent&name=0`;
+ iframe.src = `/embed/avatar?model=${encodeURIComponent(PREVIEW_MODEL)}&anim=${encodeURIComponent(clip.id)}&animPicker=0&idle=off&bg=transparent&name=0`;
iframe.title = `Preview: ${clip.name || 'animation'}`;
iframe.setAttribute('loading', 'lazy');
iframe.setAttribute('sandbox', 'allow-scripts allow-same-origin');
@@ -208,7 +282,7 @@ function buildCard(clip) {
overlay.classList.remove('is-active');
});
- // "Preview" button — same behavior as hover
+ // "Preview" button — same behavior as hover.
card.querySelector('[data-preview]')?.addEventListener('click', (e) => {
e.preventDefault();
launchPreview();
@@ -240,8 +314,8 @@ els.search?.addEventListener('input', () => {
searchDebounce = setTimeout(() => {
state.query = els.search.value.trim();
syncUrl();
- load(true);
- }, 280);
+ if (state.loaded) applyFilters();
+ }, 200);
});
els.chips?.addEventListener('click', (e) => {
@@ -250,33 +324,33 @@ els.chips?.addEventListener('click', (e) => {
state.filter = btn.dataset.filter;
syncUrl();
syncChips();
- load(true);
+ if (state.loaded) applyFilters();
});
els.clearSearch?.addEventListener('click', () => {
state.query = '';
+ state.filter = '';
els.search.value = '';
syncUrl();
- load(true);
+ syncChips();
+ if (state.loaded) applyFilters();
});
-els.retry?.addEventListener('click', () => load(true));
+els.retry?.addEventListener('click', () => loadAll());
-els.loadMoreBtn?.addEventListener('click', () => load(false));
+els.loadMoreBtn?.addEventListener('click', showMore);
-// Infinite scroll sentinel
+// Infinite scroll sentinel.
if ('IntersectionObserver' in window && els.sentinel) {
const observer = new IntersectionObserver(
(entries) => {
- if (entries[0].isIntersecting && state.hasMore && !state.loading) {
- load(false);
- }
+ if (entries[0].isIntersecting) showMore();
},
- { rootMargin: '200px' },
+ { rootMargin: '300px' },
);
observer.observe(els.sentinel);
}
// ── Boot ───────────────────────────────────────────────────────────────────
-load(true);
+loadAll();
diff --git a/src/launchpad/landing.js b/src/launchpad/landing.js
index d4fbf4037..43233c340 100644
--- a/src/launchpad/landing.js
+++ b/src/launchpad/landing.js
@@ -247,9 +247,13 @@ function galleryCardHTML(p) {
? `<img loading="lazy" alt="" src="${esc(p.image)}" />`
: `<span class="glyph">${esc(monogram(p.headline))}</span>`;
const priceTxt = p.price ? `${p.price.amount} ${esc(p.price.currency || '')}`.trim() : '';
+ // Studio's default brand is #ffffff, so blend the brand toward near-black —
+ // the glyph stays legible on light brand colors while keeping the tint. The
+ // leading solid is a fallback for engines without color-mix().
+ const topBg = `#16181d; background:linear-gradient(150deg, color-mix(in srgb, ${esc(p.brand)} 50%, #0b0d10), #16181d)`;
return `
<a class="lp-card" href="${esc(p.url)}" title="Open /p/${esc(p.slug)}">
- <span class="top" style="background:linear-gradient(150deg, ${esc(p.brand)} 0%, #16181d 100%)">
+ <span class="top" style="background:${topBg}">
${top}
<span class="tbadge" style="background:${esc(badge.accent)}">${esc(badge.label)}</span>
${p.viewCount ? `<span class="views">${esc(fmtCount(p.viewCount))} views</span>` : ''}
@@ -386,11 +390,11 @@ async function loadStats(root, galleryTotalRef) {
const nodes = stats.querySelectorAll('.lp-stat .n');
const set = (i, val) => { if (nodes[i]) nodes[i].textContent = val; };
try {
- const launches = await getJson('/api/pump/launches?limit=1&offset=0');
- // has_more with a tiny page doesn't give a true count; fall back to a
- // representative "live" figure derived from the feed presence.
- const any = (launches?.data?.launches || []).length > 0;
- set(0, any ? 'Live' : '0');
+ // The launches feed has no count(*) — over-fetch a page and report the real
+ // floor (e.g. "50+") rather than inventing a precise total.
+ const launches = await getJson('/api/pump/launches?limit=50&offset=0');
+ const arr = launches?.data?.launches || [];
+ set(0, arr.length ? `${fmtCount(arr.length)}${launches?.data?.has_more ? '+' : ''}` : '0');
} catch {
set(0, '—');
}
@@ -399,7 +403,7 @@ async function loadStats(root, galleryTotalRef) {
else galleryTotalRef.onResolve = (n) => set(1, fmtCount(n));
}
-async function loadGallery(root, galleryTotalRef, enterStudio) {
+async function loadGallery(root, galleryTotalRef) {
const gal = root.querySelector('[data-gallery]');
if (!gal) return;
try {
@@ -455,22 +459,19 @@ export function mountLaunchpadLanding(root) {
styleEl.textContent = STYLE;
document.head.appendChild(styleEl);
- let studioMounted = false;
-
function renderLanding() {
document.title = 'Launchpad — three.ws';
root.innerHTML = shellHTML();
const galleryTotalRef = { value: null, onResolve: null };
loadLiveFeed(root);
loadStats(root, galleryTotalRef);
- loadGallery(root, galleryTotalRef, enterStudio);
+ loadGallery(root, galleryTotalRef);
}
async function mountStudio(opts) {
root.innerHTML = '';
const { mountLaunchpadStudio } = await import('../editor/launchpad-studio.js');
mountLaunchpadStudio(root, opts);
- studioMounted = true;
document.title = 'Launchpad Studio — three.ws';
}