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.

28.2 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 http-equiv="X-UA-Compatible" content="IE=edge" />
		<title data-i18n="app_next.meta_title">3D Model Viewer (glTF/GLB) | three.ws</title>
		<meta
			name="viewport"
			content="width=device-width, initial-scale=1, viewport-fit=cover"
		/>
		<meta name="author" content="nirholas" />
		<meta
			name="description"
			content="Drag and drop a glTF or GLB file to inspect it in the browser: orbit the camera, play animations, switch the backdrop, then share or embed the result."
		 data-i18n-attr="content:app_next.meta_description"/>
		<meta
			name="keywords"
			content="three.ws, AI agent, embodied AI, glTF viewer, GLB viewer, 3D model viewer, WebGL, three.js, ERC-8004, agent identity"
		/>
		<meta name="theme-color" content="#070707" />

		<!-- Open Graph -->
		<meta property="og:type" content="website" />
		<meta property="og:title" content="3D Model Viewer: drop in a glTF or GLB"  data-i18n-attr="content:app_next.meta_og_title"/>
		<meta
			property="og:description"
			content="Drag and drop a 3D model to inspect it in the browser: orbit the camera, play animations, switch the backdrop, then share or embed the result."
		 data-i18n-attr="content:app_next.meta_og_description"/>
		<meta property="og:url" content="https://three.ws/app" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Viewer&amp;d=Drag-and-drop+glTF%2FGLB+viewer+for+inspecting+3D+models+in+the+browser.&amp;p=%2Fapp">
		<meta property="og:image:width" content="1200">
		<meta property="og:image:height" content="630">

		<!-- Twitter / X -->
		<meta name="twitter:card" content="summary_large_image" />
		<meta name="twitter:title" content="3D Model Viewer on three.ws"  data-i18n-attr="content:app_next.meta_twitter_title"/>
		<meta
			name="twitter:description"
			content="Drop a glTF or GLB in the browser, orbit it, play its animations, and share or embed the result."
		 data-i18n-attr="content:app_next.meta_twitter_description"/>
		<meta name="twitter:site" content="@trythreews" />
		<meta name="twitter:creator" content="@trythreews" />
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Viewer&amp;d=Drag-and-drop+glTF%2FGLB+viewer+for+inspecting+3D+models+in+the+browser.&amp;p=%2Fapp">

		<link rel="canonical" href="https://three.ws/app" />
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<link rel="stylesheet" href="/style.css" />
		<link rel="stylesheet" href="/fonts/fonts.css" />
		<link rel="stylesheet" href="/app-next.css" />

		<!-- Re-uses the production app boot (real viewer, real agent system, real animations). -->
		<script defer type="module" src="/src/app.js"></script>
		<script defer type="module" src="/src/app-next-overlay.js"></script>
	
	<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Viewer","description":"Drag-and-drop glTF/GLB viewer for inspecting 3D models in the browser.","url":"https://three.ws/app","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="Viewer — three.ws">
</head>
	<body class="app-next-body">
		<!-- Minimal glass header — wordmark left, single action right -->
		<header class="nxt-header">
			<a class="nxt-brand" href="/" aria-label="three.ws home" data-i18n-attr="aria-label:app_next.three_ws_home_arialabel">
				<img class="nxt-brand-mark" src="/three.svg" alt="" aria-hidden="true" />
				<span class="nxt-brand-text">three.ws</span>
				<span class="nxt-brand-tag">app · next</span>
			</a>

			<div class="nxt-header-right">
				<!-- Camera presets — quick framing shortcuts -->
				<div class="nxt-preset-cluster" role="toolbar" aria-label="Camera presets">
					<button
						class="nxt-preset"
						data-preset="face"
						type="button"
						title="Face shot (1)"
					 data-i18n-html="app_next.face" data-i18n-attr="title:app_next.face_shot_1_title">
						<span>Face</span>
					</button>
					<button
						class="nxt-preset is-active"
						data-preset="body"
						type="button"
						title="Body shot (2)"
					 data-i18n-html="app_next.body" data-i18n-attr="title:app_next.body_shot_2_title">
						<span>Body</span>
					</button>
					<button
						class="nxt-preset"
						data-preset="wide"
						type="button"
						title="Wide shot (3)"
					 data-i18n-html="app_next.wide" data-i18n-attr="title:app_next.wide_shot_3_title">
						<span>Wide</span>
					</button>
					<button
						class="nxt-preset"
						data-preset="hero"
						type="button"
						title="Hero shot (4)"
					 data-i18n-html="app_next.hero" data-i18n-attr="title:app_next.hero_shot_4_title">
						<span>Hero</span>
					</button>
				</div>

				<button
					class="nxt-icon-btn"
					id="nxt-fullscreen-btn"
					type="button"
					aria-label="Fullscreen (F)"
					title="Fullscreen (F)"
				 data-i18n-attr="aria-label:app_next.fullscreen_f_arialabel;title:app_next.fullscreen_f_title">
					<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
						<path d="M2 6V2h4M14 6V2h-4M2 10v4h4M14 10v4h-4" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" />
					</svg>
				</button>

				<button
					class="nxt-icon-btn"
					id="nxt-share-btn"
					type="button"
					aria-label="Share / embed (S)"
					title="Share / embed (S)"
				 data-i18n-attr="aria-label:app_next.share_embed_s_arialabel;title:app_next.share_embed_s_title">
					<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
						<circle cx="4" cy="8" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<circle cx="12" cy="3.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<circle cx="12" cy="12.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<path d="M5.4 7.2l5.2-3M5.4 8.8l5.2 3" stroke="currentColor" stroke-width="1.4" fill="none" />
					</svg>
				</button>

				<button
					class="nxt-more"
					id="nxt-more-btn"
					type="button"
					aria-haspopup="true"
					aria-expanded="false"
					aria-controls="nxt-more-menu"
				>
					<span data-i18n="app_next.explore">Explore</span>
					<svg viewBox="0 0 12 8" width="10" height="7" aria-hidden="true">
						<path d="M1 1l5 5 5-5" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" />
					</svg>
				</button>

				<!-- Auth surface — single pill, swaps to user chip when signed in -->
				<div class="nxt-auth">
					<a class="nxt-signin" id="nav-sign-in" href="/login" data-i18n="app_next.sign_in">Sign in</a>
					<div class="nav-user-wrap" id="nav-user-wrap" hidden>
						<button
							class="nxt-user-btn nav-user"
							id="nav-user-btn"
							type="button"
							aria-haspopup="true"
							aria-expanded="false"
						 data-i18n-html="app_next.account">
							<span class="nxt-user-dot" aria-hidden="true"></span>
							<span id="nav-user-label">Account</span>
						</button>
						<div class="nav-user-menu nxt-user-menu" id="nav-user-menu" role="menu" hidden>
							<a href="/profile" id="nav-my-profile-link" role="menuitem" data-i18n="app_next.my_profile">My profile</a>
							<a href="/dashboard" role="menuitem" data-i18n="app_next.dashboard">Dashboard</a>
							<a href="/settings" role="menuitem" data-i18n="app_next.settings">Settings</a>
							<div class="nxt-user-sep" role="separator"></div>
							<button id="nav-sign-out-btn" type="button" role="menuitem" data-i18n="app_next.sign_out">Sign out</button>
						</div>
					</div>
				</div>
			</div>
		</header>

		<!-- Main viewer surface — full bleed, the avatar IS the page -->
		<main class="wrap nxt-main">
			<!-- The page is a full-bleed stage: the viewer canvas IS the content, so
			     the document heading is for assistive tech and search engines only. -->
			<h1 class="sr-only" data-i18n="app_next.page_heading">
				3D model viewer: drag and drop a glTF or GLB file
			</h1>

			<!-- Switchable scene backdrop — bottommost layer behind the transparent canvas.
			     Painted by app-next-overlay.js (saved preset, picker, or agent chat). -->
			<div class="nxt-stage-backdrop" id="nxt-stage-backdrop" aria-hidden="true"></div>

			<!-- The 3D viewer (required by app.js) -->
			<div class="viewer-container nxt-viewer" id="viewer-container"></div>

			<!-- Floor glow + edge vignette (sits behind the transparent canvas) -->
			<div class="nxt-stage-floor" aria-hidden="true"></div>
			<div class="nxt-stage-vignette" aria-hidden="true"></div>

			<!-- Visitor agent card — shown to unauthenticated visitors when ?agent= is present -->
			<aside class="nxt-visitor-card" id="nxt-visitor-card" hidden>
				<div class="nxt-visitor-card__inner">
					<div class="nxt-visitor-card__head">
						<div class="nxt-visitor-card__avatar" id="nxt-visitor-avatar">
							<div class="nxt-visitor-card__avatar-shimmer"></div>
						</div>
						<div class="nxt-visitor-card__info">
							<h2 class="nxt-visitor-card__name" id="nxt-visitor-name"></h2>
							<div class="nxt-visitor-card__status">
								<span class="nxt-visitor-card__dot"></span>
								<span id="nxt-visitor-status" data-i18n="app_next.online">Online</span>
							</div>
						</div>
					</div>
					<p class="nxt-visitor-card__desc" id="nxt-visitor-desc"></p>
					<div class="nxt-visitor-card__skills" id="nxt-visitor-skills" hidden></div>
					<div class="nxt-visitor-card__actions">
						<a class="nxt-visitor-card__btn nxt-visitor-card__btn--primary" href="/register" data-i18n="app_next.create_your_own_agent">Create your own agent</a>
						<button class="nxt-visitor-card__btn nxt-visitor-card__btn--share" id="nxt-visitor-share" type="button">
							<svg viewBox="0 0 16 16" width="13" height="13" aria-hidden="true">
								<circle cx="4" cy="8" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
								<circle cx="12" cy="3.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
								<circle cx="12" cy="12.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
								<path d="M5.4 7.2l5.2-3M5.4 8.8l5.2 3" stroke="currentColor" stroke-width="1.4" fill="none" />
							</svg>
							Share
						</button>
					</div>
				</div>
			</aside>

			<!-- Mobile agent info strip — compact bar visible on small screens for agent pages -->
			<div class="nxt-mobile-agent-strip" id="nxt-mobile-agent-strip" hidden>
				<div class="nxt-mobile-agent-strip__avatar" id="nxt-mobile-avatar">
					<span class="nxt-mobile-agent-strip__dot"></span>
				</div>
				<div class="nxt-mobile-agent-strip__info">
					<span class="nxt-mobile-agent-strip__name" id="nxt-mobile-name"></span>
					<span class="nxt-mobile-agent-strip__desc" id="nxt-mobile-desc"></span>
				</div>
				<button class="nxt-mobile-agent-strip__share" id="nxt-mobile-share" type="button" aria-label="Share agent" data-i18n-attr="aria-label:app_next.share_agent_arialabel">
					<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
						<circle cx="4" cy="8" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<circle cx="12" cy="3.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<circle cx="12" cy="12.5" r="1.6" stroke="currentColor" stroke-width="1.4" fill="none" />
						<path d="M5.4 7.2l5.2-3M5.4 8.8l5.2 3" stroke="currentColor" stroke-width="1.4" fill="none" />
					</svg>
				</button>
			</div>

			<!-- Loading poster skeleton — shown when no thumbnail is available during load -->
			<div class="nxt-poster-skeleton" id="nxt-poster-skeleton" hidden aria-hidden="true">
				<div class="nxt-poster-skeleton__silhouette"></div>
				<div class="nxt-poster-skeleton__shimmer"></div>
			</div>

			<!-- Live agent chat reply — speech-bubble style above the avatar -->
			<div class="nxt-agent-bubble" id="nxt-agent-bubble" hidden>
				<div class="nxt-agent-bubble__inner">
					<span class="nxt-agent-bubble__dot" aria-hidden="true"></span>
					<span class="nxt-agent-bubble__text" id="nxt-agent-bubble-text"></span>
				</div>
			</div>

			<!-- Chat dock — rotating prompt chips above pinned input -->
			<div class="nxt-chat-dock" id="nxt-chat-dock">
				<div class="nxt-chat-chips" id="nxt-chat-chips" role="list" aria-label="Suggested prompts">
					<!-- chips injected by overlay JS -->
				</div>
				<form class="nxt-chat-input-wrap" id="nxt-chat-form">
					<svg class="nxt-chat-input-icon" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
						<path d="M3 5h10M3 8h7M3 11h10" stroke="currentColor" stroke-width="1.4" fill="none" stroke-linecap="round" />
					</svg>
					<input
						class="nxt-chat-input"
						id="nxt-chat-input"
						type="text"
						placeholder="Ask the agent…"
						autocomplete="off"
						maxlength="500"
						aria-label="Message the agent"
					/>
					<button
						class="nxt-chat-mic"
						id="nxt-chat-mic"
						type="button"
						aria-label="Push to talk (hold space)"
						title="Push to talk (hold space)"
						hidden
					 data-i18n-attr="aria-label:app_next.push_to_talk_hold_space_arialabel;title:app_next.push_to_talk_hold_space_title">
						<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
							<rect x="6" y="2" width="4" height="8" rx="2" stroke="currentColor" stroke-width="1.4" fill="none" />
							<path d="M3 8a5 5 0 0010 0M8 13v2M5.5 15h5" stroke="currentColor" stroke-width="1.4" fill="none" stroke-linecap="round" />
						</svg>
					</button>
					<button
						class="nxt-chat-send"
						id="nxt-chat-send"
						type="submit"
						aria-label="Send"
					 data-i18n-attr="aria-label:app_next.send_arialabel">
						<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
							<path d="M2 8L14 2L9 14L7.5 9.5L2 8z" stroke="currentColor" stroke-width="1.4" fill="none" stroke-linejoin="round" />
						</svg>
					</button>
				</form>
			</div>

			<!-- Secondary action bar — animations / upload / save below the chat dock -->
			<div class="nxt-action-bar nxt-action-bar--secondary">
				<button
					class="nxt-action nxt-action--ghost"
					id="nxt-anim-btn"
					type="button"
					aria-haspopup="true"
					aria-expanded="false"
					aria-controls="nxt-anim-sheet"
					title="Browse animations (A)"
				 data-i18n-attr="title:app_next.browse_animations_a_title">
					<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
						<circle cx="10" cy="10" r="7.5" stroke="currentColor" stroke-width="1.5" fill="none" />
						<path d="M8 7.5l4.5 2.5L8 12.5z" fill="currentColor" />
					</svg>
					<span>Animations</span>
					<kbd>A</kbd>
				</button>

				<button
					class="nxt-action nxt-action--ghost"
					id="nxt-avatar-btn"
					type="button"
					title="Switch avatar from the gallery"
				 data-i18n-attr="title:app_next.switch_avatar_from_the_galle_title">
					<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
						<circle cx="10" cy="7" r="3.2" stroke="currentColor" stroke-width="1.5" fill="none" />
						<path d="M4.5 16c.8-3 3-4.5 5.5-4.5s4.7 1.5 5.5 4.5" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" />
					</svg>
					<span>Avatar</span>
				</button>

				<div class="nxt-backdrop-wrap">
					<button
						class="nxt-action nxt-action--ghost"
						id="nxt-backdrop-btn"
						type="button"
						aria-haspopup="true"
						aria-expanded="false"
						aria-controls="nxt-backdrop-popover"
						title="Change the scene backdrop"
					 data-i18n-attr="title:app_next.change_the_scene_backdrop_title">
						<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
							<rect x="3" y="4" width="14" height="12" rx="2" stroke="currentColor" stroke-width="1.5" fill="none" />
							<circle cx="7.5" cy="8" r="1.4" fill="currentColor" />
							<path d="M4 14l3.5-3.5L11 14l2.5-2.5L16 14" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" />
						</svg>
						<span>Backdrop</span>
					</button>

					<div class="nxt-backdrop-popover" id="nxt-backdrop-popover" role="menu" aria-label="Scene backdrops" hidden>
						<div class="nxt-backdrop-popover__head">Backdrop</div>
						<div class="nxt-backdrop-grid" id="nxt-backdrop-grid"></div>
					</div>
				</div>

				<label class="nxt-action nxt-action--ghost" for="file-input" title="Drop or pick a GLB/glTF (U)" data-i18n-attr="title:app_next.drop_or_pick_a_glb_gltf_u_title">
					<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
						<path d="M10 3v9m-4-4l4-4 4 4M4 15h12" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round" />
					</svg>
					<span>Upload model</span>
					<kbd>U</kbd>
					<input type="file" name="file-input[]" id="file-input" multiple hidden />
				</label>

				<a
					class="nxt-action nxt-action--deploy"
					id="nxt-deploy-btn"
					hidden
					aria-label="Deploy this 3D asset on Solana"
					title="Deploy on Solana — guided on-chain deployment for 3D assets"
				 data-i18n-attr="aria-label:app_next.deploy_this_3d_asset_on_sola_arialabel;title:app_next.deploy_on_solana_guided_on_c_title">
					<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
						<polygon points="10 2 18 7 18 13 10 18 2 13 2 7 10 2" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
						<line x1="10" y1="2" x2="10" y2="18" stroke="currentColor" stroke-width="1.5" />
						<polyline points="18 7 10 12 2 7" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
					</svg>
					<span id="nxt-deploy-label" data-state-label>Deploy on Solana</span>
				</a>

				<button
					class="nxt-action nxt-action--primary"
					id="nxt-primary"
					type="button"
				>
					<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
						<path d="M5 11l3 3 7-7" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" />
					</svg>
					<span id="nxt-primary-label" data-i18n="app_next.sign_in_to_save">Sign in to save</span>
				</button>
			</div>

			<!--
				Hidden DOM hosts that /src/app.js drives directly (href, hidden,
				[data-state-label]). The Next overlay mirrors their state into the
				visible "Deploy on-chain" UI above and inside the share popover —
				keep IDs and inner structure stable.
			-->
			<div class="nxt-hidden-hosts" aria-hidden="true" hidden>
				<a id="deploy-onchain-btn" hidden data-i18n-html="app_next.deploy_on_solana"><span data-state-label>Deploy on Solana</span></a>
				<a id="view-public-profile-btn" hidden></a>
			</div>

			<!-- Animation picker sheet — slides up when "Animations" is clicked -->
			<div class="nxt-anim-sheet" id="nxt-anim-sheet" hidden aria-hidden="true">
				<div class="nxt-anim-sheet__head">
					<h2 data-i18n="app_next.animations">Animations</h2>
					<button class="nxt-anim-sheet__close" id="nxt-anim-sheet-close" type="button" aria-label="Close" data-i18n-attr="aria-label:app_next.close_arialabel">×</button>
				</div>
				<div class="nxt-anim-sheet__filter">
					<input
						class="nxt-anim-search"
						id="nxt-anim-search"
						type="search"
						placeholder="Search animations… (idle, wave, jump)"
						autocomplete="off"
						aria-label="Search animations"
						data-i18n-attr="aria-label:app_next.search_animations_arialabel;placeholder:app_next.search_animations_placeholder"
					/>
				</div>
				<div class="nxt-anim-grid" id="nxt-anim-grid">
					<div class="nxt-anim-empty">Loading clips…</div>
				</div>
			</div>

			<!-- Share / embed popover -->
			<div class="nxt-share-popover" id="nxt-share-popover" hidden role="dialog" aria-labelledby="nxt-share-title">
				<header class="nxt-share-popover__head">
					<h2 id="nxt-share-title" data-i18n="app_next.share_this_agent">Share this agent</h2>
					<button class="nxt-share-close" id="nxt-share-close" type="button" aria-label="Close" data-i18n-attr="aria-label:app_next.close_arialabel_2">×</button>
				</header>
				<div class="nxt-share-popover__body">
					<label class="nxt-share-row">
						<span class="nxt-share-label" data-i18n="app_next.page_url">Page URL</span>
						<div class="nxt-share-copy">
							<input id="nxt-share-url" type="text" readonly />
							<button id="nxt-share-url-copy" type="button" data-i18n="app_next.copy">Copy</button>
						</div>
					</label>
					<label class="nxt-share-row">
						<span class="nxt-share-label" data-i18n="app_next.embed_snippet">Embed snippet</span>
						<div class="nxt-share-copy nxt-share-copy--block">
							<textarea id="nxt-share-embed" rows="3" readonly></textarea>
							<button id="nxt-share-embed-copy" type="button" data-i18n="app_next.copy_2">Copy</button>
						</div>
					</label>
					<p class="nxt-share-hint" data-i18n="app_next.drop_the_snippet_on_any_site_same">Drop the snippet on any site. Same agent, same animations, same identity — embedded.</p>

					<div class="nxt-share-social" id="nxt-share-social">
						<span class="nxt-share-label" data-i18n="app_next.share_on">Share on</span>
						<div class="nxt-share-social__row">
							<button class="nxt-share-social__btn" id="nxt-share-twitter" type="button" title="Share on X / Twitter" data-i18n-attr="title:app_next.share_on_x_twitter_title">
								<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
							</button>
							<button class="nxt-share-social__btn" id="nxt-share-farcaster" type="button" title="Share on Farcaster" data-i18n-attr="title:app_next.share_on_farcaster_title">
								<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5.362 2h13.276v2.227h-1.554l.685 2.226H19.2l-.685 2.227h-.685v10.548c0 .37-.146.724-.407.985a1.394 1.394 0 01-.984.407h-.068c-.37 0-.724-.147-.985-.407a1.394 1.394 0 01-.407-.985v-5.82a2.786 2.786 0 00-2.786-2.786h-.396a2.786 2.786 0 00-2.786 2.786v5.82c0 .37-.147.724-.407.985a1.394 1.394 0 01-.985.407h-.068c-.37 0-.724-.147-.985-.407a1.394 1.394 0 01-.407-.985V8.68h-.685L5.8 6.453h1.43l.686-2.226H6.362z"/></svg>
							</button>
							<button class="nxt-share-social__btn" id="nxt-share-telegram" type="button" title="Share on Telegram" data-i18n-attr="title:app_next.share_on_telegram_title">
								<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>
							</button>
						</div>
					</div>

					<div class="nxt-share-divider" id="nxt-share-deploy-divider" hidden role="presentation"></div>
					<a
						class="nxt-share-deploy"
						id="nxt-share-deploy"
						hidden
						aria-label="Deploy this 3D asset on Solana"
					 data-i18n-attr="aria-label:app_next.deploy_this_3d_asset_on_sola_arialabel_2">
						<span class="nxt-share-deploy__icon" aria-hidden="true">
							<svg viewBox="0 0 20 20" width="16" height="16">
								<polygon points="10 2 18 7 18 13 10 18 2 13 2 7 10 2" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
								<line x1="10" y1="2" x2="10" y2="18" stroke="currentColor" stroke-width="1.5" />
								<polyline points="18 7 10 12 2 7" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
							</svg>
						</span>
						<span class="nxt-share-deploy__copy">
							<span class="nxt-share-deploy__title" id="nxt-share-deploy-label" data-state-label>Deploy on Solana</span>
							<span class="nxt-share-deploy__sub" id="nxt-share-deploy-sub">Hand off to the deployment agent — put this 3D asset on Solana.</span>
						</span>
						<svg class="nxt-share-deploy__chev" viewBox="0 0 16 16" width="12" height="12" aria-hidden="true">
							<path d="M5 3l5 5-5 5" stroke="currentColor" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round" />
						</svg>
					</a>
				</div>
			</div>

			<!-- Spinner required by app.js -->
			<div class="spinner"></div>
		</main>

		<!-- First-visit hint -->
		<div class="nxt-first-hint" id="nxt-first-hint" hidden>
			<span data-i18n-html="app_next.drag_to_rotate_scroll_to_zoom_or">Drag to rotate · scroll to zoom · or just <strong>ask the agent</strong> something below.</span>
			<button id="nxt-first-hint-close" type="button" aria-label="Dismiss" data-i18n-attr="aria-label:app_next.dismiss_arialabel">×</button>
		</div>

		<!-- Keyboard help (toggled with ?) -->
		<div class="nxt-help" id="nxt-help" hidden role="dialog" aria-labelledby="nxt-help-title">
			<header class="nxt-help__head">
				<h2 id="nxt-help-title" data-i18n="app_next.keyboard_shortcuts">Keyboard shortcuts</h2>
				<button class="nxt-help__close" id="nxt-help-close" type="button" aria-label="Close" data-i18n-attr="aria-label:app_next.close_arialabel_3">×</button>
			</header>
			<dl class="nxt-help__grid">
				<dt data-i18n-html="app_next.a"><kbd>A</kbd></dt><dd data-i18n="app_next.open_animation_picker">Open animation picker</dd>
				<dt data-i18n-html="app_next.u"><kbd>U</kbd></dt><dd data-i18n="app_next.upload_a_model">Upload a model</dd>
				<dt data-i18n-html="app_next.s"><kbd>S</kbd></dt><dd data-i18n="app_next.share_embed">Share / embed</dd>
				<dt data-i18n-html="app_next.f"><kbd>F</kbd></dt><dd data-i18n="app_next.fullscreen">Fullscreen</dd>
				<dt><kbd>/</kbd></dt><dd data-i18n="app_next.focus_chat_input">Focus chat input</dd>
				<dt><kbd>1</kbd>–<kbd>4</kbd></dt><dd data-i18n="app_next.camera_presets_face_body_wide_hero">Camera presets (Face / Body / Wide / Hero)</dd>
				<dt data-i18n-html="app_next.space"><kbd>Space</kbd></dt><dd data-i18n="app_next.push_to_talk_if_mic_available">Push-to-talk (if mic available)</dd>
				<dt data-i18n-html="app_next.esc"><kbd>Esc</kbd></dt><dd data-i18n="app_next.close_any_open_panel">Close any open panel</dd>
				<dt><kbd>?</kbd></dt><dd data-i18n="app_next.show_this_help">Show this help</dd>
			</dl>
		</div>

		<!-- Live toast region -->
		<div class="nxt-toast" id="nxt-toast" role="status" aria-live="polite" hidden></div>

		<!-- Explore dropdown — lives outside <header> so backdrop-filter
		     does not clip the menu below the header's bottom edge. -->
		<div class="nxt-more-menu" id="nxt-more-menu" role="menu" hidden>
			<a href="/discover" role="menuitem" data-i18n="app_next.discover_agents">Discover agents</a>
			<a href="/create" role="menuitem" data-i18n="app_next.create_an_avatar">Create an avatar</a>
			<a href="/marketplace" role="menuitem" data-i18n="app_next.marketplace">Marketplace</a>
			<a href="/studio" role="menuitem" data-i18n="app_next.studio">Studio</a>
			<a href="/docs" role="menuitem" data-i18n="app_next.docs">Docs</a>
			<div class="nxt-more-sep" role="separator"></div>
			<a href="/app-classic" role="menuitem" data-i18n="app_next.classic_viewer">Classic viewer</a>
		</div>
		<script src="/brand.js" defer></script>
		<script src="/getting-started.js" defer></script>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>