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.

chore: misc sync — README, email, package versions, scripts, and page copy

nirholascc0269a5ae18
diff --git a/.env.example b/.env.example
index 9c836d033..758b60d42 100644
--- a/.env.example
+++ b/.env.example
@@ -452,7 +452,7 @@ ZAUTH_REFUND_MONTHLY_CAP_USD=
RESEND_API_KEY=
# Sender identity. Domain MUST be verified in Resend (SPF + DKIM DNS records)
# before sends will succeed. Use Resend's [email protected] while verifying.
-EMAIL_FROM=three.ws <[email protected]>
+EMAIL_FROM=three.ws <[email protected]>
# Optional reply-to (defaults to no Reply-To header).
EMAIL_REPLY_TO=
# Audience UUID for /api/newsletter-subscribe. Without it, the endpoint silently
@@ -866,7 +866,7 @@ TELEGRAM_BOT_TOKEN=
# Telegram changelog channel — scripts/changelog-telegram.mjs posts new
# changelog entries here (npm run changelog:push). Use the channel @handle or
# the -100… numeric id; the bot above must be an admin of the channel.
-TELEGRAM_CHANGELOG_CHAT_ID=
+TELEGRAM_CHANGELOG_CHAT_ID=-1003927666373
# ── x402 spending ledger ─────────────────────────────────────────────────────
# Set to "1" to allow the per-user x402 spending ledger to fall back to an
diff --git a/README.md b/README.md
index 8530958ff..d73f3220a 100644
--- a/README.md
+++ b/README.md
@@ -1520,16 +1520,52 @@ The `talk` interaction mode wires together the LLM runtime, ElevenLabs TTS, and
When the agent speaks, the driver runs at ~60fps and drives `mouthClose`, `jawOpen`, `mouthSmileLeft/Right`, and the rest of the ARKit-52 set — the Empathy Layer's emotional morphs continue to blend on top, so the avatar simultaneously emotes and articulates. Unit tests for the ARKit-52 mapping live in `tests/src/arkit-morphs.test.js`.
+**Activating talk mode**
+
+Set `mode="talk"` on the `<agent-3d>` element and supply an ElevenLabs voice ID in the agent manifest:
+
+```json
+{
+ "voice": {
+ "tts": { "provider": "elevenlabs", "voiceId": "YOUR_VOICE_ID" },
+ "stt": { "provider": "browser", "language": "en-US" }
+ }
+}
+```
+
+**Pipeline (step by step)**
+
+1. User speaks → `getUserMedia` captures audio → Web Speech API produces a text transcript.
+2. Transcript enters the LLM tool-loop; the final reply text is sent to ElevenLabs TTS.
+3. The returned `AudioBuffer` is piped through a Web Audio API `AnalyserNode`.
+4. The lip-sync driver ([`src/voice/lipsync-driver.js`](src/voice/lipsync-driver.js)) samples the analyser every animation frame, extracts amplitude and spectral centroid, and maps them to ARKit-52 blendshape weights.
+5. Weights are applied directly to the loaded GLB's morph targets via [`src/voice/avatar-morph-target.js`](src/voice/avatar-morph-target.js) — no scene re-render required.
+6. The Empathy Layer injects its emotional morph weights in the same frame, so articulation and emotion blend simultaneously without fighting each other.
+
+The driver is source-agnostic: it accepts any `AudioBuffer`, so it works identically with ElevenLabs, browser TTS, or a pre-recorded clip. The canonical ARKit-52 blendshape table lives in [`src/voice/arkit-blendshapes.js`](src/voice/arkit-blendshapes.js); per-rig binding (mapping standard names to the specific morph targets in a loaded GLB) is handled by [`src/voice/avatar-morph-target.js`](src/voice/avatar-morph-target.js).
+
---
## Solana Mobile (Seeker)
three.ws ships with Mobile Wallet Adapter (MWA) wired into the web app and a release pipeline for the Solana Mobile dApp Store.
-- MWA detection prefers seed-vault-backed signing on Seeker / Saga devices, falls back to WalletConnect elsewhere
-- dApp Store listing assets, icons, and staging copy live under `public/seeker/`
-- Release pipeline scripts handle build → sign → submit for the dApp Store update
-- On Seeker hardware, users sign x402 payments and Solana agent registrations (Metaplex Core mints, attestations) from the seed vault — no browser extension required
+**Wallet detection priority**
+
+On **Seeker / Saga** hardware the app prefers seed-vault-backed signing — private keys never leave the secure element. On standard Android or desktop, the app falls back through WalletConnect and then to browser-extension wallets automatically, with no code change required.
+
+**What MWA unlocks on Seeker hardware**
+
+- x402 USDC payments signed from the seed vault without any browser extension
+- Metaplex Core agent mints (Solana on-chain registration) without leaving the app
+- SPL Memo attestations (reputation and validation) with hardware-secured signatures
+- SIWS (Sign-In with Solana) sessions authenticated at the chip level, not the software layer
+
+**Release pipeline**
+
+- dApp Store listing assets, icons, and staging copy live under [`public/seeker/`](public/seeker/)
+- Release pipeline scripts handle build → sign → APK submission for dApp Store updates
+- The listing targets Seeker-first and is compatible with Saga Gen 1 and Gen 2
---
@@ -1840,7 +1876,36 @@ three.ws supports multiple LLM providers behind a single `brain` interface. The
| **OpenRouter** | proxied via brain | Fallback when the primary provider is rate-limited |
| **Null provider** | `src/runtime/providers.js` | No-op for tests and offline mode |
-**Owner-card gating** — when an agent has a paying owner (paid by ERC-8004 mint or x402 subscription), the embed shows an owner-attribution card and unlocks longer context windows + higher-tier models. Anonymous visitors get Groq-powered chat with a smaller window.
+**Switching providers**
+
+Provider selection is per-agent and controlled by the manifest `brain.provider` field:
+
+```json
+{
+ "brain": {
+ "provider": "anthropic",
+ "model": "claude-sonnet-4-6",
+ "temperature": 0.8,
+ "maxTokens": 1024
+ }
+}
+```
+
+Supported `provider` values: `anthropic` · `groq` · `openrouter` · `null` (offline). Adding a new provider means implementing the two-method interface (`chat()` and `stream()`) in [`src/runtime/providers.js`](src/runtime/providers.js) — no other files need to change.
+
+**Free-first routing policy**
+
+The platform's `DEFAULT_PROVIDER_ORDER` in `src/llm.js` ensures AI chat never fails silently due to a single quota: free tiers (Groq, OpenRouter `:free` models, NVIDIA) are always tried first; paid Vercel-billed keys (Anthropic, OpenAI) are last-resort only. An OpenRouter fallback key is configured for `:free` models so that even a depleted primary account doesn't take down the `/chat` surface.
+
+**Owner-card gating**
+
+When an agent has a paying owner — established via ERC-8004 mint or x402 subscription — the embed unlocks:
+
+- Longer context windows (up to 32k tokens per turn vs the anonymous 8k cap)
+- Access to higher-tier models (Claude Sonnet / Opus vs Groq fallback)
+- An owner-attribution card displayed below the avatar in the embed chrome
+
+The gating check runs server-side in [`api/chat.js`](api/chat.js) against the agent's subscription record in Postgres. It cannot be bypassed from the client — the model selection and context limit are applied at the API layer before the request reaches the LLM provider.
---
diff --git a/api/_lib/email.js b/api/_lib/email.js
index 2d7ad722f..24640b342 100644
--- a/api/_lib/email.js
+++ b/api/_lib/email.js
@@ -1,7 +1,7 @@
// Transactional email via Resend. All sends are fire-and-forget — never await
// them on the critical path. Import sendEmail and call without await.
//
-// Required env: RESEND_API_KEY, EMAIL_FROM (e.g. "three.ws <[email protected]>")
+// Required env: RESEND_API_KEY, EMAIL_FROM (e.g. "three.ws <[email protected]>")
// Optional env: EMAIL_REPLY_TO, APP_ORIGIN
import { Resend } from 'resend';
@@ -13,7 +13,7 @@ function client() {
return _client;
}
-const FROM = process.env.EMAIL_FROM || 'three.ws <[email protected]>';
+const FROM = process.env.EMAIL_FROM || 'three.ws <[email protected]>';
const REPLY = process.env.EMAIL_REPLY_TO || null;
const APP_URL = process.env.APP_ORIGIN || 'https://three.ws';
diff --git a/blog/three-ws-on-aws-marketplace.html b/blog/three-ws-on-aws-marketplace.html
index 1f8988bd2..a915c55bf 100644
--- a/blog/three-ws-on-aws-marketplace.html
+++ b/blog/three-ws-on-aws-marketplace.html
@@ -90,7 +90,7 @@
<ul>
<li><strong>Community Edition &mdash; Free.</strong> Full access to the platform. Free trial automatically activates for any AWS customer on subscribe.</li>
<li><strong>Pro &mdash; metered.</strong> Per-active-agent and per-inference pricing for production workloads. Voice clone minutes and inference token usage metered daily through AWS.</li>
- <li><strong>Enterprise &mdash; SaaS Contracts via Private Offer.</strong> Annual contracts with custom pricing, dedicated support, and entitlement-checked feature gating. Contact <a href="mailto:[email protected]">[email protected]</a> for a Private Offer.</li>
+ <li><strong>Enterprise &mdash; SaaS Contracts via Private Offer.</strong> Annual contracts with custom pricing, dedicated support, and entitlement-checked feature gating. Contact <a href="mailto:[email protected]">[email protected]</a> for a Private Offer.</li>
</ul>
<h2>Shipping next</h2>
diff --git a/mcp-bridge/package.json b/mcp-bridge/package.json
index 5e2fb546b..d83b6283f 100644
--- a/mcp-bridge/package.json
+++ b/mcp-bridge/package.json
@@ -4,7 +4,7 @@
"mcpName": "io.github.nirholas/x402-bridge",
"description": "MCP stdio bridge that turns any x402-paid HTTP endpoint into a Claude-callable tool. Auto-pays via the @x402 client (EVM exact, SVM exact, EVM batch-settlement) and pre-loads tools from the Coinbase x402 Bazaar.",
"type": "module",
- "author": "nirholas <[email protected]>",
+ "author": "nirholas <[email protected]>",
"license": "Apache-2.0",
"homepage": "https://three.ws",
"repository": {
diff --git a/packages/avatar-agent-mcp/package.json b/packages/avatar-agent-mcp/package.json
index 63d02d5da..67bb6f6f8 100644
--- a/packages/avatar-agent-mcp/package.json
+++ b/packages/avatar-agent-mcp/package.json
@@ -4,7 +4,7 @@
"mcpName": "io.github.nirholas/3D-AI-Agent-Avatar",
"description": "3D AI Agent Avatar — MCP server that spawns a textured GLB avatar, inspects/validates/optimizes any 3D model, gives the agent a Solana wallet + a voice, and ships full pump.fun powers (atomic Jito-bundled launches + creator-fee collection). Powered by three.ws.",
"type": "module",
- "author": "nirholas <[email protected]>",
+ "author": "nirholas <[email protected]>",
"license": "MIT",
"homepage": "https://three.ws",
"repository": {
diff --git a/packages/three-token-mcp/package.json b/packages/three-token-mcp/package.json
index 6c1493953..cf348dc26 100644
--- a/packages/three-token-mcp/package.json
+++ b/packages/three-token-mcp/package.json
@@ -4,7 +4,7 @@
"mcpName": "io.github.nirholas/three-token-mcp",
"description": "The first MCP server whose actions burn a token. Let any AI agent price, hold, and burn $THREE on-chain — every burn splits to the incinerator + treasury via the live three.ws token rail, with Jupiter USD pricing. Deflation as an agent primitive.",
"type": "module",
- "author": "nirholas <[email protected]>",
+ "author": "nirholas <[email protected]>",
"license": "Apache-2.0",
"homepage": "https://three.ws",
"repository": {
diff --git a/pages/community.html b/pages/community.html
index dc59b27c7..b0c259fb6 100644
--- a/pages/community.html
+++ b/pages/community.html
@@ -154,7 +154,7 @@
<li><strong>Report bugs.</strong> Open an issue on <a href="https://github.com/nirholas/three.ws/issues" target="_blank" rel="noopener noreferrer">GitHub</a> — we triage daily.</li>
<li><strong>Contribute code.</strong> PRs are welcome. Check the repo for open issues labeled <code>good first issue</code>.</li>
<li><strong>Build an integration.</strong> The MCP server, A2A protocol, and x402 payment layer are all open for third-party tools.</li>
- <li><strong>Share feedback.</strong> Tweet at us, open a discussion on GitHub, or email <a href="mailto:[email protected]">[email protected]</a>.</li>
+ <li><strong>Share feedback.</strong> Tweet at us, open a discussion on GitHub, or email <a href="mailto:[email protected]">[email protected]</a>.</li>
</ul>
</div>
diff --git a/pages/extension-terms.html b/pages/extension-terms.html
index 82c102e70..3469e86ea 100644
--- a/pages/extension-terms.html
+++ b/pages/extension-terms.html
@@ -65,7 +65,7 @@
<p>The extension is provided "as is" without warranty of any kind. We are not liable for any damages arising from your use of the extension.</p>
<h2>Contact</h2>
- <p><a href="mailto:[email protected]">[email protected]</a></p>
+ <p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
<script type="module" src="/nav.js"></script>
<script src="/brand.js" defer></script>
diff --git a/pages/home.html b/pages/home.html
index 5c0d2cefa..8e9c53bc8 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -4465,7 +4465,7 @@
<a href="/community">Community</a>
<a href="https://x.com/trythreews" target="_blank" rel="noopener noreferrer">X / Twitter</a>
<a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener noreferrer">GitHub</a>
- <a href="mailto:[email protected]">Contact</a>
+ <a href="mailto:[email protected]">Contact</a>
</div>
<div class="foot-col">
<div class="foot-col-h">Legal</div>
diff --git a/pages/pricing.html b/pages/pricing.html
index 78e8670a2..bbfb74c14 100644
--- a/pages/pricing.html
+++ b/pages/pricing.html
@@ -126,7 +126,7 @@
<li>Dedicated infrastructure &amp; solutions engineer</li>
</ul>
<a
- href="mailto:[email protected]?subject=three.ws%20Enterprise"
+ href="mailto:[email protected]?subject=three.ws%20Enterprise"
class="pricing-cta"
>Contact sales</a
>
@@ -365,7 +365,7 @@
<summary>What about enterprise pricing?</summary>
<p>
Custom subdomain, SSO, audit logs, embed-policy whitelisting, white-label
- themes, self-hosted runtime, and SLA. Email [email protected] and we'll set up
+ themes, self-hosted runtime, and SLA. Email [email protected] and we'll set up
a call within 24 hours.
</p>
</details>
diff --git a/prompts/monetization/19-purchase-notifications.md b/prompts/monetization/19-purchase-notifications.md
index 82678065f..de493d58c 100644
--- a/prompts/monetization/19-purchase-notifications.md
+++ b/prompts/monetization/19-purchase-notifications.md
@@ -40,7 +40,7 @@ export async function sendPurchaseConfirmationEmail(userId, details) {
}
await resend.emails.send({
to: user.email,
subject: 'Your Skill Purchase Confirmation',
html: `
diff --git a/public/.well-known/openapi.yaml b/public/.well-known/openapi.yaml
index 12927dfe0..e012e81e5 100644
--- a/public/.well-known/openapi.yaml
+++ b/public/.well-known/openapi.yaml
@@ -8,7 +8,7 @@ info:
(MCP) JSON-RPC server for AI tool integrations.
version: 1.5.1
contact:
license:
name: MIT
url: https://opensource.org/licenses/MIT
diff --git a/public/.well-known/security.txt b/public/.well-known/security.txt
index 094767df4..697d7f55a 100644
--- a/public/.well-known/security.txt
+++ b/public/.well-known/security.txt
@@ -1,7 +1,7 @@
# Security policy for three.ws
# https://securitytxt.org/
-Contact: mailto:[email protected]
+Contact: mailto:[email protected]
Preferred-Languages: en
Canonical: https://three.ws.well-known/security.txt
Expires: 2027-04-14T00:00:00.000Z
diff --git a/public/badges/issuer.json b/public/badges/issuer.json
index aad5634a1..c13249473 100644
--- a/public/badges/issuer.json
+++ b/public/badges/issuer.json
@@ -4,7 +4,7 @@
"id": "https://three.ws/badges/issuer.json",
"name": "three.ws",
"url": "https://three.ws",
- "email": "[email protected]",
+ "email": "[email protected]",
"description": "three.ws issues verifiable Open Badges 2.0 for achievements earned across its realms, quests, and creator tools.",
"image": "https://three.ws/pwa-icon.svg"
}
diff --git a/scripts/changelog-telegram.mjs b/scripts/changelog-telegram.mjs
index e281ab8ab..a1c94af32 100644
--- a/scripts/changelog-telegram.mjs
+++ b/scripts/changelog-telegram.mjs
@@ -103,8 +103,13 @@ if (pending.length === 0) {
const escapeHtml = (s) =>
String(s).replace(/[<>&]/g, (c) => ({ '<': '&lt;', '>': '&gt;', '&': '&amp;' })[c]);
+function slugify(title, date) {
+ const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 80);
+ return date + '-' + slug;
+}
+
function formatMessage(e) {
- const url = `https://three.ws${e.link || '/changelog'}`;
+ const detailUrl = `https://three.ws/changelog/${slugify(e.title, e.date)}`;
const label = e.type === 'launch' ? 'New on three.ws' : 'Update';
const hashtags = (e.type === 'launch' ? ['launch'] : e.tags).map((t) => `#${t}`).join(' ');
return [
@@ -112,7 +117,7 @@ function formatMessage(e) {
'',
escapeHtml(e.summary),
'',
- `<a href="${url}">${escapeHtml(url.replace('https://', ''))}</a> · ${escapeHtml(e.date)} · ${escapeHtml(hashtags)}`,
+ `<a href="${detailUrl}">${escapeHtml(detailUrl.replace('https://', ''))}</a> · ${escapeHtml(e.date)} · ${escapeHtml(hashtags)}`,
].join('\n');
}
diff --git a/scripts/seed-agent.mjs b/scripts/seed-agent.mjs
index 76dff6b17..6c8a26edc 100644
--- a/scripts/seed-agent.mjs
+++ b/scripts/seed-agent.mjs
@@ -9,7 +9,7 @@ const sql = neon(DATABASE_URL);
const [user] = await sql`
INSERT INTO users (email, display_name, email_verified)
- VALUES ('[email protected]', 'Seed User', true)
+ VALUES ('[email protected]', 'Seed User', true)
ON CONFLICT (email) DO UPDATE SET display_name = EXCLUDED.display_name
RETURNING id
`;
diff --git a/scripts/seed-defi-agents.mjs b/scripts/seed-defi-agents.mjs
index 79678189a..2086ca928 100644
--- a/scripts/seed-defi-agents.mjs
+++ b/scripts/seed-defi-agents.mjs
@@ -15,7 +15,7 @@ async function main() {
console.log(`Found ${agents.length} agents.`);
const [user] = await sql`
- SELECT id FROM users WHERE email = '[email protected]' LIMIT 1
+ SELECT id FROM users WHERE email = '[email protected]' LIMIT 1
`;
if (!user) {
diff --git a/scripts/seed-firstparty-avatars.mjs b/scripts/seed-firstparty-avatars.mjs
index f50157cf8..96782bfe0 100644
--- a/scripts/seed-firstparty-avatars.mjs
+++ b/scripts/seed-firstparty-avatars.mjs
@@ -17,7 +17,7 @@
* Usage:
* DATABASE_URL=... node scripts/seed-firstparty-avatars.mjs # apply
* DATABASE_URL=... node scripts/seed-firstparty-avatars.mjs --dry-run # plan only
- * [email protected] # override seed owner (default [email protected])
+ * [email protected] # override seed owner (default [email protected])
*
* Required env: DATABASE_URL.
*/
@@ -38,7 +38,7 @@ const args = Object.fromEntries(
}),
);
const DRY_RUN = !!args['dry-run'];
-const OWNER_EMAIL = args.email || '[email protected]';
+const OWNER_EMAIL = args.email || '[email protected]';
const SEED_DISPLAY_NAME = 'Three.ws Showcase';
if (!process.env.DATABASE_URL) {
diff --git a/scripts/seed-public-avatars.mjs b/scripts/seed-public-avatars.mjs
index fd35b0f47..e9ba16bd4 100644
--- a/scripts/seed-public-avatars.mjs
+++ b/scripts/seed-public-avatars.mjs
@@ -9,7 +9,7 @@
* • khronos: Khronos glTF Sample Assets (CC0/CC-BY)
* • threejs: three.js example models
*
- * Owner: a seed user (default [email protected]). Override with --email=<addr>.
+ * Owner: a seed user (default [email protected]). Override with --email=<addr>.
* Visibility: public. Idempotent on (owner_id, slug).
*
* Usage:
@@ -41,7 +41,7 @@ const args = Object.fromEntries(
);
const SOURCE = args.source || 'all';
const DRY_RUN = !!args['dry-run'];
-const OWNER_EMAIL = args.email || '[email protected]';
+const OWNER_EMAIL = args.email || '[email protected]';
const SEED_DISPLAY_NAME = 'Three.ws Showcase';
if (!process.env.DATABASE_URL) {
diff --git a/solana-mobile/publish/config.yaml b/solana-mobile/publish/config.yaml
index b8689db16..76cae2849 100644
--- a/solana-mobile/publish/config.yaml
+++ b/solana-mobile/publish/config.yaml
@@ -2,7 +2,7 @@ publisher:
name: three.ws
address:
website: https://three.ws
app:
name: three.ws
diff --git a/solana-mobile/publish/listing/description.md b/solana-mobile/publish/listing/description.md
index 5929c8671..05712fca2 100644
--- a/solana-mobile/publish/listing/description.md
+++ b/solana-mobile/publish/listing/description.md
@@ -26,4 +26,4 @@ REQUIREMENTS
SUPPORT
-Questions, bug reports, or feature requests: [email protected] · https://three.ws/docs · github.com/nirholas/three.ws/issues
+Questions, bug reports, or feature requests: [email protected] · https://three.ws/docs · github.com/nirholas/three.ws/issues
diff --git a/src/game/coincommunities-ui.js b/src/game/coincommunities-ui.js
index cad8ff643..e58bb8d38 100644
--- a/src/game/coincommunities-ui.js
+++ b/src/game/coincommunities-ui.js
@@ -301,7 +301,7 @@ export class CommunityUI {
link('/discover', 'Discover'),
link('/dashboard/api', 'API'),
link('https://github.com/nirholas/three.ws', 'GitHub'),
- link('mailto:[email protected]', 'Contact'),
+ link('mailto:[email protected]', 'Contact'),
]),
]),
]);
diff --git a/tasks/monetization-feature/17-transactional-emails.md b/tasks/monetization-feature/17-transactional-emails.md
index 9dec4ec10..6b10f68d1 100644
--- a/tasks/monetization-feature/17-transactional-emails.md
+++ b/tasks/monetization-feature/17-transactional-emails.md
@@ -42,7 +42,7 @@ sgMail.setApiKey(process.env.SENDGRID_API_KEY);
async function sendEmail({ to, subject, html, text }) {
const msg = {
to,
- from: '[email protected]', // Use a verified sender
+ from: '[email protected]', // Use a verified sender
subject,
text,
html,
diff --git a/tests/email.test.js b/tests/email.test.js
index 4be3cdcd2..27c76c2a2 100644
--- a/tests/email.test.js
+++ b/tests/email.test.js
@@ -279,7 +279,7 @@ describe('email — buildPayload', () => {
html: '<p>hi</p>',
text: 'hi',
});
- expect(payload.from).toBe('three.ws <[email protected]>');
+ expect(payload.from).toBe('three.ws <[email protected]>');
} finally {
restore();
}