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(docs/pages): AR docs expansion, compose page, launch-week updates

nirholas42fa74cbf09f
diff --git a/README.md b/README.md
index d73f3220a..8b6b11f7d 100644
--- a/README.md
+++ b/README.md
@@ -920,7 +920,7 @@ For sandboxed iframes use the widget embed path instead — it runs in its own b
- `rider/`: A-Frame WebVR music visualization experiment.
- `contracts/`: Solidity smart contracts for on-chain identity (ERC-8004) and the multichain payment factory.
- `multiplayer/`: Colyseus WebSocket server for `/walk` and `/play` (WalkRoom); deployable on Fly.io. Holds the authoritative world logic and single sources of truth — `items.js`, `playerStore.js`, `game-token.js`, `play-pass.js`, `holder-pass.js`, and the per-account `social-hub.js`.
-- `sdk/`: `@nirholas/agent-kit` and the Avatar SDK (`sdk/agent-sdk/`).
+- `sdk/`: `@three-ws/sdk` (the AgentKit SDK; the legacy avatar helpers live in `sdk/agent-sdk/`).
- `agent-payments-sdk/`: EVM agent payments SDK (Base / BSC / other EVM chains).
- `solana-agent-sdk/`: SDK for Solana blockchain interactions (Metaplex Core mints, SIWS, attestations).
- `pump-fun-skills/`: Skills related to the pump.fun integration.
@@ -1676,20 +1676,43 @@ The platform has been hardened against the OWASP top-10 plus a set of issues spe
## Developer SDKs
-Three npm-publishable SDKs ship from this repo. They share types and helpers but target different surfaces.
+Fifteen packages ship from this repo, all published to npm under the **`@three-ws`** scope. Install only what you need — each has its own README with a copy-paste quick start and a full API/tools reference.
-| SDK | Path | What it does |
-| ---------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------- |
-| **`@nirholas/agent-kit`** | [sdk/](sdk/) | One-line agent embed for any site — chat panel, voice I/O, ERC-8004 register, Solana attestations |
-| **`@pump-fun/agent-payments-sdk`** | [agent-payments-sdk/](agent-payments-sdk/) | EVM agent payments — wallet, signing, EIP-7710 delegation |
-| **`solana-agent-sdk`** | [solana-agent-sdk/](solana-agent-sdk/) | Solana-native agent ops — Metaplex Core mints, SIWS, attestations, transfer hooks |
-| **Avatar SDK** | [sdk/agent-sdk/](sdk/agent-sdk/) | Avatar load + manipulation helpers — pose, animation, snapshot |
+**Avatar & 3D**
-**`@nirholas/agent-kit` quickstart:**
+| Package | Install | What it does |
+| --- | --- | --- |
+| [`@three-ws/avatar`](avatar-sdk/) | `npm i @three-ws/avatar` | 3D avatar viewer, creator iframe, AR/VR runtime + React bindings (`/react`) |
+| [`@three-ws/agent-ui`](agent-ui-sdk/) | `npm i @three-ws/agent-ui` | Drop a 3D avatar overlay into any UI; it reacts to buttons, inputs, and navigation |
+| [`@three-ws/avatar-schema`](packages/avatar-schema/) | `npm i @three-ws/avatar-schema` | JSON Schema + validator for on-chain avatar manifests |
+| [`@three-ws/viewer-presets`](packages/viewer-presets/) | `npm i @three-ws/viewer-presets` | Tuned light-rig, floor-reflection, and bloom presets for avatar viewers |
+| [`@three-ws/avatar-cli`](packages/avatar-cli/) | `npm i -g @three-ws/avatar-cli` | Scaffold, validate, hash, and preview avatar manifests from your shell or CI |
+
+**Agents & payments**
+
+| Package | Install | What it does |
+| --- | --- | --- |
+| [`@three-ws/sdk`](sdk/) | `npm i @three-ws/sdk` | Ship an ERC-8004 agent: chat panel, voice I/O, on-chain registration, `.well-known` manifests |
+| [`@three-ws/solana-agent`](solana-agent-sdk/) | `npm i @three-ws/solana-agent` | Solana agent ops — keypair + browser wallet, transfers, swaps, x402 exact-scheme payments |
+| [`@three-ws/agent-payments`](agent-payments-sdk/) | `npm i @three-ws/agent-payments` | Agent-token payments — USDC/Token-2022, v2 trades, plus EVM / x402 / a2a / cross-chain |
+
+**MCP servers** (run over stdio with one command — also in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas))
+
+| Package | Run | What it does |
+| --- | --- | --- |
+| [`@three-ws/mcp-server`](mcp-server/) | `npx -y @three-ws/mcp-server` | 15 paid x402 tools: text/image→3D, rigging, pose, pump.fun, ERC-8004, vanity, AgenC, aixbt |
+| [`@three-ws/avatar-agent`](packages/avatar-agent-mcp/) | `npx -y @three-ws/avatar-agent` | Spawn a textured GLB avatar with a Solana wallet, a voice, and pump.fun launch powers |
+| [`@three-ws/avatar-mcp`](packages/threews-avatar-mcp/) | `npx -y @three-ws/avatar-mcp` | Render a live, rotatable on-chain avatar inline + a paste-anywhere embed (free) |
+| [`@three-ws/pumpfun-mcp`](packages/pumpfun-mcp/) | `npx -y @three-ws/pumpfun-mcp` | 23 free, read-only pump.fun + Solana tools — no API key |
+| [`@three-ws/three-token-mcp`](packages/three-token-mcp/) | `npx -y @three-ws/three-token-mcp` | Price, hold, and burn **$THREE** on Solana — deflation as an agent primitive |
+| [`@three-ws/ibm-watsonx-mcp`](packages/ibm-watsonx-mcp/) | `npx -y @three-ws/ibm-watsonx-mcp` | IBM watsonx.ai Granite (chat, generate, embed, forecast) with your own IBM key |
+| [`@three-ws/ibm-x402-mcp`](packages/ibm-x402-mcp/) | `npx -y @three-ws/ibm-x402-mcp` | Pay-per-use IBM Granite — USDC on Solana, no IBM account required |
+
+**`@three-ws/sdk` quickstart:**
```js
-import { AgentKit, loadAvatar } from '@nirholas/agent-kit';
-import '@nirholas/agent-kit/styles';
+import { AgentKit, loadAvatar } from '@three-ws/sdk';
+import '@three-ws/sdk/styles';
const agent = new AgentKit({
name: 'My Agent',
@@ -1703,7 +1726,7 @@ agent.mount(document.body);
loadAvatar('a_abc123', document.getElementById('avatar-slot'));
```
-The agent-kit also exposes `attestFeedback`, `attestValidation`, and `listAttestations` for Solana reputation flows. See [sdk/README.md](sdk/README.md).
+`@three-ws/sdk` also exposes `AgentClient` (x402 paid calls), `PermissionsClient`, and ERC-8004 registry helpers. See [sdk/README.md](sdk/README.md), the [SDK guide](docs/sdk.md), and [examples](docs/examples.md).
---
@@ -2218,7 +2241,7 @@ Solana ships an ERC-8004 analog without any custom on-chain program:
SDK:
```js
-import { attestFeedback, attestValidation, listAttestations } from '@nirholas/agent-kit';
+import { attestFeedback, attestValidation, listAttestations } from '@three-ws/sdk';
await attestFeedback({ agentAsset, score: 5, network: 'devnet' });
await attestValidation({ agentAsset, taskHash: '0x…', passed: true, network: 'devnet' });
diff --git a/agent-payments-sdk/docs/api.md b/agent-payments-sdk/docs/api.md
index ff4f4f891..799c25c95 100644
--- a/agent-payments-sdk/docs/api.md
+++ b/agent-payments-sdk/docs/api.md
@@ -1,4 +1,4 @@
-# API Reference — @pump-fun/agent-payments-sdk
+# API Reference — @three-ws/agent-payments
Program ID: `AgenTMiC2hvxGebTsgmsD4HHBa8WEcqGFf87iwRRxLo7`
@@ -11,7 +11,7 @@ Program ID: `AgenTMiC2hvxGebTsgmsD4HHBa8WEcqGFf87iwRRxLo7`
Instruction builder. No RPC connection required — all methods return a `TransactionInstruction` you include in your own transaction.
```ts
-import { PumpAgentOffline } from "@pump-fun/agent-payments-sdk";
+import { PumpAgentOffline } from "@three-ws/agent-payments";
import { PublicKey } from "@solana/web3.js";
const agent = new PumpAgentOffline(mintPubkey);
@@ -44,7 +44,7 @@ const agent = PumpAgentOffline.load(mintPubkey, connection);
Extends `PumpAgentOffline` with RPC calls for account fetching, balance queries, payment history, and invoice validation.
```ts
-import { PumpAgent } from "@pump-fun/agent-payments-sdk";
+import { PumpAgent } from "@three-ws/agent-payments";
import { Connection, PublicKey } from "@solana/web3.js";
const connection = new Connection("https://api.mainnet-beta.solana.com");
@@ -209,7 +209,7 @@ Fields: `totalPayments`, `totalBuyback`, `totalWithdraw`, `totalTokensBurned`.
## Program Helpers
```ts
-import { getPumpProgram, getPumpProgramWithFallback, getOfflineProgram, getProgram } from "@pump-fun/agent-payments-sdk";
+import { getPumpProgram, getPumpProgramWithFallback, getOfflineProgram, getProgram } from "@three-ws/agent-payments";
```
| Helper | Description |
@@ -230,7 +230,7 @@ import {
PUMP_PROGRAM_ID,
PUMP_AGENT_PAYMENTS_PROGRAM_ID,
TOKEN_AGENT_PAYMENTS_MIN_RENT_EXEMPT_LAMPORTS,
-} from "@pump-fun/agent-payments-sdk";
+} from "@three-ws/agent-payments";
```
| Constant | Value |
@@ -251,7 +251,7 @@ import {
decodeGlobalConfig,
decodeTokenAgentPaymentInCurrency,
decodeTokenAgentPayments,
-} from "@pump-fun/agent-payments-sdk";
+} from "@three-ws/agent-payments";
```
Each decoder accepts a `Buffer` of raw account data and returns the typed struct.
diff --git a/agent-payments-sdk/docs/events.md b/agent-payments-sdk/docs/events.md
index e444c0f25..033671d91 100644
--- a/agent-payments-sdk/docs/events.md
+++ b/agent-payments-sdk/docs/events.md
@@ -1,11 +1,11 @@
-# Events — @pump-fun/agent-payments-sdk
+# Events — @three-ws/agent-payments
The SDK provides typed event parsing from transaction logs and real-time WebSocket subscriptions.
## Quick Start
```ts
-import { parseAgentEvents, subscribeToAgentEvents } from "@pump-fun/agent-payments-sdk";
+import { parseAgentEvents, subscribeToAgentEvents } from "@three-ws/agent-payments";
// Parse from a fetched transaction
const tx = await connection.getTransaction(sig, { maxSupportedTransactionVersion: 0 });
diff --git a/agent-payments-sdk/docs/x402.md b/agent-payments-sdk/docs/x402.md
index a1876f229..c08c60b98 100644
--- a/agent-payments-sdk/docs/x402.md
+++ b/agent-payments-sdk/docs/x402.md
@@ -3,9 +3,9 @@
The `x402` sub-package implements the [coinbase/x402 v2 specification](https://github.com/coinbase/x402) for pay-gating HTTP endpoints using on-chain Pump Agent invoice payments.
```ts
-import { x402 } from "@pump-fun/agent-payments-sdk";
+import { x402 } from "@three-ws/agent-payments";
// or direct import:
-import { createX402Fetch, PumpAgentFacilitator, buildPumpAgentRequirements } from "@pump-fun/agent-payments-sdk/x402";
+import { createX402Fetch, PumpAgentFacilitator, buildPumpAgentRequirements } from "@three-ws/agent-payments/x402";
```
---
@@ -116,7 +116,7 @@ import {
getPaymentRequiredFromResponse,
getPaymentPayloadFromRequest,
getPaymentResponseFromResponse,
-} from "@pump-fun/agent-payments-sdk/x402";
+} from "@three-ws/agent-payments/x402";
```
These encode/decode the three protocol headers as base64 JSON:
diff --git a/content/x-schedule.md b/content/x-schedule.md
index 88644839f..083799e99 100644
--- a/content/x-schedule.md
+++ b/content/x-schedule.md
@@ -383,8 +383,8 @@ _Reply:_
>
> Programmatic avatar creation — load, customize, animate, export. The same primitives that power the platform, on npm. Build avatar pipelines on top of ours.
-**PM · feature · @nirholas/agent-kit** — [three.ws](https://three.ws)
-> @nirholas/agent-kit.
+**PM · feature · @three-ws/sdk** — [three.ws](https://three.ws)
+> @three-ws/sdk.
>
> The agent runtime, distilled. Brain, tools, memory, skills, voice — all in a node-friendly SDK. Build agents that run anywhere, not just on three.ws.
diff --git a/docs/ar.md b/docs/ar.md
index 6eab0b67c..d7d751a94 100644
--- a/docs/ar.md
+++ b/docs/ar.md
@@ -1,79 +1,157 @@
# AR & WebXR
-three.ws supports three AR methods, each targeting a different platform:
+Place any three.ws avatar or Forge model into the real world through the camera on your phone — no app, no download. The feature is called **View in AR** and it works on both iOS and Android directly in the browser.
-| Method | Platform | Mechanism |
-|--------|----------|-----------|
-| iOS QuickLook | iPhone/iPad (Safari) | Native AR viewer via `<a rel="ar">` |
-| Android Scene Viewer | Android (Chrome) | Google's ARCore via intent URL |
-| WebXR | Any WebXR-capable browser | Immersive AR session in-page |
+---
+
+## How it looks
+
+Every avatar page has an **AR** tab. Every Forge model has a **View in AR** button in its result toolbar. On mobile, tapping **Place in your space** triggers native AR. On desktop, the same screen shows a **QR code** — scan it with your phone and the AR session opens in one tap.
+
+---
+
+## AR methods — which one fires
+
+three.ws selects the right AR method automatically based on the device and browser:
+
+| Method | Platform | Trigger | Needs app? |
+|--------|----------|---------|-----------|
+| **iOS Quick Look** | iPhone / iPad (Safari) | Native `<a rel="ar">` click | No |
+| **Android Scene Viewer** | Android Chrome | ARCore intent URL | ARCore (auto-prompts) |
+| **WebXR immersive-ar** | Chrome on Android, Safari 15.4+ | `navigator.xr` session | No |
+
+**Selection order:** Quick Look → Scene Viewer → WebXR. Quick Look fires first on iOS because it's the most reliable. Scene Viewer fires first on Android because it works without a runtime XR session setup. WebXR is the fallback — and the only method that keeps the agent live in-page.
+
+---
+
+## What each method can do
+
+| | Quick Look | Scene Viewer | WebXR |
+|---|---|---|---|
+| Platform | iOS Safari | Android Chrome | Any WebXR browser |
+| Animations | No — static pose | Yes | Yes |
+| Agent conversation | No | No | Yes — mic + chat live |
+| `lookAt('user')` | No | No | Yes — tracks XR camera |
+| Agent skills / tools | No | No | Yes — full runtime |
+| HTTPS required | Yes (model URL) | Yes (model URL) | Yes (page origin) |
+| Draco-compressed GLBs | May fail | May fail | Yes |
+| Max practical size | ~15 MB | ~20 MB | No hard limit |
-The right method is selected automatically based on the device. On iOS, tapping the AR button launches QuickLook. On Android, it launches Scene Viewer. On WebXR-capable devices (Chrome/Android with ARCore, Safari 15.4+ with WebXR), it starts an immersive-ar session.
+WebXR is the only method where the agent stays fully alive. If you need conversation, skills, or animations, WebXR is required.
---
-## Enabling AR
+## Enabling AR on your agent
Add the `ar` attribute to `<agent-3d>`:
```html
-<agent-3d model="./product.glb" ar></agent-3d>
-```
+<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
-The AR button is only shown when:
+<agent-3d
+ id="your-agent-id"
+ ar
+></agent-3d>
+```
+The AR button appears automatically when:
- The `ar` attribute is present
- The device/browser supports at least one AR method
- The model has finished loading
-On desktop, the button is hidden — no desktop browser has functional `immersive-ar` support.
+On desktop, the button is hidden — no desktop browser supports `immersive-ar`.
+
+### Allow XR in iframes
+
+If your agent is inside an `<iframe>`, add the `xr-spatial-tracking` permission:
+
+```html
+<iframe
+ src="https://three.ws/embed/avatar/YOUR_ID"
+ allow="microphone; camera; xr-spatial-tracking; fullscreen"
+></iframe>
+```
+
+Without `xr-spatial-tracking`, the browser blocks `navigator.xr` inside the frame and the AR button won't appear.
+
+---
+
+## Programmatic API
+
+```js
+const el = document.querySelector('agent-3d');
+
+// Check if AR is available on this device
+if (el.canActivateAR) {
+ // Launch AR (picks the best available method automatically)
+ await el.activateAR();
+}
+```
+
+`canActivateAR` is `true` when:
+- The model is fully loaded
+- At least one of Quick Look, Scene Viewer, or WebXR is available
+
+`activateAR()` is async — it awaits the session setup for WebXR; Quick Look and Scene Viewer return immediately.
+
+```js
+// Listen for AR session events
+el.addEventListener('ar-status', (e) => {
+ // e.detail.status: 'session-started' | 'object-placed' | 'failed' | 'not-presenting'
+ console.log('AR status:', e.detail.status);
+});
+```
---
-## iOS QuickLook
+## iOS Quick Look — deep dive
-Safari on iOS intercepts clicks on `<a rel="ar">` elements and opens the native QuickLook AR viewer. The implementation in `src/ar/quick-look.js` does exactly this:
+Safari intercepts clicks on `<a rel="ar">` and opens the native AR viewer. The three.ws implementation in `src/ar/quick-look.js`:
```js
-// quick-look.js (simplified)
-function openQuickLook(usdzURI) {
+function openQuickLook(modelURI) {
const a = document.createElement('a');
a.rel = 'ar';
- a.href = usdzURI;
+ a.href = modelURI;
a.appendChild(document.createElement('img')); // required for programmatic click
+ document.body.appendChild(a);
a.click();
+ document.body.removeChild(a);
}
```
-The child `<img>` element is required — without it, Safari won't intercept the programmatic `.click()` as a QuickLook trigger.
+The child `<img>` element is required — without it, Safari won't intercept a programmatic `.click()` as a Quick Look trigger. This is a documented WebKit quirk.
-**iOS 13+** accepts GLB files directly via the `href`; no server-side USDZ conversion is needed.
+**USDZ on iOS:** iOS 13+ accepts GLB files directly via the `href`. For earlier devices or for Apple's richest AR features (like custom banners and item purchasing), three.ws can pre-generate a USDZ companion file stored on R2. If a `usdz_url` exists on the avatar record, it's used as `ios-src`; otherwise the GLB-to-USDZ conversion runs in-browser via the three.js `USDZExporter` before Quick Look opens.
**Requirements:**
-- iOS 13+ with Safari (not Chrome/Firefox on iOS — they use WebKit but lack QuickLook integration)
-- Model served over HTTPS with CORS headers
+- iOS 13+ with Safari (Chrome on iOS uses WebKit but lacks Quick Look integration)
+- Model URL must be HTTPS with CORS headers set (`Access-Control-Allow-Origin: *`)
- No DRM-protected assets
**Limitations:**
-- Animations are not supported — the model displays in a static pose
-- No agent conversation in QuickLook (it's a native OS viewer, outside the browser)
+- Static pose only — animations don't play
+- No conversation (native OS viewer, outside the browser context)
+- Cannot customize the Quick Look UI beyond the model itself
---
-## Android Scene Viewer
+## Android Scene Viewer — deep dive
-Google's Scene Viewer is launched via an intent URL. `src/ar/scene-viewer.js` constructs the URL and navigates to it:
+Scene Viewer is launched via an Android intent URL. `src/ar/scene-viewer.js` builds the URL:
```js
-// scene-viewer.js (simplified)
function openSceneViewer(glbURL, { title = '', link = '' } = {}) {
- const params = new URLSearchParams({ file: glbURL, mode: 'ar_preferred' });
+ const params = new URLSearchParams({
+ file: glbURL,
+ mode: 'ar_preferred', // tries AR first, falls back to 3D viewer
+ });
if (title) params.set('title', title);
- if (link) params.set('link', link);
+ if (link) params.set('link', link); // "View in browser" button target
const fallback = encodeURIComponent(location.href);
const intentURL =
- `intent://arvr.google.com/scene-viewer/1.2?${params.toString()}` +
+ `intent://arvr.google.com/scene-viewer/1.2?${params}` +
`#Intent;scheme=https;package=com.google.ar.core;` +
`action=android.intent.action.VIEW;` +
`S.browser_fallback_url=${fallback};end;`;
@@ -82,112 +160,257 @@ function openSceneViewer(glbURL, { title = '', link = '' } = {}) {
}
```
-The `S.browser_fallback_url` parameter is important: if ARCore isn't installed, Chrome redirects back to your page instead of showing an error screen.
+`S.browser_fallback_url` is critical: if ARCore is not installed, Chrome redirects back to your page rather than showing an error screen.
-**Parameters passed to Scene Viewer:**
-- `file` — GLB URL (must be HTTPS)
-- `title` — shown in the AR viewer's title bar
-- `link` — "View in browser" button target
-- `mode=ar_preferred` — tries AR first, falls back to 3D view if unsupported
+**Parameters:**
+- `file` — absolute HTTPS GLB URL
+- `title` — shown in Scene Viewer's title bar
+- `link` — the "View in browser" CTA button target
+- `mode=ar_preferred` — AR if supported, 3D viewer otherwise
**Requirements:**
- Android 7.0+ with Google Play Services
-- Chrome 67+ (or Chrome-based browser)
-- GLB served over HTTPS with CORS
-
-**What works in Scene Viewer:**
-- GLB animations play
-- Basic lighting and shadows
-- No agent conversation (external viewer)
+- Chrome 67+ (or any Chromium-based browser on Android)
+- GLB served over HTTPS with `Access-Control-Allow-Origin: *`
---
-## WebXR
-
-WebXR is the only AR method that keeps the agent running inside the browser. The `src/ar/webxr.js` module manages an `immersive-ar` session using Three.js's built-in XR support.
+## WebXR — deep dive
-**How it works:**
-
-1. `WebXRSession.isSupported()` checks `navigator.xr.isSessionSupported('immersive-ar')`
-2. On activation, requests a session with the `hit-test` feature enabled
-3. Three.js XR mode is enabled on the existing renderer — no new canvas needed
-4. The scene background is set to `null` so the camera feed shows through
-5. Hit-test results track real surfaces in the environment
-6. Before the first tap, the agent follows the detected surface in real-time
-7. First tap anchors the agent at that position
-8. The agent's full runtime continues: animations play, conversation works
+WebXR is the only AR method that keeps the agent alive in the browser. The `src/ar/webxr.js` module manages an `immersive-ar` session via Three.js's built-in XR support.
**Session lifecycle:**
+
```
-requestSession('immersive-ar', { requiredFeatures: ['hit-test'] })
+navigator.xr.isSessionSupported('immersive-ar')
+ → requestSession('immersive-ar', { requiredFeatures: ['hit-test'] })
→ renderer.xr.setSession(session)
→ requestReferenceSpace('local') + requestHitTestSource({ space: viewer })
- → render loop handed to XR system via renderer.setAnimationLoop()
- → session 'end' event → restore background, re-enable controls, resume RAF
+ → render loop handed to XR system (renderer.setAnimationLoop)
+ → user taps → agent anchored at hit-test position
+ → session.end event → restore background, controls, and RAF loop
```
-**On exit**, the module restores the scene background, the agent's position/rotation, and the standard requestAnimationFrame loop. State is cleanly preserved.
+**What happens at session start:**
+1. Scene background is set to `null` so the camera passthrough shows through
+2. Hit-test source tracks real surfaces (floor, table, etc.) in real time
+3. A reticle follows the detected surface until the user taps
+4. First tap anchors the agent — `session.requestAnimationFrame` drives rendering from here
+
+**What happens at session end:**
+- Scene background restored
+- Agent position/rotation reset to pre-AR values
+- Standard `requestAnimationFrame` loop resumes
+- All conversation state is preserved — the agent remembers what happened before AR
**Requirements:**
- Chrome on Android 8.0+ with ARCore installed
-- Safari on iOS 15.4+ with WebXR AR module enabled
-- HTTPS (mandatory — `navigator.xr` is undefined on insecure origins)
+- Safari on iOS 15.4+ with the WebXR AR module enabled (Settings → Safari → Advanced → Experimental Features → WebXR Augmented Reality)
+- HTTPS mandatory — `navigator.xr` is `undefined` on insecure origins
-**What works in WebXR:**
-- Full animations
-- Agent conversation (microphone, chat)
-- `lookAt('user')` — the agent tracks the XR camera position as the user's head
-- All runtime tools and skills
+---
+
+## USDZ pipeline (iOS Quick Look)
+
+For avatars on three.ws, the USDZ is handled automatically:
+
+1. **Pre-generated USDZ:** If the avatar record has a `usdz_url`, it's set as `ios-src` immediately — no conversion needed.
+2. **In-browser conversion:** If not, the AR page downloads the GLB and runs `USDZExporter` from three.js in a Web Worker, then creates a `blob:` URL. This typically takes 2–8 seconds depending on model complexity.
+3. **Persistent storage:** After the first conversion, the USDZ is uploaded to R2 and saved back to the avatar record so subsequent AR visits are instant.
+
+**USDZ limitations to know:**
+- Skinned meshes (rigged avatars) export to USDZ as static poses — animations are lost
+- Draco-compressed geometry must be decompressed first (the exporter handles this)
+- USDZ files over ~30 MB may fail to open in Quick Look on older devices
---
-## Programmatic API
+## Model optimization for AR
+
+Poor AR performance almost always traces to model size or geometry complexity. A model that orbits smoothly in the 3D viewer can still stall or crash in Quick Look.
+
+**Recommended limits:**
+
+| Target | Size | Polygons | Textures |
+|--------|------|----------|---------|
+| Quick Look (iOS) | < 15 MB | < 100k tris | 1024 × 1024 max |
+| Scene Viewer (Android) | < 20 MB | < 200k tris | 2048 × 2048 max |
+| WebXR | < 50 MB | < 500k tris | 2048 × 2048 max |
+
+**Optimization tools:**
+
+```bash
+# Draco compress and optimize with gltf-transform (WebXR only — may break Quick Look/Scene Viewer)
+npx @gltf-transform/cli optimize model.glb optimized.glb --draco
+
+# Lossless optimization (safe for all three AR methods)
+npx @gltf-transform/cli optimize model.glb optimized.glb
+
+# Resize textures
+npx @gltf-transform/cli resize model.glb small.glb --width 1024 --height 1024
+```
+
+> **Draco and Quick Look / Scene Viewer:** Draco-compressed GLBs require the Three.js Draco decoder — Quick Look and Scene Viewer don't include one, so they may refuse to load Draco GLBs. If you want AR across all three methods, compress with basis/KTX2 textures only, and leave geometry uncompressed.
+
+---
+
+## Testing AR locally
+
+All three AR methods require HTTPS. `navigator.xr` is `undefined` on `http://` origins. There are two options:
+
+### Option 1 — ngrok tunnel (recommended)
+
+```bash
+# Start your dev server
+npm run dev
+# Port 3000 is the default for this repo
+
+# In a second terminal, open an ngrok tunnel
+ngrok http 3000
+
+# Open the ngrok HTTPS URL on your phone
+# (e.g. https://abc123.ngrok.io)
+```
+
+### Option 2 — Deploy to a preview URL
+
+Push to a branch — Vercel creates an instant HTTPS preview URL. Open it on your phone.
+
+### Debugging Quick Look
+
+Quick Look gives almost no error feedback. If it opens and immediately closes:
+- Model URL is not HTTPS → use ngrok or a deployed URL
+- Model URL returns CORS errors → add `Access-Control-Allow-Origin: *` to the response headers
+- File is too large → compress or resize
+- USDZ conversion failed silently → check the browser console before Quick Look opens
+
+### Debugging WebXR
```js
-const el = document.querySelector('agent-3d');
+// Check support before calling activateAR
+const supported = await navigator.xr?.isSessionSupported('immersive-ar');
+console.log('WebXR AR supported:', supported);
-// Check if the current device supports any AR method
-if (el.canActivateAR) {
- await el.activateAR();
-}
+// Chrome DevTools → More tools → WebXR → Session override
+// lets you simulate an immersive-ar session on desktop
+```
+
+Chrome on desktop (127+) has a WebXR device simulator under DevTools → More Tools → WebXR. It won't show camera passthrough, but it lets you test the session lifecycle and placement logic without a physical device.
+
+---
+
+## Troubleshooting
+
+### AR button doesn't appear on mobile
+
+**Check 1 — `ar` attribute is set:**
+```html
+<agent-3d id="..." ar></agent-3d>
+```
+
+**Check 2 — browser supports AR:**
+- iOS: Must be Safari, not Chrome or Firefox
+- Android: Must be Chrome (or Chromium) with ARCore installed
+
+**Check 3 — model is loaded:**
+The AR button is hidden until the model finishes loading. Watch for the `load` event:
+```js
+el.addEventListener('load', () => console.log('model loaded, AR should be available'));
```
-`canActivateAR` returns `true` if the model is loaded and at least one of QuickLook, Scene Viewer, or WebXR is available. `activateAR()` picks the best available method automatically.
+**Check 4 — inside an iframe:**
+Add `allow="xr-spatial-tracking"` to the `<iframe>` tag.
+
+---
+
+### AR button appears but nothing happens when tapped
+
+- **iOS Quick Look:** The model URL is HTTP. Quick Look silently refuses non-HTTPS URIs.
+- **Scene Viewer:** ARCore isn't installed. Chrome will show a prompt to install it; if dismissed, nothing happens.
+- **WebXR:** HTTPS is required for `navigator.xr`. Check the page origin.
---
-## HTTPS Requirement
+### Quick Look opens but immediately dismisses
-All three AR methods require HTTPS. `navigator.xr` is undefined on insecure origins; QuickLook and Scene Viewer require the model URL to be HTTPS regardless of how the page is served.
+- Model file is too large (> 15 MB is risky on older devices)
+- USDZ conversion produced an invalid file — check the browser console for errors before Quick Look opens
+- CORS missing on the GLB URL — Quick Look fetches it separately and will fail silently
+
+---
-**Local development:**
+### WebXR AR session starts but the agent is invisible
+
+- Check that the scene background is set to `null` — if it's opaque, it covers the camera feed
+- Confirm the agent was placed before calling `activateAR()` — if the agent position is off-screen, it may be placed outside the viewport
+
+---
+
+### Draco GLB fails in Quick Look or Scene Viewer
+
+Decompress the file first:
```bash
-# Use ngrok to tunnel localhost over HTTPS
-ngrok http 5173
-# Open the ngrok URL on your mobile device
+npx @gltf-transform/cli optimize model.glb uncompressed.glb --no-draco
```
-Alternatively, deploy to Vercel or Netlify — both provide instant HTTPS on preview deployments.
+Or generate an uncompressed variant and use it as `ios-src` / for Scene Viewer while keeping the Draco-compressed one for the WebXR viewer.
+
+---
+
+## Platform compatibility matrix
+
+| Device | Browser | Quick Look | Scene Viewer | WebXR AR |
+|--------|---------|-----------|-------------|---------|
+| iPhone (iOS 13+) | Safari | ✅ | ✗ | ✅ (iOS 15.4+, flag required) |
+| iPhone (iOS 13+) | Chrome | ✗ | ✗ | ✗ |
+| Android (ARCore device) | Chrome | ✗ | ✅ | ✅ |
+| Android (no ARCore) | Chrome | ✗ | ✗ (prompts install) | ✗ |
+| Desktop (any OS) | Any | ✗ | ✗ | ✗ (no camera passthrough) |
+
+ARCore-compatible Android devices: [full list from Google](https://developers.google.com/ar/devices).
+
+iOS 15.4+ requires WebXR AR to be enabled manually: **Settings → Safari → Advanced → Experimental Features → WebXR Augmented Reality**.
---
-## Model Size and Compatibility
+## Using AR without `<agent-3d>`
-- **Large models (>20 MB):** QuickLook and Scene Viewer download the full GLB before displaying. Expect noticeable load time on mobile networks.
-- **Draco compression:** Draco-compressed GLBs may need to be decompressed before transfer to QuickLook or Scene Viewer, which don't load the Three.js Draco decoder. WebXR is unaffected — it uses the same Three.js loader as the regular viewer.
-- **Animations:** Only WebXR and Scene Viewer support animations. QuickLook shows a static pose.
-- **Textures:** All three methods support standard PBR materials (baseColor, normal, roughness/metallic).
+If you're building a custom viewer and just need the AR launchers, import the modules directly:
+
+```js
+import { openQuickLook } from '/src/ar/quick-look.js';
+import { openSceneViewer } from '/src/ar/scene-viewer.js';
+import { WebXRSession } from '/src/ar/webxr.js';
+
+// iOS
+if (/iPhone|iPad/.test(navigator.userAgent)) {
+ openQuickLook('https://cdn.example.com/model.glb');
+}
+
+// Android
+else if (/Android/.test(navigator.userAgent)) {
+ openSceneViewer('https://cdn.example.com/model.glb', {
+ title: 'My Agent',
+ link: 'https://three.ws',
+ });
+}
+
+// WebXR fallback
+else if (await navigator.xr?.isSessionSupported('immersive-ar')) {
+ const session = new WebXRSession(renderer, scene, camera);
+ await session.start();
+}
+```
---
-## Quick Reference
+## See also
-| | QuickLook | Scene Viewer | WebXR |
-|---|---|---|---|
-| Platform | iOS Safari | Android Chrome | Any WebXR browser |
-| Animations | No | Yes | Yes |
-| Agent conversation | No | No | Yes |
-| HTTPS required | Yes (model URL) | Yes (model URL) | Yes (page) |
-| Draco GLBs | May fail | May fail | Yes |
-| Max practical model size | ~15 MB | ~20 MB | No hard limit |
+- [AR on the homepage](https://three.ws/#home-ar) — live demo with real Forge models
+- [Blog: See Your 3D Avatar in the Real World](https://three.ws/blog/see-your-3d-in-ar) — full walkthrough
+- [Avatar AR page](/avatars/:id/ar) — the dedicated AR experience for any avatar
+- [Walk feature](/features/walk) — WebXR immersive walk mode (different from placement AR)
+- [Web component reference](/docs/web-component) — full `<agent-3d>` attribute list including `ar`
+- [Embedding guide](/docs/embedding) — iframe setup with XR permissions
+- [Tutorial: Place your model in AR](/docs/tutorials/view-in-ar)
diff --git a/docs/index.html b/docs/index.html
index 9ecbb8f2e..4d63158d9 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -619,6 +619,7 @@
title: 'Guides',
links: [
{ label: 'Embedding', path: 'embedding' },
+ { label: 'AR & WebXR', path: 'ar' },
{ label: 'Authentication', path: 'authentication' },
{ label: 'Avatar creation', path: 'avatar-creation' },
{ label: 'three.ws Selfie (Avaturn)', path: 'avaturn' },
@@ -661,6 +662,7 @@
{ label: 'Photos to 3D model', path: 'tutorials/image-to-3d' },
{ label: 'Prompt recipes for 3D', path: 'tutorials/prompts-for-3d' },
{ label: 'Generate 3D from code', path: 'tutorials/generate-3d-api' },
+ { label: 'Place your model in AR', path: 'tutorials/view-in-ar' },
{ label: 'Build your first agent', path: 'tutorials/first-agent' },
{ label: 'Personal AI site', path: 'tutorials/personal-ai-site' },
{ label: 'Create a custom skill', path: 'tutorials/custom-skill' },
diff --git a/docs/tutorials/view-in-ar.md b/docs/tutorials/view-in-ar.md
new file mode 100644
index 000000000..5e6bb34b3
--- /dev/null
+++ b/docs/tutorials/view-in-ar.md
@@ -0,0 +1,168 @@
+# Place your 3D model in AR
+
+This tutorial walks you through every step of seeing a three.ws model in augmented reality — from generating the model to walking around it in your kitchen. No app to install. Runs in the browser on iPhone and Android.
+
+**What you'll do:**
+- Generate or pick a 3D model from Forge
+- View it in the AR tab on your phone
+- Understand what happens under the hood (iOS Quick Look vs. Android WebXR)
+- Add AR to your own embedded agent with two lines of HTML
+- Troubleshoot the three most common failures
+
+**Prerequisites:** A smartphone (iPhone or Android). For the embedding section, a basic HTML file you can edit.
+
+---
+
+## Step 1 — Get a 3D model
+
+You need a model before you can place it in AR. The fastest way is to generate one in Forge.
+
+1. Go to [three.ws/forge](https://three.ws/forge)
+2. Type a description — something concrete works best: **a ceramic coffee mug with a handle** or **a low-poly red fox sitting down**
+3. Hit **Forge** and wait 30–90 seconds for the model to generate
+
+You can also use any existing avatar from [three.ws/gallery](https://three.ws/gallery) — the AR tab exists on every avatar and Forge model page.
+
+---
+
+## Step 2 — Open the model on your phone
+
+**If you're already on your phone:**
+The Forge result screen has a **View in AR** button in the toolbar. Tap it.
+
+**If you're on desktop:**
+After the model generates, switch to the **AR** tab in the model viewer. A QR code appears. Scan it with your phone's camera. On iPhone it opens Safari; on Android it opens Chrome. The AR experience opens automatically — no extra taps required.
+
+---
+
+## Step 3 — Place it in your space
+
+Once the AR page opens on your phone:
+
+1. **Allow camera access** if prompted (this only happens once)
+2. **Point the camera at a flat surface** — floor, desk, table. The camera scans for a plane.
+3. A **reticle** (small circle or crosshair) appears on the detected surface. This is where the model will land.
+4. Tap **Place in your space**. The model appears at that location, at real-world scale.
+5. Walk around it. Pinch to resize. Tap and drag to reposition.
+
+The model stays anchored as you move — if you step back, it doesn't follow you.
+
+---
+
+## Step 4 — Understand what just happened
+
+Three different AR systems power this feature, selected automatically:
+
+### iPhone (Safari) → iOS Quick Look
+Safari intercepts a click on a special `<a rel="ar">` link and opens Apple's native AR viewer. The model renders at true scale using ARKit. No app required because Quick Look is built into iOS. The tradeoff: no animations, no conversation with the agent.
+
+To make this work, three.ws either:
+- Serves a pre-generated **USDZ file** (Apple's AR format) if one exists
+- Converts the GLB to USDZ **in-browser** using the three.js USDZExporter if not — this takes a few seconds
+
+### Android (Chrome) → Scene Viewer
+Chrome launches Google's **Scene Viewer** via an ARCore intent URL. Scene Viewer is a Google app that comes pre-installed on most Android phones with Google Play. It supports GLB files directly and plays animations. No conversion step needed.
+
+### Any WebXR browser → WebXR AR
+If the above methods aren't available, three.ws starts a **WebXR immersive-ar session** — the most powerful method. The page itself becomes the AR view: the camera passthrough shows through the canvas, and the agent's full runtime stays live. Animations play. Conversation works. The agent can track your head position.
+
+---
+
+## Step 5 — Add AR to your own embed
+
+If you've embedded a three.ws agent on your website, enabling AR takes one attribute:
+
+```html
+<script type="module"
+ src="https://three.ws/agent-3d/latest/agent-3d.js"
+></script>
+
+<agent-3d
+ id="your-agent-id"
+ ar
+></agent-3d>
+```
+
+The `ar` attribute is all you need. The AR button appears automatically on mobile devices that support it. On desktop, it's hidden — no desktop browser supports `immersive-ar`.
+
+### Iframe embed + AR
+
+If you're using the iframe embed, add `xr-spatial-tracking` to the `allow` attribute:
+
+```html
+<iframe
+ src="https://three.ws/embed/avatar/YOUR_AVATAR_ID"
+ allow="microphone; camera; xr-spatial-tracking; fullscreen"
+ width="400"
+ height="500"
+></iframe>
+```
+
+Without `xr-spatial-tracking`, the browser blocks `navigator.xr` inside the frame and the AR button won't appear.
+
+---
+
+## Step 6 — Test on a real device
+
+AR requires HTTPS — `navigator.xr` is undefined on `http://` origins and Quick Look refuses non-HTTPS model URLs.
+
+**During development**, you have two options:
+
+**Option A — ngrok tunnel (fastest)**
+```bash
+# Start your dev server (default port 3000 for this repo)
+npm run dev
+
+# In a second terminal
+ngrok http 3000
+
+# Open the ngrok HTTPS URL on your phone
+# e.g. https://abc123.ngrok.io/your-page
+```
+
+**Option B — deploy a preview**
+Push to a feature branch. Vercel creates an instant HTTPS preview URL. Open it on your phone. This is the cleanest path because it tests the production build.
+
+---
+
+## Troubleshooting
+
+### The AR button doesn't appear
+
+**On iPhone:** Are you using Safari? Chrome, Firefox, and every other browser on iOS uses WebKit but lacks the Quick Look integration. AR only works in Safari on iPhone.
+
+**On Android:** Is Chrome installed and up to date? AR uses ARCore, which Chrome manages. Other Android browsers (Samsung Internet, Firefox, Brave) may not support it.
+
+**In an iframe:** Add `allow="xr-spatial-tracking"` to the `<iframe>` tag.
+
+**On your dev server:** Switch to an HTTPS URL — ngrok tunnel or a deployed preview.
+
+---
+
+### I tap the button but nothing happens
+
+**iOS:** The model URL is HTTP. Quick Look silently refuses. Use ngrok or deploy.
+
+**Android:** ARCore isn't installed. Chrome shows a "Get ARCore" prompt. If the user dismisses it, nothing opens. Direct them to install ARCore from the Play Store.
+
+---
+
+### Quick Look opens but immediately closes
+
+This almost always means the model is too large (> 15 MB) or the USDZ conversion produced an invalid file. Check the browser console before Quick Look opens for conversion errors. Also verify the model URL returns `Access-Control-Allow-Origin: *` — Quick Look fetches it separately and fails silently on CORS errors.
+
+---
+
+### The model floats or doesn't stick to surfaces
+
+AR surface detection needs a moment to work. Move the phone slowly over the target surface — a table or floor with texture (not a plain white table) detects faster. Bright, uniform surfaces confuse ARCore and ARKit.
+
+---
+
+## What's next
+
+- [AR & WebXR reference](/docs/ar) — full programmatic API, USDZ pipeline, model optimization limits
+- [Embedding guide](/docs/embedding) — iframe setup and permission attributes
+- [Web component reference](/docs/web-component) — all `<agent-3d>` attributes
+- [AR feature page](https://three.ws/features/ar) — platform comparison and live demo
+- [Blog: How AR works on three.ws](https://three.ws/blog/see-your-3d-in-ar)
diff --git a/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md b/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md
index bc733a6fe..0d4f2d4f5 100644
--- a/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md
+++ b/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md
@@ -19,7 +19,7 @@ Read `package.json` if present to understand the existing stack.
For Node.js projects, run:
```bash
-npm install @nirholas/agent-kit @x402/mcp @modelcontextprotocol/sdk/client
+npm install @three-ws/sdk @x402/mcp @modelcontextprotocol/sdk/client
```
If the project uses a lockfile other than `package-lock.json` (yarn.lock → yarn, pnpm-lock.yaml → pnpm), use the right package manager.
@@ -29,7 +29,7 @@ If the project uses a lockfile other than `package-lock.json` (yarn.lock → yar
Create `agent.js` (or `agent.ts` if TypeScript is detected) in the project root with this structure, substituting `$ARGUMENTS` for the agent name:
```js
-import { AgentKit } from '@nirholas/agent-kit';
+import { AgentKit } from '@three-ws/sdk';
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
diff --git a/pages/compose.html b/pages/compose.html
new file mode 100644
index 000000000..d985ef6c1
--- /dev/null
+++ b/pages/compose.html
@@ -0,0 +1,701 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>/* three.ws theme boot */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Scene Composer · three.ws</title>
+ <meta name="description" content="Forge 3D items in real time and attach them to your avatar or place them in the scene. Move, rotate, scale, and save your creation." />
+ <meta property="og:title" content="Scene Composer · three.ws" />
+ <meta property="og:description" content="Generate 3D items, dress your avatar, and build your world." />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://three.ws/compose" />
+ <meta property="og:image" content="https://three.ws/og-image.png" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="theme-color" content="#080814" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/site.webmanifest" />
+ <link rel="stylesheet" href="/style.css" />
+ <style>
+ *, *::before, *::after { box-sizing: border-box; }
+
+ html, body {
+ margin: 0; padding: 0;
+ height: 100%; overflow: hidden;
+ background: #07070f;
+ color: var(--ink, #e4e4e7);
+ font-family: var(--font-sans, system-ui, sans-serif);
+ font-size: 13px;
+ }
+
+ /* ── Layout ───────────────────────────────────────────────── */
+ #compose-root {
+ display: grid;
+ grid-template-rows: 44px 1fr;
+ grid-template-columns: 240px 1fr 280px;
+ height: 100vh;
+ }
+
+ /* ── Topbar ───────────────────────────────────────────────── */
+ #topbar {
+ grid-column: 1 / -1;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 0 12px;
+ background: #0c0c17;
+ border-bottom: 1px solid rgba(255,255,255,0.06);
+ user-select: none;
+ }
+ #topbar .logo {
+ font-size: 13px;
+ font-weight: 700;
+ color: #fff;
+ text-decoration: none;
+ opacity: 0.9;
+ margin-right: 8px;
+ }
+ #topbar .sep { width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px; }
+
+ /* Transform mode buttons */
+ .xform-btn {
+ display: inline-flex; align-items: center; gap: 5px;
+ padding: 4px 10px;
+ background: transparent;
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 6px;
+ color: var(--ink-dim, #a1a1aa);
+ font-size: 12px; font-weight: 500;
+ cursor: pointer;
+ transition: background 0.12s, color 0.12s, border-color 0.12s;
+ }
+ .xform-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
+ .xform-btn.active {
+ background: rgba(99,102,241,0.2);
+ border-color: rgba(99,102,241,0.5);
+ color: #a5b4fc;
+ }
+ .xform-btn .key {
+ font-size: 10px; opacity: 0.55;
+ background: rgba(255,255,255,0.08);
+ border-radius: 3px;
+ padding: 1px 4px;
+ }
+ #topbar .spacer { flex: 1; }
+
+ .topbar-btn {
+ padding: 5px 12px;
+ background: rgba(255,255,255,0.06);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 6px;
+ color: var(--ink-dim, #a1a1aa);
+ font-size: 12px; font-weight: 500;
+ cursor: pointer;
+ transition: background 0.12s, color 0.12s;
+ text-decoration: none;
+ display: inline-flex; align-items: center; gap: 6px;
+ }
+ .topbar-btn:hover { background: rgba(255,255,255,0.11); color: #fff; }
+ .topbar-btn.primary {
+ background: rgba(99,102,241,0.18);
+ border-color: rgba(99,102,241,0.4);
+ color: #a5b4fc;
+ }
+ .topbar-btn.primary:hover { background: rgba(99,102,241,0.3); }
+ .topbar-btn.danger { color: #f87171; }
+
+ #save-status {
+ font-size: 11px;
+ color: var(--ink-dim, #71717a);
+ opacity: 0;
+ transition: opacity 0.3s;
+ }
+ #save-status.visible { opacity: 1; }
+
+ /* ── Left panel — object hierarchy ────────────────────────── */
+ #panel-objects {
+ background: #0c0c17;
+ border-right: 1px solid rgba(255,255,255,0.06);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ }
+ .panel-head {
+ padding: 10px 12px 8px;
+ font-size: 11px;
+ font-weight: 600;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: var(--ink-dim, #71717a);
+ border-bottom: 1px solid rgba(255,255,255,0.05);
+ display: flex; align-items: center; justify-content: space-between;
+ }
+ .panel-head button {
+ padding: 2px 8px;
+ background: rgba(255,255,255,0.06);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 4px;
+ color: var(--ink-dim, #a1a1aa);
+ font-size: 11px; cursor: pointer;
+ }
+ .panel-head button:hover { background: rgba(255,255,255,0.12); color: #fff; }
+
+ #object-list {
+ flex: 1;
+ overflow-y: auto;
+ padding: 4px 0;
+ }
+ .obj-row {
+ display: flex; align-items: center; gap: 6px;
+ padding: 6px 10px;
+ cursor: pointer;
+ border-radius: 0;
+ transition: background 0.1s;
+ border-left: 2px solid transparent;
+ }
+ .obj-row:hover { background: rgba(255,255,255,0.04); }
+ .obj-row.selected {
+ background: rgba(99,102,241,0.12);
+ border-left-color: #6366f1;
+ }
+ .obj-row .obj-icon { flex: 0 0 16px; text-align: center; font-size: 13px; }
+ .obj-row .obj-name {
+ flex: 1; min-width: 0;
+ font-size: 12px; font-weight: 500;
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+ }
+ .obj-row .obj-role {
+ font-size: 10px;
+ padding: 1px 5px;
+ border-radius: 3px;
+ background: rgba(255,255,255,0.07);
+ color: var(--ink-dim, #71717a);
+ white-space: nowrap;
+ }
+ .obj-row .obj-role.attached { background: rgba(99,102,241,0.15); color: #a5b4fc; }
+ .obj-row .obj-vis, .obj-row .obj-del {
+ flex: 0 0 18px; width: 18px; height: 18px;
+ background: none; border: none; padding: 0;
+ cursor: pointer; color: var(--ink-dim, #71717a);
+ font-size: 12px; line-height: 18px; text-align: center;
+ opacity: 0; transition: opacity 0.15s, color 0.1s;
+ border-radius: 3px;
+ }
+ .obj-row:hover .obj-vis, .obj-row:hover .obj-del { opacity: 1; }
+ .obj-row .obj-del:hover { color: #f87171; background: rgba(248,113,113,0.1); }
+ .obj-row .obj-vis:hover { color: #fff; background: rgba(255,255,255,0.08); }
+
+ /* Inspector (bottom of left panel) */
+ #inspector {
+ border-top: 1px solid rgba(255,255,255,0.06);
+ padding: 8px 10px;
+ overflow-y: auto;
+ max-height: 300px;
+ flex: 0 0 auto;
+ }
+ #inspector.empty { display: flex; align-items: center; justify-content: center; min-height: 80px; }
+ #inspector .empty-msg { font-size: 11px; color: var(--ink-dim, #52525b); }
+
+ .insp-section {
+ font-size: 10px; font-weight: 600; letter-spacing: 0.07em;
+ text-transform: uppercase; color: var(--ink-dim, #52525b);
+ margin: 8px 0 4px;
+ }
+ .insp-section:first-child { margin-top: 0; }
+ .xform-row {
+ display: grid; grid-template-columns: 18px 1fr 1fr 1fr;
+ gap: 3px; align-items: center; margin-bottom: 3px;
+ }
+ .xform-row label {
+ font-size: 10px; color: var(--ink-dim, #71717a);
+ font-weight: 600; text-align: center;
+ }
+ .xform-input {
+ background: rgba(255,255,255,0.06);
+ border: 1px solid rgba(255,255,255,0.08);
+ border-radius: 4px;
+ color: #e4e4e7;
+ font-size: 11px; font-family: var(--font-mono, monospace);
+ padding: 3px 5px;
+ width: 100%;
+ transition: border-color 0.1s;
+ }
+ .xform-input:focus { outline: none; border-color: rgba(99,102,241,0.5); }
+
+ .attach-section {
+ margin-top: 10px;
+ padding-top: 8px;
+ border-top: 1px solid rgba(255,255,255,0.05);
+ }
+ .attach-label { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-dim, #52525b); margin-bottom: 6px; }
+ .attach-controls { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
+ .bone-select {
+ flex: 1; min-width: 0;
+ background: rgba(255,255,255,0.06);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 5px;
+ color: #e4e4e7;
+ font-size: 11px; padding: 4px 6px;
+ }
+ .bone-select option { background: #1a1a2e; }
+ .attach-btn, .detach-btn {
+ padding: 4px 10px;
+ border-radius: 5px;
+ font-size: 11px; font-weight: 600;
+ cursor: pointer;
+ border: 1px solid transparent;
+ transition: background 0.12s, color 0.12s;
+ white-space: nowrap;
+ }
+ .attach-btn {
+ background: rgba(99,102,241,0.18);
+ border-color: rgba(99,102,241,0.4);
+ color: #a5b4fc;
+ }
+ .attach-btn:hover { background: rgba(99,102,241,0.3); }
+ .detach-btn {
+ background: rgba(255,255,255,0.06);
+ border-color: rgba(255,255,255,0.1);
+ color: var(--ink-dim, #a1a1aa);
+ }
+ .detach-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
+
+ /* ── Canvas ───────────────────────────────────────────────── */
+ #canvas-wrap {
+ position: relative;
+ overflow: hidden;
+ background: #07070f;
+ }
+ #compose-canvas {
+ display: block;
+ width: 100%; height: 100%;
+ }
+
+ /* Floating canvas hints */
+ #canvas-hint {
+ position: absolute; bottom: 14px; left: 50%;
+ transform: translateX(-50%);
+ font-size: 11px; color: rgba(255,255,255,0.3);
+ pointer-events: none; white-space: nowrap;
+ transition: opacity 0.3s;
+ }
+ #canvas-hint.hidden { opacity: 0; }
+
+ /* Loading overlay */
+ #canvas-loading {
+ position: absolute; inset: 0;
+ display: flex; flex-direction: column;
+ align-items: center; justify-content: center;
+ gap: 10px;
+ background: rgba(7,7,15,0.85);
+ backdrop-filter: blur(4px);
+ pointer-events: none;
+ transition: opacity 0.4s;
+ }
+ #canvas-loading.hidden { opacity: 0; pointer-events: none; }
+ #canvas-loading .spin {
+ width: 32px; height: 32px;
+ border: 2px solid rgba(255,255,255,0.1);
+ border-top-color: #6366f1;
+ border-radius: 50%;
+ animation: spin 0.8s linear infinite;
+ }
+ #canvas-loading .load-msg { font-size: 12px; color: rgba(255,255,255,0.5); }
+ @keyframes spin { to { transform: rotate(360deg); } }
+
+ /* ── Right panel — Forge ──────────────────────────────────── */
+ #panel-forge {
+ background: #0c0c17;
+ border-left: 1px solid rgba(255,255,255,0.06);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ }
+
+ .forge-head {
+ padding: 10px 12px;
+ border-bottom: 1px solid rgba(255,255,255,0.05);
+ }
+ .forge-head h2 {
+ font-size: 13px; font-weight: 700; margin: 0 0 2px;
+ color: #fff;
+ }
+ .forge-head p { font-size: 11px; color: var(--ink-dim, #71717a); margin: 0; }
+
+ .forge-prompt-wrap {
+ padding: 10px 12px;
+ border-bottom: 1px solid rgba(255,255,255,0.05);
+ }
+ #forge-prompt {
+ width: 100%;
+ background: rgba(255,255,255,0.05);
+ border: 1px solid rgba(255,255,255,0.1);
+ border-radius: 8px;
+ color: #e4e4e7;
+ font-size: 12px;
+ padding: 8px 10px;
+ resize: none;
+ line-height: 1.5;
+ min-height: 72px;
+ max-height: 120px;
+ transition: border-color 0.15s;
+ font-family: inherit;
+ }
+ #forge-prompt:focus { outline: none; border-color: rgba(99,102,241,0.5); }
+ #forge-prompt::placeholder { color: rgba(255,255,255,0.2); }
+
+ .forge-controls {
+ display: flex; gap: 6px; align-items: center; margin-top: 8px;
+ }
+ #forge-btn {
+ flex: 1;
+ padding: 7px 0;
+ background: #4f46e5;
+ border: none;
+ border-radius: 7px;
+ color: #fff;
+ font-size: 12px; font-weight: 600;
+ cursor: pointer;
+ transition: background 0.15s, opacity 0.15s;
+ display: flex; align-items: center; justify-content: center; gap: 6px;
+ }
+ #forge-btn:hover:not(:disabled) { background: #4338ca; }
+ #forge-btn:disabled { opacity: 0.5; cursor: not-allowed; }
+ #forge-btn .btn-spin {
+ width: 12px; height: 12px;
+ border: 2px solid rgba(255,255,255,0.3);
+ border-top-color: #fff;
+ border-radius: 50%;
+ animation: spin 0.7s linear infinite;
+ display: none;
+ }
+ #forge-btn.busy .btn-spin { display: block; }
+ #forge-btn.busy .btn-label { display: none; }
+
+ .forge-progress {
+ margin-top: 8px; display: none;
+ }
+ .forge-progress.visible { display: block; }
+ .forge-progress-bar {
+ height: 3px; border-radius: 2px;
+ background: rgba(255,255,255,0.07);
+ overflow: hidden;
+ }
+ .forge-progress-fill {
+ height: 100%;
+ background: linear-gradient(90deg, #6366f1, #818cf8);
+ border-radius: 2px;
+ width: 0%; transition: width 0.4s ease;
+ animation: forge-pulse 2s ease-in-out infinite;
+ }
+ @keyframes forge-pulse {
+ 0%, 100% { opacity: 1; }
+ 50% { opacity: 0.6; }
+ }
+ .forge-progress-msg {
+ font-size: 10px; color: var(--ink-dim, #71717a);
+ margin-top: 4px;
+ }
+ .forge-error {
+ font-size: 11px; color: #f87171;
+ margin-top: 6px; display: none;
+ }
+ .forge-error.visible { display: block; }
+
+ /* Creations scroll list */
+ .creations-head {
+ padding: 8px 12px 4px;
+ font-size: 10px; font-weight: 600;
+ letter-spacing: 0.07em; text-transform: uppercase;
+ color: var(--ink-dim, #52525b);
+ display: flex; align-items: center; justify-content: space-between;
+ }
+ .creations-head a {
+ font-size: 10px; color: var(--ink-dim, #52525b);
+ text-decoration: none; letter-spacing: normal; text-transform: none;
+ }
+ .creations-head a:hover { color: #a5b4fc; }
+
+ #creations-list {
+ flex: 1;
+ overflow-y: auto;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 6px;
+ padding: 4px 10px 12px;
+ align-content: start;
+ }
+ .creation-card {
+ aspect-ratio: 1;
+ border-radius: 8px;
+ overflow: hidden;
+ position: relative;
+ cursor: pointer;
+ background: rgba(255,255,255,0.04);
+ border: 1px solid rgba(255,255,255,0.07);
+ transition: border-color 0.15s, transform 0.12s;
+ }
+ .creation-card:hover { border-color: rgba(99,102,241,0.5); transform: scale(1.02); }
+ .creation-card img {
+ width: 100%; height: 100%;
+ object-fit: cover; display: block;
+ }
+ .creation-card .card-overlay {
+ position: absolute; inset: 0;
+ background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
+ display: flex; flex-direction: column; justify-content: flex-end;
+ padding: 6px;
+ opacity: 0; transition: opacity 0.15s;
+ }
+ .creation-card:hover .card-overlay { opacity: 1; }
+ .creation-card .card-prompt {
+ font-size: 10px; color: #fff;
+ overflow: hidden; text-overflow: ellipsis;
+ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
+ }
+ .creation-card .card-add {
+ display: flex; align-items: center; justify-content: center;
+ gap: 4px;
+ font-size: 11px; font-weight: 600; color: #a5b4fc;
+ background: rgba(99,102,241,0.3);
+ border-radius: 4px; padding: 3px 6px;
+ margin-top: 4px;
+ }
+ .creation-card .card-gradient {
+ width: 100%; height: 100%;
+ display: flex; align-items: center; justify-content: center;
+ font-size: 10px; color: rgba(255,255,255,0.3);
+ text-align: center; padding: 8px;
+ }
+
+ .creations-empty {
+ grid-column: 1 / -1;
+ padding: 24px 0;
+ text-align: center;
+ font-size: 11px; color: var(--ink-dim, #52525b);
+ }
+
+ /* Drop zone for custom GLB */
+ #drop-zone {
+ margin: 0 10px 10px;
+ border: 1px dashed rgba(255,255,255,0.1);
+ border-radius: 8px;
+ padding: 12px;
+ text-align: center;
+ font-size: 11px; color: var(--ink-dim, #52525b);
+ cursor: pointer;
+ transition: border-color 0.15s, background 0.15s;
+ }
+ #drop-zone:hover, #drop-zone.drag-over {
+ border-color: rgba(99,102,241,0.4);
+ background: rgba(99,102,241,0.05);
+ color: #a5b4fc;
+ }
+ #drop-zone input { display: none; }
+
+ /* Avatar load prompt (shown when no avatar loaded) */
+ #avatar-prompt {
+ position: absolute; inset: 0;
+ display: flex; flex-direction: column;
+ align-items: center; justify-content: center;
+ gap: 16px;
+ background: rgba(7,7,15,0.8);
+ backdrop-filter: blur(6px);
+ padding: 24px;
+ text-align: center;
+ }
+ #avatar-prompt.hidden { display: none; }
+ #avatar-prompt h3 { font-size: 15px; font-weight: 700; margin: 0; color: #fff; }
+ #avatar-prompt p { font-size: 12px; color: var(--ink-dim, #71717a); margin: 0; max-width: 260px; }
+ .avatar-load-btn {
+ padding: 8px 20px;
+ background: #4f46e5;
+ border: none; border-radius: 8px;
+ color: #fff; font-size: 13px; font-weight: 600;
+ cursor: pointer;
+ transition: background 0.15s;
+ }
+ .avatar-load-btn:hover { background: #4338ca; }
+ .avatar-url-input {
+ width: 100%; max-width: 320px;
+ background: rgba(255,255,255,0.07);
+ border: 1px solid rgba(255,255,255,0.12);
+ border-radius: 7px;
+ color: #e4e4e7; font-size: 12px;
+ padding: 8px 12px;
+ }
+ .avatar-url-input:focus { outline: none; border-color: rgba(99,102,241,0.5); }
+ .avatar-load-row { display: flex; gap: 6px; width: 100%; max-width: 320px; }
+ .avatar-or { font-size: 11px; color: var(--ink-dim, #52525b); }
+
+ /* Scrollbars */
+ ::-webkit-scrollbar { width: 4px; height: 4px; }
+ ::-webkit-scrollbar-track { background: transparent; }
+ ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
+ ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
+
+ /* Responsive: collapse panels on narrow screens */
+ @media (max-width: 860px) {
+ #compose-root {
+ grid-template-columns: 0px 1fr 260px;
+ }
+ #panel-objects { display: none; }
+ }
+ @media (max-width: 580px) {
+ #compose-root {
+ grid-template-columns: 1fr;
+ grid-template-rows: 44px 1fr 260px;
+ }
+ #panel-forge { grid-row: 3; }
+ }
+ </style>
+ </head>
+ <body>
+ <div id="compose-root">
+
+ <!-- ── Topbar ───────────────────────────────────────────── -->
+ <header id="topbar">
+ <a href="/" class="logo">three.ws</a>
+ <div class="sep"></div>
+ <span style="font-size:12px;font-weight:600;color:#fff;margin-right:4px;">Scene Composer</span>
+ <div class="sep"></div>
+
+ <!-- Transform mode -->
+ <button class="xform-btn active" id="btn-translate" title="Translate (W)">
+ Move <span class="key">W</span>
+ </button>
+ <button class="xform-btn" id="btn-rotate" title="Rotate (E)">
+ Rotate <span class="key">E</span>
+ </button>
+ <button class="xform-btn" id="btn-scale" title="Scale (R)">
+ Scale <span class="key">R</span>
+ </button>
+
+ <div class="sep"></div>
+
+ <!-- Space toggle -->
+ <button class="topbar-btn" id="btn-space" title="Toggle local/world space">
+ <span id="space-label">World</span>
+ </button>
+
+ <div class="spacer"></div>
+
+ <span id="save-status">Saved ✓</span>
+
+ <button class="topbar-btn" id="btn-export-glb">Export GLB</button>
+ <button class="topbar-btn primary" id="btn-save-outfit">Save Outfit</button>
+ </header>
+
+ <!-- ── Left panel — objects ─────────────────────────────── -->
+ <aside id="panel-objects">
+ <div class="panel-head">
+ Scene
+ <button id="btn-load-avatar-small">Load Avatar</button>
+ </div>
+ <div id="object-list"></div>
+ <div id="inspector" class="empty">
+ <span class="empty-msg">Select an object to inspect</span>
+ </div>
+ </aside>
+
+ <!-- ── Canvas ──────────────────────────────────────────── -->
+ <main id="canvas-wrap">
+ <canvas id="compose-canvas"></canvas>
+
+ <!-- Loading overlay -->
+ <div id="canvas-loading">
+ <div class="spin"></div>
+ <div class="load-msg" id="loading-msg">Initializing…</div>
+ </div>
+
+ <!-- Avatar load prompt shown when scene is empty -->
+ <div id="avatar-prompt">
+ <h3>Start with an Avatar</h3>
+ <p>Load your avatar to attach items, or start with an empty scene to build freely.</p>
+ <div class="avatar-load-row">
+ <input
+ type="url"
+ class="avatar-url-input"
+ id="avatar-url-input"
+ placeholder="Paste GLB URL…"
+ />
+ <button class="avatar-load-btn" id="btn-load-url">Load</button>
+ </div>
+ <span class="avatar-or">or</span>
+ <button class="avatar-load-btn" id="btn-browse-avatars">Browse My Avatars</button>
+ <button
+ style="background:transparent;border:1px solid rgba(255,255,255,0.12);padding:6px 16px;border-radius:7px;color:#a1a1aa;font-size:12px;cursor:pointer;"
+ id="btn-skip-avatar"
+ >Start with empty scene</button>
+ </div>
+
+ <div id="canvas-hint">Orbit: drag · Zoom: scroll · W/E/R: transform mode · Esc: deselect</div>
+ </main>
+
+ <!-- ── Right panel — Forge ──────────────────────────────── -->
+ <aside id="panel-forge">
+ <div class="forge-head">
+ <h2>Forge an Item</h2>
+ <p>Describe what you want to add to the scene</p>
+ </div>
+
+ <div class="forge-prompt-wrap">
+ <textarea
+ id="forge-prompt"
+ placeholder="A futuristic sword glowing with blue energy…"
+ rows="3"
+ ></textarea>
+ <div class="forge-controls">
+ <button id="forge-btn">
+ <span class="btn-spin"></span>
+ <span class="btn-label">⚡ Forge</span>
+ </button>
+ </div>
+ <div class="forge-progress" id="forge-progress">
+ <div class="forge-progress-bar">
+ <div class="forge-progress-fill" id="forge-progress-fill"></div>
+ </div>
+ <div class="forge-progress-msg" id="forge-progress-msg">Starting…</div>
+ </div>
+ <div class="forge-error" id="forge-error"></div>
+ </div>
+
+ <div class="creations-head">
+ Recent Creations
+ <a href="/forge" target="_blank">Open Forge →</a>
+ </div>
+
+ <div id="creations-list">
+ <div class="creations-empty">Loading your forge creations…</div>
+ </div>
+
+ <!-- Drop zone for custom GLB -->
+ <label id="drop-zone" title="Drop a GLB file or click to browse">
+ <input type="file" id="glb-file-input" accept=".glb,.gltf" />
+ <span>Drop a GLB / glTF here<br><span style="opacity:0.6">or click to browse</span></span>
+ </label>
+ </aside>
+ </div>
+
+ <!-- Avatar picker modal (shown when user clicks "Browse My Avatars") -->
+ <div id="avatar-modal" style="display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,0.7);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;" hidden>
+ <div style="background:#0c0c17;border:1px solid rgba(255,255,255,0.1);border-radius:14px;width:min(520px,95vw);max-height:80vh;display:flex;flex-direction:column;overflow:hidden;">
+ <div style="padding:14px 16px;border-bottom:1px solid rgba(255,255,255,0.07);display:flex;align-items:center;justify-content:space-between;">
+ <span style="font-size:14px;font-weight:700;color:#fff;">Choose Avatar</span>
+ <button id="avatar-modal-close" style="background:none;border:none;color:#71717a;font-size:18px;cursor:pointer;line-height:1;">×</button>
+ </div>
+ <div id="avatar-modal-body" style="flex:1;overflow-y:auto;padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;align-content:start;">
+ <div style="grid-column:1/-1;text-align:center;padding:20px;color:#52525b;font-size:12px;">Loading avatars…</div>
+ </div>
+ </div>
+ </div>
+
+ <script type="module" src="/src/scene-compose.js"></script>
+ </body>
+</html>
diff --git a/public/launch-week.html b/public/launch-week.html
index 88e238a43..3a467abe8 100644
--- a/public/launch-week.html
+++ b/public/launch-week.html
@@ -1418,7 +1418,7 @@
<div>
<div class="layer-name">257 serverless endpoints. 3 paid x402 endpoints. The whole back end.</div>
<p class="layer-desc">
- Vercel functions on Neon Postgres, Cloudflare R2, and Upstash Redis. A full <strong>OAuth&nbsp;2.1 server</strong> (RFC 6749 + PKCE, RFC 7591 dynamic registration, RFC 7009 revocation, RFC 7662 introspection, RFC 8414 discovery, RFC 9728 protected-resource discovery). An <strong>MCP server</strong> over HTTP — JSON-RPC 2.0, listed on the official Model Context Protocol Registry as <code>io.github.nirholas/three.ws</code>. <strong>Three live x402 paid endpoints</strong> on the Coinbase Bazaar (<code>mint-to-mesh</code>, <code>model-check</code>, <code>revenue-vision</code>) auto-discoverable at <code>/.well-known/x402.json</code> with the CDP facilitator wired in. <strong>Three npm packages published:</strong> <code>three.ws</code>, <code>@nirholas/agent-kit</code>, <code>@pump-fun/agent-payments-sdk</code> v3.1. Cron jobs for the ERC-8004 crawler, ERC-7710 delegation indexer, Solana attestation indexer, DCA strategy execution, and recurring on-chain subscriptions.
+ Vercel functions on Neon Postgres, Cloudflare R2, and Upstash Redis. A full <strong>OAuth&nbsp;2.1 server</strong> (RFC 6749 + PKCE, RFC 7591 dynamic registration, RFC 7009 revocation, RFC 7662 introspection, RFC 8414 discovery, RFC 9728 protected-resource discovery). An <strong>MCP server</strong> over HTTP — JSON-RPC 2.0, listed on the official Model Context Protocol Registry as <code>io.github.nirholas/three.ws</code>. <strong>Three live x402 paid endpoints</strong> on the Coinbase Bazaar (<code>mint-to-mesh</code>, <code>model-check</code>, <code>revenue-vision</code>) auto-discoverable at <code>/.well-known/x402.json</code> with the CDP facilitator wired in. <strong>Three npm packages published:</strong> <code>three.ws</code>, <code>@three-ws/sdk</code>, <code>@three-ws/agent-payments</code> v3.1. Cron jobs for the ERC-8004 crawler, ERC-7710 delegation indexer, Solana attestation indexer, DCA strategy execution, and recurring on-chain subscriptions.
</p>
<div class="layer-pills">
<span class="pill">257 endpoints</span>
@@ -2213,7 +2213,7 @@
<span style="color:var(--text-dim); font-size:0.8rem;">Two packages, fully documented</span>
</div>
<p style="margin:0; font-size:0.88rem;">
- <code>@nirholas/agent-kit</code> — ERC-8004 on-chain identity, chat panel, ERC-7710 scoped delegations, IPFS pinning, browser wallet integration. <code>@pump-fun/agent-payments-sdk</code> v3.1.0 — agent payment program with v2 bonding curve support, x402 facilitator, EVM agent payments (Base + Arbitrum), event parsers. <code>three.ws</code> — npm package for the <code>&lt;agent-3d&gt;</code> web component.
+ <code>@three-ws/sdk</code> — ERC-8004 on-chain identity, chat panel, ERC-7710 scoped delegations, IPFS pinning, browser wallet integration. <code>@three-ws/agent-payments</code> v3.1.0 — agent payment program with v2 bonding curve support, x402 facilitator, EVM agent payments (Base + Arbitrum), event parsers. <code>three.ws</code> — npm package for the <code>&lt;agent-3d&gt;</code> web component.
</p>
</div>
@@ -2438,17 +2438,17 @@
<div class="desc">npm — one-line embed for the &lt;agent-3d&gt; web component.</div>
</div>
</a>
- <a href="https://www.npmjs.com/package/@nirholas/agent-kit" class="repo-link">
+ <a href="https://www.npmjs.com/package/@three-ws/sdk" class="repo-link">
<div class="repo-icon">🧰</div>
<div class="repo-info">
- <div class="name">@nirholas/agent-kit</div>
+ <div class="name">@three-ws/sdk</div>
<div class="desc">ERC-8004 on-chain identity, chat panel, ERC-7710 delegations, IPFS pinning.</div>
</div>
</a>
- <a href="https://www.npmjs.com/package/@pump-fun/agent-payments-sdk" class="repo-link purple">
+ <a href="https://www.npmjs.com/package/@three-ws/agent-payments" class="repo-link purple">
<div class="repo-icon">💸</div>
<div class="repo-info">
- <div class="name">@pump-fun/agent-payments-sdk v3.1.0</div>
+ <div class="name">@three-ws/agent-payments v3.1.0</div>
<div class="desc">Pump Agent Payments program · v2 bonding curve · x402 facilitator · EVM payments.</div>
</div>
</a>
@@ -2627,7 +2627,7 @@
A real-time 3D agent runtime on Three.js + glTF. Multi-provider chat (Claude, GPT, Groq, OpenRouter) with sentiment-driven emotion. Native Solana wallet integration. Pump.fun trading skills as agent tools. Reverse-engineered the entire pump-fun-agent-payments-sdk — Anchor IDL, PDAs, event parsing, x402 layer — now editable source. Solana vanity grinder. Pump.fun create-coin co-signer. Live pump.fun feed.
</p>
<p>
- Three live x402 paid endpoints — mint-to-mesh, model-check, revenue-vision — auto-discoverable at <code>/.well-known/x402.json</code>. Two npm-published SDKs: <code>@nirholas/agent-kit</code> and <code>@pump-fun/agent-payments-sdk</code> v3.1. ERC-8004 on-chain identity. ERC-7710 scoped delegations. Solana attestations on six event types.
+ Three live x402 paid endpoints — mint-to-mesh, model-check, revenue-vision — auto-discoverable at <code>/.well-known/x402.json</code>. Two npm-published SDKs: <code>@three-ws/sdk</code> and <code>@three-ws/agent-payments</code> v3.1. ERC-8004 on-chain identity. ERC-7710 scoped delegations. Solana attestations on six event types.
</p>
<h4>Who Picked Us Up</h4>