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: support page, full favicon/PWA icon set, static asset cache headers

nirholas199ff5b7ec72
diff --git a/api/_lib/cache.js b/api/_lib/cache.js
index 4af3a8994..5a568f111 100644
--- a/api/_lib/cache.js
+++ b/api/_lib/cache.js
@@ -27,6 +27,14 @@ const readMemo = new Map();
const MEMO_TTL_MS = 2_000;
const MEMO_MAX_ENTRIES = 5_000; // backstop against unbounded key cardinality
+// In-flight GET coalescing. The read-memo above only collapses *sequential*
+// reads; under a burst (the exact load that exhausts the Upstash request quota)
+// N concurrent reads of the same hot key all miss the not-yet-populated memo and
+// each fire their own Redis GET. Single-flight makes those N callers await one
+// shared round-trip instead. Self-bounded: an entry lives only while its GET is
+// in flight and is removed in `finally`.
+const inflightGets = new Map();
+
function memoGet(key) {
const hit = readMemo.get(key);
if (!hit) return undefined; // undefined = no memo; null is a cached "miss"
@@ -81,15 +89,24 @@ export async function cacheGet(key) {
if (!redisConfigured()) return memGet(key);
const memo = memoGet(key);
if (memo !== undefined) return memo;
- try {
- const raw = await redisCmd(['GET', key]);
- const value = raw == null ? null : JSON.parse(raw);
- memoPut(key, value);
- return value;
- } catch (err) {
- console.warn('[cache] redis GET failed, using memory fallback:', err?.message);
- return memGet(key);
- }
+ // Join an in-flight GET for this key rather than issuing a duplicate.
+ const pending = inflightGets.get(key);
+ if (pending) return pending;
+ const p = (async () => {
+ try {
+ const raw = await redisCmd(['GET', key]);
+ const value = raw == null ? null : JSON.parse(raw);
+ memoPut(key, value);
+ return value;
+ } catch (err) {
+ console.warn('[cache] redis GET failed, using memory fallback:', err?.message);
+ return memGet(key);
+ } finally {
+ inflightGets.delete(key);
+ }
+ })();
+ inflightGets.set(key, p);
+ return p;
}
export async function cacheSet(key, value, ttlSeconds = 60) {
diff --git a/api/llm/anthropic.js b/api/llm/anthropic.js
index 3c96fb595..c9731afbe 100644
--- a/api/llm/anthropic.js
+++ b/api/llm/anthropic.js
@@ -127,30 +127,61 @@ function buildCorsAllowlist(policy) {
return Array.from(out);
}
+// A Redis outage hits every request, so unthrottled logging would itself storm
+// the logs. Warn at most once per cooldown, mirroring rate-limit.js's degrade
+// throttle.
+let _quotaWarnedAt = 0;
+function warnQuotaDegraded(err) {
+ const t = Date.now();
+ if (t - _quotaWarnedAt < 60_000) return;
+ _quotaWarnedAt = t;
+ console.warn('[llm/anthropic] quota-counter redis degraded, failing open:', err?.message || err);
+}
+
async function incrementMonthlyQuota(agentId) {
const r = getRedis();
if (!r) return 0;
const key = `llm:quota:${agentId}:${monthKey()}`;
- const count = await r.incr(key);
- if (count === 1) await r.expire(key, 40 * 24 * 3600);
- return count;
+ try {
+ const count = await r.incr(key);
+ if (count === 1) await r.expire(key, 40 * 24 * 3600);
+ return count;
+ } catch (err) {
+ // Fail open like the per-IP/per-agent limiters this handler already uses:
+ // a counter-store outage must not 500 the proxy. Spend stays bounded by
+ // those (resilient) limiters during the outage window.
+ warnQuotaDegraded(err);
+ return 0;
+ }
}
async function getMonthlyTokens(agentId) {
const r = getRedis();
if (!r) return 0;
const key = `llm:tokens:${agentId}:${monthKey()}`;
- const v = await r.get(key);
- return typeof v === 'number' ? v : parseInt(v || '0', 10) || 0;
+ try {
+ const v = await r.get(key);
+ return typeof v === 'number' ? v : parseInt(v || '0', 10) || 0;
+ } catch (err) {
+ warnQuotaDegraded(err);
+ return 0;
+ }
}
async function addMonthlyTokens(agentId, delta) {
const r = getRedis();
if (!r || !delta) return 0;
const key = `llm:tokens:${agentId}:${monthKey()}`;
- const total = await r.incrby(key, delta);
- if (total === delta) await r.expire(key, 40 * 24 * 3600);
- return total;
+ try {
+ const total = await r.incrby(key, delta);
+ if (total === delta) await r.expire(key, 40 * 24 * 3600);
+ return total;
+ } catch (err) {
+ // Best-effort post-call accounting — the response was already streamed, so
+ // a failed write must never throw into the (finished) request.
+ warnQuotaDegraded(err);
+ return 0;
+ }
}
// ── Request schema ────────────────────────────────────────────────────────────
diff --git a/api/tts/eleven.js b/api/tts/eleven.js
index 5db2fbe14..7d5db52f5 100644
--- a/api/tts/eleven.js
+++ b/api/tts/eleven.js
@@ -89,27 +89,38 @@ export default wrap(async (req, res) => {
let rKey = null;
if (redis) {
const hourBucket = Math.floor(Date.now() / 3_600_000);
- rKey = `tts:chars:${userId}:${hourBucket}`;
- const used = Number((await redis.get(rKey)) || 0);
- if (used + text.length > CHARS_PER_HOUR) {
- return error(
- res,
- 429,
- 'rate_limited',
- `TTS character limit (${CHARS_PER_HOUR}/hr) reached. Try again next hour.`,
- );
- }
- // Increment before synthesis to prevent parallel races from blowing past limit.
- const newTotal = await redis.incrby(rKey, text.length);
- await redis.expire(rKey, 7200);
- if (newTotal > CHARS_PER_HOUR) {
- await redis.decrby(rKey, text.length).catch(() => {});
- return error(
- res,
- 429,
- 'rate_limited',
- `TTS character limit (${CHARS_PER_HOUR}/hr) reached. Try again next hour.`,
- );
+ const key = `tts:chars:${userId}:${hourBucket}`;
+ try {
+ const used = Number((await redis.get(key)) || 0);
+ if (used + text.length > CHARS_PER_HOUR) {
+ return error(
+ res,
+ 429,
+ 'rate_limited',
+ `TTS character limit (${CHARS_PER_HOUR}/hr) reached. Try again next hour.`,
+ );
+ }
+ // Increment before synthesis to prevent parallel races from blowing past limit.
+ const newTotal = await redis.incrby(key, text.length);
+ await redis.expire(key, 7200);
+ // Only arm the refund path once the reservation actually landed.
+ rKey = key;
+ if (newTotal > CHARS_PER_HOUR) {
+ await redis.decrby(key, text.length).catch(() => {});
+ rKey = null;
+ return error(
+ res,
+ 429,
+ 'rate_limited',
+ `TTS character limit (${CHARS_PER_HOUR}/hr) reached. Try again next hour.`,
+ );
+ }
+ } catch (err) {
+ // Redis outage / over-quota: fail open rather than 500 the synth, matching
+ // the shared limiter's non-critical behavior. ElevenLabs' own account quota
+ // stays the hard ceiling, so an unmetered call here can't run away on cost.
+ console.warn('[tts/eleven] char-limit redis degraded, allowing:', err?.message || err);
+ rKey = null;
}
}
diff --git a/packages/ibm-x402-mcp/SUPPORT.md b/packages/ibm-x402-mcp/SUPPORT.md
new file mode 100644
index 000000000..6f3080569
--- /dev/null
+++ b/packages/ibm-x402-mcp/SUPPORT.md
@@ -0,0 +1,65 @@
+# Support
+
+Support for **`@three-ws/ibm-x402-mcp`** — the x402 pay-per-use MCP server for IBM Granite — is provided by **three.ws**. This document is the single source of truth for how to get help, where to report problems, and what to expect back.
+
+## Where to get help
+
+| Channel | Use it for | Link |
+|---|---|---|
+| **GitHub Issues** | Bugs, crashes, unexpected tool output, feature requests | https://github.com/nirholas/three.ws/issues/new |
+| **GitHub Discussions** | Setup questions, integration help, "how do I…" | https://github.com/nirholas/three.ws/discussions |
+| **Email** | Private or account-specific support | [email protected] |
+| **Security** | Vulnerabilities — please do **not** open a public issue | [email protected] |
+| **Support page** | All channels in one place | https://three.ws/support |
+
+For anything that exposes a key, wallet, or transaction signature, use email rather than a public issue.
+
+## Before you open an issue
+
+A few minutes here usually gets you an answer in one round-trip instead of three:
+
+1. **Check the [README](./README.md)** — most "it won't start" reports are a missing required env var (`MCP_SVM_PAYMENT_ADDRESS`, `WATSONX_API_KEY`, and `WATSONX_PROJECT_ID` or `WATSONX_SPACE_ID`).
+2. **Reproduce with the MCP inspector** so you can see the raw tool I/O:
+ ```bash
+ npm run inspect
+ # or, without cloning:
+ npx -y @modelcontextprotocol/inspector npx -y @three-ws/ibm-x402-mcp
+ ```
+3. **Confirm your IBM credentials work** independently — create/verify an API key at https://cloud.ibm.com/iam/apikeys and confirm the project id under *watsonx.ai project → Manage → General → Project ID*.
+
+## What to include in a bug report
+
+- The **tool** you called (`ibm_granite_chat`, `ibm_granite_code`, `ibm_granite_embed`, `ibm_granite_analyze`, or `ibm_granite_forecast`).
+- The **package version** (`npx @three-ws/ibm-x402-mcp --version` or your `package.json` pin) and **Node version** (`node -v` — this server requires Node ≥ 20).
+- Your **MCP client** (Claude Desktop, Claude Code, Cursor, a custom agent) and OS.
+- The **`WATSONX_URL` region** you're pointed at (defaults to `us-south`).
+- The **full error text** and, where possible, the inspector's raw request/response.
+- **Redact secrets.** Never paste an API key, a private key, or a full wallet seed. A truncated public Solana address is fine.
+
+## Payment & x402 questions
+
+This server settles each call in **USDC on Solana** via the [x402 protocol](https://x402.org) through the [PayAI facilitator](https://facilitator.payai.network). Payment issues split into two layers:
+
+- **Wallet / settlement** (you got charged but no result, or a `402` loop): include the Solana transaction signature (public) and the tool name. Email these to [email protected] rather than posting publicly.
+- **IBM inference** (the payment cleared but watsonx.ai errored): this is usually a credential, region, or model-id problem — see the README configuration table.
+
+End users calling the tools never need an IBM Cloud account; only the **server operator** supplies `WATSONX_*` credentials and a receiving Solana wallet.
+
+## Scope of support
+
+- ✅ Installing, configuring, and running this MCP server.
+- ✅ The five `ibm_granite_*` tools and their x402 payment flow.
+- ✅ Integration with MCP clients (Claude Desktop/Code, Cursor, custom agents).
+- ❌ IBM watsonx.ai platform issues, Granite model behavior, or IBM billing — those go to [IBM Cloud Support](https://cloud.ibm.com/unifieddeliveryportal). We'll help you tell the two apart.
+
+## Response expectations
+
+This is a community-supported open-source project maintained by three.ws. We triage GitHub issues and support email on a best-effort basis, typically within a few business days. Security reports sent to [email protected] are prioritized.
+
+## Languages
+
+Support is provided in **English**.
+
+---
+
+Built by [three.ws](https://three.ws) · Apache-2.0. This is an independent project that integrates IBM Granite via watsonx.ai; it is not an IBM product and is not supported by IBM. *Granite*, *watsonx*, and *watsonx.ai* are trademarks of IBM.
diff --git a/pages/app.html b/pages/app.html
index 628772d30..1e0ad7dcb 100644
--- a/pages/app.html
+++ b/pages/app.html
@@ -44,8 +44,12 @@
<meta name="twitter:image" content="https://three.ws/assets/og-image.png">
<link rel="canonical" href="https://three.ws/app" />
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" href="/pwa-192x192.png" />
+ <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="/site.webmanifest" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/footer.css" />
diff --git a/pages/forge.html b/pages/forge.html
index 6e1cb2646..2afe86b6d 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -14,6 +14,13 @@
content="Describe an object, watch it become an interactive 3D model. Real generation, real GLB, downloadable."
/>
<meta property="og:type" content="website" />
+ <meta name="theme-color" content="#080814" />
+ <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="/site.webmanifest" />
<link rel="stylesheet" href="/style.css" />
<link rel="preconnect" href="https://ajax.googleapis.com" />
<script
diff --git a/pages/home.html b/pages/home.html
index a01d24f49..e48729958 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -27,8 +27,12 @@
<meta name="twitter:description" content="Make a living 3D AI agent from a selfie — embed it on any website in 60 seconds. Voice, memory, payments, and an IBM watsonx.ai (Granite) brain built in." />
<meta name="twitter:image" content="https://three.ws/og-image.png" />
<meta name="twitter:image:alt" content="three.ws — living 3D AI agents you can embed anywhere" />
- <link rel="icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" href="/pwa-192x192.png" />
+ <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="/site.webmanifest" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/buttons.css" />
<style>
diff --git a/pages/support.html b/pages/support.html
new file mode 100644
index 000000000..2322d16c9
--- /dev/null
+++ b/pages/support.html
@@ -0,0 +1,314 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <title>Support — three.ws</title>
+ <meta name="description" content="Get help with three.ws and the x402 MCP server for IBM Granite. Report bugs, ask integration questions, reach support and security — GitHub Issues, Discussions, and email, all in one place." />
+ <link rel="canonical" href="https://three.ws/support" />
+
+ <meta property="og:type" content="website" />
+ <meta property="og:title" content="Support — three.ws" />
+ <meta property="og:description" content="Get help with three.ws and the x402 MCP server for IBM Granite. Bugs, integration questions, security — all the channels in one place." />
+ <meta property="og:url" content="https://three.ws/support" />
+ <meta property="og:image" content="https://three.ws/ibm-og.png" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content="Support — three.ws" />
+ <meta name="twitter:description" content="Get help with three.ws and the x402 MCP server for IBM Granite." />
+ <meta name="twitter:image" content="https://three.ws/ibm-og.png" />
+
+ <link rel="icon" href="/favicon.ico" />
+ <link rel="stylesheet" href="/ibm.css" />
+ <style>
+ /* Design tokens come from the shared system: /ibm.css */
+ * { box-sizing: border-box; margin: 0; padding: 0; }
+ html { scroll-behavior: smooth; }
+ body { font: 16px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
+ a { color: inherit; }
+
+ header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: rgba(7,7,7,0.82); backdrop-filter: blur(12px); }
+ header a.home { color: var(--text); text-decoration: none; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
+ header a.home:hover { color: var(--brand-blue-light); }
+ header nav { display: flex; gap: 22px; align-items: center; }
+ header nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s; }
+ header nav a:hover { color: var(--text); }
+ header nav a:focus-visible, header a.home:focus-visible { outline: 2px solid var(--brand-blue-light); outline-offset: 3px; border-radius: 4px; }
+
+ main { max-width: 880px; margin: 0 auto; padding: 72px 24px 120px; }
+
+ .kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--brand-blue-light); background: var(--brand-blue-dim); border: 1px solid rgba(120,169,255,0.22); border-radius: 99px; padding: 6px 13px; margin-bottom: 22px; }
+ .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 10px var(--brand-blue); animation: pulse 2.4s ease-in-out infinite; }
+ @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
+
+ h1 { font-size: clamp(34px, 5.5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 650; margin-bottom: 18px; }
+ h1 .g { background: linear-gradient(110deg, var(--brand-blue-light) 25%, var(--brand-blue) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
+ .lede { font-size: clamp(16px, 2vw, 18.5px); color: var(--muted); line-height: 1.55; max-width: 640px; }
+ .lede strong { color: var(--text); font-weight: 500; }
+
+ section { margin-top: 64px; }
+ section > h2 { font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 650; margin-bottom: 8px; }
+ section > .sub { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; max-width: 620px; line-height: 1.55; }
+
+ /* Channel cards */
+ .channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
+ .channel { display: flex; flex-direction: column; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 20px; text-decoration: none; color: inherit; transition: border-color 0.18s, transform 0.18s, background 0.18s; position: relative; }
+ a.channel:hover, a.channel:focus-visible { border-color: rgba(120,169,255,0.45); transform: translateY(-2px); background: var(--panel2); }
+ a.channel:focus-visible { outline: 2px solid var(--brand-blue-light); outline-offset: 3px; }
+ .channel .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
+ .channel .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(15,98,254,0.10); border: 1px solid rgba(120,169,255,0.25); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
+ .channel .icon svg { width: 19px; height: 19px; }
+ .channel h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
+ .channel .addr { font-size: 12.5px; color: var(--brand-blue-light); font-family: var(--mono); margin-top: 1px; word-break: break-all; }
+ .channel p { font-size: 14px; color: var(--muted); line-height: 1.55; }
+ .channel .arrow { position: absolute; top: 22px; right: 22px; color: var(--faint); transition: transform 0.18s, color 0.18s; }
+ a.channel:hover .arrow, a.channel:focus-visible .arrow { color: var(--brand-blue-light); transform: translate(2px, -2px); }
+
+ /* Email row with copy */
+ .channel .emailrow { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
+ .copy-btn { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 7px; padding: 3px 9px; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; white-space: nowrap; }
+ .copy-btn:hover { border-color: var(--border2); color: var(--text); }
+ .copy-btn:focus-visible { outline: 2px solid var(--brand-blue-light); outline-offset: 2px; }
+ .copy-btn.done { color: var(--green); border-color: rgba(66,190,101,0.4); }
+
+ /* Numbered steps */
+ .steps { display: grid; gap: 14px; }
+ .step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
+ .step .n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-blue-light); background: var(--brand-blue-dim); border: 1px solid rgba(120,169,255,0.25); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
+ .step h3 { font-size: 15px; font-weight: 650; margin-bottom: 4px; letter-spacing: -0.01em; }
+ .step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
+ .step p code, .step p a { font-family: var(--mono); font-size: 12.5px; }
+ .step a { color: var(--brand-blue-light); text-decoration: none; }
+ .step a:hover { text-decoration: underline; }
+ .step code { font-family: var(--mono); font-size: 12.5px; color: var(--brand-blue-light); background: var(--brand-blue-dim); padding: 1px 6px; border-radius: 5px; }
+
+ /* Checklist */
+ .checklist { list-style: none; display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
+ .checklist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
+ .checklist li b { color: var(--text); font-weight: 600; }
+ .checklist .tick { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--brand-blue-light); }
+ .checklist code { font-family: var(--mono); font-size: 12.5px; color: var(--brand-blue-light); background: var(--brand-blue-dim); padding: 1px 6px; border-radius: 5px; }
+
+ /* Product callout */
+ .callout { background: linear-gradient(180deg, var(--brand-blue-dim), transparent 70%), var(--panel); border: 1px solid rgba(120,169,255,0.28); border-radius: 18px; padding: 28px 28px 26px; }
+ .callout .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--brand-blue-light); background: rgba(15,98,254,0.12); border: 1px solid rgba(120,169,255,0.25); border-radius: 99px; padding: 5px 12px; margin-bottom: 14px; }
+ .callout h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
+ .callout p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
+ .callout p strong { color: var(--text); font-weight: 500; }
+ .callout .links { display: flex; flex-wrap: wrap; gap: 10px; }
+
+ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; border: 0; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter 0.15s, transform 0.12s, background 0.15s; }
+ .btn:focus-visible { outline: 2px solid var(--brand-blue-light); outline-offset: 3px; }
+ .btn-primary { background: var(--brand-blue); color: #fff; }
+ .btn-primary:hover { filter: brightness(1.12); }
+ .btn-primary:active { transform: translateY(1px); }
+ .btn-sec { background: var(--panel); border: 1px solid var(--border); color: var(--text); }
+ .btn-sec:hover { background: var(--panel2); border-color: var(--border2); }
+ .btn svg { width: 16px; height: 16px; }
+
+ /* Expectations strip */
+ .expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
+ .expect .cell { background: var(--panel); padding: 18px 20px; }
+ .expect .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 7px; }
+ .expect .v { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
+ .expect .v span { display: block; font-size: 12.5px; font-weight: 400; color: var(--faint); margin-top: 3px; }
+
+ footer { border-top: 1px solid var(--border); padding: 30px 24px 60px; text-align: center; color: var(--faint); font-size: 13px; margin-top: 80px; }
+ footer a { color: var(--muted); text-decoration: none; }
+ footer a:hover { color: var(--text); }
+ .disclaimer { max-width: 740px; margin: 16px auto 0; font-size: 11.5px; color: var(--faint); line-height: 1.55; }
+
+ @media (max-width: 720px) {
+ main { padding: 52px 20px 96px; }
+ .channels { grid-template-columns: 1fr; }
+ .expect { grid-template-columns: 1fr; }
+ }
+ </style>
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Support — three.ws","description":"Support and help channels for three.ws and the x402 MCP server for IBM Granite.","url":"https://three.ws/support","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
+<body>
+ <header>
+ <a href="/" class="home">three.ws</a>
+ <nav>
+ <a href="/discover">Discover</a>
+ <a href="/docs">Docs</a>
+ <a href="/ibm">IBM watsonx</a>
+ <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>
+ </nav>
+ </header>
+
+ <main>
+ <span class="kicker"><span class="dot"></span> Support · best-effort, usually within a few business days</span>
+ <h1>How can we <span class="g">help?</span></h1>
+ <p class="lede">
+ three.ws is an open-source 3D AI agent platform, and home of the <strong>x402 MCP server for IBM Granite</strong>. Pick the channel that fits — bug reports and feature requests go to GitHub, "how do I…" questions to Discussions, and anything private or account-specific to email. Security reports get their own address.
+ </p>
+
+ <!-- ── Channels ─────────────────────────────────────────── -->
+ <section aria-labelledby="channels-h">
+ <h2 id="channels-h">Get in touch</h2>
+ <p class="sub">Every channel below is monitored by the three.ws team.</p>
+ <div class="channels">
+ <a class="channel" href="https://github.com/nirholas/three.ws/issues/new" target="_blank" rel="noopener">
+ <svg class="arrow" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M7 7h10v10"/></svg>
+ <div class="top">
+ <span class="icon"><svg viewBox="0 0 24 24" fill="var(--brand-blue-light)" aria-hidden="true"><path d="M12 .3C5.4.3 0 5.7 0 12.3c0 5.3 3.4 9.8 8.2 11.4.6.1.8-.3.8-.6v-2.1c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.9 1.2 1.9 1.2 1.1 1.8 2.9 1.3 3.6 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-5.9 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2 1-.3 2-.4 3-.4s2 .1 3 .4c2.3-1.5 3.3-1.2 3.3-1.2.7 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.8 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6 4.8-1.6 8.2-6.1 8.2-11.4C24 5.7 18.6.3 12 .3z"/></svg></span>
+ <div><h3>GitHub Issues</h3><div class="addr">github.com/nirholas/three.ws</div></div>
+ </div>
+ <p>Report a reproducible bug, a crash, or unexpected tool output — or request a feature. Public and tracked to resolution.</p>
+ </a>
+
+ <a class="channel" href="https://github.com/nirholas/three.ws/discussions" target="_blank" rel="noopener">
+ <svg class="arrow" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M7 7h10v10"/></svg>
+ <div class="top">
+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="var(--brand-blue-light)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg></span>
+ <div><h3>Discussions</h3><div class="addr">setup &amp; integration help</div></div>
+ </div>
+ <p>Ask "how do I wire this into Claude / Cursor / my agent?" or compare approaches with the community and maintainers.</p>
+ </a>
+
+ <div class="channel">
+ <div class="top">
+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="var(--brand-blue-light)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"/><path d="m22 7-10 6L2 7"/></svg></span>
+ <div><h3>Email support</h3><div class="addr">[email protected]</div></div>
+ </div>
+ <p>Private or account-specific help, billing, or anything you'd rather not post publicly.</p>
+ <div class="emailrow">
+ <a class="btn btn-sec" href="mailto:[email protected]?subject=three.ws%20support" style="padding:8px 14px;font-size:13px">Email us</a>
+ <button class="copy-btn" type="button" data-copy="[email protected]" aria-label="Copy support email address">Copy address</button>
+ </div>
+ </div>
+
+ <div class="channel">
+ <div class="top">
+ <span class="icon"><svg viewBox="0 0 24 24" fill="none" stroke="var(--brand-blue-light)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></span>
+ <div><h3>Security</h3><div class="addr">[email protected]</div></div>
+ </div>
+ <p>Report a vulnerability privately. Please don't open a public issue for anything exploitable — we prioritize these reports.</p>
+ <div class="emailrow">
+ <a class="btn btn-sec" href="mailto:[email protected]?subject=Security%20report" style="padding:8px 14px;font-size:13px">Report privately</a>
+ <button class="copy-btn" type="button" data-copy="[email protected]" aria-label="Copy security email address">Copy address</button>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ── Response expectations ────────────────────────────── -->
+ <section aria-labelledby="expect-h">
+ <h2 id="expect-h">What to expect</h2>
+ <p class="sub">three.ws is an open-source project supported by its maintainers on a best-effort basis.</p>
+ <div class="expect">
+ <div class="cell"><div class="k">Response time</div><div class="v">A few business days<span>Security reports prioritized</span></div></div>
+ <div class="cell"><div class="k">Languages</div><div class="v">English</div></div>
+ <div class="cell"><div class="k">Cost</div><div class="v">Free<span>x402 tools are pay-per-call in USDC</span></div></div>
+ </div>
+ </section>
+
+ <!-- ── Before you reach out ─────────────────────────────── -->
+ <section aria-labelledby="before-h">
+ <h2 id="before-h">Before you open an issue</h2>
+ <p class="sub">A few minutes here usually turns three round-trips into one.</p>
+ <div class="steps">
+ <div class="step">
+ <span class="n">1</span>
+ <div>
+ <h3>Check your environment variables</h3>
+ <p>Most "it won't start" reports are a missing required var — <code>MCP_SVM_PAYMENT_ADDRESS</code>, <code>WATSONX_API_KEY</code>, and <code>WATSONX_PROJECT_ID</code> (or <code>WATSONX_SPACE_ID</code>). See the <a href="https://github.com/nirholas/three.ws/blob/main/packages/ibm-x402-mcp/README.md" target="_blank" rel="noopener">README</a>.</p>
+ </div>
+ </div>
+ <div class="step">
+ <span class="n">2</span>
+ <div>
+ <h3>Reproduce with the MCP inspector</h3>
+ <p>See the raw tool input/output: <code>npx -y @modelcontextprotocol/inspector npx -y @three-ws/ibm-x402-mcp</code></p>
+ </div>
+ </div>
+ <div class="step">
+ <span class="n">3</span>
+ <div>
+ <h3>Verify your IBM credentials independently</h3>
+ <p>Create or check an API key at <a href="https://cloud.ibm.com/iam/apikeys" target="_blank" rel="noopener">cloud.ibm.com/iam/apikeys</a>, and confirm the project id under <em>watsonx.ai project → Manage → General</em>.</p>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <!-- ── What to include ──────────────────────────────────── -->
+ <section aria-labelledby="include-h">
+ <h2 id="include-h">What to include in a bug report</h2>
+ <p class="sub">The more of this you give us up front, the faster we can reproduce.</p>
+ <ul class="checklist">
+ <li><svg class="tick" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span>The <b>tool</b> you called — <code>ibm_granite_chat</code>, <code>ibm_granite_code</code>, <code>ibm_granite_embed</code>, <code>ibm_granite_analyze</code>, or <code>ibm_granite_forecast</code>.</span></li>
+ <li><svg class="tick" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span>Your <b>package version</b> and <b>Node version</b> (<code>node -v</code> — this server needs Node ≥ 20), plus your MCP client and OS.</span></li>
+ <li><svg class="tick" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span>The <b>region</b> you target via <code>WATSONX_URL</code> (defaults to <code>us-south</code>) and the <b>full error text</b>.</span></li>
+ <li><svg class="tick" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span><b>Redact secrets.</b> Never paste an API key, private key, or wallet seed. A truncated public Solana address is fine. For payment issues, the public transaction signature helps.</span></li>
+ </ul>
+ </section>
+
+ <!-- ── Product callout ──────────────────────────────────── -->
+ <section aria-labelledby="product-h">
+ <h2 id="product-h">x402 MCP for IBM Granite</h2>
+ <p class="sub">Pay-per-use IBM Granite — chat, code, embeddings, analysis, and time-series forecasting — settled in USDC on Solana. Listed on IBM Cloud Partner Center.</p>
+ <div class="callout">
+ <span class="tag"><span class="card-dot" style="width:7px;height:7px;border-radius:50%;background:var(--brand-blue);box-shadow:0 0 10px var(--brand-blue)"></span> @three-ws/ibm-x402-mcp</span>
+ <h3>Dedicated docs &amp; support for the MCP server</h3>
+ <p>End users pay <strong>USDC on Solana</strong> per call — no IBM Cloud account required. Server operators supply IBM credentials and a receiving wallet. The full support guide covers payment vs. inference issues, scope, and how to tell a three.ws problem from an IBM platform problem.</p>
+ <div class="links">
+ <a class="btn btn-primary" href="https://github.com/nirholas/three.ws/blob/main/packages/ibm-x402-mcp/SUPPORT.md" target="_blank" rel="noopener">
+ Support guide
+ <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 class="btn btn-sec" href="https://www.npmjs.com/package/@three-ws/ibm-x402-mcp" target="_blank" rel="noopener">npm package</a>
+ <a class="btn btn-sec" href="/ibm">IBM watsonx demos</a>
+ </div>
+ </div>
+ </section>
+ </main>
+
+ <footer>
+ <a href="/">three.ws</a> · <a href="/docs">Docs</a> · <a href="/ibm">IBM watsonx</a> · <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a> · <a href="mailto:[email protected]">[email protected]</a>
+ <p class="disclaimer">
+ three.ws is an independent, open-source project. The x402 MCP server integrates IBM Granite via watsonx.ai; it is not an IBM product and is not supported by IBM. For IBM watsonx.ai platform, Granite model, or IBM billing issues, contact <a href="https://cloud.ibm.com/unifieddeliveryportal" target="_blank" rel="noopener">IBM Cloud Support</a>. <em>Granite</em>, <em>watsonx</em>, and <em>watsonx.ai</em> are trademarks of IBM.
+ </p>
+ </footer>
+
+ <script type="module">
+ // Real clipboard copy with an inline confirmation — no fake timers driving UI,
+ // the "Copied" state reflects an actual successful clipboard write.
+ const REVERT_MS = 1600;
+ for (const btn of document.querySelectorAll('.copy-btn')) {
+ btn.addEventListener('click', async () => {
+ const value = btn.dataset.copy;
+ const original = btn.textContent;
+ try {
+ if (navigator.clipboard?.writeText) {
+ await navigator.clipboard.writeText(value);
+ } else {
+ const ta = document.createElement('textarea');
+ ta.value = value;
+ ta.style.position = 'fixed';
+ ta.style.opacity = '0';
+ document.body.appendChild(ta);
+ ta.select();
+ document.execCommand('copy');
+ ta.remove();
+ }
+ btn.textContent = 'Copied ✓';
+ btn.classList.add('done');
+ } catch {
+ // Clipboard blocked (permissions/insecure context) — fall back to the mailto.
+ window.location.href = 'mailto:' + value;
+ return;
+ }
+ window.setTimeout(() => {
+ btn.textContent = original;
+ btn.classList.remove('done');
+ }, REVERT_MS);
+ });
+ }
+ </script>
+ <script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+</body>
+</html>
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 000000000..c780a515e
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png
new file mode 100644
index 000000000..a707f4fd5
Binary files /dev/null and b/public/favicon-16x16.png differ
diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png
new file mode 100644
index 000000000..9fa51299e
Binary files /dev/null and b/public/favicon-32x32.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
index a0bdf04e1..e2d3a7018 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 000000000..58713989d
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1,89 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
+ <defs>
+ <!-- Vertex glow -->
+ <radialGradient id="vglow" cx="50%" cy="50%" r="50%">
+ <stop offset="0%" stop-color="#ffffff" stop-opacity="0.9"/>
+ <stop offset="30%" stop-color="#b8e8ff" stop-opacity="0.5"/>
+ <stop offset="100%" stop-color="#b8e8ff" stop-opacity="0"/>
+ </radialGradient>
+ <!-- Edge glow filter -->
+ <filter id="edgeGlow" x="-20%" y="-20%" width="140%" height="140%">
+ <feGaussianBlur stdDeviation="3" result="blur"/>
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
+ </filter>
+ <!-- Strong vertex glow filter -->
+ <filter id="vtxGlow" x="-100%" y="-100%" width="300%" height="300%">
+ <feGaussianBlur stdDeviation="8" result="blur"/>
+ <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
+ </filter>
+ <!-- Cube face gradient — top -->
+ <linearGradient id="faceTop" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="#1a2a3a" stop-opacity="0.7"/>
+ <stop offset="100%" stop-color="#0a1520" stop-opacity="0.85"/>
+ </linearGradient>
+ <!-- Cube face gradient — right -->
+ <linearGradient id="faceRight" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#0f1e2e" stop-opacity="0.8"/>
+ <stop offset="100%" stop-color="#060e18" stop-opacity="0.9"/>
+ </linearGradient>
+ <!-- Cube face gradient — left -->
+ <linearGradient id="faceLeft" x1="1" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="#0d1a28" stop-opacity="0.75"/>
+ <stop offset="100%" stop-color="#080f1a" stop-opacity="0.9"/>
+ </linearGradient>
+ </defs>
+
+ <!-- Background -->
+ <rect width="512" height="512" rx="96" fill="#080814"/>
+
+ <!-- Isometric cube — 3/4 view like 3d.png -->
+ <!-- Vertices: top=256,110 front-left=116,256 front-right=396,256
+ bottom=256,402 back-left=116,182 back-right=396,182 -->
+
+ <!-- Left face -->
+ <polygon points="256,110 116,182 116,330 256,402" fill="url(#faceLeft)" stroke="none"/>
+ <!-- Right face -->
+ <polygon points="256,110 396,182 396,330 256,402" fill="url(#faceRight)" stroke="none"/>
+ <!-- Top face -->
+ <polygon points="256,110 116,182 256,254 396,182" fill="url(#faceTop)" stroke="none"/>
+
+ <!-- Subtle inner grid lines on faces -->
+ <!-- Left face grid -->
+ <line x1="186" y1="146" x2="186" y2="366" stroke="#1a3a5a" stroke-width="0.5" opacity="0.3"/>
+ <line x1="116" y1="256" x2="256" y2="256" stroke="#1a3a5a" stroke-width="0.5" opacity="0.3"/>
+ <!-- Right face grid -->
+ <line x1="326" y1="146" x2="326" y2="366" stroke="#1a3a5a" stroke-width="0.5" opacity="0.3"/>
+ <line x1="256" y1="256" x2="396" y2="256" stroke="#1a3a5a" stroke-width="0.5" opacity="0.3"/>
+ <!-- Top face grid -->
+ <line x1="186" y1="146" x2="326" y2="146" stroke="#1a3a5a" stroke-width="0.5" opacity="0.25"/>
+ <line x1="256" y1="110" x2="256" y2="254" stroke="#1a3a5a" stroke-width="0.5" opacity="0.25"/>
+
+ <!-- Edges — glowing cyan/white like crystal cube -->
+ <!-- Top edges -->
+ <line x1="256" y1="110" x2="116" y2="182" stroke="#7ec8e3" stroke-width="2" opacity="0.7" filter="url(#edgeGlow)"/>
+ <line x1="256" y1="110" x2="396" y2="182" stroke="#7ec8e3" stroke-width="2" opacity="0.7" filter="url(#edgeGlow)"/>
+ <!-- Top front edge -->
+ <line x1="116" y1="182" x2="256" y2="254" stroke="#5aadcf" stroke-width="1.5" opacity="0.5" filter="url(#edgeGlow)"/>
+ <line x1="396" y1="182" x2="256" y2="254" stroke="#5aadcf" stroke-width="1.5" opacity="0.5" filter="url(#edgeGlow)"/>
+ <!-- Vertical edges -->
+ <line x1="116" y1="182" x2="116" y2="330" stroke="#5aadcf" stroke-width="1.8" opacity="0.5" filter="url(#edgeGlow)"/>
+ <line x1="396" y1="182" x2="396" y2="330" stroke="#5aadcf" stroke-width="1.8" opacity="0.5" filter="url(#edgeGlow)"/>
+ <line x1="256" y1="254" x2="256" y2="402" stroke="#4a9abf" stroke-width="1.5" opacity="0.4" filter="url(#edgeGlow)"/>
+ <!-- Bottom edges -->
+ <line x1="116" y1="330" x2="256" y2="402" stroke="#5aadcf" stroke-width="1.8" opacity="0.55" filter="url(#edgeGlow)"/>
+ <line x1="396" y1="330" x2="256" y2="402" stroke="#5aadcf" stroke-width="1.8" opacity="0.55" filter="url(#edgeGlow)"/>
+
+ <!-- Bright vertex glows — matching 3d.png's bright corner highlights -->
+ <!-- Top vertex — brightest -->
+ <circle cx="256" cy="110" r="14" fill="url(#vglow)" filter="url(#vtxGlow)"/>
+ <!-- Left vertex -->
+ <circle cx="116" cy="182" r="10" fill="url(#vglow)" opacity="0.6" filter="url(#vtxGlow)"/>
+ <!-- Right vertex -->
+ <circle cx="396" cy="182" r="10" fill="url(#vglow)" opacity="0.6" filter="url(#vtxGlow)"/>
+ <!-- Front-bottom vertex -->
+ <circle cx="256" cy="402" r="8" fill="url(#vglow)" opacity="0.35" filter="url(#vtxGlow)"/>
+ <!-- Mid vertices — subtler -->
+ <circle cx="256" cy="254" r="7" fill="url(#vglow)" opacity="0.3" filter="url(#vtxGlow)"/>
+ <circle cx="116" cy="330" r="7" fill="url(#vglow)" opacity="0.3" filter="url(#vtxGlow)"/>
+ <circle cx="396" cy="330" r="7" fill="url(#vglow)" opacity="0.4" filter="url(#vtxGlow)"/>
+</svg>
diff --git a/public/features.json b/public/features.json
index 95ae6eba7..d917f356c 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-05T17:59:37.875Z",
+ "generated_at": "2026-06-06T17:39:07.846Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/footer.html b/public/footer.html
index 876083a4f..a354f7b48 100644
--- a/public/footer.html
+++ b/public/footer.html
@@ -71,6 +71,7 @@
<div class="h-footer-link-col">
<h4 class="h-footer-link-heading">Developers</h4>
<a href="/docs">Docs</a>
+ <a href="/support">Support</a>
<a href="/sitemap">Sitemap</a>
<a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>
</div>
diff --git a/public/pwa-192x192.png b/public/pwa-192x192.png
index 3438a05a3..6f3de1834 100644
Binary files a/public/pwa-192x192.png and b/public/pwa-192x192.png differ
diff --git a/public/pwa-512x512.png b/public/pwa-512x512.png
index c6ce55590..55d751382 100644
Binary files a/public/pwa-512x512.png and b/public/pwa-512x512.png differ
diff --git a/public/site.webmanifest b/public/site.webmanifest
new file mode 100644
index 000000000..20eaf3635
--- /dev/null
+++ b/public/site.webmanifest
@@ -0,0 +1,28 @@
+{
+ "name": "three.ws",
+ "short_name": "three.ws",
+ "description": "The 3D agent layer of the internet — living 3D AI agents you can embed anywhere.",
+ "start_url": "/",
+ "display": "standalone",
+ "background_color": "#050510",
+ "theme_color": "#050510",
+ "icons": [
+ {
+ "src": "/favicon.svg",
+ "type": "image/svg+xml",
+ "sizes": "any"
+ },
+ {
+ "src": "/pwa-192x192.png",
+ "type": "image/png",
+ "sizes": "192x192",
+ "purpose": "any maskable"
+ },
+ {
+ "src": "/pwa-512x512.png",
+ "type": "image/png",
+ "sizes": "512x512",
+ "purpose": "any maskable"
+ }
+ ]
+}
diff --git a/scripts/gen-icons.mjs b/scripts/gen-icons.mjs
new file mode 100644
index 000000000..3954fd6c9
--- /dev/null
+++ b/scripts/gen-icons.mjs
@@ -0,0 +1,149 @@
+#!/usr/bin/env node
+/**
+ * Generate the full three.ws icon set from the canonical brand mark
+ * (public/three.svg — the colorful waveform cube).
+ *
+ * Outputs into public/:
+ * favicon.ico (16+32+48, PNG-encoded, transparent)
+ * favicon.svg (copy of three.svg — crisp modern tab icon)
+ * favicon-16x16.png
+ * favicon-32x32.png
+ * apple-touch-icon.png (180, dark rounded background)
+ * pwa-192x192.png (maskable, dark background)
+ * pwa-512x512.png (maskable, dark background)
+ * site.webmanifest
+ *
+ * Run: node scripts/gen-icons.mjs
+ */
+import sharp from 'sharp';
+import { readFile, writeFile, copyFile } from 'node:fs/promises';
+import { resolve, dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const pub = resolve(root, 'public');
+const SRC = resolve(pub, 'three.svg');
+
+// Brand background for maskable / apple icons — matches <meta theme-color>.
+const BG = '#050510';
+
+const svg = await readFile(SRC);
+
+// Render the logo (transparent) at a given size with light padding so the
+// cube breathes inside the canvas instead of touching the edges.
+async function renderLogo(size, padRatio = 0.0) {
+ const inner = Math.round(size * (1 - padRatio * 2));
+ const logo = await sharp(svg)
+ .resize(inner, inner, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 } })
+ .png()
+ .toBuffer();
+ if (inner === size) return logo;
+ return sharp({
+ create: { width: size, height: size, channels: 4, background: { r: 0, g: 0, b: 0, alpha: 0 } },
+ })
+ .composite([{ input: logo, gravity: 'center' }])
+ .png()
+ .toBuffer();
+}
+
+// Logo on a dark rounded square (PWA / apple-touch). Maskable-safe: keeps the
+// mark inside the safe zone with generous padding.
+async function renderOnBg(size, padRatio = 0.16) {
+ const radius = Math.round(size * 0.22);
+ const mask = Buffer.from(
+ `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}"><rect width="${size}" height="${size}" rx="${radius}" ry="${radius}"/></svg>`,
+ );
+ const inner = Math.round(size * (1 - padRatio * 2));
+ const logo = await sharp(svg)
+ .resize(inner, inner, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 } })
+ .png()
+ .toBuffer();
+ const bg = await sharp({
+ create: { width: size, height: size, channels: 4, background: BG },
+ })
+ .composite([
+ { input: logo, gravity: 'center' },
+ { input: mask, blend: 'dest-in' },
+ ])
+ .png()
+ .toBuffer();
+ return bg;
+}
+
+// Build a PNG-payload .ico from a set of square PNG buffers.
+function buildIco(images) {
+ const count = images.length;
+ const header = Buffer.alloc(6);
+ header.writeUInt16LE(0, 0); // reserved
+ header.writeUInt16LE(1, 2); // type: icon
+ header.writeUInt16LE(count, 4);
+
+ const entries = [];
+ const payloads = [];
+ let offset = 6 + count * 16;
+ for (const { size, data } of images) {
+ const entry = Buffer.alloc(16);
+ entry.writeUInt8(size >= 256 ? 0 : size, 0); // width (0 == 256)
+ entry.writeUInt8(size >= 256 ? 0 : size, 1); // height
+ entry.writeUInt8(0, 2); // palette
+ entry.writeUInt8(0, 3); // reserved
+ entry.writeUInt16LE(1, 4); // color planes
+ entry.writeUInt16LE(32, 6); // bits per pixel
+ entry.writeUInt32LE(data.length, 8); // size of payload
+ entry.writeUInt32LE(offset, 12); // offset
+ offset += data.length;
+ entries.push(entry);
+ payloads.push(data);
+ }
+ return Buffer.concat([header, ...entries, ...payloads]);
+}
+
+// --- favicon.ico (16, 32, 48) ---
+const icoSizes = [16, 32, 48];
+const icoImages = await Promise.all(
+ icoSizes.map(async (size) => ({ size, data: await renderLogo(size) })),
+);
+await writeFile(resolve(pub, 'favicon.ico'), buildIco(icoImages));
+
+// --- standalone PNG favicons ---
+await writeFile(resolve(pub, 'favicon-16x16.png'), await renderLogo(16));
+await writeFile(resolve(pub, 'favicon-32x32.png'), await renderLogo(32));
+
+// --- apple-touch + maskable PWA icons (dark background) ---
+await writeFile(resolve(pub, 'apple-touch-icon.png'), await renderOnBg(180));
+await writeFile(resolve(pub, 'pwa-192x192.png'), await renderOnBg(192));
+await writeFile(resolve(pub, 'pwa-512x512.png'), await renderOnBg(512));
+
+// --- modern SVG favicon (copy of canonical mark) ---
+await copyFile(SRC, resolve(pub, 'favicon.svg'));
+
+// --- web manifest ---
+const manifest = {
+ name: 'three.ws',
+ short_name: 'three.ws',
+ description: 'The 3D agent layer of the internet — living 3D AI agents you can embed anywhere.',
+ start_url: '/',
+ display: 'standalone',
+ background_color: BG,
+ theme_color: BG,
+ icons: [
+ { src: '/favicon.svg', type: 'image/svg+xml', sizes: 'any' },
+ { src: '/pwa-192x192.png', type: 'image/png', sizes: '192x192', purpose: 'any maskable' },
+ { src: '/pwa-512x512.png', type: 'image/png', sizes: '512x512', purpose: 'any maskable' },
+ ],
+};
+await writeFile(resolve(pub, 'site.webmanifest'), JSON.stringify(manifest, null, 2) + '\n');
+
+console.log('Icon set generated from', SRC.replace(root + '/', ''));
+for (const f of [
+ 'favicon.ico',
+ 'favicon.svg',
+ 'favicon-16x16.png',
+ 'favicon-32x32.png',
+ 'apple-touch-icon.png',
+ 'pwa-192x192.png',
+ 'pwa-512x512.png',
+ 'site.webmanifest',
+]) {
+ console.log(' public/' + f);
+}
diff --git a/vercel.json b/vercel.json
index b3be4744c..820c9cb6d 100644
--- a/vercel.json
+++ b/vercel.json
@@ -203,6 +203,14 @@
"status": 308,
"headers": { "Location": "/ibm/galaxy" }
},
+ {
+ "src": "/support",
+ "dest": "/support.html"
+ },
+ {
+ "src": "/support/",
+ "dest": "/support.html"
+ },
{
"src": "/rss/announcements\\.xml",
"dest": "/api/rss/announcements"
@@ -1737,6 +1745,13 @@
},
{
"src": "/avatars/([^/]+\\.glb)",
+ "headers": {
+ "cache-control": "public, max-age=604800, stale-while-revalidate=2592000",
+ "access-control-allow-origin": "*",
+ "access-control-allow-methods": "GET, HEAD, OPTIONS",
+ "cross-origin-resource-policy": "cross-origin",
+ "timing-allow-origin": "*"
+ },
"dest": "/avatars/$1"
},
{
@@ -2363,7 +2378,7 @@
{
"src": "/agent-3d/(latest|[0-9]+|[0-9]+\\.[0-9]+)/(.*)",
"headers": {
- "cache-control": "public, max-age=300, s-maxage=300, stale-while-revalidate=86400",
+ "cache-control": "public, max-age=3600, s-maxage=300, stale-while-revalidate=86400",
"access-control-allow-origin": "*",
"access-control-allow-methods": "GET, HEAD, OPTIONS",
"cross-origin-resource-policy": "cross-origin",
@@ -2383,10 +2398,21 @@
},
"dest": "/agent-3d/versions.json"
},
+ {
+ "src": "/animations/(.*)",
+ "headers": {
+ "cache-control": "public, max-age=604800, stale-while-revalidate=2592000",
+ "access-control-allow-origin": "*",
+ "access-control-allow-methods": "GET, HEAD, OPTIONS",
+ "cross-origin-resource-policy": "cross-origin",
+ "timing-allow-origin": "*"
+ },
+ "dest": "/animations/$1"
+ },
{
"src": "/assets/(.*)",
"headers": {
- "cache-control": "max-age=604800, public",
+ "cache-control": "public, max-age=31536000, immutable",
"cross-origin-resource-policy": "cross-origin"
},
"dest": "/assets/$1"
@@ -2841,6 +2867,14 @@
"src": "/api/agents/endpoint-shopper-run",
"dest": "/api/agents/endpoint-shopper-run.js"
},
+ {
+ "src": "/(.*\\.(?:svg|png|jpg|jpeg|gif|webp|avif|ico|woff2|woff|ttf|otf|glb|gltf|hdr|exr|ktx2|basis|bin))$",
+ "headers": {
+ "cache-control": "public, max-age=604800, stale-while-revalidate=2592000",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/$1"
+ },
{
"src": "/(.*)",
"dest": "/$1"
diff --git a/vite.config.js b/vite.config.js
index e6d4fed5a..639bd9028 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -387,6 +387,7 @@ const appConfig = {
'ibm-proof': resolve(__dirname, 'pages/ibm/proof.html'),
'ibm-twin': resolve(__dirname, 'pages/ibm/twin.html'),
'ibm-identity': resolve(__dirname, 'pages/ibm/identity.html'),
+ support: resolve(__dirname, 'pages/support.html'),
// dashboard-next prototype — sub-pages auto-discovered so the parallel
// agents that land new pages/dashboard-next/*.html files don't have to
// touch this config to register them as Rollup inputs.
@@ -636,6 +637,8 @@ const appConfig = {
'/ibm/twin/': resolve(root, 'pages/ibm/twin.html'),
'/ibm/identity': resolve(root, 'pages/ibm/identity.html'),
'/ibm/identity/': resolve(root, 'pages/ibm/identity.html'),
+ '/support': resolve(root, 'pages/support.html'),
+ '/support/': resolve(root, 'pages/support.html'),
// Top-level galaxy/constellation are routed in vercel.json (prod) and
// linked from the global nav — mirror them here so local dev matches prod
// instead of 404ing.