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.

11.3 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<script>
			/* three.ws theme boot (no-flash); runtime in /theme-switcher.js */ (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 data-i18n="examples.page_title">Examples: everything a 3D AI agent can do · three.ws</title>
		<meta
			name="description"
			data-i18n-attr="content:examples.meta_desc"
			content="Runnable examples across four lanes: embed a 3D avatar, generate and measure 3D models on the free text-to-3D API, define an agent entirely as files, and read the x402 payment handshake agents trade on. Every snippet runs on the page against live production APIs."
		/>
		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:url" content="https://three.ws/examples" />
		<meta property="og:title" data-i18n-attr="content:examples.share_title" content="Examples: everything a 3D AI agent can do · three.ws" />
		<meta
			property="og:description"
			data-i18n-attr="content:examples.og_desc"
			content="Runnable examples for 3D avatars, model generation, file-defined agents, and the agent economy. Run them here, copy them anywhere."
		/>
		<meta
			property="og:image"
			content="https://three.ws/api/page-og?s=learn&amp;t=Examples&amp;d=Runnable+three.ws+examples%3A+copy-paste+snippets+that+execute+on+the+page+against+the+production+CDN+bundle%2C+plus+every+example+that+ships+in+the+repository&amp;p=%2Fexamples"
		/>
		<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="twitter:title" data-i18n-attr="content:examples.share_title" content="Examples: everything a 3D AI agent can do · three.ws" />
		<meta
			name="twitter:description"
			data-i18n-attr="content:examples.twitter_desc"
			content="Runnable examples for 3D avatars, model generation, file-defined agents, and the agent economy. Real APIs, real data."
		/>
		<meta
			name="twitter:image"
			content="https://three.ws/api/page-og?s=learn&amp;t=Examples&amp;d=Runnable+three.ws+examples%3A+copy-paste+snippets+that+execute+on+the+page+against+the+production+CDN+bundle%2C+plus+every+example+that+ships+in+the+repository&amp;p=%2Fexamples"
		/>
		<meta name="theme-color" content="#0a0a0a" />
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<link rel="stylesheet" href="/fonts/fonts.css" />
		<link rel="stylesheet" href="/nav.css" />
		<link rel="stylesheet" href="/src/ui-juice.css" />
		<link rel="stylesheet" href="/examples.css" />
		<link rel="stylesheet" href="/footer.css" />
		<script defer src="/footer-newsletter.js"></script>
		<link rel="canonical" href="https://three.ws/examples" />
		<script type="application/ld+json">
			{
				"@context": "https://schema.org",
				"@type": "WebPage",
				"name": "Examples: everything a 3D AI agent can do",
				"description": "Runnable examples across four lanes: embedding a 3D avatar, generating and measuring 3D models, defining an agent as files, and reading the machine-payable agent economy.",
				"url": "https://three.ws/examples",
				"isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
			}
		</script>
		<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
		<meta property="og:locale" content="en_US" />
		<meta
			property="og:image:alt"
			content="Runnable three.ws examples for avatars, 3D models, agents, and the agent economy"
		/>
	</head>
	<body>
		<header><div id="nav-container"></div></header>
		<script src="/nav.js"></script>

		<main class="exg-shell">
			<section class="exg-hero">
				<p class="exg-kicker" data-i18n-html="examples.kicker">
					<span class="exg-live-dot" aria-hidden="true"></span> Every snippet runs on this
					page
				</p>
				<h1 class="exg-title" data-i18n-html="examples.title">Everything an agent <em>can do</em></h1>
				<p class="exg-sub">
					<span id="exg-count">17</span> <span data-i18n="examples.sub_label">runnable examples across</span>
					<span id="exg-lane-count">4</span> <span data-i18n-html="examples.sub_label2">lanes: embedding a 3D body, generating and
					measuring the models themselves, defining an agent as files, and reading the
					machine-payable economy those agents trade in. Each one is a complete HTML
					document that loads the production
					<a href="https://three.ws/agent-3d/latest/agent-3d.js">CDN bundle</a> and calls
					the production APIs. Press <strong>Run</strong> and the exact code shown
					executes in a frame on this page against live data; press
					<strong>Copy</strong> and paste it into any HTML page on any domain. Filter by
					name or tag to find one. Deeper walkthroughs live in the
					<a href="/tutorials">tutorials</a>, recipes for the 3D API in the
					<a href="/cookbook">cookbook</a>, and interactive lab pages in
					<a href="/demos">demos</a>.</span>
				</p>
			</section>

			<div id="exg-lanes"></div>

			<section class="exg-more" aria-labelledby="exg-more-h" data-role="ex-browse">
				<h2 id="exg-more-h" data-i18n="examples.more_h">Every example in the repo</h2>
				<p data-i18n="examples.more_p">
					Beyond the single-file snippets above, the repository ships complete example
					projects and an example folder beside each SDK and published package: agents
					defined entirely as files, installable skill bundles, and scripts that drive the
					MCP and payment surfaces end to end. This list is generated by scanning the
					repository, so it cannot advertise an example that was deleted or miss one that
					was added. Each card shows the files it contains and the command that runs it.
				</p>

				<div
					class="exi-toolbar"
					role="toolbar"
					aria-label="Search and filter repository examples"
					data-i18n-attr="aria-label:examples.toolbar_aria"
				>
					<div class="exi-search-wrap">
						<svg
							class="exi-search-icon"
							width="14"
							height="14"
							viewBox="0 0 24 24"
							fill="none"
							stroke="currentColor"
							stroke-width="2"
							stroke-linecap="round"
							stroke-linejoin="round"
							aria-hidden="true"
						>
							<circle cx="11" cy="11" r="8" />
							<line x1="21" y1="21" x2="16.65" y2="16.65" />
						</svg>
						<input
							type="search"
							class="exi-search"
							data-role="ex-search"
							placeholder="Search all examples…"
							aria-label="Search all repository examples"
							autocomplete="off"
							data-i18n-attr="placeholder:examples.search_placeholder;aria-label:examples.search_aria"
						/>
					</div>
					<span class="exi-count" data-role="ex-count" aria-live="polite"></span>
				</div>

				<div
					class="exi-chips"
					data-role="ex-chips"
					role="tablist"
					aria-label="Filter examples by kind"
					data-i18n-attr="aria-label:examples.chips_aria"
				></div>
				<p class="exi-sr" data-role="ex-live" aria-live="polite"></p>

				<div class="exi-grid" data-role="ex-loading" aria-label="Loading examples" data-i18n-attr="aria-label:examples.loading_aria">
					<div class="exi-skeleton"></div>
					<div class="exi-skeleton"></div>
					<div class="exi-skeleton"></div>
					<div class="exi-skeleton"></div>
					<div class="exi-skeleton"></div>
					<div class="exi-skeleton"></div>
				</div>

				<div class="exi-grid" data-role="ex-grid" hidden></div>

				<div class="exi-state" data-role="ex-empty-search" hidden>
					<h3 data-i18n="examples.empty_h">No matches</h3>
					<p data-i18n="examples.empty_p">No examples match your search or the selected kind.</p>
					<button type="button" class="exi-btn exi-btn--ghost" data-role="ex-clear" data-i18n="examples.clear_filters">
						Clear filters
					</button>
				</div>

				<div class="exi-state" data-role="ex-error" hidden>
					<h3 data-i18n="examples.error_h">Couldn't load the example index</h3>
					<p data-role="ex-error-msg">Something went wrong loading the example index.</p>
					<button type="button" class="exi-btn exi-btn--ghost" data-role="ex-retry" data-i18n="examples.try_again">
						Try again
					</button>
				</div>

				<h3 class="exi-subhead" data-i18n="examples.start_with">Start with these</h3>
				<div class="exg-more-grid">
					<a
						class="exg-more-card"
						href="https://github.com/nirholas/three.ws/tree/main/examples/coach-leo"
						target="_blank"
						rel="noopener"
					>
						<strong>coach-leo</strong>
						<span data-i18n="examples.card_coach_leo"
							>The smallest complete agent defined as files: manifest, system prompt,
							one skill. The template to copy.</span
						>
					</a>
					<a
						class="exg-more-card"
						href="https://github.com/nirholas/three.ws/tree/main/examples/three-concierge"
						target="_blank"
						rel="noopener"
					>
						<strong>three-concierge</strong>
						<span data-i18n="examples.card_three_concierge"
							>Trinity, the reference agent for manifest spec 0.2: pump.fun skills,
							extended thinking, discovery card.</span
						>
					</a>
					<a
						class="exg-more-card"
						href="https://github.com/nirholas/three.ws/tree/main/examples/skills"
						target="_blank"
						rel="noopener"
					>
						<strong>skills</strong>
						<span data-i18n="examples.card_skills"
							>Six installable skill bundles with documented tools, config, and safety
							caps.</span
						>
					</a>
					<a
						class="exg-more-card"
						href="https://github.com/nirholas/three.ws/tree/main/examples/agent-native-3d"
						target="_blank"
						rel="noopener"
					>
						<strong>agent-native-3d</strong>
						<span data-i18n="examples.card_agent_native_3d"
							>A Node script that generates a mesh, rigs it, saves it as an agent
							persona, and speaks through it via MCP.</span
						>
					</a>
					<a
						class="exg-more-card"
						href="https://github.com/nirholas/three.ws/tree/main/examples/monicas-apartment"
						target="_blank"
						rel="noopener"
					>
						<strong>monicas-apartment</strong>
						<span data-i18n="examples.card_monicas_apartment"
							>A walkable first-person Three.js scene in one self-contained HTML file.
							No server at all.</span
						>
					</a>
					<a class="exg-more-card" href="/docs/examples">
						<strong data-i18n="examples.card_doc_title">Examples doc</strong>
						<span data-i18n="examples.card_doc"
							>The written companion: every example annotated with what it
							demonstrates and where the pieces live.</span
						>
					</a>
				</div>
			</section>
		</main>

		<script src="/examples.js" defer></script>
		<script src="/examples-index.js" defer></script>
		<script src="/brand.js" defer></script>
		<div id="footer-container"></div>
		<script src="/footer.js"></script>
		<script type="module" src="/i18n.js"></script>
	</body>
</html>