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(news): hourly continuous archiver + RSS syndication for the live feed

fudjiab7459a6a520a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8aaf75203..867606145 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,11 +7,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-07-10
- **Crypto News** (`/markets/news`) — Live crypto news aggregated natively from 38 publisher feeds — filter by category (Bitcoin, DeFi, regulation, and more), search headlines, and open any story in a rich reader with summary, key points, sentiment, and related coverage.
-- **Crypto News Archive** (`/markets/archive`) — The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.
+- **Crypto News Archive** (`/markets/archive`) — The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.
- **Crypto News Reader** (`/markets/news/article`) — Rich article reader for crypto news — full story extraction with AI summary, key points, sentiment, detected tickers, and related coverage from across the industry.
- **Markets Hub** (`/markets`) — The three.ws markets hub — live global stats, the top 100 coins, breaking crypto news from 38 publisher feeds, a 662k-article news archive, and hero links to the full markets toolset.
- **Auto-rigging works again — and the Agent Identity Studio demos are real** — Rigging any generated model into an animation-ready character had been failing since the cloud migration: the rig request was sent to a service that doesn't do rigging, and the GPU rigger itself crashed on a graphics call our cloud GPUs don't support. Both are fixed — rig requests now reach the real UniRig worker, which renders its voxel pass in software instead. Proof: all four Agent Identity Studio demo characters (LedgerLynx, MuseWeaver, Momentum-9, and the three.ws studio's own) were generated, rigged with full skeletons, and photographed in posed renders through the live pipeline — see them on the showcase. (`/agent-identities`) `[fix, feature]`
- **Crypto news is live: a real-time feed from 38 publishers, a rich article reader, and a 662,047-article archive back to 2017** — Markets grew a full news wing. /markets/news streams live headlines aggregated directly from 38 publisher feeds — filter by category (Bitcoin, DeFi, regulation, and more), search, and open any story in a reader that extracts the full text with a summary, key points, sentiment, and related coverage. Behind it sits the largest open crypto-news archive anywhere: 662,047 articles from September 2017 to today in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language at /markets/archive. A new /markets hub ties the whole suite together — live global stats, the top 100 coins, breaking news, and every market tool as its own card. (`/markets`) `[feature]`
+- **The news archive now updates itself every hour — and the live feed has an RSS feed** — The 660,000-article news archive is no longer frozen in time: an hourly archiver now appends every new story from the live feed into the corpus, complete with the market snapshot at capture time (BTC/ETH/SOL price, market cap, Fear & Greed), so /markets/archive stays current forever. And if you'd rather read three.ws crypto news in your own reader, the feed is now available as standard RSS at /api/news/rss — subscribe to everything or just one category. (`/markets/archive`) `[feature, infra]`
## 2026-07-09
@@ -26,6 +27,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Fixed the rate limiter that was rejecting real people as if they were a flood** — Since the move to our new hosting, the server had been identifying every visitor by the address of the load balancer sitting in front of it — which is the same address for everybody. The effect was that all traffic on the platform shared a single allowance. One person's requests used up everyone's budget, so genuine visitors were turned away with a 'too many requests' error before they had made a single one. The location privacy page was hit hardest: it was answering that error to its very first caller, which is why deleting or hiding your own placed agents silently failed. The server now reads the visitor's real address from the proxy chain, ignoring the parts a caller can forge, so each person gets their own allowance again and the limits protect against abuse instead of causing it. `[fix, security, infra]`
- **Free 3D generation stays up when outside providers go down** — Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again. `[fix, infra]`
- **Homepage: agent thumbnails load, and the marketplace strip is alive again** — The avatar picker on the homepage was asking our image server for five pictures that had never been made, so the browser refused them and those slots sat blank. It now asks only for pictures that actually exist, and it leads with the avatars that have one — where an avatar has no picture yet, it draws a clean initial instead of a broken tile. Underneath it, the live marketplace strip had been silently empty: it was reading the agent list in the wrong shape and quietly gave up every time, leaving just a lone "Browse marketplace" link. It now reads the list correctly and shows ten real agents you can click straight through to. The 3D models themselves were always loading fine and are untouched. (`/`) `[fix]`
+- **IRL now works in landscape, and the IRL API is fully documented** — Rotating your phone on the IRL screen used to bury the camera view under the control panel — it swallowed nearly two-thirds of a sideways screen and pushed floating buttons up over the top bar. Landscape now gets a slim control strip so the AR view stays clear in either orientation. For builders: the complete IRL API — presence tokens, pins, money drops, and World Lines quests — is now documented in the REST API reference, alongside the @three-ws/irl SDK. (`/irl`) `[improvement, docs]`
- **IRL on phones: controls no longer cover each other** — The IRL screen was built up feature by feature until buttons buried the view on phones — the action pills stacked five rows deep over the walk joystick, the money-drops button floated on top of other controls, and small close buttons were easy to miss. The whole HUD is now built for thumbs: one swipeable action row hugs the bottom edge, the joystick zone floats above it so drags never hit a button, the drops button repositions itself and steps aside whenever a sheet is open, and every close button and tab meets the 44-pixel tap size. The avatar and camera view are finally unobstructed. (`/irl`) `[improvement, fix]`
- **Live SOL price restored on /three-live; Flappin UFO demo retired** — Two quiet breakages, fixed. The live trade feed on /three-live now prices SOL-only trades correctly again — it was reading a price API directly from your browser, which the provider silently blocks, so those trades showed no dollar value; it now reads the same cached, multi-provider SOL/USD price the rest of the platform uses. Separately, the Flappin UFO arcade demo ran on an external deployment that has gone offline, leaving a blank screen and a leaderboard that never loaded. Rather than leave a broken page up, /play/ufo is now an honest retired notice that points you to the live experiences — the coin world, Sniper Arena, and Coin Clash. (`/three-live`) `[fix]`
- **Marketplace no longer claims "No public avatars" when the feed fails to load** — If the community avatar feed hit a temporary server error (like a rate limit) while agents were already on screen, the Avatars tab showed a misleading "No public avatars" empty state — even with thousands of avatars in the catalog. It now shows a clear "Couldn't load avatars" message with a Retry button that reloads the feed in place. (`/marketplace?tab=avatars`) `[fix]`
diff --git a/api/cron/news-archive-append.js b/api/cron/news-archive-append.js
new file mode 100644
index 000000000..7b28ddd57
--- /dev/null
+++ b/api/cron/news-archive-append.js
@@ -0,0 +1,239 @@
+// GET /api/cron/news-archive-append — hourly continuous archiver for the
+// crypto-news corpus on gs://three-ws-news-archive.
+//
+// The recovered historical archive ends at 2025-12; this cron keeps it
+// current by appending the live aggregator's articles (api/_lib/news.js,
+// 38 publisher feeds) to the current month's JSONL, in the exact enriched
+// schema the corpus already uses. Records are content-addressed (16-hex id
+// of the link), so appends are idempotent — an article seen by ten cron
+// runs lands exactly once.
+//
+// Writes go through the GCS JSON API with the platform's own credentials
+// (api/_lib/gcp-auth.js — GCP_SERVICE_ACCOUNT_JSON or the Cloud Run runtime
+// SA, which holds roles/storage.objectAdmin on the bucket) and are guarded
+// with x-goog-if-generation-match so two overlapping runs can't clobber
+// each other; the loser retries next hour.
+//
+// ?dry_run=1 computes and reports without writing.
+
+import { error, json, method, wrapCron } from '../_lib/http.js';
+import { env } from '../_lib/env.js';
+import { constantTimeEquals } from '../_lib/crypto.js';
+import { getGcpAccessToken } from '../_lib/gcp-auth.js';
+import { getNews } from '../_lib/news.js';
+import { geckoFetch } from '../_lib/coingecko.js';
+
+const BUCKET = 'three-ws-news-archive';
+const API = `https://storage.googleapis.com/storage/v1/b/${BUCKET}/o`;
+const UPLOAD = `https://storage.googleapis.com/upload/storage/v1/b/${BUCKET}/o`;
+
+function requireCron(req, res) {
+ const secret = process.env.CRON_SECRET || env.CRON_SECRET;
+ if (!secret) {
+ error(res, 503, 'not_configured', 'CRON_SECRET unset');
+ return false;
+ }
+ const auth = req.headers['authorization'] || '';
+ const presented = auth.startsWith('Bearer ') ? auth.slice(7) : '';
+ if (!constantTimeEquals(presented, secret)) {
+ error(res, 401, 'unauthorized', 'invalid cron secret');
+ return false;
+ }
+ return true;
+}
+
+// ── GCS helpers (JSON API, no client-library dependency) ────────────────────
+
+async function gcsGetObject(token, name) {
+ // metadata (for generation) + content in two small calls
+ const metaResp = await fetch(`${API}/${encodeURIComponent(name)}`, {
+ headers: { authorization: `Bearer ${token}` },
+ signal: AbortSignal.timeout(15_000),
+ });
+ if (metaResp.status === 404) return { exists: false, generation: '0', text: '' };
+ if (!metaResp.ok) throw new Error(`GCS meta ${name} → ${metaResp.status}`);
+ const meta = await metaResp.json();
+ const dataResp = await fetch(`${API}/${encodeURIComponent(name)}?alt=media`, {
+ headers: { authorization: `Bearer ${token}` },
+ signal: AbortSignal.timeout(60_000),
+ });
+ if (!dataResp.ok) throw new Error(`GCS read ${name} → ${dataResp.status}`);
+ return { exists: true, generation: meta.generation, text: await dataResp.text() };
+}
+
+async function gcsPutObject(token, name, body, generation, contentType) {
+ const resp = await fetch(
+ `${UPLOAD}?uploadType=media&name=${encodeURIComponent(name)}&ifGenerationMatch=${generation}`,
+ {
+ method: 'POST',
+ headers: {
+ authorization: `Bearer ${token}`,
+ 'content-type': contentType,
+ 'x-goog-if-generation-match': generation,
+ },
+ body,
+ signal: AbortSignal.timeout(60_000),
+ },
+ );
+ if (resp.status === 412) throw Object.assign(new Error(`GCS precondition failed on ${name}`), { code: 'race' });
+ if (!resp.ok) throw new Error(`GCS write ${name} → ${resp.status} ${(await resp.text()).slice(0, 120)}`);
+ return resp.json();
+}
+
+// ── Record conversion — live article → enriched archive schema ──────────────
+
+function detectLanguage(title) {
+ if (/[぀-ヿ]/.test(title)) return 'ja'; // hiragana/katakana
+ if (/[一-鿿]/.test(title)) return 'zh';
+ return 'en';
+}
+
+function toArchiveRecord(a, marketContext, nowIso) {
+ return {
+ id: a.id,
+ schema_version: '2.0.0',
+ title: a.title,
+ link: a.link,
+ canonical_link: a.link,
+ description: a.description,
+ source: a.source,
+ source_key: a.source_key,
+ category: a.category,
+ pub_date: a.pub_date,
+ first_seen: nowIso,
+ last_seen: nowIso,
+ fetch_count: 1,
+ tickers: a.tickers,
+ entities: { people: [], companies: [], protocols: [] },
+ tags: [],
+ sentiment: a.sentiment,
+ market_context: marketContext,
+ content_hash: a.id,
+ meta: {
+ word_count: (a.description || a.title).split(/\s+/).length,
+ has_numbers: /\d/.test(`${a.title} ${a.description || ''}`),
+ is_breaking: false,
+ is_opinion: false,
+ has_url: true,
+ import_source: 'three.ws-live-archiver',
+ language: detectLanguage(a.title),
+ },
+ };
+}
+
+// Market context at capture time — real values or null, never fabricated.
+async function currentMarketContext() {
+ try {
+ const [global, fng] = await Promise.all([
+ geckoFetch('/global', { ttlMs: 120_000 }),
+ fetch('https://api.alternative.me/fng/?limit=1', { signal: AbortSignal.timeout(6000) })
+ .then((r) => (r.ok ? r.json() : null))
+ .catch(() => null),
+ ]);
+ const prices = await geckoFetch('/simple/price?ids=bitcoin,ethereum,solana&vs_currencies=usd', {
+ ttlMs: 120_000,
+ });
+ return {
+ btc_price: prices?.bitcoin?.usd ?? null,
+ eth_price: prices?.ethereum?.usd ?? null,
+ sol_price: prices?.solana?.usd ?? null,
+ total_market_cap: global?.data?.total_market_cap?.usd ?? null,
+ btc_dominance: global?.data?.market_cap_percentage?.btc ?? null,
+ fear_greed_index: fng?.data?.[0]?.value != null ? Number(fng.data[0].value) : null,
+ };
+ } catch {
+ return null;
+ }
+}
+
+// ─────────────────────────────────────────────────────────────────────────────
+
+export default wrapCron(async (req, res) => {
+ if (!method(req, res, ['GET'])) return;
+ if (!requireCron(req, res)) return;
+
+ const params = new URL(req.url, 'http://x').searchParams;
+ const dryRun = params.get('dry_run') === '1';
+ const nowIso = new Date().toISOString();
+ const month = nowIso.slice(0, 7); // YYYY-MM
+
+ let token = null;
+ if (!dryRun) token = await getGcpAccessToken();
+
+ // Live sweep across every source — the aggregator serves from its
+ // per-source cache, so this is one bounded fan-out at most.
+ const live = await getNews({ limit: 2000 });
+ if (!live.articles.length) {
+ return json(res, 200, { ok: true, month, appended: 0, note: 'aggregator returned no articles' });
+ }
+
+ const objectName = `articles/${month}.jsonl`;
+ const existing = dryRun
+ ? { exists: false, generation: '0', text: '' }
+ : await gcsGetObject(token, objectName);
+ const seen = new Set();
+ for (const line of existing.text.split('\n')) {
+ if (!line.trim()) continue;
+ try {
+ seen.add(JSON.parse(line).id);
+ } catch {
+ // malformed line — leave it in place, it just can't dedupe
+ }
+ }
+
+ // Only archive articles actually published (or first seen) this month, so
+ // a long-lived feed backlog doesn't leak into the wrong month file.
+ const fresh = live.articles.filter(
+ (a) => !seen.has(a.id) && (!a.pub_date || a.pub_date.slice(0, 7) === month),
+ );
+ if (!fresh.length) {
+ return json(res, 200, {
+ ok: true, month, appended: 0, live_considered: live.articles.length,
+ already_archived: seen.size, dry_run: dryRun,
+ });
+ }
+
+ const marketContext = await currentMarketContext();
+ const lines = fresh.map((a) => JSON.stringify(toArchiveRecord(a, marketContext, nowIso)));
+
+ if (!dryRun) {
+ const body = existing.text
+ ? `${existing.text.replace(/\n$/, '')}\n${lines.join('\n')}\n`
+ : `${lines.join('\n')}\n`;
+ await gcsPutObject(token, objectName, body, existing.generation, 'application/x-ndjson');
+
+ // Keep corpus stats truthful for /markets/archive and the API's
+ // stats mode. Best-effort: a stats race loses to next hour's run.
+ try {
+ const stats = await gcsGetObject(token, 'meta/stats.json');
+ if (stats.exists) {
+ const parsed = JSON.parse(stats.text);
+ parsed.total_articles += fresh.length;
+ parsed.total_with_url += fresh.length;
+ parsed.total_with_date += fresh.filter((a) => a.pub_date).length;
+ parsed.total_with_description += fresh.filter((a) => a.description).length;
+ const newest = fresh.map((a) => a.pub_date).filter(Boolean).sort().pop();
+ if (newest && (!parsed.last_article_date || newest > parsed.last_article_date)) {
+ parsed.last_article_date = newest;
+ }
+ for (const a of fresh) {
+ parsed.sources[a.source_key] = (parsed.sources[a.source_key] || 0) + 1;
+ }
+ await gcsPutObject(token, 'meta/stats.json', JSON.stringify(parsed, null, 2), stats.generation, 'application/json');
+ }
+ } catch (err) {
+ if (err?.code !== 'race') console.error('news-archive-append: stats update skipped:', err.message);
+ }
+ }
+
+ return json(res, 200, {
+ ok: true,
+ month,
+ appended: fresh.length,
+ live_considered: live.articles.length,
+ already_archived: seen.size,
+ sources_live: `${live.sources_ok}/${live.sources_total}`,
+ market_context: marketContext ? 'captured' : 'unavailable',
+ dry_run: dryRun,
+ });
+});
diff --git a/api/news/rss.js b/api/news/rss.js
new file mode 100644
index 000000000..ec8775c70
--- /dev/null
+++ b/api/news/rss.js
@@ -0,0 +1,75 @@
+// GET /api/news/rss — RSS 2.0 syndication of the live aggregated crypto-news
+// feed (same engine as /api/news/feed). Lets readers, bots, and downstream
+// aggregators subscribe to three.ws crypto news directly.
+//
+// ?category=defi any canonical category (default: all)
+// ?limit=50 1–100 items
+//
+// Linked as <link rel="alternate"> from /markets/news. CDN-cached 300s.
+
+import { cors, method, text, wrap, error, rateLimited } from '../_lib/http.js';
+import { limits, clientIp } from '../_lib/rate-limit.js';
+import { getNews } from '../_lib/news.js';
+import { NEWS_CATEGORIES } from '../_lib/news-sources.js';
+
+const xml = (s) =>
+ String(s || '')
+ .replace(/&/g, '&amp;')
+ .replace(/</g, '&lt;')
+ .replace(/>/g, '&gt;')
+ .replace(/"/g, '&quot;')
+ .replace(/'/g, '&apos;');
+
+export default wrap(async (req, res) => {
+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
+ if (!method(req, res, ['GET'])) return;
+
+ const rl = await limits.marketFeedIp(clientIp(req));
+ if (!rl.success) return rateLimited(res, rl);
+
+ const params = new URL(req.url, 'http://x').searchParams;
+ const category = (params.get('category') || '').trim().toLowerCase() || undefined;
+ const limit = Math.min(Math.max(1, parseInt(params.get('limit') || '50', 10) || 50), 100);
+ if (category && category !== 'all' && !NEWS_CATEGORIES.includes(category)) {
+ return error(res, 400, 'bad_category', `unknown category "${category}"`);
+ }
+
+ const { articles } = await getNews({ category, limit });
+ const feedUrl = `https://three.ws/api/news/rss${category ? `?category=${category}` : ''}`;
+ const pageUrl = `https://three.ws/markets/news${category ? `?category=${category}` : ''}`;
+ const title = `three.ws Crypto News${category ? ` — ${category}` : ''}`;
+
+ const items = articles
+ .map((a) => {
+ const reader = `https://three.ws/markets/news/article?${new URLSearchParams({ url: a.link, title: a.title, source: a.source })}`;
+ return ` <item>
+ <title>${xml(a.title)}</title>
+ <link>${xml(a.link)}</link>
+ <guid isPermaLink="false">${xml(a.id)}</guid>
+ ${a.description ? `<description>${xml(a.description)}</description>` : ''}
+ ${a.pub_date ? `<pubDate>${new Date(a.pub_date).toUTCString()}</pubDate>` : ''}
+ <source url="${xml(reader)}">${xml(a.source)}</source>
+ ${a.image ? `<enclosure url="${xml(a.image)}" type="image/jpeg" />` : ''}
+ </item>`;
+ })
+ .join('\n');
+
+ const body = `<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>${xml(title)}</title>
+ <link>${xml(pageUrl)}</link>
+ <atom:link href="${xml(feedUrl)}" rel="self" type="application/rss+xml" />
+ <description>Live crypto news aggregated by three.ws from 38 publisher feeds${category ? ` — ${category} category` : ''}.</description>
+ <language>en</language>
+ <lastBuildDate>${new Date().toUTCString()}</lastBuildDate>
+ <ttl>5</ttl>
+${items}
+ </channel>
+</rss>
+`;
+ return text(res, 200, body, {
+ 'content-type': 'application/rss+xml; charset=utf-8',
+ 'cache-control': 'public, max-age=120, s-maxage=300, stale-while-revalidate=900',
+ });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 19663cb73..00cfcd339 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -12743,6 +12743,26 @@
"feature"
],
"link": "/markets"
+ },
+ {
+ "date": "2026-07-09",
+ "title": "IRL now works in landscape, and the IRL API is fully documented",
+ "summary": "Rotating your phone on the IRL screen used to bury the camera view under the control panel — it swallowed nearly two-thirds of a sideways screen and pushed floating buttons up over the top bar. Landscape now gets a slim control strip so the AR view stays clear in either orientation. For builders: the complete IRL API — presence tokens, pins, money drops, and World Lines quests — is now documented in the REST API reference, alongside the @three-ws/irl SDK.",
+ "tags": [
+ "improvement",
+ "docs"
+ ],
+ "link": "/irl"
+ },
+ {
+ "date": "2026-07-10",
+ "title": "The news archive now updates itself every hour — and the live feed has an RSS feed",
+ "summary": "The 660,000-article news archive is no longer frozen in time: an hourly archiver now appends every new story from the live feed into the corpus, complete with the market snapshot at capture time (BTC/ETH/SOL price, market cap, Fear & Greed), so /markets/archive stays current forever. And if you'd rather read three.ws crypto news in your own reader, the feed is now available as standard RSS at /api/news/rss — subscribe to everything or just one category.",
+ "tags": [
+ "feature",
+ "infra"
+ ],
+ "link": "/markets/archive"
}
]
}
diff --git a/data/pages.json b/data/pages.json
index b4a2b72e8..e99e20fce 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -1569,7 +1569,7 @@
{
"path": "/markets/archive",
"title": "Crypto News Archive",
- "description": "The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.",
+ "description": "The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.",
"priority": 0.8,
"changefreq": "weekly",
"added": "2026-07-10"
diff --git a/docs/api-reference.md b/docs/api-reference.md
index c257506a8..e4dae253e 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -1998,6 +1998,120 @@ Public directory of ERC-8004 agents with 3D avatars, for homepage and gallery us
---
+## IRL API — presence, pins, money drops, world lines
+
+The real-world layer behind [three.ws/irl](https://three.ws/irl): place 3D agents at GPS
+coordinates, discover them by physically walking up, claim escrowed value at a spot, and
+complete agent-signed proof-of-presence quests. The official client is
+[`@three-ws/irl`](https://www.npmjs.com/package/@three-ws/irl) (`packages/irl/`), which wraps
+every endpoint below as a typed function.
+
+**The privacy contract governs every read.** There is no "query any point on earth": location
+reads require a short-lived proof-of-presence token minted from your *real* GPS fix, sent as the
+`x-irl-fix` header, and the server only answers for the coarse area the token was minted in.
+Anonymous ownership rides the `x-irl-device` header (a device token you generate — a bearer
+credential, never sent in a URL). Full threat model: `docs/irl/THREAT-MODEL.md`.
+
+### Mint a presence token
+
+```
+POST /api/irl/fix-token
+```
+
+Body: `{ "lat": number, "lng": number, "accuracy": number? }`. Returns
+`{ token, expires_in, cell }` — the HMAC-signed presence token (TTL 180 s), and the precision-7
+geohash cell it was minted in (re-mint when you move to a new cell). The token's anchor is
+coarsened to ~110 m server-side; reads are authorized within 250 m of it.
+
+---
+
+### Pins — agents placed in the world
+
+```
+GET /api/irl/pins?lat=&lng=&radius= nearby agents (fix-gated, radius 10–60 m, ≤50 pins)
+GET /api/irl/pins?mine=1 your pins (signed-in session)
+GET /api/irl/pins/mine your pins (x-irl-device token)
+POST /api/irl/pins place an agent at a coordinate
+DELETE /api/irl/pins?id=<uuid> remove one pin
+DELETE /api/irl/pins?all=1 purge every pin owned by the device token
+```
+
+The nearby feed returns an allow-list projection (never owner ids), coordinates coarsened to
+~1.1 m, sorted nearest-first. Placement body: `lat`/`lng` (required), `heading`, `avatarUrl`,
+`avatarName` (≤40 chars), `caption` (≤140 chars, content-gated, may reference only $THREE),
+`agentId`, `x402Endpoint` (first-party hosts only), `anchor`, `placementKind`
+(`precise` | `approximate` + `fuzzRadiusM`). Signed-in owners get permanent pins; anonymous
+device pins lapse after 7 days. Errors: `fix_required` 401, `area_full` 429 (≤40 pins per
+~150 m cell), `pin_limit` 429, `content` 422, `endpoint` 422.
+
+---
+
+### Interactions — the real-world encounter log
+
+```
+POST /api/irl/interactions
+```
+
+Body: `{ "pinId": "<uuid>", "type": "view" | "tap" | "message" | "pay", "message"?, ... }`.
+`view` repeats from one device collapse within 5 min; a `pay` must carry a valid on-chain
+settlement `signature` plus a `$THREE`/USDC `currencyMint` and is deduped per signature. The
+pin's owner and agent are always taken from the pin, never the caller.
+
+---
+
+### Money Drops — value escrowed at a real-world spot
+
+```
+GET /api/irl/drops?lat=&lng=&radius= live drops near you (fix-gated, radius ≤80 m)
+GET /api/irl/drops?mine=1 your drops + your claim receipts
+GET /api/irl/drops/:id one drop (location coarsened ~110 m for non-owners)
+POST /api/irl/drops create → { drop, escrow_address, fund_amount }
+POST /api/irl/drops/:id/fund confirm your signed funding transfer on-chain
+POST /api/irl/drops/:id/claim presence-proven claim → real on-chain release
+POST /api/irl/drops/:id/cancel owner cancel → real refund sweep
+```
+
+Custody is real: each drop gets a fresh escrow wallet, funded by the creator's own signed
+transfer (or, with `agentId`, server-side from the agent's spend-limited custodial wallet —
+returned already active with `funding_tx`). Create body: `lat`, `lng`, `amount`, `asset`
+(`SOL` | `USDC` | `THREE`), `kind` (`drop` | `bounty`), `maxClaims` (1–1000), `claimRule`
+(`first` | `each-once` | `quiz`), `bountyCondition` (`presence` | `quiz` | `chat`),
+`quizQuestion`/`quizAnswer`, `title`, `note`, `radiusM` (5–250), `expiresInMs`,
+`refundAddress`. Claim body: `{ lat, lng, wallet, answer? }` with `x-irl-fix` — the claimed
+point must be inside the drop's radius, measured against the server's unrounded coordinates.
+Claim response: `{ ok, asset, amount, signature, explorer_url, wallet }`. Unclaimed drops
+auto-refund on expiry. Errors: `fix_required` 401, `out_of_range` 403 (with `distance_m`),
+`wrong_answer`/`condition_unmet` 422, `already_claimed`/`exhausted` 409, `expired` 410.
+
+---
+
+### World Lines — agent-signed proof-of-presence quests
+
+```
+POST /api/irl/world-lines create (signed-in owner of the anchor pin + agent)
+GET /api/irl/world-lines/nearby?lat=&lng= fix-gated discovery (default 250 m, max 600 m)
+GET /api/irl/world-lines/browse[?region=] public region roll-up / one region's quests — no coordinates
+GET /api/irl/world-lines/mine creator dashboard + coarse completion heatmap
+GET /api/irl/world-lines/collectibles the caller's earned proofs
+GET /api/irl/world-lines/:id detail (full challenge spec only when co-located)
+POST /api/irl/world-lines/challenge issue a single-use completion nonce (co-located)
+POST /api/irl/world-lines/complete the proof ceremony → agent-signed collectible
+GET /api/irl/world-lines/verify/:proofId public, independent signature re-check
+```
+
+A World Line anchors a quest to a pin you own; the agent's custodial wallet ed25519-signs every
+completion. Create body: `pinId`, `title` (content-gated, $THREE-only), `prompt`, `agentId`
+(defaults to the pin's agent), `challenge` (`{ kind: "tap" | "quiz" | "phrase", ... }`),
+`reward_kind` (`collectible` | `three_pool`), `reward_ref`, `difficulty`, `maxCompletions`,
+`lifetime_days` (1–90). Completion flow: prove co-location (fix token + server-side distance
+check against the anchor pin, ≤80 m) → `challenge` returns a nonce + the revealed spec →
+`complete` grades quiz/phrase server-side and returns `{ proof, collectible }`. The signed
+message carries only the quest id, a ~1.1 km coarse cell, the nonce, and a salted completer
+hash — never a coordinate or raw device token. Anyone can re-verify a proof at
+`/verify/:proofId` (returns `{ verified, proof }`).
+
+---
+
## ERC-8004 API
### Resolve on-chain agent
@@ -2502,7 +2616,8 @@ GET /api/news/archive?trending=true # top tickers over the newest archived wee
Queries the platform-hosted corpus (`gs://three-ws-news-archive`: monthly
JSONL, gzip at rest — the CryptoPanic english corpus + the Odaily chinese
-corpus + the cryptocurrency.cv live archiver, September 2017 → today). Records
+corpus + the cryptocurrency.cv live archiver, September 2017 → today, kept
+current hourly by `api/cron/news-archive-append.js`). Records
are enriched: `tickers[]`, `tags[]`, `sentiment`, `lang` (`en`/`zh`),
`is_breaking`, and `market_context` (BTC/ETH price + Fear & Greed at
publication) where captured. Query mode scans months **newest → oldest** with
@@ -2512,6 +2627,16 @@ to, complete, months_remaining }, hint? }` — pass `start_date`/`end_date` to
reach older years. `sentiment` ∈ `positive|negative|neutral`; `limit` ≤ 100.
CDN cache 300 s (queries) / 3600 s (stats, months, trending).
+### RSS syndication
+
+```
+GET /api/news/rss?category=defi&limit=50
+```
+
+RSS 2.0 rendering of the live feed (same params as `/api/news/feed` minus
+search). Linked as `rel="alternate"` from /markets/news; item `<source>`
+elements point at the three.ws reader. CDN cache 300 s.
+
### Article reader
```
diff --git a/docs/coin-pages.md b/docs/coin-pages.md
index fa48f1a2e..09e6b5d45 100644
--- a/docs/coin-pages.md
+++ b/docs/coin-pages.md
@@ -42,8 +42,8 @@ editorial serif headings, hairline borders, mono numerals, light/dark themes.
a crosshair tooltip showing exact price and time.
- **Market stats** — market cap, 24h volume, circulating/total supply,
all-time high and low (dated), 24h high/low.
-- **Related news** — live articles mentioning the coin, from the
- cryptocurrency.cv aggregator with a direct-RSS fallback.
+- **Related news** — live articles mentioning the coin, from the native
+ three.ws aggregator (38 publisher feeds, `api/_lib/news.js`).
- **About + links** — plain-text description, official site / social /
explorer pills, and per-chain contract addresses with one-click copy.
- **three.ws integration** — coins with a Solana contract cross-link into
@@ -159,11 +159,14 @@ dead end, never fabricated text.
### `/markets/archive` — the historical archive
-The largest open crypto-news archive: **662,047 enriched articles from
+The largest open crypto-news archive: **660,000+ enriched articles from
September 2017 to today** (the CryptoPanic english corpus + the Odaily chinese
-corpus + the cryptocurrency.cv live archiver), every record carrying tickers,
-tags, sentiment, language, and — where captured — market context at
-publication time. Hosted on the platform's own GCS bucket
+corpus + the cryptocurrency.cv live archiver), **kept current by an hourly
+archiver** ([`api/cron/news-archive-append.js`](../api/cron/news-archive-append.js),
+Cloud Scheduler `17 * * * *`) that appends the live feed's articles to the
+current month's JSONL — idempotent by content-addressed id, generation-guarded
+against concurrent runs. Every record carries tickers,
+tags, sentiment, language, and market context at capture time. Hosted on the platform's own GCS bucket
(`gs://three-ws-news-archive`, public, gzip at rest) as monthly JSONL plus
indexes and corpus stats. The explorer filters by keyword, ticker, source,
date range, sentiment, and language (EN/中文), with year quick-jump buttons and
diff --git a/pages/markets-news.html b/pages/markets-news.html
index f6368bf46..d3b5d01be 100644
--- a/pages/markets-news.html
+++ b/pages/markets-news.html
@@ -58,6 +58,12 @@
<link rel="stylesheet" href="/src/coin-pages.css" />
<link rel="stylesheet" href="/footer.css" />
<link rel="canonical" href="https://three.ws/markets/news" />
+ <link
+ rel="alternate"
+ type="application/rss+xml"
+ title="three.ws Crypto News"
+ href="https://three.ws/api/news/rss"
+ />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
<meta property="og:locale" content="en_US" />
<meta property="og:image:alt" content="Crypto News — three.ws" />
diff --git a/pages/markets.html b/pages/markets.html
index 28cc458a6..a3f7dec67 100644
--- a/pages/markets.html
+++ b/pages/markets.html
@@ -71,7 +71,7 @@
<h1 class="cv-h1">Markets</h1>
<p class="cv-sub">
Everything the market is doing, in one place — live global stats, the top 100
- coins, breaking news from 38 publisher feeds, a 662,047-article archive back to
+ coins, breaking news from 38 publisher feeds, a 660,000+-article archive back to
2017, and the full markets toolset.
</p>
@@ -104,7 +104,7 @@
<a class="mkt-hero-card" href="/markets/archive" id="mkt-archive-teaser">
<h3>📚 News Archive</h3>
<p>
- 662,047 articles spanning September 2017 through December 2025 — searchable by ticker,
+ 660,000+ articles from September 2017 to today, refreshed hourly — searchable by ticker,
keyword, date, sentiment, and language.
</p>
<span class="stat">Search a decade of headlines →</span>
diff --git a/pages/news-archive.html b/pages/news-archive.html
index 966fbe847..4eb969742 100644
--- a/pages/news-archive.html
+++ b/pages/news-archive.html
@@ -21,7 +21,7 @@
<title>Crypto News Archive — 662k articles since 2017 · three.ws</title>
<meta
name="description"
- content="The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025, searchable by keyword, ticker, source, sentiment, date, and language (English + Chinese)."
+ content="The largest open crypto-news archive: 660,000+ articles from September 2017 to today — refreshed hourly and searchable by keyword, ticker, source, sentiment, date, and language (English + Chinese)."
/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
@@ -29,11 +29,11 @@
<meta property="og:title" content="Crypto News Archive — 662k articles since 2017 · three.ws" />
<meta
property="og:description"
- content="662,047 crypto news articles, 2017 through 2025 — searchable by keyword, ticker, source, sentiment, date, and language."
+ content="660,000+ crypto news articles from 2017 to today, refreshed hourly — searchable by keyword, ticker, source, sentiment, date, and language."
/>
<meta
property="og:image"
- content="https://three.ws/api/page-og?s=crypto&amp;t=Crypto+News+Archive&amp;d=The+largest+open+crypto-news+archive%3A+662%2C047+articles+from+September+2017+through+December+2025+in+English+and+Chinese%2C+searchable+by+keyword%2C+ticker%2C+source%2C+&amp;p=%2Fmarkets%2Farchive"
+ content="https://three.ws/api/page-og?s=crypto&amp;t=Crypto+News+Archive&amp;d=The+largest+open+crypto-news+archive%3A+660%2C000%2B+articles+from+September+2017+to+today%2C+refreshed+hourly+from+the+live+feed%2C+in+English+and+Chinese+%E2%80%94+searchable+b&amp;p=%2Fmarkets%2Farchive"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
@@ -46,7 +46,7 @@
/>
<meta
name="twitter:image"
- content="https://three.ws/api/page-og?s=crypto&amp;t=Crypto+News+Archive&amp;d=The+largest+open+crypto-news+archive%3A+662%2C047+articles+from+September+2017+through+December+2025+in+English+and+Chinese%2C+searchable+by+keyword%2C+ticker%2C+source%2C+&amp;p=%2Fmarkets%2Farchive"
+ content="https://three.ws/api/page-og?s=crypto&amp;t=Crypto+News+Archive&amp;d=The+largest+open+crypto-news+archive%3A+660%2C000%2B+articles+from+September+2017+to+today%2C+refreshed+hourly+from+the+live+feed%2C+in+English+and+Chinese+%E2%80%94+searchable+b&amp;p=%2Fmarkets%2Farchive"
/>
<meta name="theme-color" content="#09090b" />
<link rel="icon" href="/favicon.ico" sizes="any" />
@@ -61,7 +61,7 @@
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
<meta property="og:locale" content="en_US" />
<meta property="og:image:alt" content="Crypto News Archive — three.ws" />
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Dataset","name":"three.ws Crypto News Archive","description":"662,047 crypto news articles from September 2017 onward, enriched with tickers, tags, sentiment, and language. Sources include the CryptoPanic english corpus and the Odaily chinese corpus.","url":"https://three.ws/markets/archive","temporalCoverage":"2017-09/2025-12","inLanguage":["en","zh"],"creator":{"@type":"Organization","name":"three.ws","url":"https://three.ws"}}]}</script>
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Dataset","name":"three.ws Crypto News Archive","description":"662,047 crypto news articles from September 2017 onward, enriched with tickers, tags, sentiment, and language. Sources include the CryptoPanic english corpus and the Odaily chinese corpus.","url":"https://three.ws/markets/archive","temporalCoverage":"2017-09/..","inLanguage":["en","zh"],"creator":{"@type":"Organization","name":"three.ws","url":"https://three.ws"}}]}</script>
</head>
<body>
<header><div id="nav-container"></div></header>
@@ -74,8 +74,8 @@
</nav>
<h1 class="cv-h1">Crypto News Archive</h1>
<p class="cv-sub">
- The largest open archive of crypto news — <strong>662,047 articles</strong> spanning
- September 2017 through December 2025, in English and Chinese, every record enriched with
+ The largest open archive of crypto news — <strong>660,000+ articles</strong> from
+ September 2017 to today — refreshed hourly from the live feed — in English and Chinese, every record enriched with
tickers, tags, and sentiment. Search a decade of market history.
</p>
diff --git a/public/changelog.json b/public/changelog.json
index a5101523a..fd7c74d5e 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-10T02:31:23.913Z",
+ "generated_at": "2026-07-10T06:07:10.776Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -20,7 +20,7 @@
"date": "2026-07-10",
"type": "launch",
"title": "Crypto News Archive",
- "summary": "The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.",
+ "summary": "The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.",
"link": "/markets/archive",
"tags": [
"launch"
@@ -67,6 +67,17 @@
"feature"
]
},
+ {
+ "date": "2026-07-10",
+ "type": "update",
+ "title": "The news archive now updates itself every hour — and the live feed has an RSS feed",
+ "summary": "The 660,000-article news archive is no longer frozen in time: an hourly archiver now appends every new story from the live feed into the corpus, complete with the market snapshot at capture time (BTC/ETH/SOL price, market cap, Fear & Greed), so /markets/archive stays current forever. And if you'd rather read three.ws crypto news in your own reader, the feed is now available as standard RSS at /api/news/rss — subscribe to everything or just one category.",
+ "link": "/markets/archive",
+ "tags": [
+ "feature",
+ "infra"
+ ]
+ },
{
"date": "2026-07-09",
"type": "update",
@@ -185,6 +196,17 @@
"fix"
]
},
+ {
+ "date": "2026-07-09",
+ "type": "update",
+ "title": "IRL now works in landscape, and the IRL API is fully documented",
+ "summary": "Rotating your phone on the IRL screen used to bury the camera view under the control panel — it swallowed nearly two-thirds of a sideways screen and pushed floating buttons up over the top bar. Landscape now gets a slim control strip so the AR view stays clear in either orientation. For builders: the complete IRL API — presence tokens, pins, money drops, and World Lines quests — is now documented in the REST API reference, alongside the @three-ws/irl SDK.",
+ "link": "/irl",
+ "tags": [
+ "improvement",
+ "docs"
+ ]
+ },
{
"date": "2026-07-09",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index d9cf4427f..d790c4cfa 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -20,7 +20,7 @@
<guid isPermaLink="false">2026-07-10:Crypto News Archive</guid>
<pubDate>Fri, 10 Jul 2026 12:00:00 GMT</pubDate>
<category>launch</category>
- <description>The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.</description>
+ <description>The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.</description>
</item>
<item>
<title>Crypto News Reader</title>
@@ -54,6 +54,14 @@
<category>feature</category>
<description>Markets grew a full news wing. /markets/news streams live headlines aggregated directly from 38 publisher feeds — filter by category (Bitcoin, DeFi, regulation, and more), search, and open any story in a reader that extracts the full text with a summary, key points, sentiment, and related coverage. Behind it sits the largest open crypto-news archive anywhere: 662,047 articles from September 2017 to today in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language at /markets/archive. A new /markets hub ties the whole suite together — live global stats, the top 100 coins, breaking news, and every market tool as its own card.</description>
</item>
+ <item>
+ <title>The news archive now updates itself every hour — and the live feed has an RSS feed</title>
+ <link>https://three.ws/markets/archive</link>
+ <guid isPermaLink="false">2026-07-10:The news archive now updates itself every hour — and the live feed has an RSS feed</guid>
+ <pubDate>Fri, 10 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The 660,000-article news archive is no longer frozen in time: an hourly archiver now appends every new story from the live feed into the corpus, complete with the market snapshot at capture time (BTC/ETH/SOL price, market cap, Fear &amp; Greed), so /markets/archive stays current forever. And if you'd rather read three.ws crypto news in your own reader, the feed is now available as standard RSS at /api/news/rss — subscribe to everything or just one category.</description>
+ </item>
<item>
<title>/play: real water at the fishing ponds, and spare rods to find on the bank</title>
<link>https://three.ws/play</link>
@@ -142,6 +150,14 @@
<category>fix</category>
<description>The avatar picker on the homepage was asking our image server for five pictures that had never been made, so the browser refused them and those slots sat blank. It now asks only for pictures that actually exist, and it leads with the avatars that have one — where an avatar has no picture yet, it draws a clean initial instead of a broken tile. Underneath it, the live marketplace strip had been silently empty: it was reading the agent list in the wrong shape and quietly gave up every time, leaving just a lone &quot;Browse marketplace&quot; link. It now reads the list correctly and shows ten real agents you can click straight through to. The 3D models themselves were always loading fine and are untouched.</description>
</item>
+ <item>
+ <title>IRL now works in landscape, and the IRL API is fully documented</title>
+ <link>https://three.ws/irl</link>
+ <guid isPermaLink="false">2026-07-09:IRL now works in landscape, and the IRL API is fully documented</guid>
+ <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Rotating your phone on the IRL screen used to bury the camera view under the control panel — it swallowed nearly two-thirds of a sideways screen and pushed floating buttons up over the top bar. Landscape now gets a slim control strip so the AR view stays clear in either orientation. For builders: the complete IRL API — presence tokens, pins, money drops, and World Lines quests — is now documented in the REST API reference, alongside the @three-ws/irl SDK.</description>
+ </item>
<item>
<title>IRL on phones: controls no longer cover each other</title>
<link>https://three.ws/irl</link>
diff --git a/public/features.json b/public/features.json
index 157c9486c..fe33d3bd6 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-10T02:31:23.896Z",
+ "generated_at": "2026-07-10T06:07:10.762Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -1919,7 +1919,7 @@
{
"path": "/markets/archive",
"title": "Crypto News Archive",
- "description": "The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.",
+ "description": "The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.",
"added": "2026-07-10",
"auth": null,
"indexable": true,
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 0eebceb9b..b2c8ceb1a 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -1166,7 +1166,7 @@ Rich article reader for crypto news — full story extraction with AI summary, k
URL: https://three.ws/markets/archive
-The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.
+The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.
## Agent Tools
diff --git a/public/llms.txt b/public/llms.txt
index 00ffd5907..adaecb367 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -209,7 +209,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.
- [Markets Hub](https://three.ws/markets): The three.ws markets hub — live global stats, the top 100 coins, breaking crypto news from 38 publisher feeds, a 662k-article news archive, and hero links to the full markets toolset.
- [Crypto News](https://three.ws/markets/news): Live crypto news aggregated natively from 38 publisher feeds — filter by category (Bitcoin, DeFi, regulation, and more), search headlines, and open any story in a rich reader with summary, key points, sentiment, and related coverage.
- [Crypto News Reader](https://three.ws/markets/news/article): Rich article reader for crypto news — full story extraction with AI summary, key points, sentiment, detected tickers, and related coverage from across the industry.
-- [Crypto News Archive](https://three.ws/markets/archive): The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.
+- [Crypto News Archive](https://three.ws/markets/archive): The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.
## Agent Tools
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index f5661d550..6b5374d9a 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -1466,7 +1466,7 @@
<a href="/markets/archive">
<span class="sm-title">Crypto News Archive</span>
<span class="sm-path">/markets/archive</span>
- <span class="sm-desc">The largest open crypto-news archive: 662,047 articles from September 2017 through December 2025 in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language — with live coverage continuing at /markets/news.</span>
+ <span class="sm-desc">The largest open crypto-news archive: 660,000+ articles from September 2017 to today, refreshed hourly from the live feed, in English and Chinese — searchable by keyword, ticker, source, sentiment, date, and language.</span>
</a>
</li>
</ul>
diff --git a/src/markets-page.js b/src/markets-page.js
index 420905a12..35f447cde 100644
--- a/src/markets-page.js
+++ b/src/markets-page.js
@@ -281,7 +281,7 @@ async function init() {
getJson('/api/news/archive?stats=true')
.then((d) => {
if (d?.stats?.total_articles) {
- suiteStats.archive = `${d.stats.total_articles.toLocaleString()} <span class="dim">articles · 2017 → 2025</span>`;
+ suiteStats.archive = `${d.stats.total_articles.toLocaleString()} <span class="dim">articles since 2017</span>`;
const teaser = $('mkt-archive-teaser')?.querySelector('p');
if (teaser) {
const first = new Date(d.stats.first_article_date);
diff --git a/tests/news-archive-append.test.js b/tests/news-archive-append.test.js
new file mode 100644
index 000000000..b47eb43fb
--- /dev/null
+++ b/tests/news-archive-append.test.js
@@ -0,0 +1,159 @@
+// Coverage for api/cron/news-archive-append.js — the hourly continuous
+// archiver. Verifies the cron gate, dry-run accounting, id-dedupe against the
+// existing month object, month-scoping of stale feed items, the enriched
+// record schema, and the generation-guarded GCS writes. All I/O mocked.
+
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
+
+vi.mock('../api/_lib/http.js', () => ({
+ wrapCron: (fn) => fn,
+ method: () => true,
+ json: (res, status, body) => {
+ res._json = { status, body };
+ return res;
+ },
+ error: (res, status, code, message) => {
+ res._json = { status, body: { error: code, message } };
+ return res;
+ },
+}));
+vi.mock('../api/_lib/env.js', () => ({ env: {} }));
+vi.mock('../api/_lib/crypto.js', () => ({
+ constantTimeEquals: (a, b) => a === b,
+}));
+vi.mock('../api/_lib/gcp-auth.js', () => ({
+ getGcpAccessToken: vi.fn(async () => 'gcs-token'),
+}));
+vi.mock('../api/_lib/coingecko.js', () => ({
+ geckoFetch: vi.fn(async (path) =>
+ path.startsWith('/global')
+ ? { data: { total_market_cap: { usd: 2.2e12 }, market_cap_percentage: { btc: 56.3 } } }
+ : { bitcoin: { usd: 64000 }, ethereum: { usd: 1800 }, solana: { usd: 80 } },
+ ),
+}));
+
+const NOW_MONTH = new Date().toISOString().slice(0, 7);
+const LIVE = [
+ {
+ id: 'aaaaaaaaaaaaaaaa', title: 'BTC rallies', link: 'https://x.com/a', description: 'Bitcoin gains 5%',
+ image: null, author: null, source: 'CoinDesk', source_key: 'coindesk', category: 'general',
+ pub_date: `${NOW_MONTH}-05T10:00:00.000Z`, tickers: ['BTC'],
+ sentiment: { score: 0.4, label: 'positive', confidence: 0.7 },
+ },
+ {
+ id: 'bbbbbbbbbbbbbbbb', title: 'Already archived story', link: 'https://x.com/b', description: null,
+ image: null, author: null, source: 'Decrypt', source_key: 'decrypt', category: 'general',
+ pub_date: `${NOW_MONTH}-04T10:00:00.000Z`, tickers: [],
+ sentiment: { score: 0, label: 'neutral', confidence: 0.5 },
+ },
+ {
+ id: 'cccccccccccccccc', title: 'Stale backlog item', link: 'https://x.com/c', description: null,
+ image: null, author: null, source: 'Protos', source_key: 'protos', category: 'journalism',
+ pub_date: '2020-01-01T10:00:00.000Z', tickers: [],
+ sentiment: { score: 0, label: 'neutral', confidence: 0.5 },
+ },
+];
+vi.mock('../api/_lib/news.js', () => ({
+ getNews: vi.fn(async () => ({ articles: LIVE, total: LIVE.length, sources_ok: 37, sources_total: 38 })),
+}));
+
+const { default: handler } = await import('../api/cron/news-archive-append.js');
+
+function call(url, auth = 'Bearer s3cret') {
+ const res = { setHeader() {}, end() {}, statusCode: 200 };
+ return handler({ method: 'GET', url, headers: { authorization: auth } }, res).then(() => res);
+}
+
+const originalFetch = global.fetch;
+let writes;
+
+beforeEach(() => {
+ process.env.CRON_SECRET = 's3cret';
+ writes = [];
+ global.fetch = vi.fn(async (url, opts = {}) => {
+ const u = String(url);
+ if (opts.method === 'POST') {
+ writes.push({ url: u, body: String(opts.body), headers: opts.headers });
+ return { ok: true, status: 200, json: async () => ({ generation: '2' }), text: async () => '' };
+ }
+ // existing month object holds article b already
+ if (u.includes(`articles%2F${NOW_MONTH}.jsonl`) && !u.includes('alt=media')) {
+ return { ok: true, status: 200, json: async () => ({ generation: '41' }) };
+ }
+ if (u.includes(`articles%2F${NOW_MONTH}.jsonl`) && u.includes('alt=media')) {
+ return { ok: true, status: 200, text: async () => `${JSON.stringify({ id: 'bbbbbbbbbbbbbbbb' })}\n` };
+ }
+ if (u.includes('meta%2Fstats.json') && !u.includes('alt=media')) {
+ return { ok: true, status: 200, json: async () => ({ generation: '7' }) };
+ }
+ if (u.includes('meta%2Fstats.json') && u.includes('alt=media')) {
+ return {
+ ok: true, status: 200,
+ text: async () => JSON.stringify({
+ total_articles: 662047, total_with_url: 340047, total_with_date: 487690,
+ total_with_description: 27791, last_article_date: '2025-12-03T10:28:51.000Z',
+ sources: { coindesk: 2108 },
+ }),
+ };
+ }
+ if (u.includes('alternative.me')) {
+ return { ok: true, status: 200, json: async () => ({ data: [{ value: '23' }] }) };
+ }
+ return { ok: false, status: 404, json: async () => ({}), text: async () => '' };
+ });
+});
+afterEach(() => {
+ delete process.env.CRON_SECRET;
+ global.fetch = originalFetch;
+ vi.restoreAllMocks();
+});
+
+describe('GET /api/cron/news-archive-append', () => {
+ it('rejects a bad cron secret', async () => {
+ const res = await call('/api/cron/news-archive-append', 'Bearer wrong');
+ expect(res._json.status).toBe(401);
+ });
+
+ it('dry_run reports counts without any GCS write', async () => {
+ const res = await call('/api/cron/news-archive-append?dry_run=1');
+ expect(res._json.status).toBe(200);
+ expect(res._json.body.dry_run).toBe(true);
+ // dry run skips the existing-object read, so all in-month items count
+ expect(res._json.body.appended).toBe(2);
+ expect(writes).toHaveLength(0);
+ });
+
+ it('appends only new in-month articles, schema-complete, generation-guarded', async () => {
+ const res = await call('/api/cron/news-archive-append');
+ expect(res._json.status).toBe(200);
+ expect(res._json.body.appended).toBe(1); // b deduped, c out-of-month
+ const monthWrite = writes.find((w) => w.url.includes(`articles%2F${NOW_MONTH}.jsonl`));
+ expect(monthWrite).toBeTruthy();
+ expect(monthWrite.url).toContain('ifGenerationMatch=41');
+ const lines = monthWrite.body.trim().split('\n');
+ expect(lines).toHaveLength(2); // existing line + 1 appended
+ const rec = JSON.parse(lines[1]);
+ expect(rec).toMatchObject({
+ id: 'aaaaaaaaaaaaaaaa',
+ schema_version: '2.0.0',
+ source_key: 'coindesk',
+ tickers: ['BTC'],
+ content_hash: 'aaaaaaaaaaaaaaaa',
+ });
+ expect(rec.market_context.btc_price).toBe(64000);
+ expect(rec.market_context.fear_greed_index).toBe(23);
+ expect(rec.meta.language).toBe('en');
+ expect(rec.meta.import_source).toBe('three.ws-live-archiver');
+ });
+
+ it('updates corpus stats after an append', async () => {
+ await call('/api/cron/news-archive-append');
+ const statsWrite = writes.find((w) => w.url.includes('meta%2Fstats.json'));
+ expect(statsWrite).toBeTruthy();
+ expect(statsWrite.url).toContain('ifGenerationMatch=7');
+ const stats = JSON.parse(statsWrite.body);
+ expect(stats.total_articles).toBe(662048);
+ expect(stats.sources.coindesk).toBe(2109);
+ expect(stats.last_article_date).toBe(`${NOW_MONTH}-05T10:00:00.000Z`);
+ });
+});
diff --git a/vercel.json b/vercel.json
index 1b6089485..66ae5653c 100644
--- a/vercel.json
+++ b/vercel.json
@@ -5208,6 +5208,10 @@
{
"path": "/api/cron/vanity-inventory-replenish",
"schedule": "0 * * * *"
+ },
+ {
+ "path": "/api/cron/news-archive-append",
+ "schedule": "17 * * * *"
}
]
}