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
feat: sitewide nav/footer injection, nav.css overhaul, marketplace updates
nirholasfc5ec295ccc3
diff --git a/a-edit.html b/a-edit.htmlindex 52b506eca..df3355387 100644--- a/a-edit.html+++ b/a-edit.html@@ -242,8 +242,19 @@text-align: center;}</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<header class="ce-page-header"><a id="back-link" href="/marketplace.html">← Back</a></header>@@ -277,5 +288,8 @@});}</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/agent-detail.html b/agent-detail.htmlindex 5de12a01a..50d9afc51 100644--- a/agent-detail.html+++ b/agent-detail.html@@ -56,8 +56,19 @@}</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="ad-shell"><div id="withdraw-modal" class="ad-modal-overlay hidden"><div class="ad-modal">diff --git a/agent-edit.html b/agent-edit.htmlindex e23aae51e..08f68683a 100644--- a/agent-edit.html+++ b/agent-edit.html@@ -477,8 +477,19 @@color: rgba(255, 255, 255, 0.4);}</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<a href="#main" class="skip-link">Skip to main content</a><header class="edit-header"><a id="back-link" href="/" aria-label="Back to agent page">← Agent</a>@@ -699,5 +710,8 @@<div class="outfit-status" id="outfit-status" role="status" aria-live="polite"></div><script type="module" src="/src/agent-edit.js"></script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/agent-home.html b/agent-home.htmlindex 4ba836ef0..64bea2a91 100644--- a/agent-home.html+++ b/agent-home.html@@ -710,6 +710,7 @@color: rgba(255,255,255,0.7);}</style>+ <link rel="stylesheet" href="/nav.css" /></head><body><a href="#main" class="skip-link">Skip to main content</a>diff --git a/app-demo.html b/app-demo.htmlindex 0012d55d6..19ec176a5 100644--- a/app-demo.html+++ b/app-demo.html@@ -56,6 +56,8 @@rel="stylesheet"/><script defer type="module" src="/src/app.js"></script>+ <link rel="stylesheet" href="/nav.css" />+ <script defer src="/footer-newsletter.js"></script></head><body class="app-demo-body"><header>@@ -328,5 +330,8 @@}});</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/app.html b/app.htmlindex cddf2f7b6..e656898fd 100644--- a/app.html+++ b/app.html@@ -54,6 +54,8 @@rel="stylesheet"/><script defer type="module" src="/src/app.js"></script>+ <link rel="stylesheet" href="/nav.css" />+ <script defer src="/footer-newsletter.js"></script></head><body><header>@@ -326,5 +328,8 @@}});</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/avatar-page.html b/avatar-page.htmlindex 381ac247d..b6fff84d9 100644--- a/avatar-page.html+++ b/avatar-page.html@@ -250,8 +250,17 @@margin-top: 1rem;}</style>+ <link rel="stylesheet" href="/nav.css" /></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<header class="av-header"><a href="/" aria-label="Back to three.ws">← three.ws</a><button class="av-copy-btn" id="copy-btn">copy link</button>diff --git a/community.html b/community.htmlindex dc940307a..8cb9f455d 100644--- a/community.html+++ b/community.html@@ -8,8 +8,19 @@<link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/features.css" /><link rel="stylesheet" href="/community.css" />+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body class="features-page">+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="page-background"><div class="page-background-grid"></div><div class="page-background-mesh"></div>@@ -25,5 +36,8 @@</div></section></main>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/marketplace.html b/marketplace.htmlindex e499b2b03..52abc5dde 100644--- a/marketplace.html+++ b/marketplace.html@@ -850,8 +850,19 @@<script src="https://unpkg.com/@solana/wallet-adapter-react-ui@latest/lib/index.iife.js"></script><script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body class="market-page">+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<aside class="market-sidebar" id="market-sidebar"><a href="/" class="market-logo"><img src="/three.svg" alt="three.ws" />@@ -919,10 +930,7 @@<div class="wallet-adapter-button-container"></div></header>- <div class="market-body">- <aside class="market-cats" id="market-cats" aria-label="Categories"></aside>- <div class="market-grid" id="market-grid"></div>- </div>+ <div class="market-grid" id="market-grid"></div><div class="market-loadmore"><button id="market-loadmore" hidden>Load more</button></div>@@ -1226,6 +1234,9 @@</div></div></div>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/playground.html b/playground.htmlindex 77269050a..e33b68707 100644--- a/playground.html+++ b/playground.html@@ -63,7 +63,10 @@margin: 2rem auto;}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><header class="agent-page-header" style="justify-content: space-between"><div style="display:inline-flex;align-items:center"><a href="/marketplace.html?tab=mine" aria-label="Back to three.ws home">@@ -323,5 +326,8 @@loadAvatar(savedAvatar || defaultAvatar);});</script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pretext-demo.html b/pretext-demo.htmlindex ea77e8282..7f0b35ce0 100644--- a/pretext-demo.html+++ b/pretext-demo.html@@ -254,7 +254,10 @@display: none;}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body><div id="err"></div>@@ -646,5 +649,8 @@ This is the final interface. Not a dashboard. Not a feed. A world where your agerequestAnimationFrame(frame);}</script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/profile.html b/profile.htmlindex 33ab30c9e..e7a81b0c3 100644--- a/profile.html+++ b/profile.html@@ -319,8 +319,17 @@}}</style>+ <link rel="stylesheet" href="/nav.css" /></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<header class="profile-page-header"><a href="/" aria-label="Back to three.ws home">← three.ws</a><button class="profile-copy-btn" id="copy-profile-btn" aria-label="Copy profile link">diff --git a/public/footer-newsletter.js b/public/footer-newsletter.jsindex e19322c18..dd018372a 100644--- a/public/footer-newsletter.js+++ b/public/footer-newsletter.js@@ -1,10 +1,13 @@// Wires up the footer newsletter form on any page that includes it.// POSTs to /api/newsletter/subscribe and shows inline success/error.+// Idempotent — safe to call multiple times. Forms are tagged once they're+// wired so dynamic footer injection (see /footer.js) re-triggers without+// double-binding.(function () {- const forms = document.querySelectorAll('[data-newsletter-form]');- if (!forms.length) return;+ function wireForm(form) {+ if (form.__newsletterWired) return;+ form.__newsletterWired = true;- forms.forEach((form) => {const input = form.querySelector('input[name="email"]');const btn = form.querySelector('button[type="submit"]');const msg = form.parentElement?.querySelector('[data-newsletter-msg]');@@ -44,5 +47,12 @@btn.disabled = false;}});- });+ }++ function scan() {+ document.querySelectorAll('[data-newsletter-form]').forEach(wireForm);+ }++ window.__threewsFooterNewsletterReady = scan;+ scan();})();diff --git a/public/footer.html b/public/footer.htmlnew file mode 100644index 000000000..60b789705--- /dev/null+++ b/public/footer.html@@ -0,0 +1,107 @@+<footer class="h-footer h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-avatar" aria-hidden="true">+ <model-viewer+ src="/animations/robotexpressive.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="20deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.7"+ environment-image="neutral"+ camera-orbit="0deg 80deg 9m"+ field-of-view="35deg"+ loading="lazy"+ ></model-viewer>+ </div>++ <div class="h-footer-cta">+ <div class="h-footer-newsletter">+ <h3>Stay in the loop</h3>+ <p>Get updates on new features, agent tooling, and protocol changes.</p>+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>+ <input+ type="email"+ class="h-footer-newsletter-input"+ name="email"+ placeholder="Enter your email"+ aria-label="Email address"+ autocomplete="email"+ required+ />+ <button type="submit" class="h-footer-newsletter-btn" aria-label="Subscribe">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2 8h11m0 0L9 4m4 4l-4 4"/></svg>+ </button>+ </form>+ <p class="h-footer-newsletter-msg" data-newsletter-msg aria-live="polite"></p>+ </div>+ <div class="h-footer-community">+ <h3>Join the community</h3>+ <p>Follow along for builds, demos, and conversations with the team.</p>+ <a class="h-footer-community-btn" href="https://x.com/trythreews" target="_blank" rel="noopener">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ Follow on X+ </a>+ </div>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ <div class="h-footer-socials">+ <a class="h-footer-social" href="https://x.com/trythreews" target="_blank" rel="noopener" aria-label="three.ws on X">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ </a>+ <a class="h-footer-social" href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener" aria-label="three.ws on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ </a>+ </div>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Product</h4>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/discover">Discover</a>+ <a href="/marketplace">Marketplace</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Solana</h4>+ <a href="/pay">Pay-per-call</a>+ <a href="/pumpfun">Pump.fun</a>+ <a href="/vanity-wallet">Vanity wallet</a>+ <a href="/eth-vanity">ETH vanity</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Developers</h4>+ <a href="/docs">Docs</a>+ <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Resources</h4>+ <a href="/dashboard">Dashboard</a>+ <a href="/community">Community</a>+ <a href="/tutorials">Tutorials</a>+ </div>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-legal-links">+ <a href="/legal/privacy">Privacy Policy</a>+ <a href="/legal/tos">Terms of Use</a>+ </div>+ </div>+</footer>diff --git a/public/footer.js b/public/footer.jsnew file mode 100644index 000000000..5d3f13e23--- /dev/null+++ b/public/footer.js@@ -0,0 +1,58 @@+// Loads the canonical site footer into any page that contains+// <div id="footer-container"></div>. Mirrors /nav.js: ensures footer.css+// is on the page, fetches /footer.html, injects it, and lazy-loads the+// newsletter wiring + model-viewer module if not already present.+(function () {+ function ensureStylesheet(href) {+ if (!document.querySelector(`link[href="${href}"]`)) {+ const link = document.createElement('link');+ link.rel = 'stylesheet';+ link.href = href;+ document.head.appendChild(link);+ }+ }++ function ensureScript({ src, type, attr }) {+ if (document.querySelector(`script[src="${src}"]`)) return;+ const s = document.createElement('script');+ s.src = src;+ if (type) s.type = type;+ if (attr) s.setAttribute(attr, '');+ document.head.appendChild(s);+ }++ function init() {+ const container = document.getElementById('footer-container');+ if (!container) return;++ ensureStylesheet('/footer.css');++ fetch('/footer.html')+ .then((r) => r.text())+ .then((html) => {+ container.innerHTML = html;++ if (container.querySelector('model-viewer')) {+ ensureScript({+ src: 'https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js',+ type: 'module',+ });+ }++ ensureScript({ src: '/footer-newsletter.js', attr: 'defer' });+ // If footer-newsletter.js was already loaded earlier, re-run its+ // wiring against the just-injected form by dispatching a custom+ // event the script listens for, or re-import as a fallback.+ if (window.__threewsFooterNewsletterReady) {+ window.__threewsFooterNewsletterReady();+ }+ })+ .catch(() => {});+ }++ if (document.readyState === 'loading') {+ document.addEventListener('DOMContentLoaded', init);+ } else {+ init();+ }+})();diff --git a/public/nav.css b/public/nav.cssindex e10117869..400949d0b 100644--- a/public/nav.css+++ b/public/nav.css@@ -218,3 +218,63 @@right: 0;}}++/* ── Standalone site header (used by pages that don't ship their own).+ Pages with their own custom header keep using it; this class is only+ applied to the canonical block injected into otherwise-bare pages. ── */+.site-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1.5rem;+ padding: 0.9rem 1.5rem;+ background: rgba(8, 8, 10, 0.78);+ backdrop-filter: blur(14px);+ -webkit-backdrop-filter: blur(14px);+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ position: sticky;+ top: 0;+ z-index: 50;+ color: #fff;+ font-family: 'Space Grotesk', 'Inter', sans-serif;+}++.site-header-brand {+ margin: 0;+ font-size: 1.05rem;+ font-weight: 600;+ letter-spacing: -0.01em;+}++.site-header-brand a {+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ color: #fff;+ text-decoration: none;+}++.site-header-brand .wordmark-logo {+ width: 22px;+ height: 22px;+ display: inline-block;+ vertical-align: middle;+ flex-shrink: 0;+}++.site-header-brand .wordmark-dot {+ display: inline-block;+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: #fff;+ box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);+}++@media (max-width: 720px) {+ .site-header {+ padding: 0.75rem 1rem;+ gap: 0.75rem;+ }+}+diff --git a/pump-3d-agent.html b/pump-3d-agent.htmlindex d9cf0ef3e..979f854e9 100644--- a/pump-3d-agent.html+++ b/pump-3d-agent.html@@ -69,8 +69,19 @@to { opacity: 1; transform: translateY(0); }}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div id="header"><h1>PumpFun Live</h1>@@ -129,5 +140,8 @@<script type="module" src="/src/pump-live-client.js"></script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pump-coin-page.html b/pump-coin-page.htmlindex 70da19776..93b9ad27e 100644--- a/pump-coin-page.html+++ b/pump-coin-page.html@@ -63,8 +63,19 @@overflow: hidden;}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="container"><div class="header"><img src="https://pump.fun/_next/image?url=%2Fandroid-chrome-512x512.png&w=128&q=75" alt="Coin" class="coin-img">@@ -80,5 +91,8 @@<p>In a real-world scenario, websites like pump.fun would sanitize this description to prevent HTML and script injection for security reasons. This demo illustrates what would be possible if they allowed certain HTML elements like iframes.</p></div></div>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pump-dashboard.html b/pump-dashboard.htmlindex 8296d13f3..b1789a402 100644--- a/pump-dashboard.html+++ b/pump-dashboard.html@@ -442,8 +442,19 @@}</style><div id="toast-container"></div>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="app"><!-- ── Sidebar ─────────────────────────── --><aside class="sidebar">@@ -2089,5 +2100,8 @@ Object.assign(window, {agentAction, playAnimation,});</script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pump-live.html b/pump-live.htmlindex dde6d3880..2ebdad752 100644--- a/pump-live.html+++ b/pump-live.html@@ -137,8 +137,19 @@#viewer-container { border-right: none; }}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div id="header"><h1>🚀 3D Agent Live Feed</h1>@@ -268,6 +279,9 @@// Initial connectionconnect();</script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pump-visualizer.html b/pump-visualizer.htmlindex 9d5f21ca2..f05b9bc7c 100644--- a/pump-visualizer.html+++ b/pump-visualizer.html@@ -11,8 +11,19 @@body { margin: 0; overflow: hidden; }canvas { display: block; }</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<script type="module">import * as THREE from 'three';@@ -41,5 +52,8 @@animate();</script>++ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/pumpfun-buy.html b/pumpfun-buy.htmlindex a290d9fba..929b163ab 100644--- a/pumpfun-buy.html+++ b/pumpfun-buy.html@@ -39,8 +39,19 @@font-weight: bold;}</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="container"><div id="token-info">Loading...</div><button id="buy-button">Buy on Pump.fun</button>@@ -61,5 +72,8 @@};}</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/pumpfun-search.html b/pumpfun-search.htmlindex 3d5b0c875..d4d739b63 100644--- a/pumpfun-search.html+++ b/pumpfun-search.html@@ -48,8 +48,19 @@.entry .meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #666; margin-top: 3px; }.entry .mcap { color: #b366ff; font-weight: bold; }</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<input type="text" id="search-input" placeholder="Search tokens..."><div id="results"></div><script type="module">@@ -118,5 +129,8 @@return d.innerHTML;}</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/pumpfun-trending.html b/pumpfun-trending.htmlindex 8b91d176e..01acb50d8 100644--- a/pumpfun-trending.html+++ b/pumpfun-trending.html@@ -44,8 +44,19 @@.entry .meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #666; margin-top: 3px; }.entry .mcap { color: #b366ff; font-weight: bold; }</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div id="root"></div><script type="module">const TRENDING_API = '/api/pump/trending';@@ -102,5 +113,8 @@fetchTrending();</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/scripts/add-nav-footer.mjs b/scripts/add-nav-footer.mjsnew file mode 100644index 000000000..104bded72--- /dev/null+++ b/scripts/add-nav-footer.mjs@@ -0,0 +1,131 @@+// One-shot: ensure every user-facing top-level HTML page has the global+// nav and footer wired in. Idempotent — re-running is a no-op for pages+// already correct.+//+// Run with: node scripts/add-nav-footer.mjs+import { readFileSync, writeFileSync } from 'node:fs';+import { resolve } from 'node:path';++const ROOT = resolve(process.cwd());++// User-facing pages. Embeds, widgets, and standalone artifact pages are+// intentionally excluded — they're rendered inside iframes or on devices+// where chrome would be noise.+const PAGES = [+ 'agent-detail.html',+ 'agent-edit.html',+ 'agent-home.html',+ 'a-edit.html',+ 'app.html',+ 'app-demo.html',+ 'avatar-page.html',+ 'community.html',+ 'create.html',+ 'home.html',+ 'marketplace.html',+ 'playground.html',+ 'pretext-demo.html',+ 'profile.html',+ 'pump-3d-agent.html',+ 'pump-coin-page.html',+ 'pump-dashboard.html',+ 'pump-live.html',+ 'pump-sdk-case-study.html',+ 'pump-visualizer.html',+ 'pumpfun-buy.html',+ 'pumpfun-search.html',+ 'pumpfun-trending.html',+ 'three-ws-launch-week.html',+ 'threews-launch-week-case-study.html',+ 'tutorials.html',+ 'widget-studio.html',+ 'widgets.html',+];++const NAV_CSS = '<link rel="stylesheet" href="/nav.css" />';+const FOOTER_CSS = '<link rel="stylesheet" href="/footer.css" />';+const NEWSLETTER_JS = '<script defer src="/footer-newsletter.js"></script>';++const NAV_BLOCK = `+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+`;++const FOOTER_BLOCK = `+ <div id="footer-container"></div>+ <script src="/footer.js"></script>+`;++function ensureInHead(html, snippet, marker) {+ if (html.includes(marker)) return html;+ const m = html.match(/<\/head>/i);+ if (!m) return html;+ const idx = m.index;+ return html.slice(0, idx) + `\t\t${snippet}\n\t` + html.slice(idx);+}++function hasAnyNav(html) {+ if (/id=["']nav-container["']/.test(html)) return true;+ if (/class=["'][^"']*home-nav/.test(html)) return true;+ // A custom <header> that itself contains a <nav> is treated as having nav.+ const headerMatch = html.match(/<header\b[^>]*>[\s\S]*?<\/header>/i);+ if (headerMatch && /<nav\b/i.test(headerMatch[0])) return true;+ return false;+}++function hasFooter(html) {+ return /<footer[\s>]/i.test(html) || /id=["']footer-container["']/.test(html);+}++function injectAfterBody(html, snippet) {+ const m = html.match(/<body[^>]*>/i);+ if (!m) return html;+ const idx = m.index + m[0].length;+ return html.slice(0, idx) + snippet + html.slice(idx);+}++function injectBeforeBodyClose(html, snippet) {+ const m = html.match(/<\/body>/i);+ if (!m) return html;+ const idx = m.index;+ return html.slice(0, idx) + snippet + html.slice(idx);+}++let changed = 0;+for (const file of PAGES) {+ const path = resolve(ROOT, file);+ let html;+ try {+ html = readFileSync(path, 'utf8');+ } catch {+ console.warn(`skip (missing): ${file}`);+ continue;+ }+ const orig = html;++ // Always make sure the global stylesheets/scripts are present in <head>.+ html = ensureInHead(html, NAV_CSS, '/nav.css');+ html = ensureInHead(html, FOOTER_CSS, '/footer.css');+ html = ensureInHead(html, NEWSLETTER_JS, '/footer-newsletter.js');++ if (!hasAnyNav(html)) {+ html = injectAfterBody(html, NAV_BLOCK);+ }+ if (!hasFooter(html)) {+ html = injectBeforeBodyClose(html, FOOTER_BLOCK);+ }++ if (html !== orig) {+ writeFileSync(path, html);+ changed++;+ console.log(`updated: ${file}`);+ } else {+ console.log(`ok: ${file}`);+ }+}+console.log(`\n${changed} files updated of ${PAGES.length}`);diff --git a/src/marketplace.js b/src/marketplace.jsindex 7b9894ad8..70e92d222 100644--- a/src/marketplace.js+++ b/src/marketplace.js@@ -100,6 +100,7 @@ window.addEventListener('popstate', render);async function loadCategories() {+ if (!els.cats) return;try {const r = await fetch(`${API}/marketplace/categories`);const j = await r.json();@@ -110,6 +111,7 @@ async function loadCategories() {}function renderCategories(data) {+ if (!els.cats) return;const total = data?.total || 0;const counts = Object.fromEntries((data?.categories || []).map((cat) => [cat.slug, cat.count]));const rows = [@@ -146,6 +148,7 @@ function renderCategories(data) {}function highlightActiveCat() {+ if (!els.cats) return;els.cats.querySelectorAll('.cat-row').forEach((el) => {const slug = el.dataset.cat || null;const active =diff --git a/three-ws-launch-week.html b/three-ws-launch-week.htmlindex 0845888d0..114338377 100644--- a/three-ws-launch-week.html+++ b/three-ws-launch-week.html@@ -717,8 +717,19 @@transform: translateY(0);}</style>-</head>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script>+ </head><body>+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<!-- ═══════════ HERO ═══════════ --><header class="hero">diff --git a/widget-studio.html b/widget-studio.htmlindex 1b595d622..1da72b76a 100644--- a/widget-studio.html+++ b/widget-studio.html@@ -48,8 +48,19 @@word-wrap: break-word;}</style>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body class="market-page">+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<div class="studio-container"><aside class="studio-sidebar"><h2>Widget Studio</h2>@@ -124,5 +135,8 @@updatePreviewAndCode();</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>diff --git a/widgets.html b/widgets.htmlindex 7cd61f56c..bed5c1988 100644--- a/widgets.html+++ b/widgets.html@@ -61,8 +61,19 @@href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"rel="stylesheet"/>+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script></head><body class="market-page">+ <header class="site-header">+ <h1 class="site-header-brand">+ <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>+ </h1>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>+<aside class="market-sidebar" id="market-sidebar"><a href="/" class="market-logo"><img src="/three.svg" alt="three.ws" />@@ -288,5 +299,8 @@}});</script>- </body>++ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body></html>