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 global markets page with live prices and detailed coin profiles

qrqk41aa697e79e9
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 0d416231e..71611c33c 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -45,6 +45,7 @@ bottom.
| Economy master audit ledger + breach monitor | ledger [api/_lib/economy-ledger.js](api/_lib/economy-ledger.js) ([schema](api/_lib/migrations/20260702010000_economy_master_ledger.sql)), reconcile cron [api/cron/economy-reconcile.js](api/cron/economy-reconcile.js), export [scripts/economy-ledger-export.mjs](scripts/economy-ledger-export.mjs) | In-repo | Tamper-evident (SHA-256 hash-chained) accounting book of every SOL movement from the master, with running balance + USD-at-transfer-time. The reconcile cron checks it every 30 min for tamper, unrecorded on-chain outbound (breach/key-compromise), and on-chain integrity; findings land in `payment_reconciliation`. Accounting CSV/JSON export. See [docs/economy-master.md](docs/economy-master.md#audit-accounting--breach-monitoring) |
| Autonomous trading experiment | policy [scripts/trading-experiment-setup.mjs](scripts/trading-experiment-setup.mjs), laddered exit [workers/agent-sniper/exit-logic.js](workers/agent-sniper/exit-logic.js) (`decideLadderedExit`), no-Mayhem gate [workers/agent-sniper/mayhem-gate.js](workers/agent-sniper/mayhem-gate.js), journal [workers/agent-sniper/journal.js](workers/agent-sniper/journal.js) → [api/sniper/journal.js](api/sniper/journal.js) | In-repo | One agent, ~10 SOL, newer pump.fun launches ($10k–$100k mcap, no Mayhem). Take-initials-at-2× laddered exit keeps a moon bag (never a 100% exit up), hard stop-loss underneath. Every decision journaled with its reasoning. UI-funded, simulate-first. See [docs/trading-experiment.md](docs/trading-experiment.md) |
| Real-funds risk acknowledgment | gate [public/risk-ack.js](public/risk-ack.js) `→ /legal/risk`, app wrapper [src/shared/risk-ack.js](src/shared/risk-ack.js), record endpoint [api/legal/risk-ack.js](api/legal/risk-ack.js), disclosure [public/legal/risk.html](public/legal/risk.html) | In-repo | Versioned, once-per-browser acceptance dialog every money-committing surface awaits before executing (trade, snipe, withdraw, swap, launch, x402, onramp — devnet exempt). Acceptances persist in `audit_log` (`risk-ack-accept`). See [docs/risk-acknowledgment.md](docs/risk-acknowledgment.md) |
+| Global markets + coin detail pages | [pages/coins.html](pages/coins.html) + [src/coins-index.js](src/coins-index.js) `→ /coins`, [pages/coin.html](pages/coin.html) + [src/coin-page.js](src/coin-page.js) `→ /coin/:id`, backend [api/coin/](api/coin) (detail, ohlc, markets, news, global over [api/_lib/coingecko.js](api/_lib/coingecko.js)) | In-repo | CoinGecko-style markets index (global stats bar, sortable top-coins table, search, sparklines) + a rich detail page per coin (interactive chart, stats grid, related news, links). Design adopted from cryptocurrency.cv; accepts CoinGecko slugs or Solana mints. Docs: [docs/coin-pages.md](docs/coin-pages.md) |
## npm workspaces
diff --git a/data/changelog.json b/data/changelog.json
index 05f5c057f..7e274bfdb 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$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-07-04",
+ "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.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/coins"
+ },
{
"date": "2026-07-04",
"title": "The whole agent economy now ticks every minute",
diff --git a/data/pages.json b/data/pages.json
index dcd45b41e..9eeaa0525 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -1106,6 +1106,14 @@
"changefreq": "daily",
"added": "2026-06-15"
},
+ {
+ "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.",
+ "priority": 0.8,
+ "changefreq": "hourly",
+ "added": "2026-07-04"
+ },
{
"path": "/constellation",
"title": "watsonx Constellation",
diff --git a/public/nav-data.js b/public/nav-data.js
index 0503c72c2..588244494 100644
--- a/public/nav-data.js
+++ b/public/nav-data.js
@@ -300,6 +300,11 @@ export const NAV_GROUPS = [
{
label: 'Intelligence',
items: [
+ {
+ title: 'Markets',
+ href: '/coins',
+ desc: 'Live global market data — top coins, prices, and a rich detail page for every asset',
+ },
{
title: 'Coin Intelligence',
href: '/coin-intel',
diff --git a/vite.config.js b/vite.config.js
index 45e8b819d..7d075c88e 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1341,6 +1341,12 @@ support: resolve(__dirname, 'pages/support.html'),
/^\/launches\/[1-9A-HJ-NP-Za-km-z]{32,44}\/?$/.test(path)
)
filePath = resolve(root, 'pages/launch-detail.html');
+ // /coin/:id → global coin detail page (CoinGecko slug or Solana mint)
+ else if (
+ !filePath &&
+ /^\/coin\/[a-zA-Z0-9][a-zA-Z0-9_-]{0,99}\/?$/.test(path)
+ )
+ filePath = resolve(root, 'pages/coin.html');
// /@<handle> → public live profile page
else if (!filePath && /^\/@[a-z0-9_-]{3,30}\/?$/i.test(path))
filePath = resolve(root, 'pages/handle.html');