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.

feat(email): wire dedicated role inboxes (notifications@, dmca@, partnerships@)

nirholas02f46dca66a7
diff --git a/.env.example b/.env.example
index 758b60d42..4cc144aac 100644
--- a/.env.example
+++ b/.env.example
@@ -452,9 +452,9 @@ 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]>
-# Optional reply-to (defaults to no Reply-To header).
-EMAIL_REPLY_TO=
+EMAIL_FROM=three.ws <[email protected]>
+# Reply-To for transactional mail (defaults to [email protected] so replies reach a human).
# Audience UUID for /api/newsletter-subscribe. Without it, the endpoint silently
# no-ops. Create in Resend → Audiences, then paste the UUID here.
RESEND_AUDIENCE_ID=
diff --git a/api/_lib/email.js b/api/_lib/email.js
index 24640b342..a4a8c1a05 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,8 +13,8 @@ function client() {
return _client;
}
-const FROM = process.env.EMAIL_FROM || 'three.ws <[email protected]>';
-const REPLY = process.env.EMAIL_REPLY_TO || null;
+const FROM = process.env.EMAIL_FROM || 'three.ws <[email protected]>';
+const REPLY = process.env.EMAIL_REPLY_TO || '[email protected]';
const APP_URL = process.env.APP_ORIGIN || 'https://three.ws';
// ─── Payload builder ──────────────────────────────────────────────────────────
diff --git a/blog/three-ws-on-aws-marketplace.html b/blog/three-ws-on-aws-marketplace.html
index a915c55bf..929e13753 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/pages/aws/index.html b/pages/aws/index.html
index cf7fdcf42..efcae8594 100644
--- a/pages/aws/index.html
+++ b/pages/aws/index.html
@@ -256,7 +256,7 @@
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M5 12h14M13 5l7 7-7 7"/></svg>
</a>
<a href="https://github.com/nirholas/three.ws" class="btn btn-sec" target="_blank" rel="noopener">Star on GitHub</a>
- <a href="mailto:[email protected]?subject=AWS%20Marketplace%20interest" class="btn btn-sec">Contact sales</a>
+ <a href="mailto:[email protected]?subject=AWS%20Marketplace%20interest" class="btn btn-sec">Contact sales</a>
</div>
</section>
diff --git a/pages/forge-v2.html b/pages/forge-v2.html
index 711ddc3fc..0d4edea6b 100644
--- a/pages/forge-v2.html
+++ b/pages/forge-v2.html
@@ -1243,6 +1243,62 @@
color: var(--danger);
}
+ /* Model category picker in result bar */
+ .forge-category-picker {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ flex-wrap: wrap;
+ }
+ .forge-cat-label {
+ font-size: 11px;
+ color: var(--ink-dim);
+ font-weight: 500;
+ margin-right: 2px;
+ white-space: nowrap;
+ }
+ .forge-cat-btn {
+ padding: 3px 9px;
+ background: transparent;
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-pill);
+ color: var(--ink-dim);
+ font-size: 11px;
+ font-weight: 500;
+ cursor: pointer;
+ transition: background 0.12s, color 0.12s, border-color 0.12s;
+ }
+ .forge-cat-btn:hover {
+ background: var(--surface-2);
+ color: var(--ink);
+ }
+ .forge-cat-btn.active {
+ background: rgba(99, 102, 241, 0.18);
+ border-color: rgba(99, 102, 241, 0.5);
+ color: #a5b4fc;
+ }
+ .forge-cat-btn[data-cat='accessory'].active { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.4); color: #f9a8d4; }
+ .forge-cat-btn[data-cat='item'].active { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.4); color: #fcd34d; }
+ .forge-cat-btn[data-cat='scene'].active { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
+ .forge-cat-btn[data-cat='creature'].active { background: rgba(251,146,60,0.15); border-color: rgba(251,146,60,0.4); color: #fdba74; }
+ .forge-cat-btn[data-cat='vehicle'].active { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.4); color: #7dd3fc; }
+ /* Showcase category badge */
+ .showcase-cat-badge {
+ font-size: 10px;
+ font-weight: 600;
+ padding: 1px 7px;
+ border-radius: var(--radius-pill, 999px);
+ background: rgba(255,255,255,0.08);
+ color: #a1a1aa;
+ letter-spacing: 0.02em;
+ }
+ .showcase-cat-badge.model-cat-avatar { background: rgba(99,102,241,0.18); color: #a5b4fc; }
+ .showcase-cat-badge.model-cat-accessory { background: rgba(236,72,153,0.18); color: #f9a8d4; }
+ .showcase-cat-badge.model-cat-item { background: rgba(245,158,11,0.18); color: #fcd34d; }
+ .showcase-cat-badge.model-cat-scene { background: rgba(16,185,129,0.18); color: #6ee7b7; }
+ .showcase-cat-badge.model-cat-creature { background: rgba(251,146,60,0.18); color: #fdba74; }
+ .showcase-cat-badge.model-cat-vehicle { background: rgba(56,189,248,0.18); color: #7dd3fc; }
+
/* Optimize / retopology panel (markup injected by forge-optimize.js) */
.optimize {
border-top: 1px solid var(--stroke);
@@ -2154,6 +2210,15 @@
Discard
</button>
</div>
+ <div class="forge-category-picker" id="forge-category-picker" role="group" aria-label="What kind of model is this?">
+ <span class="forge-cat-label">What is it?</span>
+ <button type="button" class="forge-cat-btn" data-cat="avatar" title="Full body character or agent">Avatar</button>
+ <button type="button" class="forge-cat-btn" data-cat="accessory" title="Wearable item for an agent">Accessory</button>
+ <button type="button" class="forge-cat-btn" data-cat="item" title="Prop or holdable object">Item</button>
+ <button type="button" class="forge-cat-btn" data-cat="scene" title="Environment or world">Scene</button>
+ <button type="button" class="forge-cat-btn" data-cat="creature" title="Animal or companion">Creature</button>
+ <button type="button" class="forge-cat-btn" data-cat="vehicle" title="Vehicle or mount">Vehicle</button>
+ </div>
<button
class="btn btn-ghost"
type="button"
diff --git a/pages/ibm/index.html b/pages/ibm/index.html
index 512652d67..b35d67fd4 100644
--- a/pages/ibm/index.html
+++ b/pages/ibm/index.html
@@ -386,7 +386,7 @@
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M5 12h14M13 5l7 7-7 7"/></svg>
</a>
<a href="https://github.com/nirholas/three.ws" class="btn btn-sec" target="_blank" rel="noopener">Star on GitHub</a>
- <a href="mailto:[email protected]?subject=IBM%20watsonx%20%2B%20three.ws" class="btn btn-sec">Contact us</a>
+ <a href="mailto:[email protected]?subject=IBM%20watsonx%20%2B%20three.ws" class="btn btn-sec">Contact us</a>
</div>
</section>
diff --git a/public/legal/tos.html b/public/legal/tos.html
index 4c617449a..e62570723 100644
--- a/public/legal/tos.html
+++ b/public/legal/tos.html
@@ -74,7 +74,7 @@
<h2>4. 3D Content & Intellectual Property</h2>
<p>You retain ownership of 3D models and other content you upload ("Your Content"). By uploading, you grant three.ws a worldwide, royalty-free, non-exclusive licence to store, display, and deliver Your Content solely to operate the Service.</p>
<p>You represent and warrant that You have all rights necessary to grant this licence and that Your Content does not infringe any third-party intellectual property rights.</p>
- <p>We respect the DMCA. To submit a takedown notice, email <a href="mailto:[email protected]">[email protected]</a>.</p>
+ <p>We respect the DMCA. To submit a takedown notice, email <a href="mailto:[email protected]">[email protected]</a>.</p>
<h2>5. Crypto Payments & Plans</h2>
<p>Paid plans are activated by on-chain cryptocurrency payments (EVM USDC or Solana USDC via Solana Pay). All payments are final and non-refundable once confirmed on-chain unless required by applicable law.</p>
diff --git a/src/forge-showcase.js b/src/forge-showcase.js
index ebfc5bb9f..6bca8c964 100644
--- a/src/forge-showcase.js
+++ b/src/forge-showcase.js
@@ -17,6 +17,11 @@ ensureStateKitStyles();
const ENGINE_LABELS = { nvidia: 'Free', trellis: 'Fast', meshy: 'Meshy', tripo: 'Tripo', hunyuan3d: 'Hunyuan3D', triposg: 'TripoSG' };
+const MODEL_CAT_LABELS = {
+ avatar: 'Avatar', accessory: 'Accessory', item: 'Item',
+ scene: 'Scene', creature: 'Creature', vehicle: 'Vehicle', other: 'Other',
+};
+
// ── Thumbnail fallback chain ──────────────────────────────────────────────────
// Plan A: preview_image_url from DB → <img>
// Plan B: img onerror or no preview_image_url + has glb_url → capture a frame
@@ -235,6 +240,17 @@ function buildCard(c) {
when.textContent = timeAgo(c.created_at);
foot.appendChild(when);
+ // Model category badge — shows what type of 3D model was forged.
+ const cat = c.model_category || 'other';
+ const catLabel = MODEL_CAT_LABELS[cat] || cat;
+ if (cat !== 'other') {
+ const catBadge = document.createElement('span');
+ catBadge.className = `showcase-cat-badge model-cat-${cat}`;
+ catBadge.textContent = catLabel;
+ catBadge.title = `Model category: ${catLabel}`;
+ foot.appendChild(catBadge);
+ }
+
// Remix — only meaningful when there is a prompt to start from.
if (c.prompt) {
const remix = document.createElement('button');
diff --git a/src/forge.js b/src/forge.js
index 8279a90a7..0a9f1df01 100644
--- a/src/forge.js
+++ b/src/forge.js
@@ -80,6 +80,7 @@ const els = {
errorMessage: document.getElementById('error-message'),
forgeShareBtn: document.getElementById('forge-share-btn'),
segmentBtn: document.getElementById('forge-segment-btn'),
+ categoryPicker: document.getElementById('forge-category-picker'),
savedChip: document.getElementById('result-saved'),
creations: document.getElementById('creations'),
creationsGrid: document.getElementById('creations-grid'),
@@ -1078,6 +1079,21 @@ function resetVerdict() {
}
}
+function resetCategoryPicker() {
+ if (!els.categoryPicker) return;
+ els.categoryPicker.querySelectorAll('.forge-cat-btn').forEach((b) => b.classList.remove('active'));
+}
+
+function sendCategory(modelCategory) {
+ if (!currentCreationId) return;
+ fetch('/api/forge-categorize', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json', ...CLIENT_HEADERS },
+ body: JSON.stringify({ creation_id: currentCreationId, model_category: modelCategory }),
+ keepalive: true,
+ }).catch(() => {});
+}
+
// Poster capture — the visual half of every creation card. Image-intermediate
// engines store their flux reference image as the preview, but geometry-first
// and sketch lanes paint no image at all, so their gallery/showcase cards used
@@ -1221,6 +1237,8 @@ function updateRefineButton() {
function showResult(glbUrl, label, meta, { autoSaved = false } = {}) {
stopElapsed();
resetVerdict();
+ resetCategoryPicker();
+ els.viewerShell?.classList.remove('has-load-error');
els.viewer.setAttribute('src', glbUrl);
els.viewer.setAttribute('alt', `3D model: ${label}`);
els.resultLabel.textContent = label;
@@ -1658,6 +1676,10 @@ function submit() {
// Wiring ----------------------------------------------------------------------
+els.viewer.addEventListener('error', () => {
+ if (els.viewerShell) els.viewerShell.classList.add('has-load-error');
+});
+
buildSlots();
buildViewsPips();
updateViewsCounter();
@@ -1792,6 +1814,23 @@ if (els.verdict) {
});
}
+if (els.categoryPicker) {
+ els.categoryPicker.addEventListener('click', (e) => {
+ const btn = e.target.closest('.forge-cat-btn[data-cat]');
+ if (!btn || !currentCreationId) return;
+ const cat = btn.dataset.cat;
+ // Toggle: click the active cat again to deselect (back to 'other').
+ const isActive = btn.classList.contains('active');
+ els.categoryPicker.querySelectorAll('.forge-cat-btn').forEach((b) => b.classList.remove('active'));
+ if (!isActive) {
+ btn.classList.add('active');
+ sendCategory(cat);
+ } else {
+ sendCategory('other');
+ }
+ });
+}
+
// Downloads route through a provenance pass: fetch the GLB, stamp
// asset.generator + asset.extras (source, prompt) into the JSON chunk, and
// hand the user the stamped file. Any failure falls back to the raw provider
diff --git a/tests/email.test.js b/tests/email.test.js
index 27c76c2a2..aad6c15fb 100644
--- a/tests/email.test.js
+++ b/tests/email.test.js
@@ -243,18 +243,18 @@ describe('email — buildPayload', () => {
});
expect(payload).toEqual({
from: 'three.ws <[email protected]>',
+ replyTo: '[email protected]',
subject: 'hi',
html: '<p>hi</p>',
text: 'hi',
});
- expect(payload).not.toHaveProperty('replyTo');
} finally {
restore();
}
});
- it('includes replyTo only when EMAIL_REPLY_TO is set', async () => {
+ it('defaults replyTo to [email protected], overridable via EMAIL_REPLY_TO', async () => {
const { mod, restore } = await loadEmail({ EMAIL_REPLY_TO: '[email protected]' });
try {
const payload = mod.buildPayload({
@@ -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();
}