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: add tutorials link to navigation in home, features, and tutorials pages

nirholas27f0be5cf359
diff --git a/chat/index.html b/chat/index.html
index 25866989b..a2cf6a355 100644
--- a/chat/index.html
+++ b/chat/index.html
@@ -34,6 +34,7 @@
crossorigin="anonymous"
/>
<title>three.ws chat</title>
+ <link rel="stylesheet" href="/footer.css" />
<script type="importmap">
{
"imports": {
diff --git a/chat/src/App.svelte b/chat/src/App.svelte
index f0bc49d63..21d5e6c95 100644
--- a/chat/src/App.svelte
+++ b/chat/src/App.svelte
@@ -2796,3 +2796,144 @@
height: 7px;
}
</style>
+</script>
+
+<footer class="h-footer-horizon" style="margin-top: auto;">
+ <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>
+ </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="/features">Features</a>
+ <a href="/dashboard">Dashboard</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>
+
+<style>
+ :global(body.user-is-touching) .group:focus-within .group-focus-within\:visible {
+ visibility: visible;
+ opacity: 1;
+ }
+ :global(.h-footer-horizon) {
+ background: #F5F4EF !important;
+ color: #1A1A1A !important;
+ border-top: 1px solid #E5E3DC !important;
+ }
+ :global(.h-footer-horizon .h-footer-glow-line, .h-footer-horizon .h-footer-floor, .h-footer-horizon .h-footer-haze, .h-footer-horizon .h-footer-watermark) {
+ display: none;
+ }
+ :global(.h-footer-links a) {
+ color: rgba(0,0,0,0.65) !important;
+ }
+ :global(.h-footer-links a:hover) {
+ color: #000 !important;
+ text-shadow: none !important;
+ }
+ :global(.h-footer-link-heading) {
+ color: rgba(0,0,0,0.45) !important;
+ }
+ :global(.h-footer-brand) {
+ color: #000 !important;
+ }
+ :global(.h-footer-brand .wordmark-dot) {
+ background: #000 !important;
+ box-shadow: none !important;
+ }
+ :global(.h-footer-tagline) {
+ color: rgba(0,0,0,0.55) !important;
+ }
+ :global(.h-footer-legal) {
+ color: rgba(0,0,0,0.52) !important;
+ }
+ :global(.h-footer-legal-links a) {
+ color: rgba(0,0,0,0.65) !important;
+ }
+ :global(.h-footer-social) {
+ color: rgba(0,0,0,0.65) !important;
+ background: rgba(0,0,0,0.03) !important;
+ border-color: rgba(0,0,0,0.06) !important;
+ }
+ :global(.h-footer-social:hover) {
+ color: #000 !important;
+ background: rgba(0,0,0,0.08) !important;
+ border-color: rgba(0,0,0,0.18) !important;
+ }
+ :global(.h-footer-bottom) {
+ border-top: 1px solid rgba(0,0,0,0.06) !important;
+ }
+ :global(.h-footer-inner) {
+ margin-bottom: 2rem;
+ }
+
+ .container {
+// ... existing code ...
+</style>
diff --git a/home.html b/home.html
index 69a6a830e..87cc09d07 100644
--- a/home.html
+++ b/home.html
@@ -219,6 +219,7 @@
<li class="nav-item" role="none">
<a href="/features" role="menuitem">Features</a>
</li>
+ <li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem">Tutorials</a></li>
<li class="nav-item" id="home-nav-my-agents-li" role="none" hidden>
<a href="/my-agents" id="home-nav-my-agents" role="menuitem">My Agents</a>
</li>
diff --git a/public/features/index.html b/public/features/index.html
index a5567576c..4491eac79 100644
--- a/public/features/index.html
+++ b/public/features/index.html
@@ -130,6 +130,14 @@
</li>
</ul>
</li>
+ <li class="nav-item" role="none"><a href="/docs" role="menuitem">Docs</a></li>
+ <li class="nav-item" role="none">
+ <a href="/features" role="menuitem">Features</a>
+ </li>
+ <li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem">Tutorials</a></li>
+ <li class="nav-item" id="home-nav-my-agents-li" role="none" hidden>
+ <a href="/my-agents" id="home-nav-my-agents" role="menuitem">My Agents</a>
+ </li>
</ul>
</nav>
</header>
diff --git a/public/pumpfun.html b/public/pumpfun.html
index 901fbef10..cf168e8c4 100644
--- a/public/pumpfun.html
+++ b/public/pumpfun.html
@@ -143,7 +143,7 @@
@media (prefers-reduced-motion: reduce) {
.pf-modal-backdrop, .pf-modal, .pf-skeleton, .pf-toast { animation: none; }
}
- main.pf-main { position: relative; flex: 1; min-height: calc(100vh - var(--header-h) - 56px); display: grid; grid-template-columns: 1fr 360px; }
+ main.pf-main { position: relative; flex: 1; min-height: calc(100vh - var(--header-h) - 56px); display: grid; grid-template-columns: 1fr; }
#stage { position: relative; display: flex; flex-direction: column; }
iframe { width: 100%; flex: 1; border: 0; display: block; background: var(--bg); }
#anim-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px;
@@ -157,7 +157,77 @@
.anim-chip:active { transform: scale(0.96); }
.anim-chip[data-active="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.anim-chip[disabled] { opacity: 0.5; cursor: wait; }
- #side { border-left: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; overflow: hidden; }
+ @media (min-width: 721px) {
+ #side {
+ position: absolute;
+ right: 16px;
+ top: 16px;
+ width: 360px;
+ max-height: 80vh;
+ z-index: 100;
+ border-radius: 8px;
+ box-shadow: 0 8px 24px rgba(0,0,0,0.4);
+ border: 1px solid var(--border);
+ background: var(--panel);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ }
+ }
+
+ #side-content {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ }
+ #side-header {
+ display: none; /* hidden on mobile by default */
+ }
+ @media (min-width: 721px) {
+ #side-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 6px 12px;
+ background: #1a1a24;
+ cursor: move;
+ border-bottom: 1px solid var(--border);
+ user-select: none;
+ }
+ }
+ #side-header .side-title {
+ font-weight: 600;
+ font-size: 13px;
+ }
+ .side-controls {
+ display: flex;
+ gap: 4px;
+ }
+ .side-control-btn {
+ background: transparent;
+ border: 0;
+ color: var(--muted);
+ cursor: pointer;
+ font-size: 16px;
+ line-height: 1;
+ padding: 4px;
+ width: 24px;
+ height: 24px;
+ border-radius: 4px;
+ }
+ .side-control-btn:hover {
+ background: #2a2a36;
+ color: #eee;
+ }
+ #side.minimized #side-content {
+ display: none;
+ }
+ #side.minimized {
+ max-height: none;
+ height: auto;
+ }
#side h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
color: var(--muted); margin: 12px 16px 6px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
#agent-card { padding: 4px 16px 12px; border-bottom: 1px solid var(--border); }
@@ -337,6 +407,7 @@
</button>
</div>
<button id="ctl-narrate" class="toggle" type="button" data-on="1" title="Toggle agent narration">🔊 Narration</button>
+ <button id="ctl-announce-mints" class="toggle" type="button" data-on="0" title="Toggle new coin announcements">🚀 New coins</button>
<select id="ctl-mood" title="Avatar mood — biases reaction intensity">
<option value="chill">😎 Chill</option>
<option value="normal" selected>🙂 Normal</option>
@@ -352,28 +423,37 @@
<div id="anim-chips" role="group" aria-label="Trigger animation"></div>
</div>
<aside id="side">
- <h2>Agent</h2>
- <div id="agent-card"><div class="empty">Default narrator avatar. Paste a Solana asset pubkey above to bind a specific agent.</div></div>
- <div id="signals-section" hidden>
- <h2>Reputation signals</h2>
- <div class="signal-grid" id="signals"></div>
- </div>
- <div id="first-claims-section">
- <h2>
- <span>First-time fee claims</span>
- <select id="fc-window" title="Lookback window" style="margin-left:8px;background:#0f0f17;color:#e6e6f0;border:1px solid #20202c;border-radius:6px;padding:2px 6px;font-size:12px">
- <option value="60">1h</option>
- <option value="360">6h</option>
- <option value="1440" selected>24h</option>
- </select>
- <button type="button" id="fc-refresh" class="pf-icon-btn" title="Refresh first-time claims" style="margin-left:6px">↻</button>
- </h2>
- <div id="first-claims"><div class="empty">Loading first-time claims…</div></div>
+ <div class="side-header" id="side-header">
+ <span class="side-title">Live Feed</span>
+ <div class="side-controls">
+ <button id="side-minimize" class="side-control-btn" title="Minimize">_</button>
+ <button id="side-close" class="side-control-btn" title="Close">×</button>
+ </div>
</div>
- <div id="feed-wrap">
- <h2><span id="feed-title">Live feed</span><a id="helius-pill" class="helius-pill" href="https://helius.dev" target="_blank" rel="noopener" title="Real-time Solana data via Helius webhooks"><span class="helius-dot" aria-hidden="true"></span><span id="helius-count" class="helius-count">0</span>Powered by Helius</a></h2>
- <button type="button" class="feed-jump" id="feed-jump" data-visible="false" aria-live="polite">↑ <span id="feed-jump-count">0</span> new</button>
- <div id="feed"><div class="empty">Waiting for events…</div></div>
+ <div id="side-content">
+ <h2>Agent</h2>
+ <div id="agent-card"><div class="empty">Default narrator avatar. Paste a Solana asset pubkey above to bind a specific agent.</div></div>
+ <div id="signals-section" hidden>
+ <h2>Reputation signals</h2>
+ <div class="signal-grid" id="signals"></div>
+ </div>
+ <div id="first-claims-section">
+ <h2>
+ <span>First-time fee claims</span>
+ <select id="fc-window" title="Lookback window" style="margin-left:8px;background:#0f0f17;color:#e6e6f0;border:1px solid #20202c;border-radius:6px;padding:2px 6px;font-size:12px">
+ <option value="60">1h</option>
+ <option value="360">6h</option>
+ <option value="1440" selected>24h</option>
+ </select>
+ <button type="button" id="fc-refresh" class="pf-icon-btn" title="Refresh first-time claims" style="margin-left:6px">↻</button>
+ </h2>
+ <div id="first-claims"><div class="empty">Loading first-time claims…</div></div>
+ </div>
+ <div id="feed-wrap">
+ <h2><span id="feed-title">Live feed</span><a id="helius-pill" class="helius-pill" href="https://helius.dev" target="_blank" rel="noopener" title="Real-time Solana data via Helius webhooks"><span class="helius-dot" aria-hidden="true"></span><span id="helius-count" class="helius-count">0</span>Powered by Helius</a></h2>
+ <button type="button" class="feed-jump" id="feed-jump" data-visible="false" aria-live="polite">↑ <span id="feed-jump-count">0</span> new</button>
+ <div id="feed"><div class="empty">Waiting for events…</div></div>
+ </div>
</div>
</aside>
</main>
@@ -423,10 +503,11 @@
const params = {
asset: url.searchParams.get('asset') || '',
mint: url.searchParams.get('mint') || '',
- kind: url.searchParams.get('kind') || 'all',
+ kind: url.search_params.get('kind') || 'all',
minTier: url.searchParams.get('minTier') || '',
network: url.searchParams.get('network') || 'mainnet',
narrate: url.searchParams.get('narrate') !== '0',
+ announceMints: url.searchParams.get('announceMints') === '1',
mood: url.searchParams.get('mood') || 'normal',
avatar: url.searchParams.get('avatar') || '/avatars/cz.glb',
};
@@ -436,6 +517,7 @@
$('ctl-kind').value = params.kind;
$('ctl-tier').value = params.minTier;
$('ctl-narrate').dataset.on = params.narrate ? '1' : '0';
+ $('ctl-announce-mints').dataset.on = params.announceMints ? '1' : '0';
$('ctl-mood').value = params.mood;
// ── Avatar picker ────────────────────────────────────────────────────
@@ -750,6 +832,7 @@
set('kind', params.kind === 'all' ? '' : params.kind);
set('minTier', params.minTier);
set('narrate', params.narrate ? '' : '0');
+ set('announceMints', params.announceMints ? '1' : '');
set('avatar', params.avatar === '/avatars/cz.glb' ? '' : params.avatar);
history.replaceState(null, '', u.toString());
}
@@ -997,6 +1080,72 @@
el.innerHTML = cards.join('');
}
+ // ── Draggable panel ──────────────────────────────────────────────────
+ const side = $('side');
+ const sideHeader = $('side-header');
+ if (side && sideHeader) {
+ let isDragging = false;
+ let offsetX, offsetY;
+ sideHeader.addEventListener('mousedown', (e) => {
+ if (e.target.closest('.side-control-btn')) return;
+ isDragging = true;
+ offsetX = e.clientX - side.offsetLeft;
+ offsetY = e.clientY - side.offsetTop;
+ document.body.style.cursor = 'move';
+ document.body.style.userSelect = 'none';
+ });
+ document.addEventListener('mousemove', (e) => {
+ if (!isDragging) return;
+ e.preventDefault();
+
+ const main = document.querySelector('main.pf-main');
+ const parentRect = main.getBoundingClientRect();
+ const sideRect = side.getBoundingClientRect();
+
+ let newLeft = e.clientX - offsetX;
+ let newTop = e.clientY - offsetY;
+
+ // Constrain to parent (main element)
+ newLeft = Math.max(0, Math.min(newLeft, main.offsetWidth - side.offsetWidth));
+ newTop = Math.max(0, Math.min(newTop, main.offsetHeight - side.offsetHeight));
+
+ side.style.left = `${newLeft}px`;
+ side.style.top = `${newTop}px`;
+ side.style.right = 'auto';
+ side.style.bottom = 'auto';
+ });
+ document.addEventListener('mouseup', () => {
+ isDragging = false;
+ document.body.style.cursor = '';
+ document.body.style.userSelect = '';
+ });
+ const minimizeBtn = $('side-minimize');
+ if (minimizeBtn) {
+ minimizeBtn.addEventListener('click', () => {
+ side.classList.toggle('minimized');
+ });
+ }
+ const closeBtn = $('side-close');
+ if (closeBtn) {
+ closeBtn.addEventListener('click', () => {
+ side.style.display = 'none';
+ if ($('side-toggle')) {
+ $('side-toggle').setAttribute('aria-pressed', 'false');
+ document.body.classList.remove('side-open');
+ }
+ });
+ }
+ // When side-toggle is used (mobile), ensure panel is visible
+ if ($('side-toggle')) {
+ $('side-toggle').addEventListener('click', () => {
+ if (side.style.display === 'none') {
+ side.style.display = 'flex';
+ }
+ });
+ }
+ }
+
+
// ── Live event feed (host-side, mirrors what the iframe receives) ────
let es = null;
const TIER_BADGE = { mega: '🔥🔥', influencer: '🔥', notable: '⭐' };
@@ -1315,6 +1464,8 @@
<div class="evt-mint">${escapeHtml(mint)}</div>
<div class="evt-meta">
${ev.signature ? `<a href="https://solscan.io/tx/${encodeURIComponent(ev.signature)}" target="_blank" rel="noopener">TX ↗</a>` : ''}
+ ${mint ? ` · <a href="https://pump.fun/coin/${encodeURIComponent(mint)}" target="_blank" rel="noopener">pump.fun</a>` : ''}
+ ${tsStr ? ` · 🕐 ${escapeHtml(tsStr)}` : ''}
${mint ? ` · <button class="evt-copy" type="button" data-copy="${attr(mint)}" title="Copy mint">📋</button>` : ''}
${mint ? ` · <button class="evt-focus" type="button" data-focus="${attr(mint)}" title="Filter to this mint">🎯</button>` : ''}
</div>
@@ -1412,7 +1563,7 @@
<div class="evt-mint">${escapeHtml(mint)}</div>
<div class="evt-meta">
${sig ? `🔗 <a href="https://solscan.io/tx/${encodeURIComponent(sig)}" target="_blank" rel="noopener">TX</a>` : ''}
- ${mint ? ` · <a href="https://pump.fun/coin/${m}" target="_blank" rel="noopener">pump.fun</a>` : ''}
+ ${mint ? ` · <a href="https://pump.fun/coin/${encodeURIComponent(mint)}" target="_blank" rel="noopener">pump.fun</a>` : ''}
${tsStr ? ` · 🕐 ${escapeHtml(tsStr)}` : ''}
${mint ? ` · <button class="evt-copy" type="button" data-copy="${attr(mint)}" title="Copy mint">📋</button>` : ''}
${mint ? ` · <button class="evt-focus" type="button" data-focus="${attr(mint)}" title="Filter to this mint">🎯</button>` : ''}
@@ -1581,7 +1732,7 @@
$('ctl-mint').value = focus;
params.mint = focus;
syncURL();
- iframe.contentWindow?.postMessage({ type: 'pumpfun-feed:focus-mint', mint: focus }, '*');
+ iframe.contentWindow?.postMessage({ type: 'pumpfun-feed:focus-mint', mint: focus || null }, '*');
}
});
diff --git a/scripts/seed-skills.mjs b/scripts/seed-skills.mjs
new file mode 100644
index 000000000..519dbc191
--- /dev/null
+++ b/scripts/seed-skills.mjs
@@ -0,0 +1,70 @@
+import { AgentSkills } from '../src/agent-skills.js';
+import { sql } from '../api/_lib/db.js';
+
+async function seed() {
+ const _noop = () => {};
+ const _stub = { emit: _noop, on: _noop, off: _noop, add: _noop, query: () => [] };
+ const skills = new AgentSkills(_stub, _stub).list();
+
+ console.log(`Found ${skills.length} skills to seed.`);
+
+ for (const skill of skills) {
+ const { name, description, inputSchema, mcpExposed } = skill;
+
+ // Don't add skills without a description
+ if (!description) {
+ console.warn(`Skipping skill "${name}" because it has no description.`);
+ continue;
+ }
+
+ // Generate a slug from the name
+ const slug = name.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
+
+ // Extract category from name, or default
+ let category = 'utility';
+ const nameParts = name.split('-');
+ if (nameParts.length > 1) {
+ category = nameParts[0];
+ }
+
+ const newSkill = {
+ name,
+ slug,
+ description,
+ category,
+ is_public: true,
+ schema_json: inputSchema ? [ { function: { name: name, parameters: inputSchema } } ] : null,
+ };
+
+ console.log(`Seeding skill: ${newSkill.name}`);
+
+ try {
+ await sql`
+ insert into marketplace_skills (
+ name, slug, description, category, is_public, schema_json
+ ) values (
+ ${newSkill.name}, ${newSkill.slug}, ${newSkill.description}, ${newSkill.category}, ${newSkill.is_public}, ${sql.json(newSkill.schema_json)}
+ )
+ on conflict (slug) do update set
+ name = excluded.name,
+ description = excluded.description,
+ category = excluded.category,
+ is_public = excluded.is_public,
+ schema_json = excluded.schema_json,
+ updated_at = now()
+ `;
+ console.log(` -> Successfully seeded skill: ${newSkill.name}`);
+ } catch (error) {
+ console.error(` -> Error seeding skill ${newSkill.name}:`, error);
+ }
+ }
+
+ console.log('Seeding complete.');
+ // close the database connection
+ await sql.end();
+}
+
+seed().catch(err => {
+ console.error("Seeding script failed:", err);
+ process.exit(1);
+});
diff --git a/src/viewer.js b/src/viewer.js
index 0232dbb58..65539ddcd 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -25,6 +25,7 @@ import { GUI } from 'dat.gui';
import { environments } from './environments.js';
import { createModelInfo } from './model-info.js';
+import { isDecentralizedURI, resolveURI } from './ipfs.js';
import { canUseQuickLook, openQuickLook } from './ar/quick-look.js';
import { canUseSceneViewer, openSceneViewer } from './ar/scene-viewer.js';
import { WebXRSession } from './ar/webxr.js';
@@ -549,12 +550,23 @@ export class Viewer {
return new Promise((resolve, reject) => {
// Intercept and override relative URLs.
MANAGER.setURLModifier((url, path) => {
+ let finalUrl = url;
+
+ // Fix for broken IPFS gateway domain.
+ if (finalUrl.includes('//cf-ipfs.com')) {
+ finalUrl = finalUrl.replace('//cf-ipfs.com', '//cloudflare-ipfs.com');
+ }
+
+ if (isDecentralizedURI(finalUrl)) {
+ return resolveURI(finalUrl);
+ }
+
// URIs in a glTF file may be escaped, or not. Assume that assetMap is
// from an un-escaped source, and decode all URIs before lookups.
// See: https://github.com/nirholas/three.ws/issues/146
const normalizedURL =
rootPath +
- decodeURI(url)
+ decodeURI(finalUrl)
.replace(baseURL, '')
.replace(/^(\.?\/)/, '');
@@ -565,7 +577,7 @@ export class Viewer {
return blobURL;
}
- return (path || '') + url;
+ return (path || '') + finalUrl;
});
const blobURLs = [];
@@ -637,6 +649,7 @@ export class Viewer {
// Add content and build the animation panel BEFORE computing the camera
// so the panel's rendered height is available for panel-aware framing.
this.scene.add(object);
+ object.rotation.y = Math.PI;
this.content = object;
this.state.punctualLights = true;
@@ -728,6 +741,7 @@ export class Viewer {
if (window.VIEWER) window.VIEWER.scene = this.content;
+ this.controls.enabled = true;
this.invalidate();
// Smooth first-load camera reveal — runs after the scene is fully wired
diff --git a/src/widgets/pumpfun-feed.js b/src/widgets/pumpfun-feed.js
index 5484ee266..b8a532c90 100644
--- a/src/widgets/pumpfun-feed.js
+++ b/src/widgets/pumpfun-feed.js
@@ -14,10 +14,20 @@
*/
import { applyReaction, createReactionDispatcher, mountReactionToast } from './pumpfun-reactions.js';
+import { WORD_BLACKLIST } from '../profanity.js';
const FEED_PATH = '/api/agents/pumpfun-feed';
const TIER_BADGE = { mega: '🔥🔥', influencer: '🔥', notable: '⭐' };
+function isBlocked(ev) {
+ if (!ev) return false;
+ const name = (ev.name || ev.token_name || '').toLowerCase();
+ const symbol = (ev.symbol || ev.token_symbol || '').toLowerCase();
+ const desc = (ev.description || '').toLowerCase();
+ const text = name + ' ' + symbol + ' ' + desc;
+ return WORD_BLACKLIST.some((word) => text.includes(word));
+}
+
/**
* @param {import('../viewer.js').Viewer} viewer
* @param {object} config
@@ -29,15 +39,18 @@ export async function mountPumpfunFeed(viewer, config, container, ctx = {}) {
root.className = 'pumpfun-feed';
root.style.cssText = [
'position:absolute',
- 'right:16px',
- 'top:16px',
+ 'right:0',
+ 'top:0',
+ 'bottom:0',
'width:320px',
- 'max-height:80%',
+ 'max-height:100%',
'overflow-y:auto',
'pointer-events:auto',
'z-index:5',
'font-family:ui-sans-serif,system-ui,-apple-system,sans-serif',
'color:#fff',
+ 'padding: 16px',
+ 'box-sizing: border-box'
].join(';');
(container || document.body).appendChild(root);
diff --git a/three.ws_pumpfun (2).png b/three.ws_pumpfun (2).png
new file mode 100644
index 000000000..296fd23d7
Binary files /dev/null and b/three.ws_pumpfun (2).png differ
diff --git a/tutorials.html b/tutorials.html
index ab522c11e..99a934ad2 100644
--- a/tutorials.html
+++ b/tutorials.html
@@ -212,6 +212,7 @@
<li class="nav-item" role="none">
<a href="/features" role="menuitem">Features</a>
</li>
+ <li class="nav-item" role="none"><a href="/tutorials.html" role="menuitem">Tutorials</a></li>
<li class="nav-item" id="home-nav-my-agents-li" role="none" hidden>
<a href="/my-agents" id="home-nav-my-agents" role="menuitem">My Agents</a>
</li>