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
chore: multi-currency monetization prompts, changelog, pump search and script updates
nirholas7f8abd76dfb1
diff --git a/.prettierignore b/.prettierignoreindex 74d999d1c..3264487ad 100644--- a/.prettierignore+++ b/.prettierignore@@ -8,6 +8,13 @@ dist-artifact/contracts/lib/character-studio/docs/pumpfun-program/++# Self-contained sub-projects with their own tooling (package.json, lockfile,+# node_modules) and their own Prettier config + plugins. The root gate cannot+# resolve their plugins (prettier-plugin-svelte/-tailwindcss), so each owns its+# own `format`/`format:check` scripts. public/chat is chat's committed build output.+chat/+public/chat/# pump.fun Agent Skills mirror (github.com/pump-fun/pump-fun-skills) — these four# skills are kept byte-faithful to upstream; do not reformat. Our own reactive/# skill is intentionally NOT listed here, so it stays prettier-enforced.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9d229ee25..c1263678b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Describe it to 3D joins the rest of the site — and the two generators now point at each other** — The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool. (`/create/prompt`) `[improvement]`- **Embed any Forge model on your own site with one line** — Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object. (`/forge`) `[feature]`+- **Embed straight from the homepage demo — no trip to the full Forge** — The text-to-3D demo on the homepage now has an Embed button right in its result toolbar, so a model you forge there can go on your own site without opening the full Forge first. It pops a panel with a live preview, an iframe or <model-viewer> snippet, and the same 16:9 / square / 4:5 size presets, ready to copy in one tap. It's the same one-line embed the full Forge gives you, now one step shorter from the front page. (`/`) `[feature]`- **Refine any Forge model to higher quality in one click — plus sharper multi-view guidance** — Three upgrades to the Forge (/forge). After a model generates, a new Refine button re-runs that exact prompt or photos one quality tier higher — Draft to Standard to High — so you can preview cheaply, then commit to the best version without retyping anything. When building from photos, a live counter now shows how many of the four reference views you've added and reminds you that more angles make a sharper mesh. And the action bar under each finished model now reflows cleanly on phones, with Refine and Make-another leading at full width. Sketch mode also makes its required description unmistakable. (`/forge`) `[improvement]`- **See any Forge model in AR — scan from your desktop, place it in your room** — Every finished model now has a View in AR button. On a phone it drops the model into your space through the camera; on a desktop it shows a QR code you scan with your phone to open the same model, one tap from AR — so you can walk around what you just made at real-world scale. The embed viewer gained a big one-tap AR launcher on phones too, so models embedded on other sites are placeable in AR as well. No app, no download — it runs in the browser. (`/forge`) `[feature]`- **The full page directory is now one click away — and instantly filterable** — three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new "All pages" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap. (`/sitemap`) `[improvement]`diff --git a/api/pump/search.js b/api/pump/search.jsindex 0158d5f2e..efa5a1c94 100644--- a/api/pump/search.js+++ b/api/pump/search.js@@ -1,4 +1,4 @@-// GET /api/pump/search?q=bonk&limit=8+// GET /api/pump/search?q=<query>&limit=8// ------------------------------------// Name/symbol search over Solana tokens for the site-wide command palette// (public/search.js) and any other surface that needs to resolve a coin bydiff --git a/chat/package.json b/chat/package.jsonindex 5433cbb79..16f113cbf 100644--- a/chat/package.json+++ b/chat/package.json@@ -6,7 +6,9 @@"scripts": {"dev": "vite","build": "vite build",- "preview": "vite preview"+ "preview": "vite preview",+ "format": "prettier --write .",+ "format:check": "prettier --check ."},"devDependencies": {"@sveltejs/vite-plugin-svelte": "^3.0.1",diff --git a/data/changelog.json b/data/changelog.jsonindex 0e1b46901..929005e80 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-13",+ "title": "Embed straight from the homepage demo — no trip to the full Forge",+ "summary": "The text-to-3D demo on the homepage now has an Embed button right in its result toolbar, so a model you forge there can go on your own site without opening the full Forge first. It pops a panel with a live preview, an iframe or <model-viewer> snippet, and the same 16:9 / square / 4:5 size presets, ready to copy in one tap. It's the same one-line embed the full Forge gives you, now one step shorter from the front page.",+ "tags": [+ "feature"+ ],+ "link": "/"+ },{"date": "2026-06-13","title": "Tutorials read better: one-tap copy on every code block, live progress, and a jump-to-the-tool button",diff --git a/pages/home.html b/pages/home.htmlindex 0896ae0cc..4a41c8fc8 100644--- a/pages/home.html+++ b/pages/home.html@@ -3294,6 +3294,7 @@}#home-forge .hf-embed-code:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 1px; }#home-forge .hf-embed-copy { width: 100%; justify-content: center; padding: 12px 16px; }+ #home-forge .hf-embed-copy svg { width: 15px; height: 15px; flex: none; }#home-forge .hf-embed-copy.is-copied { background: #58d68d; border-color: #58d68d; box-shadow: 0 0 24px -6px rgba(88, 214, 141, 0.6); }#home-forge .hf-embed-foot { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); text-align: center; }#home-forge .hf-embed-foot a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }diff --git a/prompts/monetization-prompts/16-support-multiple-currencies.md b/prompts/monetization-prompts/16-support-multiple-currencies.mdindex be86ea30f..c029891c0 100644--- a/prompts/monetization-prompts/16-support-multiple-currencies.md+++ b/prompts/monetization-prompts/16-support-multiple-currencies.md@@ -14,7 +14,7 @@ Currently, the system is hardcoded for USDC. To provide more flexibility for cre2. **Modify Creator UI for Pricing:*** In the "Skill Monetization" section of `agent-edit.html`, change the currency selector from a static element to a dropdown menu.- * Populate this dropdown with a list of supported currencies (e.g., "USDC", "SOL", "BONK"). This list can be hardcoded for now.+ * Populate this dropdown with a list of supported currencies (e.g., "USDC", "SOL", "$THREE"). This list can be hardcoded for now.* When a creator selects a currency, store the corresponding mint address along with the price.3. **Update Frontend Purchase Logic:**diff --git a/prompts/monetization/02-backend-create-skill-pricing-table.md b/prompts/monetization/02-backend-create-skill-pricing-table.mdindex bc1daa91c..758a2862b 100644--- a/prompts/monetization/02-backend-create-skill-pricing-table.md+++ b/prompts/monetization/02-backend-create-skill-pricing-table.md@@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS agent_skill_prices (skill_name VARCHAR(255) NOT NULL,-- Price in the smallest denomination (e.g., lamports for SOL, or 10^-6 for USDC)amount BIGINT NOT NULL CHECK (amount >= 0),- -- The mint address of the currency token (e.g., USDC, BONK, etc.)+ -- The mint address of the currency token (e.g., USDC, $THREE, etc.)currency_mint VARCHAR(44) NOT NULL,created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),diff --git a/prompts/monetization/20_multiple_currencies.md b/prompts/monetization/20_multiple_currencies.mdindex af6fff6b7..d2e1b7488 100644--- a/prompts/monetization/20_multiple_currencies.md+++ b/prompts/monetization/20_multiple_currencies.md@@ -5,7 +5,7 @@ last_updated: 2026-05-04# Prompt 20: Support for Multiple Currencies## Objective-Extend the monetization system to allow creators to set prices and users to pay in different SPL tokens (e.g., BONK, RENDER) in addition to USDC.+Extend the monetization system to allow creators to set prices and users to pay in different SPL tokens (e.g., $THREE) in addition to USDC.## ExplanationTo increase flexibility and appeal to different communities, we should support more than just one currency. This requires changes to how prices are stored, how transactions are built, and how data is displayed.@@ -25,7 +25,7 @@ To increase flexibility and appeal to different communities, we should support m4. **Frontend Wallet Interaction:*** The frontend needs to be aware of the currency being used. When preparing the purchase, it's good practice to check if the user has a sufficient balance of the required token *before* showing the sign prompt. This can be done using `connection.getTokenAccountBalance`.- * The UI should clearly display the correct currency symbol (e.g., "Purchase for 500 BONK").+ * The UI should clearly display the correct currency symbol (e.g., "Purchase for 500 $THREE").5. **Update Creator Dashboard:*** The sales data aggregation must now `GROUP BY currency_mint` to show total earnings for each currency separately.@@ -39,9 +39,9 @@ export const SUPPORTED_CURRENCIES = {symbol: 'USDC',decimals: 6,},- 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263': {- symbol: 'BONK',- decimals: 5,+ 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump': {+ symbol: 'THREE',+ decimals: 6,}};```diff --git a/public/changelog.json b/public/changelog.jsonindex 2f2f69a02..463f92c48 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-13T01:20:26.120Z",+ "generated_at": "2026-06-13T02:58:50.108Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,16 @@"feature"]},+ {+ "date": "2026-06-13",+ "type": "update",+ "title": "Embed straight from the homepage demo — no trip to the full Forge",+ "summary": "The text-to-3D demo on the homepage now has an Embed button right in its result toolbar, so a model you forge there can go on your own site without opening the full Forge first. It pops a panel with a live preview, an iframe or <model-viewer> snippet, and the same 16:9 / square / 4:5 size presets, ready to copy in one tap. It's the same one-line embed the full Forge gives you, now one step shorter from the front page.",+ "link": "/",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-13","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 6b86427a1..f3402d7a4 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>feature</category><description>Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object.</description></item>+ <item>+ <title>Embed straight from the homepage demo — no trip to the full Forge</title>+ <link>https://three.ws/</link>+ <guid isPermaLink="false">2026-06-13:Embed straight from the homepage demo — no trip to the full Forge</guid>+ <pubDate>Sat, 13 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The text-to-3D demo on the homepage now has an Embed button right in its result toolbar, so a model you forge there can go on your own site without opening the full Forge first. It pops a panel with a live preview, an iframe or <model-viewer> snippet, and the same 16:9 / square / 4:5 size presets, ready to copy in one tap. It's the same one-line embed the full Forge gives you, now one step shorter from the front page.</description>+ </item><item><title>Refine any Forge model to higher quality in one click — plus sharper multi-view guidance</title><link>https://three.ws/forge</link>diff --git a/public/features.json b/public/features.jsonindex 2b14e5147..3486d9ac5 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-13T01:20:26.019Z",+ "generated_at": "2026-06-13T02:58:50.090Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/demo-screens.mjs b/scripts/demo-screens.mjsindex e352f9096..2f791e350 100644--- a/scripts/demo-screens.mjs+++ b/scripts/demo-screens.mjs@@ -13,8 +13,8 @@ page.on('pageerror', (e) => errors.push('pageerror: ' + e.message));// Stub trending coins so the lobby populates.const COINS = Array.from({ length: 8 }, (_, i) => ({- mint: 'Mint' + i, name: ['Doge','Pepe','Bonk','Wif','Popcat','Mew','Goat','Moodeng'][i],- symbol: ['DOGE','PEPE','BONK','WIF','POPCAT','MEW','GOAT','MOO'][i],+ mint: 'Mint' + i, name: 'Demo Coin ' + (i + 1),+ symbol: 'DEMO' + (i + 1),image: '', marketCap: (i + 1) * 1.2e6,}));await page.route('**/api/pump/trending**', (r) => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ coins: COINS, items: COINS }) }));@@ -27,7 +27,7 @@ console.log('lobby captured');// Enter a world directly via the scene API (offline — no server needed).await page.waitForFunction(() => !!window.__CC__, { timeout: 8000 });-await page.evaluate(() => window.__CC__.enter({ mint: 'DemoMint', name: 'Doge', symbol: 'DOGE', image: '' }));+await page.evaluate(() => window.__CC__.enter({ mint: 'DemoMint', name: 'Demo Coin', symbol: 'DEMO', image: '' }));await page.waitForTimeout(4000); // let avatar + scene settleawait page.screenshot({ path: '/tmp/play-world.png' });console.log('world captured');diff --git a/scripts/verify-palette.mjs b/scripts/verify-palette.mjsindex b3cd15ccd..c2bb727d6 100644--- a/scripts/verify-palette.mjs+++ b/scripts/verify-palette.mjs@@ -80,7 +80,7 @@ console.log(' categories for "agent":', JSON.stringify(qCats));// 5. Coin search renders real coins.await page.click('#tws-search-input', { clickCount: 3 });-await page.type('#tws-search-input', 'bonk');+await page.type('#tws-search-input', 'ai');await new Promise((r) => setTimeout(r, 1500));const coinNames = await page.evaluate(() => {const cats = [...document.querySelectorAll('#tws-search-results > *')];@@ -91,7 +91,7 @@ const coinNames = await page.evaluate(() => {}return out;});-ok('Coins category renders real coins for "bonk"', coinNames.length > 0);+ok('Coins category renders real coins for "ai"', coinNames.length > 0);console.log(' coins:', JSON.stringify(coinNames.slice(0, 4)));// 6. Quick action "create" matches.diff --git a/solana-agent-sdk/tasks/add-decimal-fetch-onchain.md b/solana-agent-sdk/tasks/add-decimal-fetch-onchain.mdindex 3a29f8883..b1796220c 100644--- a/solana-agent-sdk/tasks/add-decimal-fetch-onchain.md+++ b/solana-agent-sdk/tasks/add-decimal-fetch-onchain.md@@ -20,7 +20,7 @@ function guessDecimals(mint: string): number {}```-Most SPL tokens use 6 decimals, not 9. Using 9 as a fallback makes display values 1,000x too small for any unknown token. The display is only used in `TxMetadata` (shown to the user before they sign), so a wrong decimal count shows misleading amounts like "1,000,000 BONK" instead of "0.001 BONK".+Most SPL tokens use 6 decimals, not 9. Using 9 as a fallback makes display values 1,000x too small for any unknown token. The display is only used in `TxMetadata` (shown to the user before they sign), so a wrong decimal count shows misleading amounts like "1,000,000 tokens" instead of "0.001 tokens".## Fixdiff --git a/tasks/monetization-feature/19-support-for-multiple-currencies.md b/tasks/monetization-feature/19-support-for-multiple-currencies.mdindex 56caf5116..511bae1ed 100644--- a/tasks/monetization-feature/19-support-for-multiple-currencies.md+++ b/tasks/monetization-feature/19-support-for-multiple-currencies.md@@ -7,7 +7,7 @@ status: not-started**Status:** Not Started## Objective-Allow creators to set prices in different SPL tokens (e.g., BONK, WIF) and allow buyers to pay in any of them.+Allow creators to set prices in different SPL tokens (e.g., $THREE) and allow buyers to pay in any of them.## ExplanationTo embrace the Solana ecosystem, we should support more than just USDC. This will involve using a DEX like Jupiter to handle currency swaps during the purchase.@@ -17,8 +17,8 @@ To embrace the Solana ecosystem, we should support more than just USDC. This wil- [ ] **Update the Purchase API (`/api/skills/purchase`):**- The API should now accept an additional parameter: `payment_mint`, the token the user wants to pay with.- [ ] **Integrate with Jupiter API:**- - When a user wants to pay with BONK for a skill priced in USDC:- - 1. Use the Jupiter API to get a `swap` transaction that converts the right amount of the user's BONK into the required amount of USDC.+ - When a user wants to pay with a non-USDC token for a skill priced in USDC:+ - 1. Use the Jupiter API to get a `swap` transaction that converts the right amount of the user's chosen token into the required amount of USDC.- 2. The destination for the USDC should be a temporary account or directly to the creator/platform wallets.- 3. **Combine the transactions:** The full transaction sent to the user will include the Jupiter swap *and* the payment transfers. The user signs one transaction that does everything.- [ ] **Update the Frontend:** The "Buy" button should present the user with a choice of which token to pay with.diff --git a/tasks/monetization-feature/21-fullstack-multi-currency-support.md b/tasks/monetization-feature/21-fullstack-multi-currency-support.mdindex 1a1309309..dd19ae8b5 100644--- a/tasks/monetization-feature/21-fullstack-multi-currency-support.md+++ b/tasks/monetization-feature/21-fullstack-multi-currency-support.md@@ -7,7 +7,7 @@ status: not-started**Status:** Not Started## Objective-Extend the skill pricing and payment system to support multiple SPL tokens (e.g., BONK, RENDER) in addition to USDC.+Extend the skill pricing and payment system to support multiple SPL tokens (e.g., $THREE) in addition to USDC.## ExplanationTo maximize flexibility for users and creators, the platform should not be limited to a single currency. This requires changes on both the backend (to store different currency mints) and the frontend (to display the correct currency symbol and handle different decimals).@@ -17,11 +17,11 @@ To maximize flexibility for users and creators, the platform should not be limit- [ ] The `agent_skill_prices` and `skill_purchases` tables already have a `currency_mint` column, which is good.- [ ] When creating a Solana Pay transaction, ensure you are using the correct `splToken` mint address from the skill's price information.- [ ] **Frontend - Monetization Tab:**- - [ ] Update the currency `<select>` dropdown in the agent editor to include options for other popular SPL tokens (USDC, BONK, etc.). The `value` for each option should be the token's mint address.+ - [ ] Update the currency `<select>` dropdown in the agent editor to include options for other whitelisted SPL tokens (USDC, $THREE, etc.). The `value` for each option should be the token's mint address.- [ ] **Frontend - Marketplace:**- [ ] When displaying the price and the "Buy" button, fetch the token's metadata (symbol, decimals) from a source like the Solana Token List or a simple hardcoded map.- - [ ] Use the correct number of decimals when converting the `amount` from lamports to a human-readable format (e.g., BONK has 5 decimals, USDC has 6).- - [ ] Display the correct currency symbol (e.g., "$BONK", "$RNDR").+ - [ ] Use the correct number of decimals when converting the `amount` from lamports to a human-readable format (different SPL tokens use different decimal counts — e.g., USDC has 6).+ - [ ] Display the correct currency symbol (e.g., "$THREE", "USDC").## Code Example (Frontend Price Display)@@ -29,7 +29,7 @@ To maximize flexibility for users and creators, the platform should not be limit// A simple map of known tokens. In a real app, this might come from an API.const TOKEN_MAP = {'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyB7u6T': { symbol: 'USDC', decimals: 6 },- 'DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263': { symbol: 'BONK', decimals: 5 },+ 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump': { symbol: 'THREE', decimals: 6 },};// In the marketplace rendering logic...