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="reset_password.meta_title">Reset password · three.ws</title>
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/mobile.css" />
<style>
:root {
color-scheme: dark;
--accent: #ffffff;
--accent2: #ffffff;
}
* {
box-sizing: border-box;
}
body {
font:
15px/1.5 -apple-system,
system-ui,
Segoe UI,
Roboto,
sans-serif;
background: radial-gradient(1200px 600px at 50% -100px, #1b1b1b 0, #090909 60%);
color: #eee;
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
a {
color: #888888;
}
.card {
background: #151515;
border: 1px solid #2b2b2b;
border-radius: 16px;
padding: 32px;
max-width: 400px;
width: 100%;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
h1 {
font-size: 22px;
margin: 0 0 4px;
letter-spacing: -0.01em;
}
.sub {
color: #888;
margin: 0 0 24px;
font-size: 14px;
}
label {
display: block;
font-size: 13px;
color: #aaa;
margin: 14px 0 6px;
}
input {
width: 100%;
padding: 11px 13px;
background: #101010;
border: 1px solid #2b2b2b;
border-radius: 9px;
color: #eee;
font-size: 15px;
}
input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}
.hint {
font-size: 12px;
color: #666;
margin-top: 4px;
}
button {
width: 100%;
margin-top: 20px;
padding: 12px 16px;
border: 0;
border-radius: 10px;
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff;
font-weight: 600;
font-size: 15px;
cursor: pointer;
}
button:disabled {
opacity: 0.6;
cursor: default;
}
.err {
margin-top: 14px;
padding: 10px 12px;
background: rgba(255, 92, 92, 0.1);
border: 1px solid rgba(255, 92, 92, 0.3);
border-radius: 8px;
color: #ffb3b3;
font-size: 13px;
display: none;
}
.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: 20px;
text-align: center;
font-size: 13px;
color: #888;
}
.brand {
font-size: 12px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent);
margin: 0 0 8px;
}
.header-logo {
width: 14px;
height: 14px;
vertical-align: -2px;
margin-right: 6px;
}
</style>
</head>
<body>
<form class="card" id="f">
<p class="brand"><img src="/three.svg" alt="" class="header-logo" aria-hidden="true" />three.ws</p>
<h1 data-i18n="reset_password.reset_password">Reset password</h1>
<p class="sub" data-i18n="reset_password.choose_a_new_password_for_your_account">Choose a new password for your account.</p>
<label for="password" data-i18n="reset_password.new_password">New password</label>
<input
id="password"
type="password"
autocomplete="new-password"
required
minlength="10"
maxlength="200"
aria-describedby="password-hint"
/>
<p id="password-hint" class="hint" data-i18n="reset_password.minimum_10_characters">Minimum 10 characters</p>
<label for="confirm" data-i18n="reset_password.confirm_new_password">Confirm new password</label>
<input
id="confirm"
type="password"
autocomplete="new-password"
required
minlength="10"
maxlength="200"
/>
<button id="submit" type="submit" data-i18n="reset_password.reset_password_2">Reset password</button>
<div class="err" id="err" role="alert"></div>
<p class="foot" data-i18n-html="reset_password.back_to_sign_in"><a href="/login">Back to sign in</a></p>
</form>
<div class="card" id="done" style="display:none">
<p class="brand"><img src="/three.svg" alt="" class="header-logo" aria-hidden="true" />three.ws</p>
<h1 data-i18n="reset_password.password_reset">Password reset</h1>
<div class="ok">Password reset. You can now log in.</div>
<p class="foot" data-i18n-html="reset_password.go_to_sign_in"><a href="/login">Go to sign in</a></p>
</div>
<script>
const params = new URLSearchParams(location.search);
const token = params.get('token') || '';
const form = document.getElementById('f');
const err = document.getElementById('err');
const btn = document.getElementById('submit');
const done = document.getElementById('done');
function showErr(msg) {
err.textContent = msg;
err.style.display = 'block';
}
if (!token) {
showErr('Missing or invalid reset token. Request a new reset link.');
btn.disabled = true;
}
form.addEventListener('submit', async (e) => {
e.preventDefault();
err.style.display = 'none';
const password = document.getElementById('password').value;
const confirm = document.getElementById('confirm').value;
if (password.length < 10) {
showErr('Password must be at least 10 characters.');
return;
}
if (password !== confirm) {
showErr('Passwords do not match.');
return;
}
btn.disabled = true;
btn.textContent = 'Resetting…';
try {
const res = await fetch('/api/auth/reset-password', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ token, password }),
});
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new Error(data.error || 'Reset failed');
form.style.display = 'none';
done.style.display = 'block';
} catch (e) {
showErr(e.message);
btn.disabled = false;
btn.textContent = 'Reset password';
}
});
</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>