Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
<!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" />
<title data-i18n="forgot_password.meta_title">Forgot password · three.ws</title>
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/auth.css" />
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js" integrity="sha384-wjsPzEO+lXOf7d9csIDfAQpPt2OKuUU3m0K9qsdKIuzX4N8czSF6hdh23eAbZa3p" crossorigin="anonymous"
></script>
<style>
:root { color-scheme: dark; }
body { background: #000; color: #f0f0f0; }
a { color: #c8d0e0; text-decoration: none; }
a:hover { color: #fff; }
.shell {
background: #0c0c0c;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.03),
0 30px 80px rgba(0, 0, 0, 0.85),
0 0 120px rgba(200, 210, 255, 0.04);
}
.card {
background: #0c0c0c;
border: 0;
border-radius: 0;
padding: 56px 56px;
flex: 1;
width: 100%;
max-width: 520px;
display: flex;
flex-direction: column;
justify-content: center;
overflow-y: auto;
}
@media (max-width: 860px) {
.card { padding: 32px 28px; max-width: none; }
}
h1 {
font-size: 22px;
font-weight: 600;
margin: 0 0 4px;
letter-spacing: -0.02em;
color: #fff;
}
.sub {
color: #888;
margin: 0 0 22px;
font-size: 14px;
}
.brand {
margin: 0 0 18px;
text-decoration: none;
display: inline-block;
opacity: 0.85;
transition: opacity 0.15s;
}
.brand img { height: 40px; width: auto; display: block; }
.brand:hover { opacity: 1; }
/* Label, hint and footer sit on the #0c0c0c card, where the previous
#666 / #555 greys measured 3.4:1 and 2.6:1 against it and failed
WCAG AA for body text. These clear 4.5:1 while staying subdued. */
label {
display: block;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.02em;
color: #8a8a8a;
margin: 16px 0 6px;
text-transform: uppercase;
transition: color 0.1s ease;
}
label.lit { color: #bbb; }
input {
width: 100%;
padding: 11px 14px;
background: #060606;
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 10px;
color: #f0f0f0;
font-size: 15px;
transition: border-color 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
input::placeholder { color: #333; }
input:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.45);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
background: #080808;
}
.field-hint {
font-size: 12px;
margin-top: 4px;
color: #808080;
transition: color 0.15s;
}
button {
width: 100%;
margin-top: 20px;
padding: 12px 16px;
border: 0;
border-radius: 10px;
background: #fff;
color: #000;
font-weight: 600;
font-size: 15px;
cursor: pointer;
letter-spacing: -0.01em;
transition: background 0.15s, opacity 0.15s, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
button:hover:not(:disabled) { background: #e8ecf4; }
button:active:not(:disabled) { transform: scale(0.965); }
button:disabled { opacity: 0.35; cursor: default; }
.err {
margin-top: 14px;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #aaa;
font-size: 13px;
}
/* The tick belongs to the state, not to the sentence: keeping it in CSS
leaves the translatable string free of a leading glyph. */
.field-hint.valid::before { content: '\2713\00a0'; }
.ok {
margin-top: 14px;
padding: 10px 12px;
background: rgba(92, 200, 130, 0.08);
border: 1px solid rgba(92, 200, 130, 0.3);
border-radius: 8px;
color: #b3e6c4;
font-size: 13px;
}
.foot {
margin-top: 22px;
text-align: center;
font-size: 13px;
color: #808080;
}
</style>
<meta name="description" content="Request a password-reset email." data-i18n-attr="content:forgot_password.meta_description">
<link rel="canonical" href="https://three.ws/forgot-password">
<meta property="og:type" content="website">
<meta property="og:site_name" content="three.ws">
<meta property="og:title" content="Forgot password · three.ws" data-i18n-attr="content:forgot_password.meta_og_title">
<meta property="og:description" content="Request a password-reset email." data-i18n-attr="content:forgot_password.meta_og_description">
<meta property="og:url" content="https://three.ws/forgot-password">
<meta property="og:image" content="https://three.ws/api/page-og?s=account&t=Forgot+password&d=Request+a+password-reset+email.&p=%2Fforgot-password">
<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:title" content="Forgot password · three.ws" data-i18n-attr="content:forgot_password.meta_twitter_title">
<meta name="twitter:description" content="Request a password-reset email." data-i18n-attr="content:forgot_password.meta_twitter_description">
<meta name="twitter:image" content="https://three.ws/api/page-og?s=account&t=Forgot+password&d=Request+a+password-reset+email.&p=%2Fforgot-password">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Forgot password","description":"Request a password-reset email.","url":"https://three.ws/forgot-password","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="Forgot password — three.ws">
<meta name="twitter:site" content="@trythreews">
<script src="/model-viewer-meshopt.js"></script>
</head>
<body>
<div class="shell">
<form class="card" id="f">
<a href="/" class="brand"><img src="/three.svg" alt="three.ws" /></a>
<h1 data-i18n="forgot_password.forgot_password">Forgot password</h1>
<p class="sub" data-i18n="forgot_password.enter_your_email_and_we_ll_send">Enter your email and we'll send you a reset link.</p>
<label for="email" data-i18n="forgot_password.email">Email</label>
<input
id="email"
type="email"
autocomplete="email"
required
aria-describedby="email-hint"
/>
<p
class="field-hint"
id="email-hint"
data-i18n="forgot_password.we_ll_send_you_a_link_to"
data-hint-valid="Looks valid"
data-hint-invalid="Enter a valid email address."
data-i18n-attr="data-hint-valid:forgot_password.looks_valid_datahintvalid;data-hint-invalid:forgot_password.enter_a_valid_email_address_datahintinvalid"
>We'll send you a link to reset your password.</p>
<button
id="submit"
type="submit"
data-i18n="forgot_password.send_reset_link"
data-sending-label="Sending…"
data-i18n-attr="data-sending-label:forgot_password.sending_datasendinglabel"
>Send reset link</button>
<div class="err" id="err" role="alert" hidden>
<span id="err-server" data-i18n="forgot_password.something_went_wrong_on_our_end_and" hidden>Something went wrong on our end and your reset link was not sent. Please try again.</span>
<span id="err-network" data-i18n="forgot_password.couldn_t_reach_the_server_check_your" hidden>Couldn't reach the server. Check your connection and try again.</span>
</div>
<div class="ok" id="ok" role="status" hidden data-i18n="forgot_password.if_an_account_exists_for_that_email">
If an account exists for that email, a reset link has been sent.
</div>
<p class="foot" data-i18n-html="forgot_password.back_to_sign_in"><a href="/login">Back to sign in</a></p>
</form>
<div class="panel">
<a href="/" class="panel-brand" aria-label="three.ws home" data-i18n="forgot_password.three_ws" data-i18n-attr="aria-label:forgot_password.three_ws_home_arialabel">three.ws</a>
<!-- The avatar is decoration. aria-hidden alone still lets a Tab land
inside model-viewer's shadow DOM (its AR and poster controls),
which drops keyboard users into a subtree screen readers cannot
see; inert takes the whole panel out of the focus order too. -->
<div class="agent-avatar loading" id="forgot-avatar-wrap" aria-hidden="true" inert>
<model-viewer
id="forgot-avatar"
src="/avatars/cz.glb"
alt=""
autoplay
animation-name="IdleV4.2(maya_head)"
disable-zoom
interaction-prompt="none"
shadow-intensity="0.6"
shadow-softness="1"
exposure="1.05"
tone-mapping="aces"
environment-image="neutral"
camera-orbit="0deg 88deg 4.8m"
field-of-view="32deg"
loading="eager"
></model-viewer>
</div>
</div>
</div>
<script>
// Avatar look-around + parallax + skeleton
(function () {
const viewer = document.getElementById('forgot-avatar');
const wrap = document.getElementById('forgot-avatar-wrap');
if (!viewer) return;
// The skeleton is a promise that a model is on its way. Clear it the
// moment that stops being true, otherwise a blocked CDN or a missing
// GLB leaves the panel pulsing forever with nothing ever arriving.
// The deadline covers the case where the model-viewer script itself
// never loads: the element is then never upgraded, so it emits
// neither "load" nor "error" and no event can settle the panel.
const AVATAR_LOAD_DEADLINE_MS = 8000;
let settled = false;
const settleAvatar = () => {
if (settled) return;
settled = true;
clearTimeout(deadline);
wrap?.classList.remove('loading');
};
const deadline = setTimeout(settleAvatar, AVATAR_LOAD_DEADLINE_MS);
viewer.addEventListener('load', settleAvatar);
viewer.addEventListener('error', settleAvatar);
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const BASE_AZ = 0, BASE_POL = 88, AZ_RANGE = 30, POL_RANGE = 14;
let targetAz = BASE_AZ, targetPol = BASE_POL;
let curAz = BASE_AZ, curPol = BASE_POL;
let targetTx = 0, targetTy = 0, curTx = 0, curTy = 0;
let nod = 0;
const lerp = (a, b, t) => a + (b - a) * t;
function tick() {
curAz = lerp(curAz, targetAz, 0.1);
curPol = lerp(curPol, targetPol + nod, 0.18);
curTx = lerp(curTx, targetTx, 0.08);
curTy = lerp(curTy, targetTy, 0.08);
nod *= 0.85;
viewer.setAttribute('camera-orbit', `${curAz}deg ${curPol}deg 4.8m`);
if (wrap) wrap.style.transform = `translate(${curTx.toFixed(2)}px, ${curTy.toFixed(2)}px)`;
requestAnimationFrame(tick);
}
if (reducedMotion) return;
requestAnimationFrame(tick);
window.addEventListener('mousemove', (e) => {
const nx = e.clientX / window.innerWidth - 0.5;
const ny = e.clientY / window.innerHeight - 0.5;
targetAz = BASE_AZ - nx * AZ_RANGE * 2;
targetPol = BASE_POL + ny * POL_RANGE * 2;
targetTx = -nx * 10;
targetTy = -ny * 8;
}, { passive: true });
document.querySelectorAll('#f input').forEach((el) => {
el.addEventListener('keydown', (e) => {
if (e.key && typeof e.key === 'string' && (e.key.length === 1 || e.key === 'Backspace')) {
nod = (nod >= 0 ? -1 : 1) * 4;
}
});
});
})();
// Inline email validation hint. The three strings all come from the
// markup (the resting copy from the element, the two states from
// data-* attributes the i18n catalog rewrites), so a translated page
// never falls back to English mid-typing. While the script drives the
// text it claims the element with data-i18n-owned so a catalog pass
// landing later cannot revert the live hint to the resting copy.
(function () {
const input = document.getElementById('email');
const hint = document.getElementById('email-hint');
if (!input || !hint) return;
const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
let restingCopy = null;
input.addEventListener('input', () => {
if (restingCopy === null) restingCopy = hint.textContent;
const v = input.value.trim();
if (!v) {
hint.classList.remove('valid', 'invalid');
hint.textContent = restingCopy;
hint.removeAttribute('data-i18n-owned');
window.threewsI18n?.apply?.(hint.parentElement);
return;
}
hint.setAttribute('data-i18n-owned', '1');
if (re.test(v)) {
hint.classList.add('valid'); hint.classList.remove('invalid');
hint.textContent = hint.dataset.hintValid;
} else {
hint.classList.add('invalid'); hint.classList.remove('valid');
hint.textContent = hint.dataset.hintInvalid;
}
});
})();
// Label "lit" on focus
document.querySelectorAll('#f input').forEach((input) => {
const label = document.querySelector(`label[for="${input.id}"]`);
if (!label) return;
input.addEventListener('focus', () => label.classList.add('lit'));
input.addEventListener('blur', () => label.classList.remove('lit'));
});
const form = document.getElementById('f');
const err = document.getElementById('err');
const errServer = document.getElementById('err-server');
const errNetwork = document.getElementById('err-network');
const ok = document.getElementById('ok');
const btn = document.getElementById('submit');
// Both failure sentences ship in the markup so the catalog translates
// them like the rest of the page; showing one is a hidden-attribute
// flip, never a string the script invents.
function showError(which) {
errServer.hidden = which !== errServer;
errNetwork.hidden = which !== errNetwork;
err.hidden = false;
}
// The idle label is read the first time the button goes busy, not at
// parse time: the i18n catalog lands after this script runs, so an
// early capture would restore an English label onto a translated page.
let idleLabel = null;
function setBusy(busy) {
if (busy) {
if (idleLabel === null) idleLabel = btn.textContent;
btn.setAttribute('data-i18n-owned', '1');
btn.setAttribute('aria-busy', 'true');
btn.disabled = true;
btn.textContent = btn.dataset.sendingLabel;
return;
}
btn.disabled = false;
btn.removeAttribute('aria-busy');
btn.textContent = idleLabel;
btn.removeAttribute('data-i18n-owned');
// Covers a catalog that arrived while the button was script-owned.
window.threewsI18n?.apply?.(form);
}
form.addEventListener('submit', async (e) => {
e.preventDefault();
err.hidden = true;
ok.hidden = true;
setBusy(true);
try {
const res = await fetch('/api/auth/forgot-password', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
email: document.getElementById('email').value,
}),
});
// The server always answers 200 with a privacy-preserving body
// (it never reveals whether an account exists). A 5xx is a real
// server fault, not that response, so surface it for a retry.
if (res.status >= 500) showError(errServer);
else ok.hidden = false;
} catch {
// A fetch rejection means the request never reached the server
// (offline / DNS / transport). Showing the success message here
// would tell the user a link is on the way when nothing was sent.
showError(errNetwork);
} finally {
setBusy(false);
}
});
</script>
<script src="/brand.js" defer></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>