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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(nodes): make the inference-node endpoints reachable instead of 500 or 429
nirholas90bd5838ea9e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 100940a5a..4f3c082d3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The developer dashboard's x402 earnings finally show your real revenue**: The Usage tab on /dashboard/developers has an x402 Payments figure. It read zero for everyone, always, no matter how many paid calls your checkout products had settled: the query behind it looked for columns that do not exist on the receipts table, and the failure was swallowed so the panel reported a confident 0 instead of an error. It now counts settled checkout calls against the products you own and reports both the payment count and the gross in USDC. The rest of the panel got the same treatment: if one of its numbers cannot be read, the response says so by name instead of quietly showing zero. Two more fixes rode along on the developer endpoints: a mistyped webhook or API-key id now comes back as a clean not-found rather than a server error, and registering a webhook for an event type that does not exist is rejected with the list of valid ones instead of silently creating a webhook subscribed to nothing. (`/dashboard/developers`) `[fix, improvement]`- **The Forge can now federate GPU work to the Livepeer decentralized compute network**: Text-to-3D jobs start by painting a reference image, and that GPU step can now run on the Livepeer network instead of our own lanes, behind a flag, with the same request shape and the same verification our own workers get (safety screening plus byte-level image checks before anything is stored). It ships dark: our measured probe found Livepeer's free public gateway dead at the DNS edge, so the lane goes live only after a funded Studio key lands and clears a 20-job latency, cost, and success comparison run by the new bench script. The full record and the expansion criteria are in the operator docs. `[feature, infra]`- **The free trending and whale feeds stop going blank under their own traffic**: Ask the trending feed for the 5-minute, 1-hour and 24-hour view back to back and the last two used to come back empty, blaming an upstream outage that was not happening. The cause was our own request volume: each call pulled the trade history of twenty pump.fun coins, and three calls in a row hit pump.fun's rate limiter, which then refused everything for a while. Both feeds now read pump.fun through one shared, short-lived cache, so every window and every caller reuses a single set of pulls instead of re-fetching the same coins, and a repeat call answers in milliseconds. When the limiter does bite, the whale feed serves the last successful pull and marks it stale instead of pretending the market is empty. A token nobody is trading now also reports an honest empty result rather than a false feed-down warning. (`/docs/crypto-api`) `[fix, improvement]`+- **The open inference network's node endpoints answer again**: The three endpoints an inference node uses to join the network and do work (register, claim a job, submit a result) were unreachable. Two of them pointed at internal files that are not where they looked, so any call returned a server error, and all three asked for a rate-limit budget that was never defined, which would have turned every request away as if the caller had flooded us. Node operators can register, poll for jobs, and submit results as documented. `[fix, infra]`- **The photo-to-avatar lane is now sized for the 10,000 avatars per day launch target**: The service that turns your selfies into a rigged 3D avatar was measured under real load and one number mattered: it was configured so the autoscaler could never see how busy it was. The service answers each request in milliseconds and does the real work in the background, so the scaling signal looked idle while its processors ground away, and no amount of extra quota would ever have added capacity. The configuration is fixed, and the lane then proved the roadmap's launch target for real: a sustained ten-minute run at the full 10,000-avatars-per-day rate finished every job, with the typical avatar ready in about six seconds and the slowest in under nine. The capacity is there when launch day brings the crowd. `[improvement, infra]`- **The public custody anchor lookup answers a bad epoch instead of erroring out**: Anyone can look up the on-chain anchor for a Proof-of-Custody epoch at /api/custody/anchor. Ask it for an epoch number too large to be a real round and it used to fail with an internal server error, which reads like the custody service is down rather than like a typo in the request. It now answers a plain "that is not a valid epoch" for malformed input, keeps 404 for an epoch that has not happened yet, and reads the newest epoch with a single lookup instead of pulling the whole integrity aggregate it then threw away. (`/integrity`) `[fix, improvement]`- **Token holder and safety checks stop failing when the free data lanes are busy**: The free crypto API's holder distribution read (/api/crypto/holders) and the holder half of its token safety check (/api/crypto/security) both ask the Solana network for a token's largest accounts. Most of the public nodes we fall back on either refuse that question, answer it with an internal error, or accept it and never reply, and the router treated the last two as real answers, so the call gave up instead of trying the next node. It now moves on from an internal error, charges a silent no-reply to that one question rather than benching an otherwise healthy node, and has one more free node in the rotation that answers it. In a live check the holder read went from succeeding on roughly one call in three to eight out of eight. The error messages across the free crypto endpoints were reworded to match the rest of the platform's plain style at the same time. (`/docs/crypto-api`) `[fix, infra]`diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex ffa1d1817..38136cd54 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -537,6 +537,18 @@ export const limits = {getLimiter('auth:ip', { limit: 50, window: '10 m', critical: true, degradeToMemory: true }).limit(ip),registerIp: (ip) =>getLimiter('register:ip', { limit: 5, window: '1 h', critical: true, degradeToMemory: true }).limit(ip),+ // Open inference network (api/nodes/*). Node registration is an idempotent+ // upsert an operator runs once per boot, so it gets a tight per-IP ceiling.+ // The poll loop and result submission are the node's steady-state traffic:+ // one long-poll plus one result per job, so the ceiling has to clear a busy+ // operator running several capabilities without letting an unregistered IP+ // hammer the claim queue. Both are `local` on purpose: every request already+ // carries an ed25519 signature the handler verifies, so this bucket is spam+ // shaping, not the security boundary, and it should not spend the shared+ // Redis allowance.+ nodeRegisterIp: (ip) =>+ getLimiter('node:register:ip', { limit: 30, window: '10 m', local: true }).limit(ip),+ nodeJobIp: (ip) => getLimiter('node:job:ip', { limit: 600, window: '5 m', local: true }).limit(ip),// Session-scoped READS that fire on ordinary page loads (/api/me, home feed,// credits balance, profile pages, wallet balance lookups). These borrowed the// strict credential `authIp` bucket for years, which meant a few minutes ofdiff --git a/api/nodes/jobs.js b/api/nodes/jobs.jsindex 7dd67b0ab..7ac23a199 100644--- a/api/nodes/jobs.js+++ b/api/nodes/jobs.js@@ -19,7 +19,8 @@ const MAX_CLOCK_SKEW_MS = 5 * 60 * 1000;export default wrap(async (req, res) => {cors(req, res);if (!method(req, res, ['GET'])) return;- if (await rateLimited(res, limits.lenient(clientIp(req)))) return;+ const rl = await limits.nodeJobIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);const url = new URL(req.url, 'http://localhost');const node = url.searchParams.get('node');diff --git a/api/nodes/jobs/[id]/result.js b/api/nodes/jobs/[id]/result.jsindex 5820716aa..72b9034e5 100644--- a/api/nodes/jobs/[id]/result.js+++ b/api/nodes/jobs/[id]/result.js@@ -15,16 +15,17 @@// 400: malformed · 401: bad receipt · 403: not the claiming node// 404: unknown job · 409: job already closed-import { cors, error, json, method, readJson, wrap, rateLimited } from '../../_lib/http.js';-import { limits, clientIp } from '../../_lib/rate-limit.js';-import { completeJob, failJob, verifyResultReceipt, verifyNodeSignature } from '../../_lib/inference-nodes.js';+import { cors, error, json, method, readJson, wrap, rateLimited } from '../../../_lib/http.js';+import { limits, clientIp } from '../../../_lib/rate-limit.js';+import { completeJob, failJob, verifyResultReceipt, verifyNodeSignature } from '../../../_lib/inference-nodes.js';const MAX_CLOCK_SKEW_MS = 5 * 60 * 1000;export default wrap(async (req, res) => {cors(req, res);if (!method(req, res, ['POST'])) return;- if (await rateLimited(res, limits.lenient(clientIp(req)))) return;+ const rl = await limits.nodeJobIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);const url = new URL(req.url, 'http://localhost');const jobId = url.searchParams.get('id') || url.pathname.match(/\/api\/nodes\/jobs\/([^/]+)\/result/)?.[1];diff --git a/api/nodes/register.js b/api/nodes/register.jsindex 176d00334..b68433c35 100644--- a/api/nodes/register.js+++ b/api/nodes/register.js@@ -10,16 +10,17 @@// 200: { ok: true, node: { id, publicKey, capabilities } }// 400: malformed body · 401: bad signature · 429: rate limited-import { cors, error, json, method, readJson, wrap, rateLimited } from './_lib/http.js';-import { limits, clientIp } from './_lib/rate-limit.js';-import { registerNode, verifyNodeSignature } from './_lib/inference-nodes.js';+import { cors, error, json, method, readJson, wrap, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { registerNode, verifyNodeSignature } from '../_lib/inference-nodes.js';const MAX_CLOCK_SKEW_MS = 5 * 60 * 1000;export default wrap(async (req, res) => {cors(req, res);if (!method(req, res, ['POST'])) return;- if (await rateLimited(res, limits.strict(clientIp(req)))) return;+ const rl = await limits.nodeRegisterIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);let body;try {diff --git a/data/changelog.json b/data/changelog.jsonindex 14bddabf7..f5ae2b487 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-12",+ "title": "The open inference network's node endpoints answer again",+ "summary": "The three endpoints an inference node uses to join the network and do work (register, claim a job, submit a result) were unreachable. Two of them pointed at internal files that are not where they looked, so any call returned a server error, and all three asked for a rate-limit budget that was never defined, which would have turned every request away as if the caller had flooded us. Node operators can register, poll for jobs, and submit results as documented.",+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-08-12","title": "The developer dashboard's x402 earnings finally show your real revenue",diff --git a/public/changelog.json b/public/changelog.jsonindex 348a6e763..41994df65 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-12T21:00:49.102Z",+ "generated_at": "2026-08-12T21:01:26.651Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -123,6 +123,17 @@"improvement"]},+ {+ "date": "2026-08-12",+ "type": "update",+ "title": "The open inference network's node endpoints answer again",+ "summary": "The three endpoints an inference node uses to join the network and do work (register, claim a job, submit a result) were unreachable. Two of them pointed at internal files that are not where they looked, so any call returned a server error, and all three asked for a rate-limit budget that was never defined, which would have turned every request away as if the caller had flooded us. Node operators can register, poll for jobs, and submit results as documented.",+ "link": null,+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-08-12","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 95bd5f174..bef22ac25 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -94,6 +94,14 @@<category>fix</category><description>Ask the trending feed for the 5-minute, 1-hour and 24-hour view back to back and the last two used to come back empty, blaming an upstream outage that was not happening. The cause was our own request volume: each call pulled the trade history of twenty pump.fun coins, and three calls in a row hit pump.fun's rate limiter, which then refused everything for a while. Both feeds now read pump.fun through one shared, short-lived cache, so every window and every caller reuses a single set of pulls instead of re-fetching the same coins, and a repeat call answers in milliseconds. When the limiter does bite, the whale feed serves the last successful pull and marks it stale instead of pretending the market is empty. A token nobody is trading now also reports an honest empty result rather than a false feed-down warning.</description></item>+ <item>+ <title>The open inference network's node endpoints answer again</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-08-12:The open inference network's node endpoints answer again</guid>+ <pubDate>Wed, 12 Aug 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The three endpoints an inference node uses to join the network and do work (register, claim a job, submit a result) were unreachable. Two of them pointed at internal files that are not where they looked, so any call returned a server error, and all three asked for a rate-limit budget that was never defined, which would have turned every request away as if the caller had flooded us. Node operators can register, poll for jobs, and submit results as documented.</description>+ </item><item><title>The photo-to-avatar lane is now sized for the 10,000 avatars per day launch target</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 2cedb68ce..fd5ae4215 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-12T21:00:49.093Z",+ "generated_at": "2026-08-12T21:01:26.643Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",