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(x402-facilitator): add self-describing root endpoint and update changelog

nirholas45360adb87b3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c0531eaec..16d461a5b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).
+## 2026-07-24
+
+- **The x402 facilitator now describes itself at its root URL** — Opening https://three.ws/api/x402-facilitator in a browser used to return a bare "not found" error, since only the /verify, /settle, and /supported sub-paths were wired. The root now returns a self-describing discovery document: the service name, whether it's enabled, the payment networks and schemes it settles (USDC on Solana), the public receiver and fee-payer addresses, and the full endpoint list. Makes the self-hosted facilitator shareable and inspectable without guessing sub-paths. (`/docs/x402-ring-economy`) `[improvement, infra]`
+
## 2026-07-23
- **KOL Tracker** (`/tracker`) — Solana crypto KOLs ranked by realized P&L computed from their own wallet's on-chain trade history, with win rate, volume, trade count, and X follower counts for verified handles.
diff --git a/api/x402-facilitator/[action].js b/api/x402-facilitator/[action].js
index 29722621b..4f1f7e6ed 100644
--- a/api/x402-facilitator/[action].js
+++ b/api/x402-facilitator/[action].js
@@ -80,6 +80,36 @@ export default wrap(async (req, res) => {
const action = actionFrom(req);
+ // GET /api/x402-facilitator (root) — self-describing discovery document. The
+ // bare path used to 404 (the route table only matched /:action), which reads as
+ // "broken" when someone opens the facilitator URL in a browser. This index names
+ // the service, its endpoints, the networks/schemes it settles, and the public
+ // receiver — no secret, no payment. It is descriptive only; verify/settle stay POST.
+ if (action === 'index' || action === '' || action === 'x402-facilitator') {
+ if (!method(req, res, ['GET'])) return;
+ const base = '/api/x402-facilitator';
+ return json(res, 200, {
+ service: 'three.ws self-hosted x402 facilitator',
+ description:
+ 'Verifies and settles x402 USDC payments on Solana over our own RPC. ' +
+ 'No third party touches settlement.',
+ x402Version: X402_VERSION,
+ enabled: SELF_FACILITATOR_ENABLED,
+ kinds: [
+ { x402Version: X402_VERSION, scheme: 'exact', network: NETWORK_SOLANA_MAINNET },
+ ],
+ payTo: env.X402_PAY_TO_SOLANA || null,
+ feePayer: env.X402_FEE_PAYER_SOLANA || null,
+ asset: env.X402_ASSET_MINT_SOLANA || null,
+ endpoints: {
+ supported: { method: 'GET', path: `${base}/supported` },
+ verify: { method: 'POST', path: `${base}/verify` },
+ settle: { method: 'POST', path: `${base}/settle` },
+ },
+ docs: 'https://three.ws/docs/x402-ring-economy',
+ });
+ }
+
// /supported is a public capability probe (no payment, no secret needed) so
// api/x402-status.js probeFacilitators() can confirm we advertise exact/solana.
if (action === 'supported') {
diff --git a/data/changelog.json b/data/changelog.json
index 5b28fd36e..e2e9cfcc8 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-24",
+ "title": "The x402 facilitator now describes itself at its root URL",
+ "summary": "Opening https://three.ws/api/x402-facilitator in a browser used to return a bare \"not found\" error, since only the /verify, /settle, and /supported sub-paths were wired. The root now returns a self-describing discovery document: the service name, whether it's enabled, the payment networks and schemes it settles (USDC on Solana), the public receiver and fee-payer addresses, and the full endpoint list. Makes the self-hosted facilitator shareable and inspectable without guessing sub-paths.",
+ "tags": [
+ "improvement",
+ "infra"
+ ],
+ "link": "/docs/x402-ring-economy"
+ },
{
"date": "2026-07-23",
"title": "Text-to-motion is live: describe a move, get a new animation",
diff --git a/public/changelog.json b/public/changelog.json
index 79cb77316..2781050b0 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,22 @@
{
- "generated_at": "2026-07-23T15:39:04.361Z",
+ "generated_at": "2026-07-24T22:24:11.420Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-07-24",
+ "type": "update",
+ "title": "The x402 facilitator now describes itself at its root URL",
+ "summary": "Opening https://three.ws/api/x402-facilitator in a browser used to return a bare \"not found\" error, since only the /verify, /settle, and /supported sub-paths were wired. The root now returns a self-describing discovery document: the service name, whether it's enabled, the payment networks and schemes it settles (USDC on Solana), the public receiver and fee-payer addresses, and the full endpoint list. Makes the self-hosted facilitator shareable and inspectable without guessing sub-paths.",
+ "link": "/docs/x402-ring-economy",
+ "tags": [
+ "improvement",
+ "infra"
+ ]
+ },
{
"date": "2026-07-23",
"type": "launch",
diff --git a/public/changelog.xml b/public/changelog.xml
index 0152c3350..d7b2769a4 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>The x402 facilitator now describes itself at its root URL</title>
+ <link>https://three.ws/docs/x402-ring-economy</link>
+ <guid isPermaLink="false">2026-07-24:The x402 facilitator now describes itself at its root URL</guid>
+ <pubDate>Fri, 24 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Opening https://three.ws/api/x402-facilitator in a browser used to return a bare &quot;not found&quot; error, since only the /verify, /settle, and /supported sub-paths were wired. The root now returns a self-describing discovery document: the service name, whether it's enabled, the payment networks and schemes it settles (USDC on Solana), the public receiver and fee-payer addresses, and the full endpoint list. Makes the self-hosted facilitator shareable and inspectable without guessing sub-paths.</description>
+ </item>
<item>
<title>KOL Tracker</title>
<link>https://three.ws/tracker</link>
diff --git a/public/features.json b/public/features.json
index 5dc6ff75d..ad560e96b 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-23T15:39:04.354Z",
+ "generated_at": "2026-07-24T22:24:11.413Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/vercel.json b/vercel.json
index c3182ccd9..274867401 100644
--- a/vercel.json
+++ b/vercel.json
@@ -2480,6 +2480,10 @@
"src": "/api/agents/x402/manifest",
"dest": "/api/agents/x402/[action]?action=manifest"
},
+ {
+ "src": "/api/x402-facilitator/?",
+ "dest": "/api/x402-facilitator/[action]?action=index"
+ },
{
"src": "/api/x402-facilitator/([^/]+)",
"dest": "/api/x402-facilitator/[action]?action=$1"