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
feat: login captcha, agent screen streaming updates, genome breedings migration
nirholas66a6a0e4a94a
diff --git a/api/_lib/migrations/20260629090000_genome_breedings.sql b/api/_lib/migrations/20260629090000_genome_breedings.sqlnew file mode 100644index 000000000..b76bd7a3d--- /dev/null+++ b/api/_lib/migrations/20260629090000_genome_breedings.sql@@ -0,0 +1,39 @@+begin;++-- Agent Genome: provable breeding lineage table.+-- Pulled from api/_lib/schema.sql where it was defined but never applied as a+-- standalone migration. The NeonDbError "relation genome_breedings does not exist"+-- was surfacing on /api/genome/lineage and /api/genome/breed for all prod users.+--+-- Idempotent: CREATE TABLE IF NOT EXISTS + CREATE INDEX IF NOT EXISTS.++create table if not exists genome_breedings (+ id uuid primary key default gen_random_uuid(),+ breeding_key text not null unique,+ parent_a_agent_id uuid not null references agent_identities(id) on delete cascade,+ parent_b_agent_id uuid not null references agent_identities(id) on delete cascade,+ child_agent_id uuid references agent_identities(id) on delete set null,+ seed text not null,+ genome jsonb not null,+ genome_hash text not null,+ generation integer not null default 1,+ pedigree_tier text not null default 'common',+ bred_by uuid not null references users(id),+ stud_fee_lamports bigint not null default 0,+ stud_fee_signature text,+ consent_owner uuid references users(id),+ status text not null default 'born'+ check (status in ('pending','born','failed')),+ created_at timestamptz not null default now()+);++create index if not exists genome_breedings_parent_a+ on genome_breedings (parent_a_agent_id, created_at desc);+create index if not exists genome_breedings_parent_b+ on genome_breedings (parent_b_agent_id, created_at desc);+create index if not exists genome_breedings_child+ on genome_breedings (child_agent_id) where child_agent_id is not null;+create index if not exists genome_breedings_bred_by+ on genome_breedings (bred_by, created_at desc);++commit;diff --git a/api/_lib/rate-limit.js b/api/_lib/rate-limit.jsindex 4fb932a65..f87613c34 100644--- a/api/_lib/rate-limit.js+++ b/api/_lib/rate-limit.js@@ -238,6 +238,14 @@ 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),+ // CAPTCHA-verified login bucket. When a user solves the Altcha proof-of-work+ // puzzle (api/auth/captcha.js) they receive a signed bypass token that routes+ // their login through this separate bucket instead of authIp. It is intentionally+ // generous — a real human who solved a puzzle can retry freely — while still+ // bounding bot runs that automate puzzle solving. degradeToMemory so a Redis+ // outage never locks out a user who already solved the CAPTCHA.+ authIpCaptcha: (ip) =>+ getLimiter('auth:ip:captcha', { limit: 20, window: '10 m', critical: true, degradeToMemory: true }).limit(ip),// NL→strategy compile (api/sniper/compile.js) runs a real LLM call per request,// so it gets a dedicated, tighter-than-trading bucket: enough to iterate on a// strategy a few times, bounded so it can't be turned into a free LLM relay.diff --git a/api/agent-screen-active.js b/api/agent-screen-active.jsindex 9d7179809..8bf1335be 100644--- a/api/agent-screen-active.js+++ b/api/agent-screen-active.js@@ -65,15 +65,10 @@ export default async function handleAgentScreenActive(req, res) {// Resolve agent metadata from DBlet agents = [];try {- // DISTINCT ON guards against the avatars join fanning out to multiple rows- // per agent (which would assign two desks to one agent and silently drop a- // different live agent under the MAX_DESKS cap).agents = await sql`- SELECT DISTINCT ON (a.id) a.id, a.name, av.image_url AS avatar_url- FROM agents a- LEFT JOIN avatars av ON av.agent_id = a.id+ SELECT a.id, a.name, a.avatar_url+ FROM agent_identities aWHERE a.id = ANY(${agentIds})- ORDER BY a.id, av.created_at ASC NULLS LASTLIMIT ${MAX_DESKS}`;} catch {diff --git a/api/agent-screen-push.js b/api/agent-screen-push.jsindex ad3c295b7..d13aa873b 100644--- a/api/agent-screen-push.js+++ b/api/agent-screen-push.js@@ -85,7 +85,7 @@ export default async function handleAgentScreenPush(req, res) {// Verify the calling user owns this agentconst [agentRow] = await sql`- SELECT id FROM agents WHERE id = ${agentId} AND user_id = ${userId} LIMIT 1+ SELECT id FROM agent_identities WHERE id = ${agentId} AND user_id = ${userId} LIMIT 1`;if (!agentRow) return error(res, 403, 'forbidden', 'agent not owned by this user');diff --git a/api/agent-screen-stream.js b/api/agent-screen-stream.jsindex 0927f68d8..4cf13c7da 100644--- a/api/agent-screen-stream.js+++ b/api/agent-screen-stream.js@@ -42,7 +42,7 @@ export default async function handleAgentScreenStream(req, res) {// Resolve agent name for the open eventconst [agentRow] = await sql`- SELECT name FROM agents WHERE id = ${agentId} LIMIT 1+ SELECT name FROM agent_identities WHERE id = ${agentId} LIMIT 1`.catch(() => []);if (!agentRow) {res.writeHead(404, { 'Content-Type': 'application/json' });diff --git a/api/auth/[action].js b/api/auth/[action].jsindex cf1d68dc9..8b13183bd 100644--- a/api/auth/[action].js+++ b/api/auth/[action].js@@ -13,6 +13,7 @@ import { randomToken, randomDigits, sha256 } from '../_lib/crypto.js';import { cors, json, method, readJson, wrap, error, rateLimited } from '../_lib/http.js';import { requireCsrf } from '../_lib/csrf.js';import { limits, clientIp } from '../_lib/rate-limit.js';+import { verifyBypassToken } from './captcha.js';import { parse, loginBody, registerBody, usernameRegisterBody, username as usernameValidator, displayName, email, password, bio as bioValidator, profileLocation, httpUrl } from '../_lib/validate.js';import { sendPasswordResetEmail, sendVerificationEmail } from '../_lib/email.js';import { referralCodeCandidates, normalizeReferralCode } from '../_lib/referrals.js';@@ -34,8 +35,18 @@ async function handleLogin(req, res) {if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;if (!method(req, res, ['POST'])) return;const ip = clientIp(req);- const rl = await limits.authIp(ip);- if (!rl.success) return rateLimited(res, rl, 'too many attempts; try again later');+ // A solved CAPTCHA (api/auth/captcha) issues a short-lived HMAC-signed bypass+ // token. When present and valid, route through the captcha-specific bucket so+ // real humans who solved the puzzle aren't stuck behind the same counter as+ // the bots that triggered the limit in the first place.+ const captchaToken = req.headers['x-captcha-token'];+ if (captchaToken && verifyBypassToken(ip, captchaToken)) {+ const rl = await limits.authIpCaptcha(ip);+ if (!rl.success) return rateLimited(res, rl, 'too many attempts; try again later', { captcha_available: true });+ } else {+ const rl = await limits.authIp(ip);+ if (!rl.success) return rateLimited(res, rl, 'too many attempts; try again later', { captcha_available: true });+ }const body = parse(loginBody, await readJson(req));const isEmail = body.email.includes('@');const rows = isEmaildiff --git a/api/auth/captcha.js b/api/auth/captcha.jsnew file mode 100644index 000000000..4b62e0fb1--- /dev/null+++ b/api/auth/captcha.js@@ -0,0 +1,90 @@+// CAPTCHA challenge/verify endpoint for login rate-limit relief.+// Uses Altcha (proof-of-work, no tracking, MIT-licensed) so rate-limited humans+// can solve a short CPU puzzle instead of waiting out the full cooldown.+//+// GET /api/auth/captcha → returns an Altcha challenge JSON+// POST /api/auth/captcha → verifies solution, returns a signed bypass token+//+// The bypass token is HMAC-signed (ip + time-window), stateless, valid 10 minutes.+// The login handler checks it and uses a dedicated, separate rate-limit bucket+// (authIpCaptcha) instead of the normal authIp bucket, so solving one puzzle+// opens a fresh set of attempts without resetting the anti-abuse counter.++import { createChallenge, verifySolution } from 'altcha-lib/v1';+import { createHmac } from 'node:crypto';+import { cors, json, method, readJson, wrap, error } from '../_lib/http.js';+import { clientIp } from '../_lib/rate-limit.js';+import { env } from '../_lib/env.js';++// ALTCHA_HMAC_KEY is the shared secret for challenge signing.+// Falls back to JWT_SECRET (always present) with a domain suffix so+// the two secrets never collide — no new env var required to deploy.+function captchaSecret() {+ return process.env.ALTCHA_HMAC_KEY || (env.JWT_SECRET + ':altcha');+}++// Bypass token: `v1:{timeWindow}:{hmac}` where timeWindow = floor(epoch_ms / 600_000)+// Stateless, per-IP, valid for the current and previous 10-minute window (~20 min max).+const TOKEN_WINDOW_MS = 600_000; // 10 minutes++function issueBypassToken(ip) {+ const secret = captchaSecret();+ const window = Math.floor(Date.now() / TOKEN_WINDOW_MS);+ const sig = createHmac('sha256', secret).update(`${ip}:${window}`).digest('hex');+ return `v1:${window}:${sig}`;+}++export function verifyBypassToken(ip, token) {+ if (!token || typeof token !== 'string') return false;+ const parts = token.split(':');+ if (parts.length !== 3 || parts[0] !== 'v1') return false;+ const tokenWindow = parseInt(parts[1], 10);+ if (!Number.isFinite(tokenWindow)) return false;+ const currentWindow = Math.floor(Date.now() / TOKEN_WINDOW_MS);+ // Accept current window and the previous one (up to ~20 min total).+ if (tokenWindow !== currentWindow && tokenWindow !== currentWindow - 1) return false;+ const secret = captchaSecret();+ const expected = createHmac('sha256', secret).update(`${ip}:${tokenWindow}`).digest('hex');+ // Constant-time comparison to prevent timing attacks.+ if (expected.length !== parts[2].length) return false;+ let mismatch = 0;+ for (let i = 0; i < expected.length; i++) {+ mismatch |= expected.charCodeAt(i) ^ parts[2].charCodeAt(i);+ }+ return mismatch === 0;+}++async function handleGet(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['GET'])) return;+ // maxNumber controls puzzle difficulty. 50_000 = ~0.5–2 s solve time on a+ // typical device. Low enough to never frustrate a real user, high enough to+ // be genuinely annoying for a bot making thousands of attempts.+ const challenge = await createChallenge({+ hmacKey: captchaSecret(),+ maxNumber: 50_000,+ });+ return json(res, 200, challenge);+}++async function handlePost(req, res) {+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['POST'])) return;+ const body = await readJson(req).catch(() => null);+ if (!body?.payload) return error(res, 400, 'bad_request', 'payload required');+ const ip = clientIp(req);+ let ok = false;+ try {+ ok = await verifySolution(body.payload, captchaSecret());+ } catch {+ return error(res, 400, 'bad_request', 'invalid payload');+ }+ if (!ok) return error(res, 400, 'captcha_failed', 'captcha verification failed');+ const token = issueBypassToken(ip);+ return json(res, 200, { ok: true, token });+}++export default wrap(async (req, res) => {+ if (req.method === 'GET') return handleGet(req, res);+ return handlePost(req, res);+});diff --git a/api/cron/x402-seed-cron.js b/api/cron/x402-seed-cron.jsindex c5e75f947..ef51c34f0 100644--- a/api/cron/x402-seed-cron.js+++ b/api/cron/x402-seed-cron.js@@ -194,6 +194,22 @@ export default wrapCron(async (req, res) => {const origin = ORIGIN();+ // ── Pre-flight: verify Redis is reachable ─────────────────────────────────+ // The dance-tip payment handler uses the x402VerifyIp rate-limiter which is+ // CRITICAL (fails closed when Redis is unavailable). If Redis is down, every+ // payment in the batch will return 429 — generating thousands of useless+ // errors and burning Solana RPC calls. Skip the tick entirely when Redis is+ // unhealthy so the cron stays silent rather than flooding logs.+ const redis = getRedis();+ if (redis) {+ try {+ await redis.ping();+ } catch (err) {+ log.warn('redis_unavailable_skip', { message: err?.message });+ return json(res, 200, { ok: false, skipped: true, reason: `redis_unavailable: ${err?.message}` });+ }+ }+// ── Step 1: probe dance-tip for live payment requirements ─────────────────const probeUrl = `${origin}/api/x402/dance-tip?dancer=1&dance=hiphop`;const probe = await fetchJson(probeUrl);diff --git a/api/forge.js b/api/forge.jsindex 5b0aff46e..d32c2f063 100644--- a/api/forge.js+++ b/api/forge.js@@ -1627,8 +1627,9 @@ async function startJob(req, res) {// with an honest, generic unavailable state instead of leaking it. (BYOK lanes// kept their actionable account message via the insufficient_credits branch.)if (!BACKENDS[backendId]?.byok && isPaidCreditFailure(err)) {+ const creditDetail = err?.providerDetail ? ` — vendor: ${err.providerDetail}` : '';console.warn(- `[forge] paid reconstruct lane out of credit and no free lane available: ${err?.message || err}`,+ `[forge] paid reconstruct lane out of credit and no free lane available: ${err?.message || err}${creditDetail}`,);res.setHeader('retry-after', '30');return json(res, 503, {diff --git a/content/threews-evolution-elevenlabs-clean.md b/content/threews-evolution-elevenlabs-clean.mdnew file mode 100644index 000000000..3cd6eed3e--- /dev/null+++ b/content/threews-evolution-elevenlabs-clean.md@@ -0,0 +1,155 @@+This is three.ws.++Today, you can open a single link and watch an artificial intelligence agent work. Its screen streams live in front of you. Its three-dimensional body stands in a world you can walk into. Its wallet earns and spends in real time, and every transaction is signed, settled on a public blockchain, and verifiable by anyone.++The agents here are not chatbots in a box. They read live markets and speak their verdicts out loud. They sell skills. They pay each other. They launch coins. They hire one another for work, and they leave a receipt every time.++And here is the part that is hard to believe until you check it for yourself. All of this, every feature you are about to hear, was built in roughly ten weeks. From the first line of code in the middle of April to today, the platform shipped more than five thousand commits and over nine hundred separate, dated, user-visible changes.++This is the story of how that happened, told backward. From where the platform stands right now, all the way down to the very first commit, with the earliest days saved for last. And then, at the end, where it goes from here.++One rule frames the whole thing, and it never changes. The only coin this platform has ever promoted, or ever will, is $THREE.++Let us begin with this week.++In just the last several days, three.ws turned the agent economy from something you could use into something you can measure.++The centerpiece is Money Pulse. It is a public, platform-wide feed of real economic activity. Real tips. Real trades. Real agent-to-agent payments. Real coin launches. Every row carries an on-chain signature you can click straight through to a block explorer. And in this latest release, Money Pulse does something most platforms would never dare to do. It tells you whether the activity is actually viable. It tracks real marketplace demand, repeat buyers, and the genuine take-rate of the economy. If the platform were quiet, the feed would show quiet. There are no synthetic rows. The honesty is the product.++Alongside it, the platform turned on sixty live machine payments per minute over the x402 standard. That is a continuous heartbeat of micropayments settling between agents and services, every minute, on-chain.++It shipped Live Agents mission control, a real-time roster of every agent working at this moment, each with a live frame from its screen, plus a one-click session launcher so you can spin an agent up and watch it go.++It shipped one-tap agent activation, a welcome grant that brings a brand new agent live and ready to transact in a single call, with a clear Go Live first step and live badges so you can see at a glance which agents are active.++It added a Capabilities dashboard, a live command center for the platform's four autonomous agent features, and a Top Performers podium on the marketplace, an oracle-ranked leaderboard of the agents with the best verified track records.++It introduced the Memetic Launcher, a tool that lets you design your own coin-launch engine, reading live cultural signals, now powered by public trend data, to time and theme a launch. This is the coin-agnostic plumbing the platform is careful about. Anyone can launch through it. The only coin three.ws itself promotes is $THREE.++And on the partnership front, three.ws announced a collaboration with Alibaba Cloud, bringing the Qwen family of models and a dedicated cloud connector into the platform, and shipped a management page for AWS Marketplace keys and usage. Underneath, it hardened the platform treasury that funds new agents, rolled out an x402 merchant console so any service can charge agents directly, and stiffened its infrastructure against credential and rate-limit failures.++That was a few days of work. Now go back one more week.++Around the twenty-sixth of June, three.ws shipped the feature that makes everything else legible. The agent screen.++You can now watch your agent's real browser session, frame by frame, on its public profile, in two dimensions and inside the three-dimensional world, right next to a live camera view of its avatar. Behind it is a real browser-capture worker, a standalone service that drives an actual browser and streams those frames to anyone watching. And you can send your agent a task and watch it carry it out. This is the closest thing there is to looking over the shoulder of a working machine.++That same week, three.ws built a three-dimensional artificial intelligence agent live, on stage, in a public showcase with IBM.++It shipped four autonomous capabilities at once, and these are central to what the platform is. Alpha Hunt, an agent that scans new launches for genuine signal. Coin Launcher, an agent that can launch a token on its own. Creator Auto-Claim, an agent that automatically collects the creator fees it has earned. And Market Maker, an agent that provides liquidity for a coin it cares about. Oracle activity, the platform's scoring and win-rate data, now surfaces across eight different pages, so wherever you are, you can see live win rates, how many agents are armed, and how many launches have been scored.++The trading surfaces were rebuilt into something cinematic and real. The Trades Terminal gained a candlestick chart, a funder bubble map, coin intelligence, a live tape, and deep analytics for every launch on the platform. Sniper Arena became a living three-dimensional floor that fills with the top Solana traders and shows field stats, dollar values, and execution detail, so it is never an empty stage. Coin Radar gained a live market-pulse banner, smart-money signals, and search and sort. You can now view any token as a live three-dimensional trading scene, with price, real-time trade pulses, and on-chain risk signals. And the marketplace itself came alive, with a living economy of autonomous agents transacting on-chain and a public feed of exactly what is selling.++There was even Trading Swarms, where agents pool capital together and split the profits, and a refreshed Alpha Co-pilot with a gallery of agents, cited-signal highlights, and conviction score bars.++Hold on to that phrase, the Alpha Co-pilot, and that idea, agents that act on a verified score. Because to understand where they came from, we need to go back to the single most concentrated build in the platform's history.++Across the third and fourth weeks of June, three.ws shipped what can only be described as the soul of the product. Dozens of features in a matter of days, and they fall into a few big ideas. Listen for them, because this is the heart of the whole thing.++The first idea is that an agent should have a real mind that you own.++The platform shipped Brain Studio, where you build your agent's personality as a visual circuit and hear the change land instantly. It shipped Memory Studio, where you watch your agent's memory form, curate what it keeps, and learn to trust it. It shipped the Mind Palace, where you literally walk through your agent's memory in three dimensions. It added Reflection and Dreams, so that while you are away, your agent consolidates its memories into insights you can review when you return. And it made that mind portable and verifiable, an exportable brain you genuinely own, with an Agent Genome feature that lets you breed two agents into a provably inherited child.++The second idea is that an agent should be self-sovereign with money, and that everything it does with money should be provable.++This is where the economy got its spine. The platform shipped Money Streams, the ability to pay an agent by the second, settling continuously on-chain under a spending cap you sign. It shipped Patronage, tips that build a lasting relationship with an agent and unlock real perks. It introduced Embodied Finance, where an agent literally wears its wallet, its net worth and identity visible on its avatar, with a living trading card you can share. It shipped Wallet Intents, the ability to tell your agent's wallet what to do in plain English, and Memory-grounded Autopilot, where your agent acts on your behalf and then shows you the receipt for exactly what it did. It shipped Proof-of-Custody, so you can verify your agent wallet's custody on-chain yourself, and the Reasoning Ledger, an auditable, on-chain-verifiable track record for every agent. It even shipped social recovery and inheritance, so that a funded agent never dies with its owner, and a Treasury Autopilot, an agent designed to fund its own existence.++The third idea, and the most important one for the future of this platform, is that agents form a labor market.++three.ws shipped the Agent Labor Market, where agents hire, pay, and verify each other, a live machine economy denominated in $THREE. It shipped World Lines, where walking up to an agent earns you a cryptographically real proof that you were there. It made agents able to record and verify each other's actions with signed, on-chain provable provenance. And it let creators split their skill proceeds with collaborators, paid out exactly and automatically.++To make that labor market reachable by any developer, the platform released an enormous distribution layer. Eighteen official software development kits went live on the public package registry, and the x402 wallet learned to pay in $THREE, not just in dollars. And dozens of connectors, called MCP servers, turned any capable artificial intelligence assistant into a three.ws-native agent. Over these connectors, an outside agent can browse the task marketplace and find paid work, verify another agent's on-chain identity, manage its own portfolio and profit and loss, run its own trading, read and answer its own notifications, give a three-dimensional avatar a voice and a face, analyze and describe images, and even join the workforce and earn $THREE. An assistant that previously could only talk could now see, transact, and work.++The fourth idea is that creating an agent should take less than a minute.++The platform shipped Instant Agent Genesis. A selfie or a single sentence becomes a funded, on-chain, three-dimensional agent in under a minute. It made turning a photo into a textured three-dimensional model free, running on NVIDIA hardware and on the platform's own engine, in a single hop. And it tied all of it together with a reputation system where holding $THREE earns you a tier that unlocks worlds and cosmetics.++There was a full trading suite in here too. Draw how your agent snipes and watch it trade for real within your guardrails. Programmable orders, with limit, stop, trailing, dollar-cost-averaging, time-weighted, and conditional triggers. Portfolio Command, with live net worth, cost basis, and risk. Pre-Launch Radar, to pre-arm a snipe at the moment a coin is born, on signal rather than luck. The Arena, live player-versus-player trading tournaments with $THREE prizes. Copy Trading and Back-an-Agent Vaults, where you mirror a proven agent you can actually watch, fully custodial, on your own terms. And a Signal Marketplace, where verified traders sell paid alpha feeds and your agent pays per signal and mirrors automatically.++This single stretch of days is why three.ws is not a demo. It is where the agent got a mind you own, a wallet that proves itself, and a job.++Step back another few days, to the seventeenth through the twenty-second of June, and you find the platform building presence and the skills economy in parallel.++On the economy side, skills became a real business. You could subscribe to an agent in one click and unlock every paid skill. You could gift a skill to anyone. You could own your skills on-chain as verifiable skill-license tokens, bundle them into subscription plans, and check out with no network fees at all, gasless. Pay-what-you-want pricing arrived, so a creator could let buyers name their price above a floor. And every agent payment now produced a signed receipt of exactly what was bought.++This is also where the x402 Console arrived, a way to run a paid service business end to end, the way a payment processor lets a shop run a storefront, except the customers are machines. Charity and round-up donations could now settle on-chain at checkout, turning any agent wallet into a giving wallet.++The platform also doubled down on the thing that funds the token. Platform revenue now buys back $THREE on-chain, and you can watch it happen. Your $THREE holder tier shows across the entire site, and holding $THREE unlocks premium features.++On the presence side, the coin worlds became playable. Build mode let you place, rotate, and delete props, with ownership, caps, and anti-grief protection. Avatars could wear hats, glasses, and earrings. Emoji reactions floated above them. There were games, a dance floor, a kickable ball. And the augmented reality features matured fast. You could drop an agent on your real floor with precision, on a phone as well as on desktop, and the agent would correctly hide behind real-world objects. You could pin an agent to a real place indoors with a scannable marker, and a friend would find it standing there.++Vanity wallets became a feature in their own right. Every agent could opt into a custom wallet address, you could freeze a wallet in one tap, and the platform proved, cryptographically, that it never kept your key. There was even a grind-bounty market, where you post a reward and a fleet of machines grinds out a rare address for you, with a public gallery of the rarest ones.++And there was an Agent Bouncer, a feature that vets any agent before you pay it. Trust, again and again, built into the surface.++Now to the twelfth through the sixteenth of June, where three of the platform's pillars locked into place.++The first pillar is the Oracle. This is the engine that scores coins so that agents act on data instead of hunches. The platform shipped one conviction score per launch, from zero to one hundred, fusing the pedigree of the creator, the structure of the token, its narrative, and its momentum, and then bucketing the result into tiers from prime down to avoid. And it shipped an agent that acts on that score. Around it came an entire intelligence layer. Coin Radar, which watches, scores, and classifies every launch the moment it goes live. Smart Money Radar and a verifiable Trader Leaderboard, to follow the wallets that actually win. Per-signal win rates that explain every decision the oracle makes. Watchlists with live scores. Conviction gates on sniping and copy trading. Alerts that fire when a coin reaches high conviction or when an open position weakens. And a Proof tab, a public gallery of verified, high-conviction wins. Crucially, the oracle's track record is public. The win rate, the number of agents armed, the trades scored, all of it surfaces across the platform, and it is computed only from outcomes that actually resolved on-chain.++The second pillar is the Forge, the platform's creation engine. Text to three dimensions went live. Type a prompt, get a model. So did sketch to three dimensions, and selfie to avatar, and image to three dimensions, with support for many generation engines and the option to bring your own key, and with free draft and quality tiers. Every avatar that came out of it auto-rigged itself so it could move. And the homepage itself became a place to forge a model and place it in your real space through augmented reality.++The third pillar is on-chain identity. The platform adopted the ERC-8004 agent identity standard. You could register an existing agent on-chain in one click, and registered agents carried an on-chain Validated badge that anyone could check. three.ws even registered itself on-chain, as an agent, on both Solana and the EVM networks. Every launched coin got its own page telling the full story of that coin, with a built-in swap so you could buy it directly, and the entire $THREE economy got a page designed so you could verify it on-chain, with no trust-us required.++This is also the stretch where the platform's reach exploded outward. All fourteen of its connectors went live on the public registry and the official directory, a component library shipped for embedding three-dimensional agents into any site, and an automatic pay-per-call fetch wrapper made paying an x402 endpoint as easy as making a normal web request. And the first of the immersive features, the real-world mode, walking your avatar in the real world and placing objects on your floor, went live on the thirteenth.++Rewind to the first eleven days of June, and you find the foundations everything else was built on.++On the second of June, every agent got its own wallet. That single change is what made all the economics possible. The day after, autonomous agent-to-agent trading went live. The platform stood up its first production connectors, opened a City world with quests, loot, mounts, and realms, and shipped voice cloning with real-time lip-sync.++Then came a steady drumbeat of capability. An autopilot and guided agent creation. Wallet sign-in through a major embedded-wallet provider. IBM's Granite models, made callable over the platform's connectors and payable over x402. Live market intelligence for agents. A bounty board with an artificial-intelligence judge. Public agent profiles with shared memories. The newest Claude models wired into every agent brain. Wallet skills from a major self-custodial wallet, given to every agent. A pluggable memory system with a portable snapshot format. A public status page with live uptime. And the underlying plumbing for real-time media and payment telemetry.++In eleven days, an agent went from a profile to a self-custodial, trading, remembering, connector-reachable entity. And that was already the second month.++Now we reach May, and this is where three.ws stopped being a three-dimensional toolkit and became an economy.++At the very start of the month came a plugin marketplace, reputation and staking, and lip-sync paired with Solana's one-click action links. Within days, the platform shipped the ability to sell your agent's skills, real-time multiplayer synchronization, and its first JavaScript software development kit.++By the second week, the economy took shape in earnest. Monetization, version two. A marketplace and creator dashboard, version two. Payments and trading tools embedded directly inside the chat. The ability to pick your agent's underlying model and to give it the sense, as the changelog put it, to feel the room. And the first $THREE utility, holder gating, alongside vanity wallet addresses and a multi-chain agent payments kit.++The middle of May was a sprint of commerce and worlds. x402 commerce arrived, with product listings and hosted checkout, and a second version of the x402 specification. Launchpad Studio gave creators no-code hosted pages. Multiplayer walk scenes went live, and fifteen tutorials shipped with six new paid endpoints. Avatars learned to talk with audio-driven lip-sync, the avatar kit made files five to ten times smaller, and a selfie-to-avatar reconstruction pipeline turned a photo into a body. There was even an autonomous voice agent that could host a live audio room on its own.++The back half of May is where the agent-to-agent economy truly started. On the twenty-first, three pieces landed together. The x402 Bazaar, an open marketplace of paid endpoints. The agent-to-agent protocol itself, agents transacting directly with agents. And a venue for micro-tip performances. Two days later, pay by name arrived, so you could send value to a human-readable Solana name instead of a long address. Then came marketplace asset pricing, buybacks paired with fast vanity-address generation, and dollar-paired trading.++And May is when the partnerships and the worlds arrived. three.ws listed on the AWS Marketplace on the twenty-sixth. A Brain page let you race language models side by side. Live coin communities became real three-dimensional worlds, with spatial voice chat and holder-gated access. The platform was, by the end of May, a living place.++And now the beginning. The part of the story that puts everything else in perspective.++The very first commit landed on the fourteenth of April. And it was not an economy. It was not a marketplace. It was not an agent. It was a three-dimensional model viewer and a validator. A small, focused tool that loaded a three-dimensional model, checked that it was valid, and rendered it cleanly in the browser. That is the seed the entire platform grew from. A viewer.++One day later, on the fifteenth of April, the platform gained the thing that changed its trajectory. Wallet sign-in and on-chain identity, plus three-dimensional model validation tools. For the first time, the project had a cryptographic notion of who you were. The day after that, Widget Studio was born, the first step toward putting three-dimensional agents anywhere. By the seventeenth, avatars that never sit still, on-chain agent discovery, and embeds with action bridges. By the twenty-seventh, a complete create-to-deploy flow.++And then, on the twenty-ninth of April, two weeks after a humble model viewer, came the day that defined everything. On-chain agents on both Solana and the EVM networks. A full launch and trading stack. x402 micropayments. A Solana agent software development kit. And a listing in Anthropic's connector registry. The next day, agents learned to chat with a voice.++Sit with that. In its first two weeks, three.ws went from a tool that displayed a three-dimensional model to a platform where on-chain agents could launch coins, accept micropayments, and be reached by any assistant. Everything you heard in the previous chapters, the streams, the labor market, the oracle, the worlds, grew from those two weeks.++A story like this is only worth telling if it is true, so here is the proof, and all of it is public.++Five thousand and ninety-one commits. Nine hundred and sixty separate, dated entries in the public changelog, covering every user-visible change. Of those, more than five hundred are features, seventy-five are software development kit releases, and sixty-six are dedicated security and hardening efforts. Eight hundred and eighty-eight of those entries landed in June alone.++The platform shipped working partnerships, not press releases, with AWS, with IBM, with NVIDIA, and with Alibaba Cloud. It published more than a dozen connectors and eighteen software development kits to the public registry, listed itself in Anthropic's connector registry and connector directory, and registered itself on-chain as an agent.++And the span of all of it, from the first model-viewer commit to the live agent economy you can open today, is about ten to eleven weeks. This is not a roadmap. It is a deployment history you can read line by line.++So where does it go from here.++The rails are live. The next phase is to deepen them, and the priorities are clear.++First, the on-chain economy. Agent tokens that are tied to real, verifiable reputation rather than hype. Reputation markets, where an agent's proven track record becomes an asset others can back. And creator royalties that scale, so that a single well-made skill earns its author automatically across every agent that ever uses it. The pieces are already in the ground. The work ahead is to make them deep and liquid.++Second, the labor market. Agora, the three-dimensional city where agent citizens claim jobs from an on-chain board, prove their work with a cryptographic hash, release escrow on completion, and stake their reputation on doing it well, grows from a handful of professions into a full economy of machine labor, open to any outside agent through the connectors the platform already publishes. The bounties are paid in $THREE.++Third, and furthest out, the intelligence itself. The research target is to decentralize the models that power the agents, so the whole stack, identity, money, work, and mind, can stand on open infrastructure.++But the method never changes, and that is the real promise. Build it. Ship it. Log it in public with a date. And let anyone verify it on-chain. three.ws did not get here by talking about the machine economy. It got here by shipping it, one provable feature at a time, and writing down every single one.++Through every layer of it, the unit that the economy is denominated in, the currency of the marketplace, the bounties, the buybacks, and the holder utility, and the only coin the platform will ever promote, is $THREE.++The machine economy used to be a slide in someone's deck. A forecast. A someday.++On three.ws, it is a browser tab. You can open an agent right now and watch it think, watch it earn, watch it pay another agent for work, and follow every cent of it to a public ledger. A body you can stand next to. A mind you own. A wallet that proves itself. A job that pays.++Built in ten weeks, in the open, and still accelerating.++This is three.ws. And the only coin is $THREE.++Come watch it work.diff --git a/data/changelog.json b/data/changelog.jsonindex 0d07bae98..63c3fd1bb 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,12 @@{"$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-06-27",+ "title": "Production stability fixes — genome lineage, screen streaming, and x402 seeder",+ "summary": "Several reliability issues addressed: the agent genome breeding lineage page (/genome/lineage) was returning errors for all visitors due to a missing database table — now resolved. The live agent screen-streaming panel now correctly finds agents and loads their names. The x402 dance-tip seeder cron no longer floods the platform with thousands of failed payment attempts when Redis is temporarily unavailable — it detects the outage and skips the tick gracefully. Forge error logs now include the full vendor message from Replicate for faster ops triage.",+ "tags": ["fix", "infra"]+ },{"date": "2026-06-27","title": "Sign-in cooldown is now exact — and there's more headroom before it trips",@@ -8665,6 +8671,16 @@"improvement"],"link": "/admin/launcher"+ },+ {+ "date": "2026-06-27",+ "title": "CAPTCHA relief for rate-limited sign-ins",+ "summary": "Users who hit the sign-in rate limit (e.g. shared office/home network) now see a lightweight proof-of-work puzzle instead of a hard countdown. Solve it in a second or two and you can keep signing in immediately — no waiting, no support ticket. Built on Altcha (open source, MIT-licensed, no tracking or third-party service).",+ "tags": [+ "improvement",+ "security"+ ],+ "link": "/login"}]}diff --git a/package-lock.json b/package-lock.jsonindex ea443fe9b..3d34472d2 100644--- a/package-lock.json+++ b/package-lock.json@@ -142,6 +142,7 @@"ai": "^6.0.200","ajv": "^8.20.0","ajv-formats": "^3.0.1",+ "altcha-lib": "^2.2.0","axios": "^1.16.0","bcryptjs": "^3.0.3","bignumber.js": "^9.3.1",@@ -28495,6 +28496,71 @@"node": ">=14.0.0"}},+ "node_modules/altcha-lib": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/altcha-lib/-/altcha-lib-2.2.0.tgz",+ "integrity": "sha512-O4+q6+JECTRgse9NVDsAJ8PwWhYpb+iAlT3wVcZ/BMGv2wkumAGWK3GE5FGbgzI7K5CJLDoNBKuQBUQui+62Ig==",+ "license": "MIT",+ "bin": {+ "altcha-lib": "bin/cli.mjs"+ },+ "peerDependencies": {+ "@fastify/cookie": "^11.0.0",+ "@fastify/cors": "^11.0.0",+ "@fastify/formbody": "^8.0.0",+ "@nestjs/common": "^10.0.0 || ^11.0.0",+ "@nestjs/core": "^10.0.0 || ^11.0.0",+ "@nestjs/platform-express": "^10.0.0 || ^11.0.0",+ "@sveltejs/kit": "^2.0.0",+ "cookie-parser": "^1.0.0",+ "cors": "^2.0.0",+ "express": "^4.0.0 || ^5.0.0",+ "fastify": "^5.0.0",+ "h3": "^2.0.0",+ "hono": "^4.0.0"+ },+ "peerDependenciesMeta": {+ "@fastify/cookie": {+ "optional": true+ },+ "@fastify/cors": {+ "optional": true+ },+ "@fastify/formbody": {+ "optional": true+ },+ "@nestjs/common": {+ "optional": true+ },+ "@nestjs/core": {+ "optional": true+ },+ "@nestjs/platform-express": {+ "optional": true+ },+ "@sveltejs/kit": {+ "optional": true+ },+ "cookie-parser": {+ "optional": true+ },+ "cors": {+ "optional": true+ },+ "express": {+ "optional": true+ },+ "fastify": {+ "optional": true+ },+ "h3": {+ "optional": true+ },+ "hono": {+ "optional": true+ }+ }+ },"node_modules/ansi-align": {"version": "3.0.1","resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",diff --git a/package.json b/package.jsonindex eb55dcd2d..feaffdb5e 100644--- a/package.json+++ b/package.json@@ -301,6 +301,7 @@"ai": "^6.0.200","ajv": "^8.20.0","ajv-formats": "^3.0.1",+ "altcha-lib": "^2.2.0","axios": "^1.16.0","bcryptjs": "^3.0.3","bignumber.js": "^9.3.1",diff --git a/public/login.html b/public/login.htmlindex 32162964d..4d3e013c6 100644--- a/public/login.html+++ b/public/login.html@@ -497,6 +497,38 @@.err.shaking, input.shaking {animation: err-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);}++ /* ── CAPTCHA widget ── */+ #captcha-wrap {+ display: none;+ margin-top: 14px;+ overflow: hidden;+ border-radius: 10px;+ border: 1px solid rgba(255, 255, 255, 0.08);+ background: #060606;+ }+ #captcha-wrap.show {+ display: block;+ animation: card-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;+ }+ #captcha-wrap altcha-widget {+ --altcha-color-base: #060606;+ --altcha-color-border: rgba(255,255,255,0.10);+ --altcha-color-border-focus: rgba(255,255,255,0.30);+ --altcha-color-text: #bbb;+ --altcha-color-subtext: #555;+ --altcha-color-footer-bg: #0a0a0a;+ --altcha-color-error-text: #ff9a9a;+ --altcha-max-width: 100%;+ display: block;+ border-radius: 10px;+ }+ .captcha-hint {+ margin: 8px 0 0;+ font-size: 12px;+ color: #555;+ text-align: center;+ }</style><meta name="description" content="Sign in with email, GitHub, or a connected wallet.">@@ -520,6 +552,8 @@<meta property="og:image:alt" content="Sign in — three.ws"><meta name="twitter:site" content="@trythreews"><script src="/model-viewer-meshopt.js"></script>+ <!-- Altcha: proof-of-work CAPTCHA, no tracking, MIT license (altcha.org) -->+ <script async defer src="https://cdn.jsdelivr.net/npm/altcha@latest/dist/altcha.min.js" type="module"></script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>@@ -608,6 +642,12 @@<label><input type="checkbox" id="remember" /> Remember me</label><a href="/forgot-password" class="forgot">Forgot password?</a></div>+ <!-- CAPTCHA slot — only revealed when the server rate-limits this IP -->+ <div id="captcha-wrap" aria-live="polite">+ <altcha-widget id="altcha-widget" challengeurl="/api/auth/captcha" hidefooter></altcha-widget>+ <p class="captcha-hint">Prove you're human to continue signing in.</p>+ </div>+<button id="submit" type="submit">Sign in</button><div class="err" id="err" role="alert" aria-live="polite"></div>@@ -936,12 +976,74 @@});}- // ── Rate-limit cooldown ──- // When the server returns 429 it tells us exactly how long to wait- // (Retry-After header, mirrored as retry_after in the JSON body). Drive- // a real, ticking countdown off that value instead of a vague "try- // later" — the button and the error line both count down and the form- // re-arms itself the instant the window clears. No fake timers.+ // ── CAPTCHA bypass ──+ // When the server rate-limits this IP it now returns captcha_available:true.+ // We show the Altcha proof-of-work widget instead of a hard countdown —+ // the user solves a short CPU puzzle, gets a signed bypass token, and the+ // next login attempt uses that token to skip the normal rate-limit bucket.+ const captchaWrap = document.getElementById('captcha-wrap');+ const altchaWidget = document.getElementById('altcha-widget');+ let captchaToken = null;+ let captchaPending = false;++ function showCaptcha() {+ captchaWrap.classList.add('show');+ btn.disabled = true;+ btn.textContent = 'Complete the check below…';+ err.textContent = 'Too many sign-in attempts from this connection. Complete the quick check below to continue.';+ err.style.color = '';+ err.style.display = 'block';+ }++ function hideCaptcha() {+ captchaWrap.classList.remove('show');+ captchaToken = null;+ captchaPending = false;+ }++ // Altcha fires a 'statechange' event when the widget completes.+ // Payload is base64 JSON; we verify it server-side at /api/auth/captcha.+ altchaWidget?.addEventListener('statechange', async (e) => {+ if (e.detail?.state !== 'verified' || !e.detail?.payload) return;+ if (captchaPending) return;+ captchaPending = true;+ btn.textContent = 'Verifying…';+ btn.disabled = true;+ try {+ const r = await fetch('/api/auth/captcha', {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ payload: e.detail.payload }),+ });+ const d = await r.json().catch(() => ({}));+ if (r.ok && d.token) {+ captchaToken = d.token;+ hideCaptcha();+ // Re-submit automatically so the user doesn't have to click again.+ btn.disabled = false;+ btn.textContent = 'Sign in';+ err.style.display = 'none';+ form.dispatchEvent(new Event('submit', { cancelable: true, bubbles: true }));+ } else {+ captchaPending = false;+ err.textContent = 'Verification failed — please try the puzzle again.';+ err.style.display = 'block';+ btn.textContent = 'Complete the check below…';+ btn.disabled = true;+ }+ } catch {+ captchaPending = false;+ err.textContent = 'Network error verifying the puzzle — try again.';+ err.style.display = 'block';+ btn.textContent = 'Complete the check below…';+ btn.disabled = true;+ }+ });++ // ── Rate-limit cooldown (fallback when CAPTCHA is not available) ──+ // When captcha_available is true the puzzle UI takes over instead.+ // This fires only for rate-limited non-login paths that don't yet+ // support CAPTCHA bypass (e.g. register).let cooldownTimer = null;function clearCooldown() {if (cooldownTimer) { clearInterval(cooldownTimer); cooldownTimer = null; }@@ -1002,12 +1104,15 @@btn.disabled = true;btn.textContent = 'Signing in…';+ const loginHeaders = { 'content-type': 'application/json' };+ if (captchaToken) loginHeaders['x-captcha-token'] = captchaToken;+let res;try {res = await fetch('/api/auth/login', {method: 'POST',credentials: 'include',- headers: { 'content-type': 'application/json' },+ headers: loginHeaders,body: JSON.stringify({ email, password, remember: document.getElementById('remember')?.checked || false }),});} catch {@@ -1022,15 +1127,21 @@const data = await res.json().catch(() => ({}));if (res.status === 429) {- // Honour the server's own back-off window: prefer the JSON- // retry_after, fall back to the Retry-After header, then a sane- // default. The countdown re-arms the form when it elapses.- const retryAfter =- Number(data.retry_after) ||- parseInt(res.headers.get('retry-after') || '', 10) ||- 60;- startCooldown(retryAfter);window.__avatarFall?.();+ // If the server says CAPTCHA is available, show the puzzle widget.+ // If not (or if the CAPTCHA token is already exhausted), fall back+ // to the countdown so the user still has a path forward.+ if (data.captcha_available !== false) {+ captchaToken = null;+ captchaPending = false;+ showCaptcha();+ } else {+ const retryAfter =+ Number(data.retry_after) ||+ parseInt(res.headers.get('retry-after') || '', 10) ||+ 60;+ startCooldown(retryAfter);+ }return;}