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: add Markets page with live crypto prices and detailed coin profiles

qrqk4fbab92f15cb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac63ac343..b3e52893f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,10 +6,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-07-04
+- **Markets — Live Crypto Prices** (`/coins`) — Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.
- **3D avatars load about 4x faster - and reliably everywhere** — Seven of the heaviest built-in avatars were compressed from a combined 42 MB down to under 10 MB (76% smaller), so avatar pickers, NPC scenes, and the walk companion appear much sooner - especially on slower connections. Along the way we fixed a loading bug: a few pages, including the live agent-to-agent trade demo, could silently show placeholder capsule figures instead of the real 3D avatars. Every 3D surface on the site now decodes compressed avatars correctly. `[improvement, fix]`
- **A little Fourth of July on the homepage** — Visit the homepage this week and you'll catch some quiet Independence Day touches: a thin red-white-and-blue line across the top of the page and the occasional tiny firework sparkling in the hero. Nothing loud — it keeps the site clean, respects reduced-motion settings, works in both light and dark themes, and retires itself automatically after July 5. (`/`) `[improvement]`
- **Deploys restored — the platform ships again, and builds are 4× lighter** — three.ws was briefly unreachable while production moved to new infrastructure: every deploy was timing out at the build platform's 45-minute ceiling. The root cause is fixed — a monitoring SDK was being baked into every one of the platform's ~800 API functions, inflating the deploy payload to 2.3 GB; it now loads only where it is actually enabled, cutting that to 540 MB. Two smaller deploy blockers found along the way (a build-order race and two missing packages) are fixed too. The site is back, deploys complete with time to spare, and nothing about how you use the platform changes. `[infra, fix]`
- **Four gestures return to the walk companion — nod, shrug, jog, celebrate** — The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in. (`/walk`) `[fix]`
+- **Global markets — live prices and a rich detail page for every coin** — three.ws now covers the whole market, not just pump.fun launches. The new Markets page shows global market cap, dominance, the Fear & Greed index, and the top coins with live prices, 24h/7d moves, and 7-day sparklines — sortable, searchable, and paginated. Click any coin (or visit /coin/<id> directly) for a rich profile: interactive price chart across five time ranges, full market stats including all-time high and low, related news from live sources, a plain-language about section, official links, and contract addresses. Solana coins cross-link straight into Alpha Copilot and the live trade feed. (`/coins`) `[feature]`
- **The agent economy now runs from a single always-on heartbeat** — The live agent-to-agent economy - ring settlements, x402 micropayments, the Money Pulse feed, and the Labor Market - used to stall for hours at a time because it depended on schedulers that were silently not firing. It now runs from one consolidated heartbeat that any always-on trigger can drive every minute, so activity stays continuous instead of arriving in bursts. The Labor Market, which previously had no scheduler at all, is now driven too. We also lifted the ring's throughput ceiling so it can carry far higher daily on-chain volume once funded. `[improvement, infra]`
- **The whole agent economy now ticks every minute** — The minute heartbeat that drives the agent-to-agent economy was itself never being scheduled - it sat past the platform's scheduled-job limit, so the economy only moved when a deploy happened to nudge it. It's now pinned to run every minute, and it drives the full economy in one pass: agent tips and payouts, x402 payments, autonomous coin launches on pump.fun, copy/signal/strategy and DCA trading, subscriptions and royalties, $THREE buybacks, and treasury funding and reconciliation. Each engine self-paces to its own cadence, so nothing over-fires - but nothing sits idle waiting for a scheduler that never comes. The result: continuous activity instead of dead stretches. `[improvement, infra]`
diff --git a/public/changelog.json b/public/changelog.json
index 9eacb921e..cbcc9a3f1 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,21 @@
{
- "generated_at": "2026-07-04T04:57:04.706Z",
+ "generated_at": "2026-07-04T05:07:28.444Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-07-04",
+ "type": "launch",
+ "title": "Markets — Live Crypto Prices",
+ "summary": "Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.",
+ "link": "/coins",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-07-04",
"type": "update",
@@ -48,6 +58,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-04",
+ "type": "update",
+ "title": "Global markets — live prices and a rich detail page for every coin",
+ "summary": "three.ws now covers the whole market, not just pump.fun launches. The new Markets page shows global market cap, dominance, the Fear & Greed index, and the top coins with live prices, 24h/7d moves, and 7-day sparklines — sortable, searchable, and paginated. Click any coin (or visit /coin/<id> directly) for a rich profile: interactive price chart across five time ranges, full market stats including all-time high and low, related news from live sources, a plain-language about section, official links, and contract addresses. Solana coins cross-link straight into Alpha Copilot and the live trade feed.",
+ "link": "/coins",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-04",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index adf6aa7a7..5993b4291 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Markets — Live Crypto Prices</title>
+ <link>https://three.ws/coins</link>
+ <guid isPermaLink="false">2026-07-04:Markets — Live Crypto Prices</guid>
+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>Live global cryptocurrency market data: total market cap, dominance, Fear &amp; Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.</description>
+ </item>
<item>
<title>3D avatars load about 4x faster - and reliably everywhere</title>
<link>https://three.ws/changelog</link>
@@ -38,6 +46,14 @@
<category>fix</category>
<description>The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in.</description>
</item>
+ <item>
+ <title>Global markets — live prices and a rich detail page for every coin</title>
+ <link>https://three.ws/coins</link>
+ <guid isPermaLink="false">2026-07-04:Global markets — live prices and a rich detail page for every coin</guid>
+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>three.ws now covers the whole market, not just pump.fun launches. The new Markets page shows global market cap, dominance, the Fear &amp; Greed index, and the top coins with live prices, 24h/7d moves, and 7-day sparklines — sortable, searchable, and paginated. Click any coin (or visit /coin/&lt;id&gt; directly) for a rich profile: interactive price chart across five time ranges, full market stats including all-time high and low, related news from live sources, a plain-language about section, official links, and contract addresses. Solana coins cross-link straight into Alpha Copilot and the live trade feed.</description>
+ </item>
<item>
<title>The agent economy now runs from a single always-on heartbeat</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 920e959db..416790c0b 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-04T04:57:04.683Z",
+ "generated_at": "2026-07-04T05:07:28.419Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -1356,6 +1356,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/coins",
+ "title": "Markets — Live Crypto Prices",
+ "description": "Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.",
+ "added": "2026-07-04",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/constellation",
"title": "watsonx Constellation",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index a1ce5aade..0fe03eadb 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -825,6 +825,12 @@ URL: https://three.ws/coin-intel
Every pump.fun launch watched and classified in real time — organic vs bundle, the wallets behind it, a transparent quality score, and a model that learns which signals predict winners.
+### Markets — Live Crypto Prices
+
+URL: https://three.ws/coins
+
+Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.
+
### watsonx Constellation
URL: https://three.ws/constellation
diff --git a/public/llms.txt b/public/llms.txt
index 0364ac7c0..9ef57b6b6 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -153,6 +153,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [ETH Vanity (CREATE2)](https://three.ws/eth-vanity): Grind a vanity smart-contract address using the ThreeWSFactory CREATE2 deployer on BSC.
- [Pump Visualizer](https://three.ws/pump-visualizer): 3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene.
- [Coin Intelligence](https://three.ws/coin-intel): Every pump.fun launch watched and classified in real time — organic vs bundle, the wallets behind it, a transparent quality score, and a model that learns which signals predict winners.
+- [Markets — Live Crypto Prices](https://three.ws/coins): Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.
- [watsonx Constellation](https://three.ws/constellation): Live Solana tokens in a 3D galaxy, positioned in semantic space by IBM Granite embeddings on watsonx.ai. Click a star for a live IBM Granite analysis.
- [x402 Bazaar](https://three.ws/bazaar): Search and browse the x402 facilitator catalog. Filter by network, price, and extensions. Pay any service in one click.
- [x402 Live Demo (IBM × three.ws)](https://three.ws/ibm/x402-demo): A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index b3b08a10a..8db8322b1 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 375 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 376 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 375 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 376 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -697,7 +697,7 @@
<section class="sm-section" id="crypto">
<header>
- <h2>Crypto<span class="sm-count" data-count>79</span></h2>
+ <h2>Crypto<span class="sm-count" data-count>80</span></h2>
<p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p>
</header>
<ul class="sm-list">
@@ -1051,6 +1051,13 @@
<span class="sm-desc">Every pump.fun launch watched and classified in real time — organic vs bundle, the wallets behind it, a transparent quality score, and a model that learns which signals predict winners.</span>
</a>
</li>
+ <li>
+ <a href="/coins">
+ <span class="sm-title">Markets — Live Crypto Prices</span>
+ <span class="sm-path">/coins</span>
+ <span class="sm-desc">Live global cryptocurrency market data: total market cap, dominance, Fear &amp; Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.</span>
+ </a>
+ </li>
<li>
<a href="/constellation">
<span class="sm-title">watsonx Constellation</span>
diff --git a/src/shared/coin-format.js b/src/shared/coin-format.js
index e9bfdf335..ab4397f58 100644
--- a/src/shared/coin-format.js
+++ b/src/shared/coin-format.js
@@ -60,7 +60,8 @@ export function formatChartTick(ts, days) {
if (Number.isNaN(d.getTime())) return '';
if (days <= 1) return d.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
if (days <= 90) return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
- return d.toLocaleDateString('en-US', { month: 'short', year: '2-digit' });
+ // "Mar '26", not "Mar 26" — a bare 2-digit year reads as a day of month.
+ return `${d.toLocaleDateString('en-US', { month: 'short' })} '${String(d.getFullYear() % 100).padStart(2, '0')}`;
}
/** Relative age: "3m ago", "2h ago", "5d ago". Falls back to a short date past 14 days. */
diff --git a/tests/coin-format.test.js b/tests/coin-format.test.js
new file mode 100644
index 000000000..6938d1202
--- /dev/null
+++ b/tests/coin-format.test.js
@@ -0,0 +1,130 @@
+// Pure display formatters behind the global coin pages (/coins, /coin/:id).
+// These render every number on both surfaces — a wrong branch here shows a
+// wrong price to every visitor, so the edges (nulls, zero, sub-cent prices,
+// unit boundaries) are pinned.
+
+import { describe, expect, it } from 'vitest';
+import {
+ formatUsd,
+ formatPrice,
+ formatPercent,
+ formatSupply,
+ formatDateShort,
+ formatChartTick,
+ timeAgo,
+ escapeHtml,
+ downsample,
+} from '../src/shared/coin-format.js';
+
+describe('formatUsd', () => {
+ it('returns an em dash for missing input', () => {
+ expect(formatUsd(null)).toBe('—');
+ expect(formatUsd(undefined)).toBe('—');
+ expect(formatUsd(NaN)).toBe('—');
+ });
+ it('scales through K / M / B / T at the unit boundaries', () => {
+ expect(formatUsd(999.994)).toBe('$999.99');
+ expect(formatUsd(1_000)).toBe('$1.00K');
+ expect(formatUsd(1_500_000)).toBe('$1.50M');
+ expect(formatUsd(2_340_000_000)).toBe('$2.34B');
+ expect(formatUsd(1.23e12)).toBe('$1.23T');
+ });
+ it('keeps the sign on negative amounts', () => {
+ expect(formatUsd(-1_500_000)).toBe('-$1.50M');
+ });
+});
+
+describe('formatPrice', () => {
+ it('handles missing and zero', () => {
+ expect(formatPrice(null)).toBe('—');
+ expect(formatPrice(0)).toBe('$0.00');
+ });
+ it('uses locale grouping with 2 decimals at $1+', () => {
+ expect(formatPrice(67123.456)).toBe('$67,123.46');
+ expect(formatPrice(1)).toBe('$1.00');
+ });
+ it('uses 4 significant figures below $1', () => {
+ expect(formatPrice(0.123456)).toBe('$0.1235');
+ expect(formatPrice(0.00012345)).toBe('$0.0001234');
+ });
+ it('never emits exponent notation for micro-cap prices', () => {
+ const s = formatPrice(0.000000123);
+ expect(s).not.toMatch(/e/i);
+ expect(s.startsWith('$0.000000123')).toBe(true);
+ });
+});
+
+describe('formatPercent', () => {
+ it('signs both directions and dashes missing input', () => {
+ expect(formatPercent(4.2)).toBe('+4.20%');
+ expect(formatPercent(-1.314)).toBe('-1.31%');
+ expect(formatPercent(0)).toBe('+0.00%');
+ expect(formatPercent(null)).toBe('—');
+ });
+});
+
+describe('formatSupply', () => {
+ it('scales without a currency prefix', () => {
+ expect(formatSupply(19_710_000)).toBe('19.71M');
+ expect(formatSupply(120_450_000_000)).toBe('120.45B');
+ expect(formatSupply(1.5e12)).toBe('1.50T');
+ expect(formatSupply(42)).toBe('42');
+ expect(formatSupply(null)).toBe('—');
+ });
+});
+
+describe('formatDateShort', () => {
+ it('formats ISO dates and dashes garbage', () => {
+ expect(formatDateShort('2024-03-14T00:00:00Z')).toBe('Mar 14, 2024');
+ expect(formatDateShort('not-a-date')).toBe('—');
+ expect(formatDateShort(null)).toBe('—');
+ });
+});
+
+describe('formatChartTick', () => {
+ const ts = Date.UTC(2026, 2, 14, 15, 30); // Mar 14 2026 15:30 UTC
+ it('picks granularity by window size', () => {
+ expect(formatChartTick(ts, 1)).toMatch(/\d{1,2}:\d{2}/);
+ expect(formatChartTick(ts, 30)).toMatch(/Mar \d{1,2}/);
+ expect(formatChartTick(ts, 365)).toMatch(/Mar '26/);
+ });
+});
+
+describe('timeAgo', () => {
+ const now = Date.UTC(2026, 6, 4, 12, 0, 0);
+ it('buckets by age', () => {
+ expect(timeAgo(new Date(now - 30_000).toISOString(), now)).toBe('just now');
+ expect(timeAgo(new Date(now - 5 * 60_000).toISOString(), now)).toBe('5m ago');
+ expect(timeAgo(new Date(now - 3 * 3_600_000).toISOString(), now)).toBe('3h ago');
+ expect(timeAgo(new Date(now - 2 * 86_400_000).toISOString(), now)).toBe('2d ago');
+ });
+ it('falls back to a date past 14 days and empties on garbage', () => {
+ expect(timeAgo(new Date(now - 30 * 86_400_000).toISOString(), now)).toMatch(/\w{3} \d{1,2}, \d{4}/);
+ expect(timeAgo('nope', now)).toBe('');
+ expect(timeAgo(null, now)).toBe('');
+ });
+});
+
+describe('escapeHtml', () => {
+ it('escapes the five HTML-special characters', () => {
+ expect(escapeHtml(`<img src="x" onerror='y'>&`)).toBe(
+ '&lt;img src=&quot;x&quot; onerror=&#39;y&#39;&gt;&amp;',
+ );
+ expect(escapeHtml(null)).toBe('');
+ });
+});
+
+describe('downsample', () => {
+ it('passes short series through untouched', () => {
+ const s = [1, 2, 3];
+ expect(downsample(s, 10)).toBe(s);
+ expect(downsample(null, 10)).toEqual([]);
+ });
+ it('caps length and always keeps first and last points', () => {
+ const s = Array.from({ length: 168 }, (_, i) => i);
+ const out = downsample(s, 32);
+ expect(out).toHaveLength(32);
+ expect(out[0]).toBe(0);
+ expect(out[31]).toBe(167);
+ });
+});