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 market data resilience and introduce new services

fudjia9176fb87bc83
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a40e93ea..918596fb8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Trending Crypto** (`/markets/trending`) — The most-searched coins, categories, and NFTs on CoinGecko over the last 24 hours — trending rank, price, 24h change, market cap, and volume, each coin and category linking to its detail page. Auto-refreshing.
- **Detail pages for protocols, chains, and stablecoins — plus fees, DEX volumes, hacks, and trending** — Every DeFiLlama list now opens into a full detail page. A protocol page charts its whole TVL history with funding-round and event markers, breaks TVL down per chain, and shows its fees, revenue, and methodology. A chain page charts TVL, stablecoin supply, and DEX volume side by side with the top protocols on that chain. A stablecoin page charts circulating supply over time, shows the per-chain distribution, and flags how far off-peg it is in basis points. On top of the detail pages there are four new market surfaces: protocol fees and revenue ranked and charted, the DEX-volume leaderboard with market share, a searchable database of every major DeFi hack ($16.7B stolen all-time), and a trending page of the most-searched coins, categories, and NFTs on CoinGecko. Everything is real, key-free data, and the yields, DeFi, chains, and stablecoin tables now link straight into the new detail pages. (`/fees`) `[feature]`
- **Documentation accuracy pass: every tutorial verified against the shipped platform** — We cross-referenced all 300+ docs and specs against the actual codebase and fixed everything that had drifted. The embed snippet in ten tutorials now uses the real two-line form that works on any site, four tutorials that demonstrated retired or never-shipped APIs were rewritten against the live component, the troubleshooting guide now reflects the current Cloud Run production stack with the correct session and storage details, and the manifest, quick-start, and API references now list exactly the providers, attributes, and endpoints that exist today. Every code sample in the affected docs runs as written. (`/docs/tutorials/embed-in-30-seconds`) `[docs, fix]`
+- **Market data no longer rides on a single source** — The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank. (`/coins`) `[improvement, infra]`
- **Premium: one monthly pass instead of paying per call** — Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time. (`/docs/premium`) `[feature]`
- **Richer coin pages, plus new exchange, category, and DeFi-yields detail pages** — Every coin page now shows far more of what the data already offers: a 1h-to-1y price-performance matrix, a circulating-vs-max supply bar with the market-cap/FDV ratio, all-time high and low with the drawdown and recovery multiple, the community bullish/bearish sentiment split, GitHub and social activity, and a full exchange-listings table with spread, order-book depth, and a trust rating for each venue. Exchanges and crypto categories, which used to only send you off-site or filter a table, now have their own detail pages — an exchange page with a trust badge, wash-volume-adjusted volume, a volume-history chart, and its markets, and a category page with the sector's rank, stats, and full coin list. And a brand-new DeFi Yields explorer covers roughly 15,000 live pools across every chain and protocol, filterable and sortable, each with its own APY and TVL history chart. All of it is real, key-free data. (`/yields`) `[feature, improvement]`
- **The news page becomes Your Briefing** — /markets/news is redesigned as a daily briefing: a breaking-news ticker for stories under 45 minutes old, a collapsible Today's AI Briefing card built from the digest engine, a Featured tab covering the major outlets, a Trending tab ranking the day's most-covered narratives, a Top-stories hero with a compact headline rail, and a star on every story that saves it to a personal Saved tab. Article preview images were also overhauled — thumbnails blocked by publishers now load through a same-origin proxy, and stories whose feed ships no image pull the publisher's own social preview automatically, so cards no longer show blank tiles. (`/markets/news`) `[feature, improvement]`
diff --git a/api/_lib/service-catalog/services/defi-radar.js b/api/_lib/service-catalog/services/defi-radar.js
new file mode 100644
index 000000000..aa8f1d84c
--- /dev/null
+++ b/api/_lib/service-catalog/services/defi-radar.js
@@ -0,0 +1,47 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'defi-radar',
+ title: 'DeFi Radar',
+ category: 'market-data',
+ useCase: 'three.ws DeFi Radar — one $0.005 USDC call returns the whole DeFi market at a glance: total TVL with the biggest 24 h gainers and losers, the top fee-earning protocols, and the top DEXes by 24 h volume.',
+ path: '/api/x402/defi-radar',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '5000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws DeFi Radar',
+ tags: ['defi', 'tvl', 'fees', 'dex', 'market-data'],
+ description: 'three.ws DeFi Radar — one $0.005 USDC call returns the whole DeFi market at a glance: total TVL, the biggest 24 h TVL gainers and losers, the top fee-earning protocols (24 h / 7 d / 30 d), and the top DEXes by 24 h volume. Three upstream dimensions composed into one agent-ready JSON snapshot, refreshed every 5 minutes from live DeFiLlama data. Pass ?limit=1..25 to size each leaderboard. If any dimension is unavailable the call is refused before settlement — you are never charged for a partial radar.',
+ input: { limit: 10 },
+ inputSchema: {
+ type: 'object',
+ properties: {
+ limit: {
+ type: 'integer',
+ minimum: 1,
+ maximum: 25,
+ default: 10,
+ description: 'Rows per leaderboard (TVL top, gainers, losers, fees, DEX volume).',
+ },
+ },
+ },
+ outputExample: {
+ tvl: {
+ total_usd: 118400000000,
+ top: [{ name: 'Example Protocol', tvl_usd: 21500000000, change_1d: 0.8, change_7d: 3.2, category: 'Liquid Staking', chains: ['Ethereum'] }],
+ gainers: [{ name: 'Example Protocol', tvl_usd: 312000000, change_1d: 14.6 }],
+ losers: [{ name: 'Example Protocol', tvl_usd: 98000000, change_1d: -11.2 }],
+ },
+ fees: { total_24h_usd: 41200000, top: [{ name: 'Example Protocol', total_24h_usd: 6100000, total_7d_usd: 40200000, category: 'DEX' }] },
+ dex: { total_24h_usd: 3900000000, top: [{ name: 'Example Protocol', total_24h_usd: 1200000000, change_1d: 4.1 }] },
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/gas-oracle.js b/api/_lib/service-catalog/services/gas-oracle.js
new file mode 100644
index 000000000..b6fb8f193
--- /dev/null
+++ b/api/_lib/service-catalog/services/gas-oracle.js
@@ -0,0 +1,40 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'gas-oracle',
+ title: 'Multi-Chain Gas Oracle',
+ category: 'market-data',
+ useCase: 'three.ws Multi-Chain Gas Oracle — $0.001 USDC per call returns live fee tiers for Ethereum and Base (slow / standard / fast from real fee history) plus Solana priority-fee percentiles, in one call.',
+ path: '/api/x402/gas-oracle',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '1000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Gas Oracle',
+ tags: ['gas', 'fees', 'ethereum', 'base', 'solana'],
+ description: 'three.ws Multi-Chain Gas Oracle — pay $0.001 USDC per call for live transaction-fee intelligence across the chains agents actually settle on. Ethereum and Base each return three tiers (slow / standard / fast) computed from real eth_feeHistory percentiles over the last 20 blocks — no third-party gas API — and Solana returns recent priority-fee percentiles (p25 / p50 / p90 micro-lamports) plus the base signature fee. Computed directly from public RPC quorums with per-chain failover; a chain whose RPCs are all unreachable reports null while the rest of the report stays live. If every chain fails the call refuses before settlement.',
+ input: {},
+ inputSchema: {
+ type: 'object',
+ properties: {},
+ },
+ outputExample: {
+ ethereum: {
+ base_fee_gwei: 4.2,
+ tiers: [{ key: 'standard', priority_fee_gwei: 0.8, gas_price_gwei: 5.0 }],
+ },
+ base: {
+ base_fee_gwei: 0.012,
+ tiers: [{ key: 'standard', priority_fee_gwei: 0.004, gas_price_gwei: 0.016 }],
+ },
+ solana: { priority_fee_micro_lamports: { p25: 0, p50: 1200, p90: 48000 }, base_fee_lamports: 5000 },
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/hack-check.js b/api/_lib/service-catalog/services/hack-check.js
new file mode 100644
index 000000000..e1601842c
--- /dev/null
+++ b/api/_lib/service-catalog/services/hack-check.js
@@ -0,0 +1,50 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'hack-check',
+ title: 'Exploit History Check',
+ category: 'market-data',
+ useCase: 'three.ws Exploit History Check — $0.002 USDC per call searches the full DeFi exploit database for a protocol name and returns its incident history, amounts lost, techniques, and a clean / incident-history verdict.',
+ path: '/api/x402/hack-check',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '2000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Exploit Check',
+ tags: ['security', 'exploit', 'defi', 'due-diligence'],
+ description: 'three.ws Exploit History Check — pay $0.002 USDC per call to run a protocol name against the full historical DeFi exploit database before you integrate, deposit, or route funds. Returns a clean / incident-history verdict, every matching incident with date, amount lost, attack technique, classification, affected chains, and recovered funds, plus market-wide loss statistics for context. Omit ?protocol= to get the latest incidents across the whole market. Live DeFiLlama hacks data, refreshed every 10 minutes; a truthful zero-match answer is a valid result, upstream outages refuse before settlement.',
+ input: { limit: 5 },
+ inputSchema: {
+ type: 'object',
+ properties: {
+ protocol: { type: 'string', description: 'Protocol name to search (case-insensitive substring match). Omit for the latest incidents market-wide.' },
+ limit: { type: 'integer', minimum: 1, maximum: 50, default: 10, description: 'Incidents to return, newest first.' },
+ },
+ },
+ outputExample: {
+ query: null,
+ verdict: 'market-wide',
+ matches: 5,
+ total_lost_usd: 412000000,
+ incidents: [{
+ date: '2026-06-28T00:00:00.000Z',
+ name: 'Example Protocol',
+ amount_usd: 12000000,
+ technique: 'Price oracle manipulation',
+ classification: 'DeFi',
+ chains: ['Ethereum'],
+ bridge: false,
+ returned_usd: null,
+ source: 'https://example.com/post-mortem',
+ }],
+ stats: { total_stolen_all_time: 12100000000, total_stolen_12mo: 890000000, incidents_12mo: 61, bridge_hack_share_pct: 34.2 },
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/market-heatmap.js b/api/_lib/service-catalog/services/market-heatmap.js
new file mode 100644
index 000000000..2ea56c024
--- /dev/null
+++ b/api/_lib/service-catalog/services/market-heatmap.js
@@ -0,0 +1,46 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'market-heatmap',
+ title: 'Market Heatmap',
+ category: 'market-data',
+ useCase: 'three.ws Market Heatmap — $0.002 USDC per call returns the top coins by market cap with 1 h / 24 h / 7 d momentum plus market-breadth stats (advancers, decliners, average move) in one normalized snapshot.',
+ path: '/api/x402/market-heatmap',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '2000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Market Heatmap',
+ tags: ['crypto', 'market-data', 'momentum', 'heatmap'],
+ description: 'three.ws Market Heatmap — pay $0.002 USDC per call for a normalized snapshot of the top coins by market cap: rank, price, 1 h / 24 h / 7 d momentum, market cap, and 24 h volume per coin, plus market-breadth statistics (advancers vs decliners, average and median 24 h move) that tell an agent whether strength is broad or narrow. Dual live sources with automatic failover (CoinGecko primary, CoinPaprika fallback) so a single upstream rate-limit never breaks a paid call. Size the board with ?limit=1..100. Refreshed every 60 seconds; upstream outages refuse before settlement.',
+ input: { limit: 50 },
+ inputSchema: {
+ type: 'object',
+ properties: {
+ limit: { type: 'integer', minimum: 1, maximum: 100, default: 50, description: 'Coins to return, largest market cap first.' },
+ },
+ },
+ outputExample: {
+ breadth: { advancers: 31, decliners: 18, flat: 1, avg_change_24h: 1.2, median_change_24h: 0.8 },
+ coins: [{
+ rank: 1,
+ symbol: 'BTC',
+ name: 'Bitcoin',
+ price_usd: 118250,
+ change_1h: 0.1,
+ change_24h: 2.4,
+ change_7d: 5.9,
+ market_cap_usd: 2350000000000,
+ volume_24h_usd: 48200000000,
+ }],
+ source: 'coingecko',
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/market-mood.js b/api/_lib/service-catalog/services/market-mood.js
new file mode 100644
index 000000000..03fe162bc
--- /dev/null
+++ b/api/_lib/service-catalog/services/market-mood.js
@@ -0,0 +1,42 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'market-mood',
+ title: 'Market Mood Index',
+ category: 'market-data',
+ useCase: 'three.ws Market Mood Index — $0.002 USDC per call blends the Fear & Greed index with live sentiment scored across 192 crypto news feeds into one 0–100 mood reading with the headlines driving it.',
+ path: '/api/x402/market-mood',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '2000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Market Mood',
+ tags: ['sentiment', 'fear-greed', 'news', 'market-data'],
+ description: 'three.ws Market Mood Index — pay $0.002 USDC per call for a composite market-mood reading no single index gives you. Blends the Crypto Fear & Greed index (with its 24 h delta) with live lexicon sentiment scored across the newest headlines from 192 crypto publisher feeds into one 0–100 mood score and label, and returns both components so you can see when positioning (Fear & Greed) and narrative (news tone) disagree — the divergence signal. Includes the bullish and bearish headlines currently driving the news component, with links. Both components must be live or the call refuses before settlement.',
+ input: {},
+ inputSchema: {
+ type: 'object',
+ properties: {},
+ },
+ outputExample: {
+ mood: 62,
+ label: 'Greed',
+ divergence: 'aligned',
+ components: {
+ fear_greed: { value: 66, label: 'Greed', change_24h: 3 },
+ news: { score: 0.18, label: 'positive', articles_scored: 120, positive: 41, negative: 22, neutral: 57 },
+ },
+ drivers: {
+ bullish: [{ title: 'Example bullish headline', source: 'Example Source', link: 'https://example.com/a' }],
+ bearish: [{ title: 'Example bearish headline', source: 'Example Source', link: 'https://example.com/b' }],
+ },
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/news-pulse.js b/api/_lib/service-catalog/services/news-pulse.js
new file mode 100644
index 000000000..042fb4c42
--- /dev/null
+++ b/api/_lib/service-catalog/services/news-pulse.js
@@ -0,0 +1,42 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'news-pulse',
+ title: 'Ticker News Pulse',
+ category: 'market-data',
+ useCase: 'three.ws Ticker News Pulse — $0.002 USDC per call measures live news coverage for one ticker across 192 crypto publisher feeds: mention count, velocity vs the prior window, sentiment split, and top headlines.',
+ path: '/api/x402/news-pulse',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '2000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws News Pulse',
+ tags: ['news', 'sentiment', 'ticker', 'narrative'],
+ description: 'three.ws Ticker News Pulse — pay $0.002 USDC per call to measure how loudly the news cycle is talking about one ticker right now. Scans the live output of 192 crypto publisher feeds (the same engine behind the free three.ws news API) for mentions of your ticker inside a 1–72 h window and returns the mention count, unique outlets covering it, the sentiment split with an aggregate score, coverage velocity versus the immediately preceding window (accelerating / steady / cooling), and the top headlines with links. Zero mentions is a truthful, billable answer — silence is a signal. Feed outages refuse before settlement.',
+ input: { ticker: 'THREE', hours: 24 },
+ inputSchema: {
+ type: 'object',
+ required: ['ticker'],
+ properties: {
+ ticker: { type: 'string', minLength: 2, maxLength: 10, description: 'Ticker symbol to scan for, e.g. BTC. $-prefix optional.' },
+ hours: { type: 'integer', minimum: 1, maximum: 72, default: 24, description: 'Look-back window in hours.' },
+ },
+ },
+ outputExample: {
+ ticker: 'BTC',
+ window_hours: 24,
+ mentions: 87,
+ unique_sources: 34,
+ velocity: { previous_window_mentions: 61, change_pct: 42.6, trend: 'accelerating' },
+ sentiment: { score: 0.12, positive: 31, negative: 19, neutral: 37 },
+ headlines: [{ title: 'Example headline', source: 'Example Source', link: 'https://example.com/a', pub_date: '2026-07-11T08:12:00Z', sentiment: 'positive' }],
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/stablecoin-health.js b/api/_lib/service-catalog/services/stablecoin-health.js
new file mode 100644
index 000000000..7d57e634b
--- /dev/null
+++ b/api/_lib/service-catalog/services/stablecoin-health.js
@@ -0,0 +1,49 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'stablecoin-health',
+ title: 'Stablecoin Peg Monitor',
+ category: 'market-data',
+ useCase: 'three.ws Stablecoin Peg Monitor — $0.005 USDC per call returns live peg deviation, supply, and 24 h / 7 d / 30 d supply flow for every major stablecoin, with an on-peg / drifting / depegged verdict per coin.',
+ path: '/api/x402/stablecoin-health',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '5000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Stablecoin Monitor',
+ tags: ['stablecoin', 'peg', 'depeg', 'risk', 'market-data'],
+ description: 'three.ws Stablecoin Peg Monitor — pay $0.005 USDC per call for a live health report on the stablecoin market. Every USD-pegged asset is scored on current peg deviation in basis points with an on-peg / drifting / depegged verdict (25 bps and 100 bps thresholds), circulating supply, and 24 h / 7 d / 30 d supply change — the flow signal that front-runs visible depegs. Includes market-wide totals and a depeg alert list. Filter one coin with ?symbol= or size the board with ?limit=. Live DeFiLlama stablecoins data, refreshed every 5 minutes; unavailable data refuses before settlement.',
+ input: { limit: 10 },
+ inputSchema: {
+ type: 'object',
+ properties: {
+ symbol: { type: 'string', description: 'Return only this stablecoin symbol, e.g. USDC (case-insensitive).' },
+ limit: { type: 'integer', minimum: 1, maximum: 100, default: 25, description: 'Coins to return, largest supply first.' },
+ },
+ },
+ outputExample: {
+ total_circulating_usd: 254000000000,
+ depegged: [],
+ coins: [{
+ symbol: 'USDC',
+ name: 'USD Coin',
+ price: 0.9998,
+ deviation_bps: -2,
+ status: 'on-peg',
+ mechanism: 'fiat-backed',
+ circulating_usd: 61200000000,
+ change_24h_pct: 0.21,
+ change_7d_pct: 1.4,
+ change_30d_pct: 3.8,
+ chains: 34,
+ }],
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/_lib/service-catalog/services/yield-scan.js b/api/_lib/service-catalog/services/yield-scan.js
new file mode 100644
index 000000000..86d156e3a
--- /dev/null
+++ b/api/_lib/service-catalog/services/yield-scan.js
@@ -0,0 +1,56 @@
+// Service-catalog descriptor — the single written-once listing for this
+// service. api/wk.js derives its /.well-known/x402.json resource entry from
+// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
+// the OKX storefront projection reads the same record (toOkxCatalog).
+// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
+// for this route in api/wk.js — edit this descriptor instead.
+
+export default {
+ slug: 'yield-scan',
+ title: 'Yield Scanner',
+ category: 'market-data',
+ useCase: 'three.ws Yield Scanner — $0.005 USDC per call filters 15,000+ live DeFi yield pools by chain, TVL floor, and stablecoin-only, then returns the top pools with APY breakdown and per-pool risk flags.',
+ path: '/api/x402/yield-scan',
+ method: 'GET',
+ free: false,
+ status: 'live',
+ priceAtomics: '5000',
+ acceptsBuilder: 'standard',
+ serviceName: 'three.ws Yield Scanner',
+ tags: ['defi', 'yield', 'apy', 'staking', 'risk'],
+ description: 'three.ws Yield Scanner — pay $0.005 USDC per call to screen 15,000+ live DeFi yield pools in one request. Filter by chain, minimum TVL, and stablecoin-only exposure; sort by APY or TVL. Every returned pool carries the full APY breakdown (base vs reward, 30-day mean), pool TVL, and derived risk flags: impermanent-loss exposure, APY volatility (sigma), an apy-spike flag when the current rate runs far above its 30-day mean, and the upstream outlier marker. Live DeFiLlama yields data, refreshed every 10 minutes. Unavailable data refuses before settlement — no charge for an empty scan.',
+ input: { limit: 10, minTvlUsd: 1000000, stable: true },
+ inputSchema: {
+ type: 'object',
+ properties: {
+ chain: { type: 'string', description: 'Filter to one chain, e.g. Ethereum, Solana, Base (case-insensitive).' },
+ stable: { type: 'boolean', description: 'true → stablecoin-denominated pools only.' },
+ minTvlUsd: { type: 'number', minimum: 0, default: 100000, description: 'Minimum pool TVL in USD.' },
+ sort: { type: 'string', enum: ['apy', 'tvl'], default: 'apy', description: 'Ranking dimension.' },
+ limit: { type: 'integer', minimum: 1, maximum: 50, default: 20, description: 'Pools to return.' },
+ },
+ },
+ outputExample: {
+ count: 10,
+ filters: { chain: null, stable: true, min_tvl_usd: 1000000, sort: 'apy' },
+ pools: [{
+ pool: '747c1d2a-c668-4682-b9f9-296708a3dd90',
+ project: 'example-protocol',
+ symbol: 'USDC',
+ chain: 'Ethereum',
+ tvl_usd: 52400000,
+ apy: 9.42,
+ apy_base: 6.1,
+ apy_reward: 3.32,
+ apy_mean_30d: 8.7,
+ stablecoin: true,
+ il_risk: 'no',
+ sigma: 0.21,
+ exposure: 'single',
+ prediction: 'Stable/Up',
+ risk_flags: [],
+ }],
+ ts: '2026-07-11T10:00:00Z',
+ },
+ storefronts: ['x402scan'],
+};
diff --git a/api/coin/derivatives.js b/api/coin/derivatives.js
index 0ce097f8e..e53a7c492 100644
--- a/api/coin/derivatives.js
+++ b/api/coin/derivatives.js
@@ -27,7 +27,9 @@ const num = (v) => {
return Number.isFinite(n) ? n : null;
};
-async function build() {
+// Exported for the paid Market Data API (api/_lib/market-data/) — the x402
+// market-derivatives endpoint sells the same perp table this page renders.
+export async function buildDerivativeTickers() {
const now = Date.now();
if (_cache && _cache.expiresAt > now) return _cache.value;
@@ -56,7 +58,7 @@ async function build() {
return value;
}
-async function buildExchanges() {
+export async function buildDerivativeExchanges() {
const now = Date.now();
if (_exCache && _exCache.expiresAt > now) return _exCache.value;
@@ -98,7 +100,7 @@ export default wrap(async (req, res) => {
if (view === 'exchanges') {
try {
- const payload = await buildExchanges();
+ const payload = await buildDerivativeExchanges();
return json(res, 200, payload, {
'cache-control': 'public, max-age=120, s-maxage=300, stale-while-revalidate=900',
});
@@ -113,7 +115,7 @@ export default wrap(async (req, res) => {
}
try {
- const payload = await build();
+ const payload = await buildDerivativeTickers();
return json(res, 200, payload, {
'cache-control': 'public, max-age=30, s-maxage=60, stale-while-revalidate=300',
});
diff --git a/api/coin/exchanges.js b/api/coin/exchanges.js
index 33c5eca4d..36c44eaa1 100644
--- a/api/coin/exchanges.js
+++ b/api/coin/exchanges.js
@@ -20,7 +20,9 @@ const num = (v) => {
return Number.isFinite(n) ? n : null;
};
-async function build() {
+// Exported for the paid Market Data API (api/_lib/market-data/) — the x402
+// market-exchanges endpoint sells the same ranked venue table this page renders.
+export async function buildExchanges() {
const now = Date.now();
if (_cache && _cache.expiresAt > now) return _cache.value;
@@ -65,7 +67,7 @@ export default wrap(async (req, res) => {
if (!rl.success) return rateLimited(res, rl);
try {
- const payload = await build();
+ const payload = await buildExchanges();
return json(res, 200, payload, {
'cache-control': 'public, max-age=120, s-maxage=300, stale-while-revalidate=900',
});
diff --git a/api/coin/gas.js b/api/coin/gas.js
index 6df35f862..28c550593 100644
--- a/api/coin/gas.js
+++ b/api/coin/gas.js
@@ -100,7 +100,9 @@ function computeTiers(fh) {
return { baseFeeGwei: weiToGwei(baseFee), tiers };
}
-async function build() {
+// Exported for the paid Market Data API (api/_lib/market-data/) — the x402
+// market-gas endpoint sells the same oracle payload this page renders.
+export async function buildGasReport() {
const now = Date.now();
if (_cache && _cache.expiresAt > now) return _cache.value;
@@ -144,7 +146,7 @@ export default wrap(async (req, res) => {
if (!rl.success) return rateLimited(res, rl);
try {
- const payload = await build();
+ const payload = await buildGasReport();
return json(res, 200, payload, {
'cache-control': 'public, max-age=10, s-maxage=15, stale-while-revalidate=60',
});
diff --git a/api/coin/global.js b/api/coin/global.js
index d749cfed1..dbb1ab3cf 100644
--- a/api/coin/global.js
+++ b/api/coin/global.js
@@ -15,7 +15,9 @@ import { fetchGlobalMarket } from '../_lib/market-fallbacks.js';
let _fng = null; // { value, expiresAt }
const FNG_TTL_MS = 300_000;
-async function fetchFearGreed() {
+// Exported for the paid Market Data API (api/_lib/market-data/) — the x402
+// market-global endpoint sells the same fear & greed reading this page renders.
+export async function fetchFearGreed() {
const now = Date.now();
if (_fng && _fng.expiresAt > now) return _fng.value;
const resp = await fetch('https://api.alternative.me/fng/?limit=1', {
diff --git a/data/changelog.json b/data/changelog.json
index d32e668d2..4e61c466e 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$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-11",
+ "title": "Market data no longer rides on a single source",
+ "summary": "The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank.",
+ "tags": [
+ "improvement",
+ "infra"
+ ],
+ "link": "/coins"
+ },
{
"date": "2026-07-11",
"title": "Detail pages for protocols, chains, and stablecoins — plus fees, DEX volumes, hacks, and trending",
diff --git a/docs/coin-pages.md b/docs/coin-pages.md
index 058d1bfe8..3844557fa 100644
--- a/docs/coin-pages.md
+++ b/docs/coin-pages.md
@@ -77,6 +77,32 @@ whole section rather than render a wall of zeros.
Unknown ids, upstream outages, loading, and empty news/markets all have
designed states — the page never renders a blank void.
+## Data sources & failover
+
+No market datapoint depends on a single upstream. CoinGecko's keyless tier
+rate-limits hard under load, so the reads that used to blank on a CoinGecko blip
+now fail over across free, keyless public APIs before surfacing an error, all
+through the shared [`failover-fetch`](../src/shared/failover-fetch.js) primitive
+(a dead upstream is skipped, cooled down for a minute, and the chain moves on):
+
+- **Global stats bar** (`/api/coin/global`) — CoinGecko → CoinPaprika → CoinLore.
+ Each is normalized to the same shape in
+ [`api/_lib/market-fallbacks.js`](../api/_lib/market-fallbacks.js); a fallback
+ that only carries BTC dominance (CoinPaprika) simply shows one dominance chip.
+- **Market table** (`/api/coin/markets`) — CoinGecko → CoinLore. CoinLore backs
+ up the ranked top-N list (7d sparklines and category scoping stay
+ CoinGecko-only and degrade to an empty chart / CoinGecko-only when it's down).
+- **Headline prices** — the ETH figure on `/gas` and the BTC figure on
+ `/exchanges` fail over CoinGecko → DefiLlama (keyed by the same CoinGecko id).
+- **SOL spot** — seven sources server-side (CoinGecko, Jupiter, Kraken,
+ Coinbase, DefiLlama, DIA, Bitfinex) and four browser-side, CORS-safe ones.
+- **Solana token panels** — Birdeye → DexScreener → GeckoTerminal → DefiLlama
+ (see [`api/_lib/market/token-market.js`](../api/_lib/market/token-market.js)).
+
+Every fallback is free and keyless (Binance is excluded — it geo-blocks US
+datacenter IPs). `/trending` stays CoinGecko-only by nature: "most-searched on
+CoinGecko" has no free equivalent elsewhere.
+
## The market tools
Four more surfaces extend Markets, all sharing the same design system
@@ -106,7 +132,8 @@ a USD cost estimate, plus a cost-by-action table (ETH transfer, token transfer,
DEX swap, NFT mint). The page auto-refreshes every 15s and pauses when the tab is
hidden. Fees are read straight from the chain — `/api/coin/gas` calls
`eth_feeHistory` on a public RPC (with failover across four providers) and prices
-each tier with the live ETH price. No third-party gas API, no key.
+each tier with the live ETH price (CoinGecko → DefiLlama failover). No
+third-party gas API, no key.
### `/compare` — side-by-side comparison
diff --git a/docs/ops/x402-discovery-listings.md b/docs/ops/x402-discovery-listings.md
new file mode 100644
index 000000000..bdc606671
--- /dev/null
+++ b/docs/ops/x402-discovery-listings.md
@@ -0,0 +1,189 @@
+# x402 discovery listings — getting three.ws indexed and ranked
+
+Runbook for getting every paid three.ws endpoint listed — and ranked — on the
+x402 discovery surfaces that agents actually search. Research snapshot:
+**2026-07-11**. This directory (`docs/ops/`) is excluded from the public docs
+build by the `PRIVATE_DOCS` filter in `vite.config.js`, so registration
+mechanics and outreach notes can live here verbatim.
+
+**The one-line conclusion:** quality metadata gets you *found*; settled
+transaction count + distinct buyers in the trailing 30 days gets you *ranked*.
+Every surface below ultimately keys off one of those two levers. No surface
+sells ranking.
+
+## Where our side of this lives
+
+| Piece | Location |
+|---|---|
+| Single source of truth for paid services (descriptions, prices, tags, schemas) | `api/_lib/service-catalog/` — drift into the discovery doc is a red build via `tests/service-catalog.test.js` |
+| Public discovery doc | `/.well-known/x402.json` → `/api/wk?name=x402-discovery` (route in `vercel.json`) |
+| Canonical catalog of every paid endpoint (request contracts + prices) | `api/_lib/x402/ring-catalog.js` |
+| Facilitator endpoints we query/settle through | `api/_lib/x402/bazaar-client.js` — PayAI (Base default), CDP (`api.cdp.coinbase.com/platform/v2/x402`), self-facilitator for Solana (`api/_lib/x402/self-facilitator.js`) |
+| Per-agent A2A agent cards | `/a/sol/:id/.well-known/agent-card.json` |
+| Env-overridable prices | `api/_lib/x402-prices.js` (`X402_PRICE_<SLUG>`) |
+
+## 1. x402scan (x402scan.com) — Merit Systems
+
+The de-facto x402 block explorer: transactions, sellers, origins, resources,
+per-facilitator volume. Open source: <https://github.com/Merit-Systems/x402scan>.
+
+Three ingestion paths:
+
+1. **Facilitator/Bazaar crawl** — consumes the resource lists of known
+ facilitators (including the CDP Bazaar `/discovery/resources` catalog).
+ Facilitators are hand-maintained in `facilitators/config.ts` in their repo;
+ a PR there is how a new facilitator gets tracked.
+2. **On-chain settlement tracking** — seller/volume stats accrue from observed
+ USDC settlements attributed to facilitator contracts on Base and Solana.
+ Not submitted; earned by real paid traffic.
+3. **Manual resource registration** —
+ <https://www.x402scan.com/resources/register>: submit the endpoint URL;
+ x402scan probes it and auto-adds it if it returns a valid x402 schema.
+ The flow uses a one-time SIWX wallet signature (no funds move). Base +
+ Solana only.
+
+**Ranking:** activity-driven — tx count, volume, recency per origin/seller.
+No pay-to-rank. It renders our `accepts[].description`, price, and origin
+metadata (og-tags, favicon) on the resource page, so those must be clean.
+
+**Steps for three.ws:**
+- Every paid endpoint returns a spec-valid 402 `accepts` payload with a real
+ description (the service catalog guarantees this — don't hand-edit).
+- Submit each top-level resource at `/resources/register` (wallet signature,
+ no account).
+- Route settlements through the CDP facilitator so both the Bazaar crawl and
+ on-chain volume attribute to us.
+
+**Burden:** wallet signature only; crawlable otherwise.
+
+## 2. x402 Bazaar / CDP facilitator discovery list
+
+Docs: <https://docs.cdp.coinbase.com/x402/bazaar> · spec:
+<https://docs.x402.org/extensions/bazaar> ·
+<https://x402.gitbook.io/x402/core-concepts/bazaar-discovery-layer>
+
+**Mechanism (exact, mid-2026):**
+
+- **No registration form.** Indexing is settlement-triggered: the CDP
+ facilitator catalogs a service the first time it *settles* a payment for
+ that endpoint. Verify alone is NOT enough, and `paymentPayload.resource`
+ must identify the endpoint.
+- On the resource server: register `bazaarResourceServerExtension` and attach
+ `declareDiscoveryExtension()` per route (successor of the older
+ `discoverable: true` middleware flag) with:
+ - `description` — < 500 chars, natural language; this is what semantic
+ search embeds,
+ - `input` + `inputSchema` (JSON Schema — the example input must validate
+ against the schema or the extension is rejected),
+ - `output.example` + output schema,
+ - `bodyType: "json"` for POST routes; for MCP tools: `toolName`,
+ `transport`, MCP-format `inputSchema`.
+- Acceptance is signalled via the base64 `EXTENSION-RESPONSES` header on
+ verify/settle responses (success/processing/rejected). **Caveat:** open bug
+ <https://github.com/x402-foundation/x402/issues/2112> — the CDP facilitator
+ sometimes never emits this header and services silently fail to index.
+ Verify presence via the discovery endpoints, never the header alone.
+- Query surface (both public, no API key):
+ - `GET https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources`
+ (paginated catalog, limit ≤ 1000)
+ - `GET .../v2/x402/discovery/search` (hybrid full-text + semantic,
+ quality-ranked, limit ≤ 20)
+
+**Ranking factors (documented):** relevance blended with quality = distinct
+buyers in 30 days, successful tx volume in 30 days, recency, metadata
+completeness. Recomputed every 6 hours. **30-day inactivity drops you from
+search results** (new zero-call resources stay visible in the catalog).
+
+**Route-consolidation gotcha:** high-cardinality path segments (UUIDs,
+addresses) get collapsed into one entry — prefix them (`/user-<uuid>`) if
+distinct listings matter.
+
+**Burden:** purely technical — needs at least one CDP-facilitator settlement
+on Base per endpoint; no human form.
+
+## 3. agentic.market
+
+Launch post:
+<https://www.coinbase.com/developer-platform/discover/launches/agentic-market>
+· <https://agentic.market/about>
+
+Coinbase's consumer-facing directory over the Bazaar — ~1,700+ services across
+Inference/Data/Media/Search/Social/Infrastructure/Trading, with live pricing,
+call counts, unique payers, last-active timestamps. Machine-readable:
+`GET https://agentic.market/v1/services`,
+`GET https://agentic.market/v1/services/search?q=`, and
+`https://agentic.market/llms.txt`.
+
+**How to list: there is no submission form.** It self-learns from live x402
+payments (fed by the CDP Bazaar/settlement data). Getting listed = getting
+Bazaar-indexed (section 2). The ~70-service "curated" tier is editorially
+selected — the lever there is volume, quality metadata, and outreach to the
+CDP/x402 team. Not ERC-8004-based. Burden: none beyond section 2.
+
+## 4. Other directories / aggregators (mid-2026)
+
+| Surface | How listing works | Burden |
+|---|---|---|
+| **x402.org Ecosystem** (<https://www.x402.org/ecosystem>) | PR to the x402 repo — partner metadata in `typescript/site/app/ecosystem/` (logo + description JSON). <https://github.com/coinbase/x402> / <https://github.com/x402-foundation/x402> | GitHub PR, human review |
+| **x402 List** (<https://x402-list.com>) | Form at `/submit`; endpoint auto-probed for a valid 402 handshake, then human-reviewed. Updates via one-time domain proof at `/services/{slug}/update`. Runs 5–15 min uptime monitoring + "verified" badges. JSON API `/api/v1/services`, `/llms-full.txt`, MCP server | Form, no account; first submit free, later submits x402-paid |
+| **402 Index** (<https://402index.io>, docs `/api-docs`) | Pure API: `POST /api/v1/register` — no auth, no signature, no fee; URL probed for L402/x402/MPP compliance, reviewed before appearing; 10 registrations/hr/IP | Purely technical |
+| **awesome-x402 lists** | PRs to <https://github.com/xpaysh/awesome-x402> and <https://github.com/Merit-Systems/awesome-x402> (also Merit's awesome-agentic-commerce) | GitHub PR |
+| **B402 Bazaar (Binance)** | BNB-chain Bazaar clone: <https://developers.binance.com/docs/onchainpay-x402/b402-bazaar> — same extension-declaration + settle-through-their-facilitator model | Technical; requires their facilitator |
+| **Nevermined** (<https://nevermined.ai/facilitator/>) | A facilitator, not a directory — integrating it buys metering/fiat-card (AP2) rails, not Bazaar ranking | Account/integration |
+| **Fewsats** (<https://github.com/fewsats>) | Payments infra/SDKs (L402/x402 lineage); no public open directory as of now | n/a |
+| **PayAI** (<https://docs.payai.network/x402/reference>) | Facilitator + agent marketplace on Solana; listing = using their facilitator/marketplace flow. Already our default Base facilitator in `bazaar-client.js` | Account/integration |
+| **Google AP2 / a2a-x402** (<https://github.com/google-agentic-commerce/a2a-x402>, <https://ap2-protocol.org/>) | No central registry — discovery is your A2A agent card at `/.well-known/agent-card.json` declaring the AP2/x402 extension URI under `capabilities.extensions`. Google AI Agent Marketplace featuring is partnership/BD, not crawl | Technical (agent card) + BD |
+| **x402 Daily** (<https://x402daily.xyz/resources/ecosystem/>), whatisx402.com, agentpaymentsstack.com | Editorial/aggregator sites; outreach or PR-based | Human |
+| **ERC-8004** | Used by OKX-style identity registries, not by x402scan/Bazaar/agentic.market. Separate lever (we already ship `agent_reputation` tooling) | On-chain tx |
+
+## 5. Spec-level discovery metadata (what crawlers read)
+
+- **v2 spec**
+ (<https://github.com/coinbase/x402/blob/main/specs/x402-specification-v2.md>):
+ core `accepts[]` PaymentRequirements = `scheme`, `network` (CAIP-2),
+ `amount`, `asset`, `payTo`, `maxTimeoutSeconds`, `extra`; discovery data
+ rides in the `extensions` map, not core fields. v1-style fields crawlers
+ still read off the 402 body: `resource`, `description`, `mimeType`,
+ `outputSchema`.
+- **Bazaar extension** (`"bazaar"` key in `extensions`): `description`,
+ `input`, `inputSchema`, `output` (example + schema), `bodyType`, and for MCP
+ `toolName`/`transport`. The description drives semantic-search ranking; the
+ example input must pass JSON-Schema validation or indexing is rejected.
+- **/.well-known conventions:** there is no ratified `.well-known/x402` in the
+ core spec — the v2 Discovery extension (facilitator-crawled metadata) is the
+ official direction (<https://www.x402.org/writing/x402-v2-launch>). In the
+ wild, an informal `/.well-known/x402.json` manifest is served by several
+ ecosystems and read by independent crawlers, and some toolkits (autonomagic,
+ PipRail's `buildOpenApi()`) emit it alongside `/openapi.json` and an agent
+ card. Cheap to serve — we publish all three: `/.well-known/x402.json`,
+ `/openapi.json`, `/.well-known/agent-card.json`.
+
+## Priority action list
+
+1. **Bazaar first** (feeds agentic.market + partially x402scan): declare
+ `declareDiscoveryExtension()` metadata on every paid route, settle ≥ 1
+ payment per route via the CDP facilitator, then verify presence via
+ `GET .../v2/x402/discovery/resources` — don't trust `EXTENSION-RESPONSES`
+ (issue #2112). Keep each endpoint active inside every 30-day window;
+ ranking recomputes 6-hourly on 30-day buyers + volume. The ring economy
+ (`api/_lib/x402/ring-catalog.js` rotation) is the natural way to keep every
+ endpoint inside the activity window.
+2. **x402scan:** register every resource at
+ `x402scan.com/resources/register` (SIWX signature). Solana endpoints
+ qualify too.
+3. **Fire-and-forget API registrations:**
+ `POST 402index.io/api/v1/register` + `x402-list.com/submit`.
+4. **PR-based:** x402.org/ecosystem partner-metadata PR, both awesome-x402
+ lists.
+5. **Serve discovery manifests:** `/.well-known/x402.json`, `/openapi.json`,
+ A2A agent card with the x402 extension — all generated from the service
+ catalog, never hand-maintained.
+
+## Sources
+
+CDP Bazaar docs · Bazaar extension spec · x402 v2 spec · x402 v2 launch post ·
+x402scan + its GitHub + register page · agentic.market /about + launch post ·
+PipRail discovery guide (<https://piprail.com/discovery/>) · 402 Index API
+docs · x402-list.com · x402.org/ecosystem · awesome-x402 (xpaysh + Merit) ·
+a2a-x402 · AP2 · B402 Bazaar · Nevermined facilitator · PayAI x402 reference ·
+Bazaar indexing bug #2112.
diff --git a/public/changelog.json b/public/changelog.json
index 3d6ccc311..a5fda1171 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-11T21:07:02.781Z",
+ "generated_at": "2026-07-11T21:12:39.982Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -107,6 +107,17 @@
"fix"
]
},
+ {
+ "date": "2026-07-11",
+ "type": "update",
+ "title": "Market data no longer rides on a single source",
+ "summary": "The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank.",
+ "link": "/coins",
+ "tags": [
+ "improvement",
+ "infra"
+ ]
+ },
{
"date": "2026-07-11",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 56f39d2ef..020d7497d 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -86,6 +86,14 @@
<category>docs</category>
<description>We cross-referenced all 300+ docs and specs against the actual codebase and fixed everything that had drifted. The embed snippet in ten tutorials now uses the real two-line form that works on any site, four tutorials that demonstrated retired or never-shipped APIs were rewritten against the live component, the troubleshooting guide now reflects the current Cloud Run production stack with the correct session and storage details, and the manifest, quick-start, and API references now list exactly the providers, attributes, and endpoints that exist today. Every code sample in the affected docs runs as written.</description>
</item>
+ <item>
+ <title>Market data no longer rides on a single source</title>
+ <link>https://three.ws/coins</link>
+ <guid isPermaLink="false">2026-07-11:Market data no longer rides on a single source</guid>
+ <pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank.</description>
+ </item>
<item>
<title>Premium: one monthly pass instead of paying per call</title>
<link>https://three.ws/docs/premium</link>
diff --git a/public/features.json b/public/features.json
index d8464820d..e55c85fa7 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-11T21:07:02.765Z",
+ "generated_at": "2026-07-11T21:12:39.969Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 69b61e505..e2279e0ca 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,25 +56,6 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
-
- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
- <meta property="og:type" content="website">
- <meta property="og:site_name" content="three.ws">
- <meta property="og:locale" content="en_US">
- <meta property="og:title" content="Sitemap · three.ws">
- <meta property="og:description" content="Human-readable index of every page on three.ws.">
- <meta property="og:url" content="https://three.ws/sitemap">
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <meta property="og:image:width" content="1200">
- <meta property="og:image:height" content="630">
- <meta property="og:image:type" content="image/png">
- <meta property="og:image:alt" content="Sitemap — three.ws">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="twitter:site" content="@trythreews">
- <meta name="twitter:title" content="Sitemap · three.ws">
- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script>
</head>
<body>
<header class="sm-topbar">