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
Refactor code structure for improved readability and maintainability
qbdzc3a1069077c8
diff --git a/snapshots/current/desktop/pulse.jpg b/snapshots/current/desktop/pulse.jpgnew file mode 100644index 000000000..e3265083bBinary files /dev/null and b/snapshots/current/desktop/pulse.jpg differdiff --git a/snapshots/current/index.html b/snapshots/current/index.htmlindex 429c3ce5b..9af38db2a 100644--- a/snapshots/current/index.html+++ b/snapshots/current/index.html@@ -3,7 +3,7 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />-<title>three.ws — site snapshot 2026-06-26</title>+<title>three.ws — site snapshot 2026-07-01</title><style>:root { --bg:#0a0a0b; --panel:#141416; --line:#26262b; --fg:#f4f4f5; --mut:#9a9aa3; --accent:#e8e8ea; }* { box-sizing: border-box; }@@ -43,7 +43,7 @@</header><main id="main"></main><script>-const DATA = {"capturedAt":"2026-06-26T07:16:00.116Z","date":"2026-06-26","baseUrl":"http://localhost:3000","viewports":["desktop"],"pages":[{"path":"/agents","title":"/agents","section":"Selected","slug":"agents","shots":{}}]};+const DATA = {"capturedAt":"2026-07-01T01:24:07.670Z","date":"2026-07-01","baseUrl":"http://localhost:3000","viewports":["desktop"],"pages":[{"path":"/pulse","title":"/pulse","section":"Selected","slug":"pulse","shots":{"desktop":{"bytes":387933,"navStatus":200}}}]};let viewport = DATA.viewports.includes('desktop') ? 'desktop' : 'mobile';let query = '';const main = document.getElementById('main');diff --git a/snapshots/current/manifest.json b/snapshots/current/manifest.jsonindex 3f7be783f..5daa3a2f5 100644--- a/snapshots/current/manifest.json+++ b/snapshots/current/manifest.json@@ -1,19 +1,24 @@{- "capturedAt": "2026-06-26T07:16:00.116Z",- "date": "2026-06-26",+ "capturedAt": "2026-07-01T01:24:07.670Z",+ "date": "2026-07-01","baseUrl": "http://localhost:3000","viewports": ["desktop"],"pageCount": 1,- "capturedCount": 0,+ "capturedCount": 1,"pages": [{- "path": "/agents",- "title": "/agents",+ "path": "/pulse",+ "title": "/pulse","section": "Selected",- "slug": "agents",- "shots": {}+ "slug": "pulse",+ "shots": {+ "desktop": {+ "bytes": 387933,+ "navStatus": 200+ }+ }}]}\ No newline at end of filediff --git a/x402-launch-media/x402-article.md b/x402-launch-media/x402-article.mdindex 4e2642bd7..dad65513c 100644--- a/x402-launch-media/x402-article.md+++ b/x402-launch-media/x402-article.md@@ -1,17 +1,17 @@# Pay-per-call APIs, inside your editor-> HTTP 402 sat unused for 25 years. We wired it into VS Code — inspect, pay, and ship paid APIs in USDC without leaving the editor.+> HTTP 402 sat unused for 25 years. We wired it into VS Code, so you can inspect, pay, and ship paid APIs in USDC without leaving the editor.-For twenty-five years, one HTTP status code has been a placeholder. `402 Payment Required` shipped in the earliest HTTP specs, got marked "reserved for future use," and then… nothing. Every other code found a job. 402 waited.+For twenty-five years, one HTTP status code has been a placeholder. `402 Payment Required` shipped in the earliest HTTP specs, got marked "reserved for future use," and then nothing. Every other code found a job. 402 waited.-The future finally showed up — as a protocol called **x402** — and we brought the whole thing into the one place developers actually wire up and call paid endpoints: **VS Code**.+The future finally showed up, as a protocol called **x402**, and we brought the whole thing into the one place developers actually wire up and call paid endpoints: **VS Code**.## What x402 actually isx402 is a payment protocol for developers and agents. The loop is simple:1. You request a resource.-2. The server answers `402 Payment Required` with a machine-readable challenge — which networks it accepts, which asset, the price, and where to pay.+2. The server answers `402 Payment Required` with a machine-readable challenge: which networks it accepts, which asset, the price, and where to pay.3. Your client signs a USDC authorization and retries the same request with proof of payment.4. The server does the work and returns the result plus an on-chain settlement receipt.@@ -19,11 +19,11 @@ No accounts. No API keys. No subscriptions. Just per-call settlement, on-chain.## What the extension does-**x402 — Pay-per-call APIs** brings that entire loop inside the editor. Four moves, all without leaving VS Code:+**x402 Pay-per-call APIs** brings that entire loop inside the editor. Four moves, all without leaving VS Code.-**Inspect any endpoint.** Paste a URL and decode its 402 challenge — every accepted network, asset, payment scheme, price (converted to USD), and payTo address, with the one requirement *your* wallet can satisfy flagged. Read-only. No wallet, no signing, no configuration.+**Inspect any endpoint.** Paste a URL and decode its 402 challenge: every accepted network, asset, payment scheme, price (converted to USD), and payTo address, with the one requirement your wallet can satisfy flagged. Read-only. No wallet, no signing, no configuration.-**Pay & call.** Make a real paid request from a panel. The exact USD amount is shown and confirmed before any key touches the request, and a per-call spending cap blocks anything above your limit. The response body and the on-chain receipt — status, amount paid, paying address, transaction hash — render inline.+**Pay & call.** Make a real paid request from a panel. The exact USD amount is shown and confirmed before any key touches the request, and a per-call spending cap blocks anything above your limit. The response body and the on-chain receipt (status, amount paid, paying address, transaction hash) render inline.**Browse a bazaar.** Point it at a discovery host and the sidebar lists paid HTTP APIs and MCP tools. Filter by type, price, and tag; full-text search; click any service to open its panel and pay.@@ -31,21 +31,21 @@ No accounts. No API keys. No subscriptions. Just per-call settlement, on-chain.## Under the hood-The payment client is **vendored and zero-dependency** — the extension pulls in no payment SDK at runtime. It sends your request unpaid (free endpoints just work), parses the 402, selects the requirement matching your preferred network and a USDC asset your key can sign, signs a USDC-on-Base `transferWithAuthorization` (EIP-3009 / EIP-712), and retries with the `X-PAYMENT` header. The merchant settles on-chain and returns the work plus a receipt decoded from the `x-payment-response` header.+The payment client is **vendored and zero-dependency**: the extension pulls in no payment SDK at runtime. It sends your request unpaid (free endpoints just work), parses the 402, selects the requirement matching your preferred network and a USDC asset your key can sign, signs a USDC-on-Base `transferWithAuthorization` (EIP-3009 / EIP-712), and retries with the `X-PAYMENT` header. The merchant settles on-chain and returns the work plus a receipt decoded from the `x-payment-response` header.-The whole secp256k1 / keccak256 / EIP-712 stack is pure JavaScript on top of Web Crypto — nothing exotic, present in Node ≥ 18 and modern browsers.+The whole secp256k1 / keccak256 / EIP-712 stack is pure JavaScript on top of Web Crypto. Nothing exotic: it's present in Node 18+ and every modern browser.## Security you can reason about-Your EVM private key lives only in VS Code **SecretStorage** — the OS keychain (Keychain on macOS, Credential Manager on Windows, libsecret on Linux). Never in `settings.json`, never logged, never on disk in plaintext. A spending cap (default $0.10) is checked before signing, and per-payment confirmation shows the exact amount and paying address before any signature. The guidance is blunt: use a dedicated, low-balance wallet. Treat it like petty cash, not a vault.+Your EVM private key lives only in VS Code **SecretStorage**, the OS keychain (Keychain on macOS, Credential Manager on Windows, libsecret on Linux). Never in `settings.json`, never logged, never on disk in plaintext. A spending cap (default $0.10) is checked before signing, and per-payment confirmation shows the exact amount and paying address before any signature. The guidance is blunt: use a dedicated, low-balance wallet. Treat it like petty cash, not a vault.## No lock-in-It has no dependency on any specific provider. Point it at any compliant x402 endpoint, or any bazaar that serves the discovery API. Discovery is optional — inspecting and paying a single URL needs zero configuration.+It has no dependency on any specific provider. Point it at any compliant x402 endpoint, or any bazaar that serves the discovery API. Discovery is optional: inspecting and paying a single URL needs zero configuration.## Get it-Open the Extensions view, search **x402**, and install `threews.vscode-x402` — or run `ext install nirholas.vscode-x402`. Requires VS Code 1.85+; a funded USDC-on-Base wallet only if you want to *pay* (inspecting and browsing are free).+Open the Extensions view, search **x402**, and install `threews.vscode-x402`, or run `ext install nirholas.vscode-x402`. Requires VS Code 1.85+; a funded USDC-on-Base wallet only if you want to *pay* (inspecting and browsing are free).It's **free**, on the VS Code Marketplace now → https://marketplace.visualstudio.com/items?itemName=threews.vscode-x402@@ -53,24 +53,24 @@ Twenty-five years is long enough. Let's use the code.----## Where x402 fits — the three.ws ecosystem+## Where x402 fits: the three.ws ecosystem-This extension is one surface of **three.ws**: an open-source, browser-native platform for 3D AI agents that can *earn, pay, and coordinate*. The same team that wired 402 into your editor is building the whole loop around it — give an AI a body, a brain, an on-chain identity, and a wallet, then let agents transact with each other in real time. It all ships from a single npm-workspaces monorepo, published under the **`@three-ws`** scope. `$THREE` (Solana: `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the native token.+This extension is one surface of **three.ws**, an open-source, browser-native platform for 3D AI agents that can *earn, pay, and coordinate*. The same team that wired 402 into your editor is building the whole loop around it: give an AI a body, a brain, an on-chain identity, and a wallet, then let agents transact with each other in real time. It all ships from a single npm-workspaces monorepo, published under the **`@three-ws`** scope. `$THREE` (Solana: `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the native token.### What we're building-Type a prompt and **Forge** turns text, an image, or a sketch into a textured, rig-ready 3D model — free draft tier, no account. Rig it, animate it, give it an LLM brain, embed it anywhere with `<agent-3d>`, register it on-chain (ERC-8004), and let it pay for tools and get paid for skills over x402. The extension you just installed is the *payments edge* of that platform, pulled out so any developer can use it standalone.+Type a prompt and **Forge** turns text, an image, or a sketch into a textured, rig-ready 3D model: free draft tier, no account. Rig it, animate it, give it an LLM brain, embed it anywhere with `<agent-3d>`, register it on-chain (ERC-8004), and let it pay for tools and get paid for skills over x402. The extension you just installed is the *payments edge* of that platform, pulled out so any developer can use it standalone.### The x402 stack-- **`@three-ws/x402-fetch`** — the zero-dependency payment client this extension vendors (send → 402 → sign USDC → retry).-- **`@three-ws/x402-server`** — the merchant side: turn any endpoint paid. It advertises **both USDC and $THREE** in a single 402 challenge.-- **`@three-ws/x402-mcp`** — a self-custodial x402 buyer as an MCP server: find, inspect, and pay any service in USDC from any AI client.+- **`@three-ws/x402-fetch`**: the zero-dependency payment client this extension vendors (send → 402 → sign USDC → retry).+- **`@three-ws/x402-server`**: the merchant side. Turn any endpoint paid; it advertises **both USDC and $THREE** in a single 402 challenge.+- **`@three-ws/x402-mcp`**: a self-custodial x402 buyer as an MCP server. Find, inspect, and pay any service in USDC from any AI client.- Native x402 endpoints on **Base, BSC, and Solana**, settled through the **Coinbase CDP facilitator** on Base. Pay-by-name resolves `@username`, `*.sol`, or `*.threews.sol` to a recipient before you sign.### 38 MCP servers-Everything the platform can do is exposed over the Model Context Protocol — **6 hosted remote servers** (Streamable HTTP, nothing to install) and **32 install-and-run servers** on npm, all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas). A sampling:+Everything the platform can do is exposed over the Model Context Protocol: **6 hosted remote servers** (Streamable HTTP, nothing to install) and **32 install-and-run servers** on npm, all listed in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas). A sampling:- **3D & avatars:** `scene-mcp` (speak a diorama into being), `avatar-mcp`, `avatar-agent`, `mcp-server` (full 3D + agent toolkit, paid per call).- **Payments & economy:** `x402-mcp`, `three-token-mcp`, `mcp-bridge`, `autopilot-mcp` (scopes + spend caps + propose/execute/undo), `portfolio-mcp`, `provenance-mcp`.@@ -79,7 +79,7 @@ Everything the platform can do is exposed over the Model Context Protocol — **### 20+ SDKs & packages (all `@three-ws`, all published)-Zero-dependency, pure-ESM, typed, tested (216 green tests across the SDK suite). Each wraps live platform APIs into a single import:+Zero-dependency, pure-ESM, typed, tested (216 green tests across the SDK suite). Each wraps live platform APIs into a single import.- **Create:** `forge`, `pose`, `mocap`, `voice`, `glb-tools`, `avatar`, `page-agent`, `walk`, `avatar-schema`.- **Earn / trade:** `x402-server`, `strategies`, `pumpfun-skills`, `agent-guards`, `skill-license`.@@ -88,18 +88,18 @@ Zero-dependency, pure-ESM, typed, tested (216 green tests across the SDK suite).### In your editor-- **VS Code** — *x402 — Pay-per-call APIs* (this extension).-- **Claude Code plugin marketplace** — add `three-ws` once and install wallet, payments, pump.fun trading, agent scaffolding, and the 3D Forge as namespaced skills + MCP tools. Works across Claude Code, Claude Desktop, and Cursor over MCP.+- **VS Code:** the *x402 Pay-per-call APIs* extension (this one).+- **Claude Code plugin marketplace:** add `three-ws` once and install wallet, payments, pump.fun trading, agent scaffolding, and the 3D Forge as namespaced skills + MCP tools. Works across Claude Code, Claude Desktop, and Cursor over MCP.### Partners & platforms-We build in the open, and we're precise about what's official:+We build in the open, and we're precise about what's official.-- **IBM** — three.ws is an IBM Business Partner; the agent runtime runs on **IBM Granite** models via **watsonx.ai**. *(The public `/ibm/*` demos are independent tools we built to explore Granite — not IBM products and not endorsed by IBM; the community-built connectors `@three-ws/ibm-watsonx-mcp` and `@three-ws/ibm-x402-mcp` are ours, not IBM's.)*-- **AWS** — AWS Partner (APN Software Path); Marketplace SaaS listing in review; production runs on `us-east-1`.-- **Alibaba Cloud** — live product listing on Alibaba Cloud Marketplace.-- **Solana Mobile (Seeker)** — MWA wallet wired into the app + a dApp Store release pipeline.-- **Built on / integrated with:** Anthropic Claude, Coinbase CDP (x402 facilitator on Base), pump.fun, ENS + SNS, Meshy & Tripo (bring-your-own-key 3D), FLUX → TRELLIS (the free text→3D lane). *(Google Cloud: not yet a partner — open to co-listing. Livepeer: early, experimental.)*+- **IBM:** three.ws is an IBM Business Partner; the agent runtime runs on **IBM Granite** models via **watsonx.ai**. *(The public `/ibm/*` demos are independent tools we built to explore Granite, not IBM products and not endorsed by IBM; the connectors `@three-ws/ibm-watsonx-mcp` and `@three-ws/ibm-x402-mcp` are community-built, ours and not IBM's.)*+- **AWS:** AWS Partner (APN Software Path); Marketplace SaaS listing in review; production runs on `us-east-1`.+- **Alibaba Cloud:** live product listing on Alibaba Cloud Marketplace.+- **Solana Mobile (Seeker):** MWA wallet wired into the app, plus a dApp Store release pipeline.+- **Built on / integrated with:** Anthropic Claude, Coinbase CDP (x402 facilitator on Base), pump.fun, ENS + SNS, Meshy & Tripo (bring-your-own-key 3D), FLUX → TRELLIS (the free text→3D lane). *(Google Cloud: not yet a partner, open to co-listing. Livepeer: early, experimental.)*### Under the hood@@ -118,7 +118,7 @@ Stateless Vercel serverless functions, Neon Postgres, Cloudflare R2, Upstash Red> HTTP 402 "Payment Required" has sat unused in the spec for 25 years.>-> We wired it into VS Code. Paste any endpoint, pay per call in USDC, get the on-chain receipt inline — no accounts, no API keys, no subscriptions.+> We wired it into VS Code. Paste any endpoint, pay per call in USDC, get the on-chain receipt inline. No accounts, no API keys, no subscriptions.>> Free → marketplace.visualstudio.com/items?itemName=threews.vscode-x402@@ -126,14 +126,14 @@ Stateless Vercel serverless functions, Neon Postgres, Cloudflare R2, Upstash Red> Three ways to use it:>-> ◆ Inspect any endpoint free — decode its 402, no wallet-> ◆ Pay & call — USDC on Base, per-call spending cap, key in your OS keychain+> ◆ Inspect any endpoint free: decode its 402, no wallet+> ◆ Pay & call: USDC on Base, per-call spending cap, key in your OS keychain> ◆ Scaffold your own paid endpoint in one command>> No provider lock-in. Open x402 protocol, zero payment SDK at runtime.### Alt text-**Hero:** Dark promo graphic. Headline: "HTTP 402 sat unused for 25 years." Subtext: paste any endpoint, pay per call in USDC, get the on-chain receipt inline — no accounts, no API keys, no subscriptions. A floating VS Code panel shows a settlement receipt: $0.01 USDC paid on Base with a transaction hash. Free on the VS Code Marketplace.+**Hero:** Dark promo graphic. Headline: "HTTP 402 sat unused for 25 years." Subtext: paste any endpoint, pay per call in USDC, get the on-chain receipt inline. No accounts, no API keys, no subscriptions. A floating VS Code panel shows a settlement receipt: $0.01 USDC paid on Base with a transaction hash. Free on the VS Code Marketplace.-**Loop / money shot:** A VS Code panel titled "Pay & call endpoint." It decodes a 402 Payment Required challenge — Base network, USDC, $0.01, pay-to address — flagged "payable by this wallet." After a confirm dialog, a 200 OK JSON response and a green settlement receipt appear inline, showing $0.01 USDC paid from 0x4E9a…1F08 with transaction hash 0x9c2d…4a7f.+**Loop / money shot:** A VS Code panel titled "Pay & call endpoint." A cursor types an endpoint URL, which decodes into a 402 Payment Required challenge (Base network, USDC, $0.01, pay-to address) flagged "payable by this wallet." The cursor clicks "Pay & call," confirms a payment dialog, and a 200 OK JSON response plus a green settlement receipt appear inline, showing $0.01 USDC paid from 0x4E9a…1F08 with transaction hash 0x9c2d…4a7f.