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(home): add remix link feature for shared creations

nirholas8222df157bfd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 128e7fbfc..2097c727d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Pinning your agent into the real world now feels like a moment** — Anchoring your agent to a real-world spot in IRL used to be confirmed by a single line of text. Now the instant it locks in, a green ring ripples out from your agent's feet with a soft haptic tap, so the payoff of placing an agent in your space actually lands. It respects reduced-motion settings (you still get the haptic), and it's purely a flourish: it never delays the pin. (`/irl`) `[improvement]`
- **Prompt-to-avatar and selfie-to-avatar generation fixed end to end** — Two bugs had been failing every avatar reconstruction job. First, the platform's own 3D worker delivers finished models from our Cloud Storage bucket, but a security allowlist introduced to keep forged URLs out only recognized third-party hosts, so even successful builds were marked failed at the last step. The allowlist now recognizes our own storage bucket (and only ours). Second, avatars generated from a text prompt use a full-body reference image, whose small face the face detector often missed, ending the job with 'no face detected'. The engine now finds the face with a wide-range detector, zooms in, and reads the facial detail from the zoomed view, so full-body renders and distant selfies both work. Describing a person in your prompt still matters: a subject with no human face gets a clear message asking you to reword. (`/create/prompt`) `[fix]`
- **Selfie to 3D works again: finished avatars were being thrown away at the last step** — Since the July infrastructure move, the selfie and photo reconstruction pipeline was failing with a generic "hit a snag" message even though the 3D engine finished every job. The security check that vets where a finished model may be downloaded from did not yet trust our own Google Cloud Storage results, so completed avatars were rejected at the final step. The check now recognizes our own storage, and any generation that was wrongly marked failed has been recovered. If your selfie avatar failed recently, it should now appear, or simply retry. `[fix]`
+- **Share a model, and whoever opens the link builds their own** — Forge something you like and hit Share: you now get a remix link. When a friend opens it, the homepage loads with your prompt already in the forge bar and starts building their own version on arrival, no typing and no sign-up. Any link of the form three.ws/?prompt=your idea works the same way, so you can hand-craft or bookmark them too. It turns every creation into an invitation: make something, share it, and the next person is one glance away from making their own. (The Open in Scene action still links your exact finished model.) `[feature]`
- **Sharper, cleaner models from photos** — Four upgrades to photo-to-3D landed together. Uploaded photos now have their background cleanly removed before reconstruction, so a busy backdrop no longer bleeds into the model. You can supply up to 6 reference angles instead of 4 for fuller coverage. Every uploaded angle is now quality-checked, and a blurry or off-subject one is dropped instead of corrupting the result. And every finished model runs through an automatic geometry cleanup pass that welds and de-duplicates the mesh and trims redundant triangles, so models load faster and render cleaner with no loss of detail. (`/image-to-3d`) `[improvement, feature]`
- **The agent-to-agent payment economy runs far cheaper and now cycles hundreds of distinct payers** — Two improvements to the closed-loop x402 agent economy that dogfoods every paid endpoint on the platform. First, a fix: a background wallet-consolidation job was quietly closing the ring's payment account after every settlement, forcing the next one to recreate it and pay account rent each time. That single bug had pushed the real fee cost to roughly a hundred times where it should be. With it fixed and single-signature settlement turned on, each settlement is back to the network floor of a few thousandths of a cent, and the ring's working balance stays in the loop instead of leaking away. Second, a new capability: the ring can now cycle payments through a reusable pool of hundreds to a thousand distinct wallets instead of one, so the economy reads as many participants rather than a single account, with no extra cost per payment. The pool is off until funded and activated, and every wallet in it stays clearly labeled internal dogfooding, not organic demand. (`/admin/ring`) `[fix, improvement, infra]`
- **The Money Pulse is beating again** — The live money feed went quiet after the July 7 infrastructure move: the switch that powers the autonomous agent activity loop did not survive the migration, so agents stopped tipping, trading, paying and launching. The switch is back on and the feed is live again, with real on-chain tips, trades, payments and coin launches flowing within minutes of the fix. The production runbook now documents the switch so a future migration cannot silently drop it. (`/pulse`) `[fix, infra]`
diff --git a/data/changelog.json b/data/changelog.json
index 440b92b0d..347c1fb67 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,14 @@
{
"$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-07-17",
+ "title": "Share a model, and whoever opens the link builds their own",
+ "summary": "Forge something you like and hit Share: you now get a remix link. When a friend opens it, the homepage loads with your prompt already in the forge bar and starts building their own version on arrival, no typing and no sign-up. Any link of the form three.ws/?prompt=your idea works the same way, so you can hand-craft or bookmark them too. It turns every creation into an invitation: make something, share it, and the next person is one glance away from making their own. (The Open in Scene action still links your exact finished model.)",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-17",
"title": "AR Studio goes multiplayer: build a scene together in real time",
diff --git a/public/changelog.json b/public/changelog.json
index 6b8055516..fc60d6fc5 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-17T12:22:07.940Z",
+ "generated_at": "2026-07-17T12:47:38.788Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -342,6 +342,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-17",
+ "type": "update",
+ "title": "Share a model, and whoever opens the link builds their own",
+ "summary": "Forge something you like and hit Share: you now get a remix link. When a friend opens it, the homepage loads with your prompt already in the forge bar and starts building their own version on arrival, no typing and no sign-up. Any link of the form three.ws/?prompt=your idea works the same way, so you can hand-craft or bookmark them too. It turns every creation into an invitation: make something, share it, and the next person is one glance away from making their own. (The Open in Scene action still links your exact finished model.)",
+ "link": null,
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-17",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 54cd1d6cb..26bb4d8a8 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -262,6 +262,14 @@
<category>fix</category>
<description>Since the July infrastructure move, the selfie and photo reconstruction pipeline was failing with a generic &quot;hit a snag&quot; message even though the 3D engine finished every job. The security check that vets where a finished model may be downloaded from did not yet trust our own Google Cloud Storage results, so completed avatars were rejected at the final step. The check now recognizes our own storage, and any generation that was wrongly marked failed has been recovered. If your selfie avatar failed recently, it should now appear, or simply retry.</description>
</item>
+ <item>
+ <title>Share a model, and whoever opens the link builds their own</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-17:Share a model, and whoever opens the link builds their own</guid>
+ <pubDate>Fri, 17 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Forge something you like and hit Share: you now get a remix link. When a friend opens it, the homepage loads with your prompt already in the forge bar and starts building their own version on arrival, no typing and no sign-up. Any link of the form three.ws/?prompt=your idea works the same way, so you can hand-craft or bookmark them too. It turns every creation into an invitation: make something, share it, and the next person is one glance away from making their own. (The Open in Scene action still links your exact finished model.)</description>
+ </item>
<item>
<title>Sharper, cleaner models from photos</title>
<link>https://three.ws/image-to-3d</link>
diff --git a/public/features.json b/public/features.json
index c6458841f..f4994dc4d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-17T12:22:07.928Z",
+ "generated_at": "2026-07-17T12:47:38.776Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/home-forge.js b/src/home-forge.js
index 55eb0fe6d..e300afc8b 100644
--- a/src/home-forge.js
+++ b/src/home-forge.js
@@ -374,6 +374,39 @@ function sceneLinkFor(glbUrl, prompt) {
return `/scene?${q.toString()}`;
}
+// A create-oriented share link. Instead of pointing at one finished file, it
+// drops the recipient on the homepage forge with the prompt pre-loaded and
+// auto-building — so "share" grows into a loop: create → share → the next
+// person watches it build → they tweak and share their own. The `scene` action
+// still links the exact finished model; this shares the *idea*, remixable.
+export function remixLinkFor(prompt) {
+ const clean = (prompt || '').trim().slice(0, 1000);
+ if (!clean) return '/';
+ return `/?prompt=${encodeURIComponent(clean)}&remix=1`;
+}
+
+// Read a forge intent off a URL — a shared remix link, a bookmark, or a
+// hand-made one:
+// /?prompt=a%20brass%20compass → prefill the hero (one tap to forge)
+// /?prompt=a%20brass%20compass&remix=1 → auto-forge on arrival (zero clicks)
+// `forge=1` / `auto=1` alias `remix=1`; `p` aliases `prompt`. Never throws.
+export function parseForgeIntent(search) {
+ let params;
+ try {
+ params = new URLSearchParams(search || '');
+ } catch {
+ return { prompt: '', auto: false };
+ }
+ const prompt = (params.get('prompt') || params.get('p') || '').trim().slice(0, 1000);
+ const truthy = (k) => {
+ if (!params.has(k)) return false;
+ const v = params.get(k);
+ return v === '' || v === '1' || v === 'true';
+ };
+ const auto = Boolean(prompt) && (truthy('remix') || truthy('forge') || truthy('auto'));
+ return { prompt, auto };
+}
+
function downloadName(prompt) {
return (
`${(prompt || 'forge')
@@ -617,10 +650,13 @@ function autoGrow() {
async function copyShareLink() {
if (!currentGlbUrl) return;
- const url = new URL(sceneLinkFor(currentGlbUrl, lastPrompt), location.origin).href;
+ // Share the idea, not just the file: a remix link auto-builds this prompt
+ // for whoever opens it. (The "Open in Scene" action still links the exact
+ // finished model.)
+ const url = new URL(remixLinkFor(lastPrompt), location.origin).href;
try {
await navigator.clipboard.writeText(url);
- showToast('Share link copied');
+ showToast('Remix link copied — whoever opens it builds their own');
} catch {
// Clipboard blocked (permissions / insecure context) — fall back to a
// transient selectable field the user can copy manually.
@@ -859,6 +895,20 @@ function wireHeroBar() {
forgeFromHero(chip.dataset.prompt);
});
+ // A shared remix link (or any /?prompt=… URL) lands the visitor mid-create:
+ // prefill the bar, and when the link opts into it (remix=1), forge on arrival
+ // so the model builds itself with zero clicks. Guarded so it fires once and
+ // not on a hidden/prerendered load.
+ const intent = parseForgeIntent(typeof location !== 'undefined' ? location.search : '');
+ if (intent.prompt) {
+ if (heroInput) heroInput.value = intent.prompt;
+ if (intent.auto && !document.hidden) {
+ forgeFromHero(intent.prompt);
+ } else if (heroInput) {
+ try { heroInput.focus({ preventScroll: true }); } catch { heroInput.focus(); }
+ }
+ }
+
// Keep the hero button's busy state honest as generation starts/ends by
// observing the chamber's state attribute (set by showState()/setBusy()).
if (window.MutationObserver && els.chamber) {
diff --git a/tests/home-forge-remix-link.test.js b/tests/home-forge-remix-link.test.js
new file mode 100644
index 000000000..91033028c
--- /dev/null
+++ b/tests/home-forge-remix-link.test.js
@@ -0,0 +1,72 @@
+// @vitest-environment jsdom
+//
+// The create → share → remix loop on the homepage forge (src/home-forge.js).
+// `remixLinkFor` turns a prompt into a shareable link; `parseForgeIntent` reads
+// that link back on arrival so the visitor lands mid-create. The round-trip is
+// the load-bearing property: a link produced by one must be understood by the
+// other, or the loop silently breaks.
+
+import { describe, it, expect } from 'vitest';
+import { remixLinkFor, parseForgeIntent } from '../src/home-forge.js';
+
+describe('remixLinkFor', () => {
+ it('builds a homepage link that carries the prompt and opts into auto-forge', () => {
+ expect(remixLinkFor('a brass compass')).toBe('/?prompt=a%20brass%20compass&remix=1');
+ });
+
+ it('URL-encodes prompts with reserved characters', () => {
+ expect(remixLinkFor('a fox & a hound, 50% chrome')).toBe(
+ '/?prompt=a%20fox%20%26%20a%20hound%2C%2050%25%20chrome&remix=1',
+ );
+ });
+
+ it('trims and clamps overlong prompts to 1000 chars', () => {
+ const long = 'x'.repeat(1500);
+ const link = remixLinkFor(` ${long} `);
+ const value = new URLSearchParams(new URL(link, 'https://three.ws').search).get('prompt');
+ expect(value).toHaveLength(1000);
+ });
+
+ it('degrades to the bare homepage for an empty prompt', () => {
+ expect(remixLinkFor('')).toBe('/');
+ expect(remixLinkFor(' ')).toBe('/');
+ expect(remixLinkFor(null)).toBe('/');
+ });
+});
+
+describe('parseForgeIntent', () => {
+ it('prefills without auto-forging when only a prompt is present', () => {
+ expect(parseForgeIntent('?prompt=a%20red%20fox')).toEqual({ prompt: 'a red fox', auto: false });
+ });
+
+ it('auto-forges when remix/forge/auto is set', () => {
+ expect(parseForgeIntent('?prompt=a%20red%20fox&remix=1').auto).toBe(true);
+ expect(parseForgeIntent('?prompt=a%20red%20fox&forge=1').auto).toBe(true);
+ expect(parseForgeIntent('?prompt=a%20red%20fox&auto=true').auto).toBe(true);
+ expect(parseForgeIntent('?prompt=a%20red%20fox&remix').auto).toBe(true); // bare flag
+ });
+
+ it('accepts the `p` alias for prompt', () => {
+ expect(parseForgeIntent('?p=a%20teapot&remix=1')).toEqual({ prompt: 'a teapot', auto: true });
+ });
+
+ it('never auto-forges without a prompt, even with the flag', () => {
+ expect(parseForgeIntent('?remix=1')).toEqual({ prompt: '', auto: false });
+ });
+
+ it('ignores a falsy flag value', () => {
+ expect(parseForgeIntent('?prompt=x&remix=0').auto).toBe(false);
+ });
+
+ it('is null-safe on empty or malformed input', () => {
+ expect(parseForgeIntent('')).toEqual({ prompt: '', auto: false });
+ expect(parseForgeIntent(undefined)).toEqual({ prompt: '', auto: false });
+ });
+
+ it('closes the loop: a remix link round-trips to an auto-forge intent', () => {
+ const prompt = 'a weathered brass compass, 50% patina';
+ const link = remixLinkFor(prompt);
+ const search = new URL(link, 'https://three.ws').search;
+ expect(parseForgeIntent(search)).toEqual({ prompt, auto: true });
+ });
+});