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(sketchfab): curated showcase cron pushes top community models to Sketchfab

nirholas97c5c181c597
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 950883641..2726e72c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,10 +7,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-07-14
- **AR Forge** (`/ar`) — Type a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.
+- **Docs · Sketchfab Showcase** (`/docs/sketchfab`) — How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.
- **End-User License Agreement** (`/legal/eula`) — License terms for the three.ws Seeker/Saga app.
- **AR Forge: type a prompt, place the model in your room** — A new mobile-first app at /ar turns a one-line prompt into a real, downloadable 3D model on the free generation lane, then puts it in your space with one tap: WebXR or Scene Viewer on Android, Quick Look on iPhone. On a desktop it shows a QR code that hands the finished model straight to your phone's camera app, and every creation gets a shareable viewer link. No account, no payment, fair-use rate limits only. (`/ar`) `[feature]`
- **IRL placement grows up: true AR anchoring leads the dock, and you can pinch-resize your agent** — Placing an avatar in the real world through /irl now feels like a native AR app. On phones with a real AR surface the new Place in AR button leads the dock: a floor-finding reticle, a tap to anchor the agent to the actual detected surface, and now a two-finger pinch to resize it live, from a 25% desk figurine to a 400% statue. The size you choose saves with the pin, so everyone who walks up sees your agent exactly where and how big you left it. iPhones open the same placement in ARKit Quick Look. The compass-and-GPS pin path is unchanged and remains the fallback everywhere else. (`/irl`) `[feature, improvement]`
- **New doc: IRL, agents in the real world** — The IRL layer finally has a front door in the docs: one page that explains the whole vision and how the shipped pieces fit together. It covers placing an agent at a real GPS spot from your phone, walk-up discovery with proof of presence, paying agents in person via x402, Money Drops (real SOL, USDC, or $THREE escrowed at a place and claimable only by walking up), World Lines (agent-signed proofs that you were really there), and the privacy model that makes it all safe. The docs sidebar now also links the hands-on IRL tutorial, which was previously unreachable from the navigation. (`/docs/irl`) `[docs]`
+- **The best community models now go to Sketchfab** — Weekly Forge-Off winners and the top-voted forge board models are now published to the official three.ws account on Sketchfab, the largest public 3D model site. It is a curated showcase, not a firehose: a few community-validated models a week, each clearly tagged as AI-generated, with its generation prompt and a link back to the creation on three.ws so anyone who finds it can remix it or forge their own. Every link is tagged so we can measure how many visitors the showcase actually brings in. (`/docs/sketchfab`) `[feature]`
- **Tour and Walk SDK update: switch between Stroll and Platformer from the tour controls** — Embedded tours built with the Tour Builder now include a labeled Stroll / Platformer toggle right in the tour controls next to Exit, so visitors can switch how they explore (tap it or press M) instead of hunting for a hidden corner button. Published as @three-ws/walk 0.2.1 and @three-ws/tour 0.5.1 on npm; the Tour Builder's exported embed snippet now uses the new versions automatically, and also picks up the latest @three-ws/page-agent with its five persona presets. (`/tour-builder`) `[sdk, improvement]`
## 2026-07-13
diff --git a/api/_lib/env.js b/api/_lib/env.js
index 91cf5c47c..985eea7e0 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -644,6 +644,17 @@ export const env = {
return opt('CRON_SECRET');
},
+ // Sketchfab Data API token of the official three.ws showcase account
+ // (api/cron/sketchfab-showcase.js). Unset: the showcase cron self-disables
+ // and skips cleanly, like the other optional credentials.
+ get SKETCHFAB_API_TOKEN() {
+ return opt('SKETCHFAB_API_TOKEN');
+ },
+ // Models pushed per showcase run (default 2, clamped 1-5 in the handler).
+ get SKETCHFAB_UPLOADS_PER_RUN() {
+ return opt('SKETCHFAB_UPLOADS_PER_RUN');
+ },
+
// ── multiplayer bridge (presence + live DM delivery) ─────────────────────
// Shared HMAC secret between this API and the standalone Colyseus server. The
// API mints short-lived presence tickets (api/friends/presence-ticket) the
diff --git a/api/_lib/migrations/20260714130000_sketchfab_uploads.sql b/api/_lib/migrations/20260714130000_sketchfab_uploads.sql
new file mode 100644
index 000000000..226654f15
--- /dev/null
+++ b/api/_lib/migrations/20260714130000_sketchfab_uploads.sql
@@ -0,0 +1,27 @@
+-- Sketchfab showcase ledger (api/cron/sketchfab-showcase.js).
+--
+-- Tracks which forge creations have been pushed to the official three.ws
+-- Sketchfab account so a model is never uploaded twice and a failing upload
+-- retries at most 3 times before being parked.
+--
+-- Lifecycle: pending (claimed by a cron run) -> uploaded (201 from Sketchfab,
+-- async processing underway) -> live (processing SUCCEEDED) | failed
+-- (upload error or processing FAILED; `error` holds the reason).
+
+CREATE TABLE IF NOT EXISTS sketchfab_uploads (
+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
+ creation_id uuid NOT NULL UNIQUE REFERENCES forge_creations(id) ON DELETE CASCADE,
+ source text NOT NULL DEFAULT 'top_voted', -- board_winner | top_voted
+ status text NOT NULL DEFAULT 'pending', -- pending | uploaded | live | failed
+ attempts integer NOT NULL DEFAULT 1,
+ sketchfab_uid text,
+ sketchfab_url text,
+ error text,
+ prompt text,
+ glb_url text,
+ created_at timestamptz NOT NULL DEFAULT now(),
+ updated_at timestamptz NOT NULL DEFAULT now()
+);
+
+CREATE INDEX IF NOT EXISTS idx_sketchfab_uploads_status
+ ON sketchfab_uploads (status, updated_at DESC);
diff --git a/api/_lib/sketchfab.js b/api/_lib/sketchfab.js
new file mode 100644
index 000000000..eddebfaec
--- /dev/null
+++ b/api/_lib/sketchfab.js
@@ -0,0 +1,145 @@
+// @ts-check
+// Sketchfab Data API v3 client for the official three.ws showcase account.
+//
+// Spec: https://docs.sketchfab.com/data-api/v3/index.html (swagger.json)
+// - Auth: `Authorization: Token <key>` (account token, sketchfab.com/settings/password)
+// - Upload: POST /v3/models, multipart/form-data. `modelFile` is the only
+// required field; `tags`/`categories` are repeated form fields
+// (collectionFormat "multi"); 201 returns { uid, uri }.
+// - Status: processing is async. GET /v3/models/{uid} exposes
+// status.processing: PROCESSING | SUCCEEDED | FAILED.
+// - Limits: 50 MB per upload on the basic plan (200 MB pro, 500 MB biz).
+//
+// Sketchfab has no dedicated AI-generation field, so disclosure is the
+// `ai-generated` tag plus a plain statement in the description. Every
+// description carries the source prompt and UTM-tagged backlinks so referral
+// conversion is measurable in analytics.
+
+import { env } from './env.js';
+
+const API_BASE = 'https://api.sketchfab.com/v3';
+const NAME_MAX = 48; // Sketchfab truncates longer model names
+const DESC_MAX = 1024; // description hard limit
+// Basic-plan uploads cap at 50 MB; keep a margin so a boundary-size GLB never
+// burns an attempt on a guaranteed 4xx.
+export const GLB_MAX_BYTES = 45 * 1024 * 1024;
+
+const SHOWCASE_UTM = 'utm_source=sketchfab&utm_medium=referral&utm_campaign=showcase';
+
+export function sketchfabConfigured() {
+ return Boolean(env.SKETCHFAB_API_TOKEN);
+}
+
+export function showcaseLink(path) {
+ const origin = env.APP_ORIGIN || 'https://three.ws';
+ return `${origin}${path}${path.includes('?') ? '&' : '?'}${SHOWCASE_UTM}`;
+}
+
+// Model name from the generation prompt: first clause, title-cased, article
+// stripped, clamped to Sketchfab's display limit.
+export function buildModelName(prompt) {
+ const trimmed = String(prompt || '').trim().replace(/^(a|an|the)\s+/i, '');
+ const firstClause = trimmed.split(/[,.;:\n]/)[0].trim() || trimmed || '3D Model';
+ const titled = firstClause.replace(/\b\w/g, (c) => c.toUpperCase());
+ if (titled.length <= NAME_MAX) return titled;
+ // Cut on a word boundary so the public name never ends mid-word.
+ const cut = titled.slice(0, NAME_MAX);
+ const lastSpace = cut.lastIndexOf(' ');
+ return (lastSpace > 20 ? cut.slice(0, lastSpace) : cut).trim();
+}
+
+// Sketchfab tags are slugs: lowercase, alphanumeric + hyphen.
+function slugTag(value) {
+ return String(value || '')
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, '-')
+ .replace(/^-+|-+$/g, '')
+ .slice(0, 48);
+}
+
+export function buildTags(modelCategory) {
+ const tags = ['ai-generated', 'generative-ai', 'text-to-3d', 'threews'];
+ const cat = slugTag(modelCategory);
+ if (cat && !tags.includes(cat)) tags.push(cat);
+ return tags;
+}
+
+export function buildDescription({ prompt, creationId, source }) {
+ const pickLine =
+ source === 'board_winner'
+ ? 'Weekly Forge-Off winner, crowned by community vote.'
+ : 'Community pick: one of the top-voted models on the forge board.';
+ const share = showcaseLink(`/forge/share/${creationId}`);
+ const forge = showcaseLink('/forge');
+ const fixed = [
+ '',
+ `AI-generated on the three.ws Forge (text to 3D). ${pickLine}`,
+ '',
+ `View and remix in the browser: ${share}`,
+ `Forge your own, free, no account: ${forge}`,
+ ].join('\n');
+ // The prompt is the only variable-length piece; clamp it so the backlinks
+ // always survive the 1024-char description limit.
+ const promptBudget = DESC_MAX - fixed.length - 12;
+ const cleanPrompt = String(prompt || '').trim().slice(0, Math.max(0, promptBudget));
+ return `Prompt: "${cleanPrompt}"${fixed}`.slice(0, DESC_MAX);
+}
+
+// Download the stored GLB and push it to Sketchfab. Returns { uid, url }.
+// Throws on any failure; the caller records the error and retry budget.
+export async function uploadModel({ glbUrl, name, description, tags }) {
+ const token = env.SKETCHFAB_API_TOKEN;
+ if (!token) throw new Error('SKETCHFAB_API_TOKEN unset');
+
+ const glbRes = await fetch(glbUrl, {
+ headers: { 'user-agent': 'threews-sketchfab-showcase/1.0' },
+ signal: AbortSignal.timeout(60_000),
+ });
+ if (!glbRes.ok) throw new Error(`glb fetch failed: ${glbRes.status} ${glbUrl}`);
+ const buf = await glbRes.arrayBuffer();
+ if (buf.byteLength === 0) throw new Error(`glb is empty: ${glbUrl}`);
+ if (buf.byteLength > GLB_MAX_BYTES) {
+ throw new Error(`glb too large for basic plan: ${buf.byteLength} bytes`);
+ }
+
+ const form = new FormData();
+ form.append(
+ 'modelFile',
+ new Blob([buf], { type: 'model/gltf-binary' }),
+ `${slugTag(name) || 'model'}.glb`,
+ );
+ form.append('name', name);
+ form.append('description', description);
+ for (const tag of tags) form.append('tags', tag);
+ form.append('isPublished', 'true');
+ form.append('isInspectable', 'true');
+
+ const res = await fetch(`${API_BASE}/models`, {
+ method: 'POST',
+ headers: { authorization: `Token ${token}` },
+ body: form,
+ signal: AbortSignal.timeout(180_000),
+ });
+ const body = await res.json().catch(() => null);
+ if (res.status !== 201 || !body?.uid) {
+ throw new Error(
+ `sketchfab upload failed: ${res.status} ${JSON.stringify(body || {}).slice(0, 300)}`,
+ );
+ }
+ return { uid: body.uid, url: `https://sketchfab.com/models/${body.uid}` };
+}
+
+// Poll async processing. Returns 'PROCESSING' | 'SUCCEEDED' | 'FAILED' | null
+// (null = status not readable yet; treat as still processing).
+export async function getProcessingStatus(uid) {
+ const token = env.SKETCHFAB_API_TOKEN;
+ if (!token) throw new Error('SKETCHFAB_API_TOKEN unset');
+ const res = await fetch(`${API_BASE}/models/${encodeURIComponent(uid)}`, {
+ headers: { authorization: `Token ${token}` },
+ signal: AbortSignal.timeout(30_000),
+ });
+ if (!res.ok) return null;
+ const body = await res.json().catch(() => null);
+ const processing = body?.status?.processing;
+ return typeof processing === 'string' ? processing.toUpperCase() : null;
+}
diff --git a/api/cron/sketchfab-showcase.js b/api/cron/sketchfab-showcase.js
new file mode 100644
index 000000000..bbc19fb3c
--- /dev/null
+++ b/api/cron/sketchfab-showcase.js
@@ -0,0 +1,236 @@
+// @ts-check
+// GET /api/cron/sketchfab-showcase: curated Sketchfab distribution for SEO.
+//
+// Runs Mon/Wed/Fri and pushes up to SKETCHFAB_UPLOADS_PER_RUN (default 2, so
+// up to 6/week) of the best community-validated forge models to the official
+// three.ws Sketchfab account. Selection order:
+//
+// 1. Weekly Forge-Off winners (forge_board_winners) not yet uploaded: the
+// strongest human-curation signal on the platform.
+// 2. Top-voted board models (forge_creations.vote_count >= 1): at least one
+// real community vote, never raw unreviewed output.
+//
+// Every upload is tagged `ai-generated`, carries the source prompt, and
+// backlinks to the creation's share page + /forge with UTM parameters
+// (utm_source=sketchfab) so referral conversion is measurable. This is a
+// showcase, not a firehose: the per-run cap and the vote floor keep the
+// account curated.
+//
+// Each run also refreshes the async processing status of recent uploads
+// (uploaded -> live | failed).
+//
+// Skips cleanly when SKETCHFAB_API_TOKEN is unset. `?dry_run=1` returns the
+// current selection without uploading anything.
+
+import { json, method, wrapCron } from '../_lib/http.js';
+import { env } from '../_lib/env.js';
+import { sql } from '../_lib/db.js';
+import { constantTimeEquals } from '../_lib/crypto.js';
+import {
+ GLB_MAX_BYTES,
+ buildDescription,
+ buildModelName,
+ buildTags,
+ getProcessingStatus,
+ sketchfabConfigured,
+ uploadModel,
+} from '../_lib/sketchfab.js';
+
+const MAX_ATTEMPTS = 3;
+
+function requireCron(req, res) {
+ const secret = process.env.CRON_SECRET || env.CRON_SECRET;
+ if (!secret) {
+ res.status(503).json({ error: 'not_configured', message: 'CRON_SECRET unset' });
+ return false;
+ }
+ const auth = req.headers['authorization'] || '';
+ const presented = auth.startsWith('Bearer ') ? auth.slice(7) : '';
+ if (!constantTimeEquals(presented, secret)) {
+ res.status(401).json({ error: 'unauthorized' });
+ return false;
+ }
+ return true;
+}
+
+function uploadsPerRun() {
+ const n = Number(env.SKETCHFAB_UPLOADS_PER_RUN || 2);
+ if (!Number.isFinite(n)) return 2;
+ return Math.min(5, Math.max(1, Math.floor(n)));
+}
+
+// A creation is eligible when it is publicly showable (same bar as the forge
+// gallery), fits the Sketchfab basic-plan size cap, and has no ledger row
+// blocking it (uploaded/live/pending, or failed with the retry budget spent).
+async function selectCandidates(limit) {
+ const winners = await sql`
+ select fc.id, fc.prompt, fc.glb_url, fc.model_category, 'board_winner' as source
+ from forge_board_winners w
+ join forge_creations fc on fc.id = w.creation_id
+ where fc.status = 'done'
+ and fc.glb_url is not null
+ and (fc.outcome is null or fc.outcome != 'rejected')
+ and coalesce(fc.size_bytes, 0) <= ${GLB_MAX_BYTES}
+ and not exists (
+ select 1 from sketchfab_uploads su
+ where su.creation_id = fc.id
+ and (su.status != 'failed' or su.attempts >= ${MAX_ATTEMPTS})
+ )
+ order by w.week_start desc
+ limit ${limit}
+ `;
+ if (winners.length >= limit) return winners;
+
+ const winnerIds = winners.map((w) => w.id);
+ const topVoted = await sql`
+ select fc.id, fc.prompt, fc.glb_url, fc.model_category, 'top_voted' as source
+ from forge_creations fc
+ where fc.status = 'done'
+ and fc.glb_url is not null
+ and (fc.outcome is null or fc.outcome != 'rejected')
+ and fc.vote_count >= 1
+ and coalesce(fc.size_bytes, 0) <= ${GLB_MAX_BYTES}
+ and fc.id != all(${winnerIds}::uuid[])
+ and not exists (
+ select 1 from sketchfab_uploads su
+ where su.creation_id = fc.id
+ and (su.status != 'failed' or su.attempts >= ${MAX_ATTEMPTS})
+ )
+ order by fc.vote_count desc, fc.created_at desc
+ limit ${limit - winners.length}
+ `;
+ return [...winners, ...topVoted];
+}
+
+// Claim the creation in the ledger before touching the network so concurrent
+// runs (or a Scheduler retry) can never double-upload. Fresh creations insert;
+// a prior failure re-claims only while attempts remain.
+async function claimCreation(candidate) {
+ const [row] = await sql`
+ insert into sketchfab_uploads (creation_id, source, status, attempts, prompt, glb_url)
+ values (${candidate.id}, ${candidate.source}, 'pending', 1, ${candidate.prompt}, ${candidate.glb_url})
+ on conflict (creation_id) do update
+ set attempts = sketchfab_uploads.attempts + 1,
+ status = 'pending',
+ updated_at = now()
+ where sketchfab_uploads.status = 'failed'
+ and sketchfab_uploads.attempts < ${MAX_ATTEMPTS}
+ returning id
+ `;
+ return row?.id || null;
+}
+
+async function pushCandidate(candidate) {
+ const ledgerId = await claimCreation(candidate);
+ if (!ledgerId) return { id: candidate.id, status: 'skipped', reason: 'already_claimed' };
+
+ try {
+ const name = buildModelName(candidate.prompt);
+ const { uid, url } = await uploadModel({
+ glbUrl: candidate.glb_url,
+ name,
+ description: buildDescription({
+ prompt: candidate.prompt,
+ creationId: candidate.id,
+ source: candidate.source,
+ }),
+ tags: buildTags(candidate.model_category),
+ });
+ await sql`
+ update sketchfab_uploads
+ set status = 'uploaded', sketchfab_uid = ${uid}, sketchfab_url = ${url},
+ error = null, updated_at = now()
+ where id = ${ledgerId}
+ `;
+ return { id: candidate.id, status: 'uploaded', source: candidate.source, name, uid, url };
+ } catch (err) {
+ const message = String(err?.message || err).slice(0, 500);
+ await sql`
+ update sketchfab_uploads
+ set status = 'failed', error = ${message}, updated_at = now()
+ where id = ${ledgerId}
+ `.catch(() => {});
+ return { id: candidate.id, status: 'failed', source: candidate.source, error: message };
+ }
+}
+
+// Move recent uploads through Sketchfab's async pipeline: uploaded -> live on
+// SUCCEEDED, -> failed on FAILED (with attempts exhausted, since reprocessing
+// the same GLB fails the same way).
+async function refreshProcessing() {
+ const rows = await sql`
+ select id, sketchfab_uid from sketchfab_uploads
+ where status = 'uploaded' and sketchfab_uid is not null
+ order by updated_at asc
+ limit 10
+ `;
+ const refreshed = [];
+ for (const row of rows) {
+ try {
+ const state = await getProcessingStatus(row.sketchfab_uid);
+ if (state === 'SUCCEEDED') {
+ await sql`
+ update sketchfab_uploads set status = 'live', updated_at = now() where id = ${row.id}
+ `;
+ refreshed.push({ uid: row.sketchfab_uid, status: 'live' });
+ } else if (state === 'FAILED') {
+ await sql`
+ update sketchfab_uploads
+ set status = 'failed', attempts = ${MAX_ATTEMPTS},
+ error = 'sketchfab processing failed', updated_at = now()
+ where id = ${row.id}
+ `;
+ refreshed.push({ uid: row.sketchfab_uid, status: 'failed' });
+ }
+ } catch {
+ // Transient status-read failure: the next run retries.
+ }
+ }
+ return refreshed;
+}
+
+export default wrapCron(async (req, res) => {
+ if (!method(req, res, ['GET'])) return;
+ if (!requireCron(req, res)) return;
+ if (!sketchfabConfigured()) {
+ return json(res, 200, {
+ ok: false,
+ reason: 'not_configured',
+ message: 'SKETCHFAB_API_TOKEN unset; showcase cron is dormant',
+ });
+ }
+
+ const url = new URL(req.url || '/', 'https://three.ws');
+ const dryRun = url.searchParams.get('dry_run') === '1';
+ const limit = uploadsPerRun();
+ const candidates = await selectCandidates(limit);
+
+ if (dryRun) {
+ return json(res, 200, {
+ ok: true,
+ dry_run: true,
+ limit,
+ candidates: candidates.map((c) => ({
+ id: c.id,
+ source: c.source,
+ name: buildModelName(c.prompt),
+ prompt: c.prompt,
+ glb_url: c.glb_url,
+ })),
+ });
+ }
+
+ const refreshed = await refreshProcessing();
+ const results = [];
+ for (const candidate of candidates) {
+ results.push(await pushCandidate(candidate));
+ }
+
+ return json(res, 200, {
+ ok: true,
+ uploaded: results.filter((r) => r.status === 'uploaded').length,
+ failed: results.filter((r) => r.status === 'failed').length,
+ refreshed,
+ results,
+ });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 9ba1c4baf..b62a0e8a7 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-07-14",
+ "title": "The best community models now go to Sketchfab",
+ "summary": "Weekly Forge-Off winners and the top-voted forge board models are now published to the official three.ws account on Sketchfab, the largest public 3D model site. It is a curated showcase, not a firehose: a few community-validated models a week, each clearly tagged as AI-generated, with its generation prompt and a link back to the creation on three.ws so anyone who finds it can remix it or forge their own. Every link is tagged so we can measure how many visitors the showcase actually brings in.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/docs/sketchfab"
+ },
{
"date": "2026-07-14",
"title": "New doc: IRL, agents in the real world",
diff --git a/data/pages.json b/data/pages.json
index 3f7694930..e374e297f 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -1910,6 +1910,14 @@
"changefreq": "monthly",
"added": "2026-06-05"
},
+ {
+ "path": "/docs/sketchfab",
+ "title": "Docs · Sketchfab Showcase",
+ "description": "How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.",
+ "priority": 0.8,
+ "changefreq": "monthly",
+ "added": "2026-07-14"
+ },
{
"path": "/docs/do-i-need-crypto",
"title": "Docs · Do I Need Crypto?",
diff --git a/docs/sketchfab.md b/docs/sketchfab.md
new file mode 100644
index 000000000..20754b816
--- /dev/null
+++ b/docs/sketchfab.md
@@ -0,0 +1,70 @@
+# Sketchfab showcase
+
+The best community-made forge models are published to the official three.ws
+account on [Sketchfab](https://sketchfab.com), the largest public 3D model
+site. Each model page there links back to the creation on three.ws, so the
+showcase doubles as a discovery channel: someone browsing Sketchfab finds a
+model, follows the link, and can remix it or forge their own.
+
+This is a curated feed, not a mirror. Only models the community has already
+validated get pushed, a few per week.
+
+## What gets picked
+
+Selection runs three times a week (Mon/Wed/Fri) and takes up to
+`SKETCHFAB_UPLOADS_PER_RUN` models per run (default 2), in this order:
+
+1. **Weekly Forge-Off winners.** The creation crowned by community vote each
+ week on the [forge board](/forge) is the strongest curation signal on the
+ platform and always goes first.
+2. **Top-voted board models.** Anything with at least one community upvote,
+ highest votes first. Raw unreviewed output is never pushed.
+
+A model is skipped when its GLB exceeds the Sketchfab upload cap (45 MB
+guard), when it was already uploaded, or when it failed three times.
+
+## What an upload looks like
+
+Every published model carries:
+
+- **The generation prompt** at the top of the description, in quotes.
+- **AI disclosure**: the `ai-generated` tag plus a plain statement that the
+ model was AI-generated on the three.ws Forge. Sketchfab has no dedicated
+ AI-content field, so tag + statement is the correct marking.
+- **Backlinks with UTM parameters** (`utm_source=sketchfab`,
+ `utm_medium=referral`, `utm_campaign=showcase`): one to the creation's
+ [share page](/docs/share-and-embed) (`/forge/share/<id>`), one to
+ [/forge](/forge). The UTM tags make Sketchfab referrals measurable in
+ analytics, which decides whether the cadence goes up or down.
+- **Tags**: `ai-generated`, `generative-ai`, `text-to-3d`, `threews`, plus the
+ model's category.
+
+Models are published viewable and inspectable but not downloadable: creations
+belong to their creators, and the showcase does not relicense them.
+
+## How it runs
+
+`GET /api/cron/sketchfab-showcase` (Cloud Scheduler, `Bearer $CRON_SECRET`):
+
+1. Refreshes the async processing status of recent uploads
+ (`uploaded` becomes `live` when Sketchfab finishes processing).
+2. Selects candidates and claims each in the `sketchfab_uploads` ledger
+ before any network call, so a retried or concurrent run can never
+ double-upload.
+3. Downloads the stored GLB and posts it to the
+ [Sketchfab Data API v3](https://docs.sketchfab.com/data-api/v3/index.html)
+ (`POST /v3/models`, multipart).
+
+`?dry_run=1` returns the current selection without uploading anything.
+
+## Configuration
+
+| Env var | Meaning |
+|---|---|
+| `SKETCHFAB_API_TOKEN` | Data API token of the official account (Sketchfab settings, Password & API). Unset: the cron is dormant and skips cleanly. |
+| `SKETCHFAB_UPLOADS_PER_RUN` | Models per run, default 2, clamped 1-5. At the Mon/Wed/Fri schedule the default publishes up to 6 models a week. |
+
+State lives in the `sketchfab_uploads` table (one row per creation:
+`pending`, `uploaded`, `live`, or `failed` with the error recorded). Code:
+[`api/cron/sketchfab-showcase.js`](https://github.com/nirholas/three.ws/blob/main/api/cron/sketchfab-showcase.js)
+and [`api/_lib/sketchfab.js`](https://github.com/nirholas/three.ws/blob/main/api/_lib/sketchfab.js).
diff --git a/docs/start-here.md b/docs/start-here.md
index 12a7af7d8..c668cb6dc 100644
--- a/docs/start-here.md
+++ b/docs/start-here.md
@@ -58,6 +58,8 @@ If you're here to create and share agents rather than write code, follow this pa
3. **[Share & embed](./share-and-embed.md)** — get the embed snippet and put your agent anywhere
4. **[Do I need crypto?](./do-i-need-crypto.md)** — honest answers to the wallet and payment questions
+Make something the community upvotes and it can reach beyond three.ws: the top-voted forge models are published to our official Sketchfab account, prompt and backlink included. See [Sketchfab showcase](./sketchfab.md).
+
---
## Ready to build?
diff --git a/public/changelog.json b/public/changelog.json
index a100f407b..13ff8c4c3 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-14T09:20:07.194Z",
+ "generated_at": "2026-07-14T09:31:47.837Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -16,6 +16,16 @@
"launch"
]
},
+ {
+ "date": "2026-07-14",
+ "type": "launch",
+ "title": "Docs · Sketchfab Showcase",
+ "summary": "How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.",
+ "link": "/docs/sketchfab",
+ "tags": [
+ "launch"
+ ]
+ },
{
"date": "2026-07-14",
"type": "launch",
@@ -57,6 +67,16 @@
"docs"
]
},
+ {
+ "date": "2026-07-14",
+ "type": "update",
+ "title": "The best community models now go to Sketchfab",
+ "summary": "Weekly Forge-Off winners and the top-voted forge board models are now published to the official three.ws account on Sketchfab, the largest public 3D model site. It is a curated showcase, not a firehose: a few community-validated models a week, each clearly tagged as AI-generated, with its generation prompt and a link back to the creation on three.ws so anyone who finds it can remix it or forge their own. Every link is tagged so we can measure how many visitors the showcase actually brings in.",
+ "link": "/docs/sketchfab",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-14",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 56b1f91ff..88c7e8b0e 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -14,6 +14,14 @@
<category>launch</category>
<description>Type a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.</description>
</item>
+ <item>
+ <title>Docs · Sketchfab Showcase</title>
+ <link>https://three.ws/docs/sketchfab</link>
+ <guid isPermaLink="false">2026-07-14:Docs · Sketchfab Showcase</guid>
+ <pubDate>Tue, 14 Jul 2026 12:00:00 GMT</pubDate>
+ <category>launch</category>
+ <description>How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.</description>
+ </item>
<item>
<title>End-User License Agreement</title>
<link>https://three.ws/legal/eula</link>
@@ -46,6 +54,14 @@
<category>docs</category>
<description>The IRL layer finally has a front door in the docs: one page that explains the whole vision and how the shipped pieces fit together. It covers placing an agent at a real GPS spot from your phone, walk-up discovery with proof of presence, paying agents in person via x402, Money Drops (real SOL, USDC, or $THREE escrowed at a place and claimable only by walking up), World Lines (agent-signed proofs that you were really there), and the privacy model that makes it all safe. The docs sidebar now also links the hands-on IRL tutorial, which was previously unreachable from the navigation.</description>
</item>
+ <item>
+ <title>The best community models now go to Sketchfab</title>
+ <link>https://three.ws/docs/sketchfab</link>
+ <guid isPermaLink="false">2026-07-14:The best community models now go to Sketchfab</guid>
+ <pubDate>Tue, 14 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Weekly Forge-Off winners and the top-voted forge board models are now published to the official three.ws account on Sketchfab, the largest public 3D model site. It is a curated showcase, not a firehose: a few community-validated models a week, each clearly tagged as AI-generated, with its generation prompt and a link back to the creation on three.ws so anyone who finds it can remix it or forge their own. Every link is tagged so we can measure how many visitors the showcase actually brings in.</description>
+ </item>
<item>
<title>Tour and Walk SDK update: switch between Stroll and Platformer from the tour controls</title>
<link>https://three.ws/tour-builder</link>
diff --git a/public/features.json b/public/features.json
index a02838c84..7e8cc60cf 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-14T09:20:07.180Z",
+ "generated_at": "2026-07-14T09:31:47.825Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -2327,6 +2327,16 @@
"tags": [],
"showcase": false
},
+ {
+ "path": "/docs/sketchfab",
+ "title": "Docs · Sketchfab Showcase",
+ "description": "How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.",
+ "added": "2026-07-14",
+ "auth": null,
+ "indexable": true,
+ "tags": [],
+ "showcase": false
+ },
{
"path": "/docs/do-i-need-crypto",
"title": "Docs · Do I Need Crypto?",
diff --git a/public/llms-full.txt b/public/llms-full.txt
index c6bc1842a..1a557878e 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -1426,6 +1426,12 @@ URL: https://three.ws/docs/share-and-embed
Three ways to put your agent in front of people: share a link, embed an iframe, or use the web component.
+### Docs · Sketchfab Showcase
+
+URL: https://three.ws/docs/sketchfab
+
+How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.
+
### Docs · Do I Need Crypto?
URL: https://three.ws/docs/do-i-need-crypto
diff --git a/public/llms.txt b/public/llms.txt
index cc0a1f46e..9c7c6d465 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -254,6 +254,7 @@ Docs, tutorials, and reference.
- [Docs · Start Here](https://three.ws/docs/start-here): Plain-language introduction to three.ws for creators and non-developers — what it is, who it’s for, and where to begin.
- [Docs · Make Your First Agent](https://three.ws/docs/make-your-agent): Step-by-step guide to creating a 3D AI agent in the browser with no code required.
- [Docs · Share & Embed](https://three.ws/docs/share-and-embed): Three ways to put your agent in front of people: share a link, embed an iframe, or use the web component.
+- [Docs · Sketchfab Showcase](https://three.ws/docs/sketchfab): How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.
- [Docs · Do I Need Crypto?](https://three.ws/docs/do-i-need-crypto): Honest answers to the wallet and payment questions — what requires crypto, what doesn’t, and how payments work.
- [Docs · Quick Start](https://three.ws/docs/quick-start): Five-minute walkthrough: create an agent, embed it, get a paid call.
- [Docs · Agent System](https://three.ws/docs/agent-system): How agents, avatars, skills, and memories fit together.
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index b10435eb2..b727ba904 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -65,7 +65,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 430 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 431 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -77,7 +77,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 430 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 431 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -1669,7 +1669,7 @@
<section class="sm-section" id="learn">
<header>
- <h2>Learn<span class="sm-count" data-count>63</span></h2>
+ <h2>Learn<span class="sm-count" data-count>64</span></h2>
<p class="sm-section-desc">Docs, tutorials, and reference.</p>
</header>
<ul class="sm-list">
@@ -1743,6 +1743,13 @@
<span class="sm-desc">Three ways to put your agent in front of people: share a link, embed an iframe, or use the web component.</span>
</a>
</li>
+ <li>
+ <a href="/docs/sketchfab">
+ <span class="sm-title">Docs · Sketchfab Showcase</span>
+ <span class="sm-path">/docs/sketchfab</span>
+ <span class="sm-desc">How the best community forge models get published to the official three.ws Sketchfab account: what gets picked, AI disclosure, and the backlinks that make referrals measurable.</span>
+ </a>
+ </li>
<li>
<a href="/docs/do-i-need-crypto">
<span class="sm-title">Docs · Do I Need Crypto?</span>
diff --git a/tests/sketchfab-showcase.test.js b/tests/sketchfab-showcase.test.js
new file mode 100644
index 000000000..261ce89d8
--- /dev/null
+++ b/tests/sketchfab-showcase.test.js
@@ -0,0 +1,81 @@
+import { describe, it, expect } from 'vitest';
+import {
+ buildModelName,
+ buildDescription,
+ buildTags,
+ showcaseLink,
+ GLB_MAX_BYTES,
+} from '../api/_lib/sketchfab.js';
+
+describe('buildModelName', () => {
+ it('title-cases the first clause and strips the leading article', () => {
+ expect(buildModelName('a crystal dragon, perched on obsidian')).toBe('Crystal Dragon');
+ });
+
+ it('never exceeds the 48-char Sketchfab name limit and cuts on a word boundary', () => {
+ const name = buildModelName(
+ 'an intricately detailed victorian steampunk locomotive with brass fittings everywhere',
+ );
+ expect(name.length).toBeLessThanOrEqual(48);
+ expect(name.endsWith(' ')).toBe(false);
+ // A word-boundary cut never ends mid-word relative to the source.
+ expect(name).toBe('Intricately Detailed Victorian Steampunk');
+ });
+
+ it('falls back sanely on empty input', () => {
+ expect(buildModelName('')).toBe('3D Model');
+ });
+});
+
+describe('buildTags', () => {
+ it('always includes the AI disclosure tag first', () => {
+ expect(buildTags()[0]).toBe('ai-generated');
+ });
+
+ it('appends the model category as a slug', () => {
+ expect(buildTags('Sci-Fi Vehicle')).toContain('sci-fi-vehicle');
+ });
+
+ it('does not duplicate a category that matches a base tag', () => {
+ const tags = buildTags('threews');
+ expect(tags.filter((t) => t === 'threews')).toHaveLength(1);
+ });
+});
+
+describe('buildDescription', () => {
+ const base = { prompt: 'a crystal dragon', creationId: 'abc-123', source: 'board_winner' };
+
+ it('carries the prompt, AI disclosure, and both UTM backlinks', () => {
+ const desc = buildDescription(base);
+ expect(desc).toContain('Prompt: "a crystal dragon"');
+ expect(desc).toContain('AI-generated');
+ expect(desc).toContain('/forge/share/abc-123?utm_source=sketchfab');
+ expect(desc).toContain('/forge?utm_source=sketchfab');
+ expect(desc).toContain('utm_campaign=showcase');
+ });
+
+ it('names the curation source', () => {
+ expect(buildDescription(base)).toContain('Forge-Off winner');
+ expect(buildDescription({ ...base, source: 'top_voted' })).toContain('top-voted');
+ });
+
+ it('clamps a huge prompt without ever losing the backlinks', () => {
+ const desc = buildDescription({ ...base, prompt: 'x'.repeat(5000) });
+ expect(desc.length).toBeLessThanOrEqual(1024);
+ expect(desc).toContain('/forge/share/abc-123?utm_source=sketchfab');
+ expect(desc).toContain('utm_campaign=showcase');
+ });
+});
+
+describe('showcaseLink', () => {
+ it('appends UTM params with ? on a bare path and & when a query exists', () => {
+ expect(showcaseLink('/forge')).toMatch(/\/forge\?utm_source=sketchfab/);
+ expect(showcaseLink('/viewer?src=x')).toMatch(/\/viewer\?src=x&utm_source=sketchfab/);
+ });
+});
+
+describe('GLB_MAX_BYTES', () => {
+ it('stays under the Sketchfab basic-plan 50 MB cap', () => {
+ expect(GLB_MAX_BYTES).toBeLessThan(50 * 1024 * 1024);
+ });
+});
diff --git a/vercel.json b/vercel.json
index 0944f2c2f..aa44899c2 100644
--- a/vercel.json
+++ b/vercel.json
@@ -93,6 +93,9 @@
"api/cron/{recompute-reputation,smart-money-graph}.js": {
"maxDuration": 300
},
+ "api/cron/sketchfab-showcase.js": {
+ "maxDuration": 300
+ },
"api/cron/[name].js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 300
@@ -5253,6 +5256,10 @@
"path": "/api/cron/forge-seed-cron",
"schedule": "* * * * *"
},
+ {
+ "path": "/api/cron/sketchfab-showcase",
+ "schedule": "0 15 * * 1,3,5"
+ },
{
"path": "/api/cron/avatar-thumbnail-render",
"schedule": "*/10 * * * *"