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): digest endpoint, shared LLM chain, and clean feed excerpts

fudjia6379a975d1c4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f6da4c53c..6e2ee9ea5 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
- **Coin buybacks and vault balances work again** — A wiring mistake in how the platform opened its connection to Solana meant every automated buyback silently failed — for nearly a month, roughly 40,000 times a day — and the vault-balance view for any agent coin returned an error instead of its numbers. Both are fixed. Buybacks now run against the chain as intended, agent coin pages show real payment, buyback and withdraw vault balances again, and the failed-run log that quietly grew to a quarter-million rows is now pruned automatically while every on-chain burn record is kept. (`/launches`) `[fix]`
- **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]`
- **Friends now see you online — and can message you — while you're in /play** — Your account's friends list, presence, and DMs (already live on /walk) now work inside /play's coin worlds too: a Friends button on the HUD (or press J) opens a drawer showing who's online and where, with live direct messages that arrive instantly whether or not the drawer is open. Previously /play never told the server who you were signed in as, so friends saw you as offline no matter how long you played, and any message sent your way was silently lost. (`/play`) `[feature, fix]`
+- **News Digest: the day's crypto coverage, grouped into the stories that actually matter** — Reading 90 headlines to find the 8 things that happened is a chore. /markets/digest does it for you: it reads every story from all 38 publisher feeds over your chosen window (6 hours to 3 days) and groups them into distinct narratives — each with a plain-language summary, whether it reads bullish or bearish, the coins involved, and an expandable list of every outlet that covered it. When an AI provider is available it groups the stories semantically; otherwise it clusters them by keyword and ticker overlap. Either way, every story links back to the real articles behind it — nothing is invented. (`/markets/digest`) `[feature]`
- **The liquidations pulse on /coins is live** — The long/short liquidation strip on the markets page had been showing its offline state since launch — the collector that listens to Binance, Bybit, and OKX futures streams needs to run around the clock, which the old serverless setup couldn't do. It now runs as its own always-on service, so the dominant-side badge, the 1-hour long-vs-short bars, and the biggest recent liquidations fill in with real exchange data. (`/coins`) `[feature, infra]`
- **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]`
- **The Oracle can see the news again** — The Oracle's narrative pillar — one of the four signals behind every 0-100 conviction score — reads live headlines to tell whether a coin is riding a real story. It had been reading them from an outside news service that went offline, and because the code was built to fail quietly rather than break, it simply scored with no headlines at all. Conviction scores now draw on three.ws's own news engine, which reads 38 publisher feeds directly, so the narrative read is live again and no longer depends on anyone else staying up. The pump.fun news-meme detector and the sniper's coin classifier read from the same engine. (`/oracle`) `[fix, improvement]`
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 17ec19c9a..fee1e780e 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -79,7 +79,7 @@ bottom.
| Global markets + coin detail pages | [pages/coins.html](pages/coins.html) + [src/coins-index.js](src/coins-index.js) `→ /coins`, [pages/coin.html](pages/coin.html) + [src/coin-page.js](src/coin-page.js) `→ /coin/:id`, backend [api/coin/](api/coin) (detail, ohlc, markets, news, global over [api/_lib/coingecko.js](api/_lib/coingecko.js)) | In-repo | CoinGecko-style markets index (global stats bar, sortable top-coins table, search, sparklines) + a rich detail page per coin (interactive chart, stats grid, related news, links). Design adopted from cryptocurrency.cv; accepts CoinGecko slugs or Solana mints. Docs: [docs/coin-pages.md](docs/coin-pages.md) |
| Market tools (heatmap, sentiment, gas, compare) | [pages/heatmap.html](pages/heatmap.html) + [src/heatmap.js](src/heatmap.js) `→ /heatmap`, [pages/fear-greed.html](pages/fear-greed.html) + [src/fear-greed.js](src/fear-greed.js) `→ /fear-greed`, [pages/gas.html](pages/gas.html) + [src/gas.js](src/gas.js) `→ /gas`, [pages/compare.html](pages/compare.html) + [src/compare.js](src/compare.js) `→ /compare`; backend [api/coin/fear-greed.js](api/coin/fear-greed.js), [api/coin/gas.js](api/coin/gas.js) | In-repo | Four tools extending Markets, same design system: treemap heatmap (market-cap-sized tiles), Fear & Greed gauge + history, live Ethereum gas tracker (keyless `eth_feeHistory`), and up-to-4-coin compare (overlay perf + stats). All real key-free data; cross-linked from the markets table. Docs: [docs/coin-pages.md](docs/coin-pages.md) |
| Market tools II (screener, categories, exchanges, derivatives, converter, DeFi, chains, stablecoins) | Pages+JS `→ /screener /categories /exchanges /derivatives /converter /defi /chains /stablecoins`; backend [api/coin/](api/coin) (categories, exchanges, derivatives, rates) over CoinGecko + [api/defi/](api/defi) (protocols, chains, stablecoins) over DeFiLlama | In-repo | Eight more Markets tools, same design system: token screener + category rankings + exchange/derivatives tables + crypto⇄fiat converter (CoinGecko), plus a DeFiLlama trio — DeFi TVL by protocol, chains by TVL, stablecoins with peg health. All real key-free data; cross-linked from the markets table. Docs: [docs/coin-pages.md](docs/coin-pages.md) |
-| Crypto news + archive + markets hub | [pages/markets.html](pages/markets.html) + [src/markets-page.js](src/markets-page.js) `→ /markets`, [pages/markets-news.html](pages/markets-news.html) + [src/markets-news.js](src/markets-news.js) `→ /markets/news`, [pages/news-article.html](pages/news-article.html) + [src/news-article.js](src/news-article.js) `→ /markets/news/article`, [pages/news-archive.html](pages/news-archive.html) + [src/news-archive.js](src/news-archive.js) `→ /markets/archive`; backend [api/news/](api/news) (feed, article, archive) over [api/_lib/news.js](api/_lib/news.js) + [api/_lib/news-sources.js](api/_lib/news-sources.js), corpus on `gs://three-ws-news-archive` | In-repo | The Markets news wing + front door: live news aggregated natively from 38 publisher feeds (category tabs, search, sentiment, ticker chips), a rich article reader (server-side extraction, AI summary/key points with extractive fallback, related coverage), the largest open crypto-news archive (662,047 enriched articles, Sept 2017 → today, EN+中文, GCS-hosted), and the /markets hub aggregating global stats, the top-100 table, breaking news, and every market surface as a hero card. Docs: [docs/coin-pages.md](docs/coin-pages.md), [docs/api-reference.md](docs/api-reference.md) |
+| Crypto news + archive + markets hub | [pages/markets.html](pages/markets.html) + [src/markets-page.js](src/markets-page.js) `→ /markets`, [pages/markets-news.html](pages/markets-news.html) + [src/markets-news.js](src/markets-news.js) `→ /markets/news`, [pages/news-article.html](pages/news-article.html) + [src/news-article.js](src/news-article.js) `→ /markets/news/article`, [pages/news-archive.html](pages/news-archive.html) + [src/news-archive.js](src/news-archive.js) `→ /markets/archive`, [pages/news-digest.html](pages/news-digest.html) + [src/news-digest.js](src/news-digest.js) `→ /markets/digest`; backend [api/news/](api/news) (feed, article, archive, digest, rss) + hourly archiver [api/cron/news-archive-append.js](api/cron/news-archive-append.js) over [api/_lib/news.js](api/_lib/news.js) + [api/_lib/news-sources.js](api/_lib/news-sources.js), corpus on `gs://three-ws-news-archive` | In-repo | The Markets news wing + front door: live news aggregated natively from 38 publisher feeds (category tabs, search, sentiment, ticker chips), a rich article reader (server-side extraction, AI summary/key points with extractive fallback, related coverage), the largest open crypto-news archive (662,047 enriched articles, Sept 2017 → today, EN+中文, GCS-hosted), and the /markets hub aggregating global stats, the top-100 table, breaking news, and every market surface as a hero card. Docs: [docs/coin-pages.md](docs/coin-pages.md), [docs/api-reference.md](docs/api-reference.md) |
| Liquidations pulse (/coins) | Collector [services/liquidation-collector/](services/liquidation-collector) (standalone always-on Node service, ported from SperaxOS), proxy [api/coin/liquidations.js](api/coin/liquidations.js) `→ GET /api/coin/liquidations`, UI strip in [src/coins-index.js](src/coins-index.js) `→ /coins` | Live — collector on Cloud Run (`liquidation-collector`, min-instances 1, unthrottled CPU) since 2026-07-10 | Real-time long/short liquidation pain across Binance, Bybit, and OKX public futures WebSocket streams: dominant-side badge (LONG PAIN / SHORT SQUEEZE / BALANCED), 1h long-vs-short bars, and the 3 largest recent liquidations, polled every 30s (pauses on hidden tab). The collector holds long-lived WebSockets so it can't run as a Vercel function — deploy it separately and point `LIQUIDATION_COLLECTOR_URL` at it. No fallback data: the proxy 503s `collector_offline` (never fabricated numbers) when unset or unreachable, and the strip degrades to a quiet single-line offline state. Docs: [docs/api-reference.md#liquidations](docs/api-reference.md#liquidations) |
| BNB Chain campaign hub | [pages/bnb.html](pages/bnb.html) + [src/bnb.js](src/bnb.js) `→ /bnb`, pure helpers [src/bnb-hub-helpers.js](src/bnb-hub-helpers.js), live block-time API [api/bnb/block-time.js](api/bnb/block-time.js) over [api/_lib/bnb/chains.js](api/_lib/bnb/chains.js) `probeBlockTime` | In-repo · hub live, tracks rolling out | The campaign's front door: three feature cards (gasless agent onboarding, on-chain-gated 3D vault, real-time on-chain world), each claim traced to `prompts/bnb-chain/00-CONTEXT.md`'s verified facts (0.45s blocks — never 20k TPS or 250ms finality). Embeds a live block-time widget (real RPC measurement on every load). Each card self-detects liveness via a real HTTP probe against its track's route/API on the running deployment — a 404 renders a designed "coming soon" state, never a dead link — so cards auto-light-up as the sibling tracks below ship: gasless registration `→ /create-agent` + `api/bnb/register-agent.js` (prompt 03), vault `→ /vault` (prompt 12), on-chain world `→ /bnb-latency` (prompt 17) + the Explore on-chain toggle (prompt 16). Campaign root: [prompts/bnb-chain/](prompts/bnb-chain) |
| BABT holder check (BNB Chain) | Lib [api/_lib/bnb/babt.js](api/_lib/bnb/babt.js) `hasBabt()`, free API [api/bnb/babt-check.js](api/bnb/babt-check.js) `→ GET /api/bnb/babt-check?address=` | In-repo · shipped | Free, rate-limited on-chain check for whether a BSC address holds a Binance Account Bound Token (BABT) — a real, live, KYC-backed soulbound token (1.16M+ mainnet holders, verified via `eth_getCode`/`balanceOf` against the real contract `0x2B09d47D...5215D7c8`). Verification writeup + honest comparison vs. Gitcoin Passport/World ID/Coinbase attestations: [docs/bnb-babt-findings.md](docs/bnb-babt-findings.md). Spike prompt: `prompts/bnb-chain/20-babt-verification-spike.md`. |
@@ -201,7 +201,7 @@ npm).
- **Avatar / accessory assets** — [public/avatars/](public/avatars), [public/accessories/](public/accessories)
- **Animations** — [public/animations/](public/animations) (Mixamo FBX → built GLB clips), [scripts/build-animations.mjs](scripts/build-animations.mjs)
- **On-chain identity & contracts** — [contracts/](contracts), [packages/avatar-schema/](packages/avatar-schema)
-- **API endpoints** — [api/](api) (Vercel functions), [workers/](workers) (Cloudflare workers)
+- **API endpoints** — [api/](api) (serverless-style handlers, served in production by the [server/](server) Cloud Run container), [workers/](workers) (long-running workers)
- **Examples & demos** — [examples/](examples), [multiplayer/](multiplayer)
- **Cross-chain SDKs** — [sdk/](sdk), [solana-agent-sdk/](solana-agent-sdk), [agent-payments-sdk/](agent-payments-sdk), [agent-protocol-sdk/](agent-protocol-sdk)
- **MCP integration** — [mcp-server/](mcp-server), [mcp-bridge/](mcp-bridge)
diff --git a/api/_lib/news.js b/api/_lib/news.js
index b906c9f05..b2d28f560 100644
--- a/api/_lib/news.js
+++ b/api/_lib/news.js
@@ -66,6 +66,32 @@ export function articleId(link) {
return createHash('sha256').update(String(link)).digest('hex').slice(0, 16);
}
+// WordPress and its plugins append syndication boilerplate to every excerpt:
+// "The post <title> appeared first on <site>.", "Continue reading…",
+// "Read more on …", trailing "[…]". None of it is article text — strip it
+// before the excerpt reaches a card, a digest summary, or an LLM prompt.
+export function stripFeedBoilerplate(text) {
+ return String(text || '')
+ .replace(/\bThe post .*?appeared first on .*$/is, '')
+ .replace(/\bThis (?:post|article) (?:was )?(?:first )?(?:published|appeared).*$/is, '')
+ .replace(/\b(?:Continue reading|Read more|Read the full (?:story|article)|The post)\b[^.]*$/i, '')
+ .replace(/\[[…\.]+\]\s*$/, '')
+ .replace(/\s*(?:…|\.\.\.)\s*$/, '')
+ .replace(/\s+/g, ' ')
+ .trim();
+}
+
+// Cut at a word boundary and mark the elision, so an excerpt never ends
+// mid-word ("…the game appeared f").
+export function truncateWords(text, max) {
+ const t = String(text || '').trim();
+ if (!t) return null;
+ if (t.length <= max) return t;
+ const cut = t.slice(0, max);
+ const lastSpace = cut.lastIndexOf(' ');
+ return `${(lastSpace > max * 0.6 ? cut.slice(0, lastSpace) : cut).replace(/[\s,;:—–-]+$/, '')}…`;
+}
+
// Models on the free tiers often wrap JSON in a ```json fence despite being
// told not to. Unwrap before JSON.parse rather than failing the completion.
export function stripJsonFence(text) {
@@ -195,7 +221,7 @@ export function parseFeed(xml, sourceKey) {
if (title && descText.toLowerCase().startsWith(title.toLowerCase())) {
descText = descText.slice(title.length).replace(/^[\s—–:-]+/, '');
}
- const description = descText.slice(0, 320) || null;
+ const description = truncateWords(stripFeedBoilerplate(descText), 320);
// Full body many feeds ship (WordPress content:encoded, Atom content).
// Server-side only — the reader uses it when the publisher's site
// blocks direct fetches; the feed API strips it from list payloads.
diff --git a/api/news/digest.js b/api/news/digest.js
index 6b7ad5e6c..50370cd8d 100644
--- a/api/news/digest.js
+++ b/api/news/digest.js
@@ -23,7 +23,7 @@
import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';
import { limits, clientIp } from '../_lib/rate-limit.js';
-import { getNews, stripJsonFence, lexiconSentiment } from '../_lib/news.js';
+import { getNews, stripJsonFence, truncateWords } from '../_lib/news.js';
import { llmComplete, llmConfigured } from '../_lib/llm.js';
const CACHE_TTL_MS = 30 * 60_000;
@@ -117,7 +117,7 @@ function heuristicClusters(articles, limit) {
// The most-covered angle leads; its own text is the summary.
const lead = c.items.slice().sort((x, y) => new Date(y.pub_date || 0) - new Date(x.pub_date || 0))[0];
const summary =
- lead.description ||
+ truncateWords(lead.description, 400) ||
`${c.items.length} outlet${c.items.length > 1 ? 's' : ''} covering this story, led by ${lead.source}.`;
return {
title: lead.title,
@@ -164,7 +164,7 @@ ${indexed}`,
if (!cited.length) continue;
out.push({
title: String(n.title || cited[0].title).slice(0, 200),
- summary: String(n.summary || cited[0].description || '').slice(0, 900),
+ summary: truncateWords(String(n.summary || cited[0].description || ''), 900) || cited[0].title,
stance: ['bullish', 'bearish', 'neutral'].includes(n.stance) ? n.stance : stanceFrom(cited),
tickers: clusterTickers(cited),
coverage: cited.length,
diff --git a/data/changelog.json b/data/changelog.json
index 09b27bd42..f4678d59c 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -12822,6 +12822,15 @@
"tags": [
"fix"
]
+ },
+ {
+ "date": "2026-07-10",
+ "title": "News Digest: the day's crypto coverage, grouped into the stories that actually matter",
+ "summary": "Reading 90 headlines to find the 8 things that happened is a chore. /markets/digest does it for you: it reads every story from all 38 publisher feeds over your chosen window (6 hours to 3 days) and groups them into distinct narratives — each with a plain-language summary, whether it reads bullish or bearish, the coins involved, and an expandable list of every outlet that covered it. When an AI provider is available it groups the stories semantically; otherwise it clusters them by keyword and ticker overlap. Either way, every story links back to the real articles behind it — nothing is invented.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/markets/digest"
}
]
}
diff --git a/data/pages.json b/data/pages.json
index 19d392fd6..afcdf6c4e 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -1606,14 +1606,6 @@
"added": "2026-07-06",
"showcase": true
},
- {
- "path": "/agent",
- "title": "Agent Home",
- "description": "Default landing for an agent instance — chat, embed, and remix actions.",
- "priority": 0.7,
- "changefreq": "weekly",
- "added": "2026-04-14"
- },
{
"path": "/agents",
"title": "Agents Index",
diff --git a/docs/api-reference.md b/docs/api-reference.md
index e4dae253e..1f6eb4710 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -2627,6 +2627,27 @@ 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).
+### Daily digest
+
+```
+GET /api/news/digest?hours=24&limit=8&refresh=1
+```
+
+Clusters the last `hours` (1–72, default 24) of live coverage into at most
+`limit` (3–12, default 8) narratives. Returns `{ narratives: [{ title,
+summary, stance ("bullish"|"bearish"|"neutral"), tickers[], coverage,
+articles: [{ id, title, link, source, pub_date, image }] }], engine
+("llm"|"heuristic"), provider, window_hours, articles_considered,
+sources_live, mood, top_tickers[], generated_at, cached }`.
+
+`engine` names the clustering path: `llm` (platform chain grouped them
+semantically) or `heuristic` (Jaccard clustering over headline tokens +
+tickers). **Every narrative cites the real articles it clustered** — a model
+citation that doesn't resolve to a fetched article is discarded, and a digest
+in which nothing resolves falls back to the heuristic engine. `503
+insufficient_coverage` when fewer than 3 articles were published in the
+window. Cached 30 min per window; `refresh=1` bypasses.
+
### RSS syndication
```
diff --git a/docs/coin-pages.md b/docs/coin-pages.md
index 09e6b5d45..c26a39767 100644
--- a/docs/coin-pages.md
+++ b/docs/coin-pages.md
@@ -157,6 +157,26 @@ honest ladder: page extraction → the publisher's own feed body
(`content:encoded`) → a labelled preview with a read-at-source CTA. Never a
dead end, never fabricated text.
+### `/markets/digest` — the day in stories, not headlines
+
+Groups the last N hours of coverage (6h → 72h) into the handful of narratives
+that actually moved, each with a summary, a market stance, the tickers
+involved, and an expandable list of **every outlet that covered it**. Two real
+engines, reported honestly in the response and on the page:
+
+- **`engine: "llm"`** — the platform LLM chain (`api/_lib/llm.js`, free tiers
+ first) groups the headlines semantically. Every narrative must cite indices
+ that resolve to articles the aggregator actually fetched; a hallucinated
+ citation is dropped, and a digest where nothing resolves falls through.
+- **`engine: "heuristic"`** — agglomerative clustering on Jaccard similarity
+ over each headline's significant tokens plus its detected tickers, with an
+ extractive summary from the lead article. Not a placeholder: it produces
+ genuine clusters from the same articles, and runs whenever no LLM provider
+ key is configured or the chain fails.
+
+Cached 30 min per window in-process; `?refresh=1` regenerates. Backed by
+`/api/news/digest`.
+
### `/markets/archive` — the historical archive
The largest open crypto-news archive: **660,000+ enriched articles from
diff --git a/public/changelog.json b/public/changelog.json
index 7b9765d9c..aeabaf5b3 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-10T12:24:50.452Z",
+ "generated_at": "2026-07-10T12:31:09.835Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -108,6 +108,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-10",
+ "type": "update",
+ "title": "News Digest: the day's crypto coverage, grouped into the stories that actually matter",
+ "summary": "Reading 90 headlines to find the 8 things that happened is a chore. /markets/digest does it for you: it reads every story from all 38 publisher feeds over your chosen window (6 hours to 3 days) and groups them into distinct narratives — each with a plain-language summary, whether it reads bullish or bearish, the coins involved, and an expandable list of every outlet that covered it. When an AI provider is available it groups the stories semantically; otherwise it clusters them by keyword and ticker overlap. Either way, every story links back to the real articles behind it — nothing is invented.",
+ "link": "/markets/digest",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-10",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index b7e7a6fea..1141a4203 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -86,6 +86,14 @@
<category>feature</category>
<description>Your account's friends list, presence, and DMs (already live on /walk) now work inside /play's coin worlds too: a Friends button on the HUD (or press J) opens a drawer showing who's online and where, with live direct messages that arrive instantly whether or not the drawer is open. Previously /play never told the server who you were signed in as, so friends saw you as offline no matter how long you played, and any message sent your way was silently lost.</description>
</item>
+ <item>
+ <title>News Digest: the day's crypto coverage, grouped into the stories that actually matter</title>
+ <link>https://three.ws/markets/digest</link>
+ <guid isPermaLink="false">2026-07-10:News Digest: the day's crypto coverage, grouped into the stories that actually matter</guid>
+ <pubDate>Fri, 10 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Reading 90 headlines to find the 8 things that happened is a chore. /markets/digest does it for you: it reads every story from all 38 publisher feeds over your chosen window (6 hours to 3 days) and groups them into distinct narratives — each with a plain-language summary, whether it reads bullish or bearish, the coins involved, and an expandable list of every outlet that covered it. When an AI provider is available it groups the stories semantically; otherwise it clusters them by keyword and ticker overlap. Either way, every story links back to the real articles behind it — nothing is invented.</description>
+ </item>
<item>
<title>The liquidations pulse on /coins is live</title>
<link>https://three.ws/coins</link>
diff --git a/public/features.json b/public/features.json
index f8b9b1c66..040df13bd 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-10T12:24:50.414Z",
+ "generated_at": "2026-07-10T12:31:09.797Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 83f7c0929..7082d57a7 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -1190,12 +1190,6 @@ URL: https://three.ws/agent-identities
Every AI agent deserves a face. A brand brief becomes a rigged 3D avatar plus posed studio renders — see the demo identities generated end-to-end by the pipeline.
-### Agent Home
-
-URL: https://three.ws/agent
-
-Default landing for an agent instance — chat, embed, and remix actions.
-
### Agents Index
URL: https://three.ws/agents
diff --git a/public/llms.txt b/public/llms.txt
index ce43c3069..97c977897 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -218,7 +218,6 @@ Manage, talk to, and deploy individual agents.
- [Chat](https://three.ws/chat): Talk to your agent. Voice, text, and tool-use in one interface.
- [Agent Identity Studio — 3D avatars for AI agents](https://three.ws/agent-identities): Every AI agent deserves a face. A brand brief becomes a rigged 3D avatar plus posed studio renders — see the demo identities generated end-to-end by the pipeline.
-- [Agent Home](https://three.ws/agent): Default landing for an agent instance — chat, embed, and remix actions.
- [Agents Index](https://three.ws/agents): Browse every registered agent on three.ws.
- [Reputation Explorer](https://three.ws/reputation): Inspect on-chain reputation scores and attestations for any agent.
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 8cb52b69b..671e32942 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 416 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 415 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 416 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 415 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -1462,7 +1462,7 @@
<section class="sm-section" id="agent-tools">
<header>
- <h2>Agent Tools<span class="sm-count" data-count>6</span></h2>
+ <h2>Agent Tools<span class="sm-count" data-count>5</span></h2>
<p class="sm-section-desc">Manage, talk to, and deploy individual agents.</p>
</header>
<ul class="sm-list">
@@ -1480,13 +1480,6 @@
<span class="sm-desc">Every AI agent deserves a face. A brand brief becomes a rigged 3D avatar plus posed studio renders — see the demo identities generated end-to-end by the pipeline.</span>
</a>
</li>
- <li>
- <a href="/agent">
- <span class="sm-title">Agent Home</span>
- <span class="sm-path">/agent</span>
- <span class="sm-desc">Default landing for an agent instance — chat, embed, and remix actions.</span>
- </a>
- </li>
<li>
<a href="/agents">
<span class="sm-title">Agents Index</span>
diff --git a/tests/news-lib.test.js b/tests/news-lib.test.js
index 17cb485c1..6078b9ab4 100644
--- a/tests/news-lib.test.js
+++ b/tests/news-lib.test.js
@@ -5,8 +5,10 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
-const { parseFeed, lexiconSentiment, extractTickers, articleId, stripHtml, getNews, findArticle } =
- await import('../api/_lib/news.js');
+const {
+ parseFeed, lexiconSentiment, extractTickers, articleId, stripHtml, getNews, findArticle,
+ stripFeedBoilerplate, truncateWords,
+} = await import('../api/_lib/news.js');
const RSS_FIXTURE = `<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
@@ -102,6 +104,28 @@ describe('enrichment', () => {
it('stripHtml flattens tags and entities', () => {
expect(stripHtml('<p>A &amp; B&nbsp;&mdash; C</p>')).toBe('A & B — C');
});
+
+ it('stripFeedBoilerplate removes WordPress syndication tails', () => {
+ expect(
+ stripFeedBoilerplate('Real reporting here. The post Some Headline appeared first on CoinDesk.'),
+ ).toBe('Real reporting here.');
+ expect(stripFeedBoilerplate('Body text. Continue reading on our site')).toBe('Body text.');
+ expect(stripFeedBoilerplate('Trailing elision […]')).toBe('Trailing elision');
+ expect(stripFeedBoilerplate('Clean sentence.')).toBe('Clean sentence.');
+ });
+
+ it('truncateWords never cuts mid-word and marks the elision', () => {
+ const source = 'the quick brown fox jumps over the lazy dog';
+ const out = truncateWords(source, 20);
+ expect(out.endsWith('…')).toBe(true);
+ // every emitted word must be a complete word from the source
+ const words = out.slice(0, -1).trim().split(' ');
+ expect(source.split(' ').slice(0, words.length)).toEqual(words);
+ expect(truncateWords('short', 20)).toBe('short');
+ expect(truncateWords('', 20)).toBeNull();
+ // a single word longer than the cap still truncates rather than overflowing
+ expect(truncateWords('supercalifragilistic', 10).length).toBeLessThanOrEqual(11);
+ });
});
describe('getNews aggregation', () => {
diff --git a/vercel.json b/vercel.json
index da3e50975..351e75379 100644
--- a/vercel.json
+++ b/vercel.json
@@ -4270,24 +4270,15 @@
},
{
"src": "/blog",
- "status": 301,
- "headers": {
- "Location": "/changelog"
- }
+ "dest": "/blog/index.html"
},
{
"src": "/blog/",
- "status": 301,
- "headers": {
- "Location": "/changelog"
- }
+ "dest": "/blog/index.html"
},
{
"src": "/blog/([a-z0-9-]+)/?",
- "status": 301,
- "headers": {
- "Location": "/changelog"
- }
+ "dest": "/blog/$1.html"
},
{
"src": "/llms.txt",