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 festive Fourth of July decorations to homepage with fireworks and ribbon glow

fudjiae3fdcaa3accf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3e52893f..b625e4f9a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Markets — Live Crypto Prices** (`/coins`) — Live global cryptocurrency market data: total market cap, dominance, Fear & Greed, and the top coins with prices, 24h/7d moves, and 7d sparklines. Every coin links to a rich /coin/:id detail page with an interactive chart, market stats, related news, and official links.
- **3D avatars load about 4x faster - and reliably everywhere** — Seven of the heaviest built-in avatars were compressed from a combined 42 MB down to under 10 MB (76% smaller), so avatar pickers, NPC scenes, and the walk companion appear much sooner - especially on slower connections. Along the way we fixed a loading bug: a few pages, including the live agent-to-agent trade demo, could silently show placeholder capsule figures instead of the real 3D avatars. Every 3D surface on the site now decodes compressed avatars correctly. `[improvement, fix]`
+- **A little Fourth of July on the homepage** — For Independence Day (July 1–5) the homepage wears a touch of red, white, and blue: a soft ribbon glow along the top of the page and real launch-and-burst fireworks that rise and shower over the hero. It's sparse and tasteful, respects your reduced-motion setting, pauses when the tab is in the background, and retires itself automatically once the holiday passes. (`/`) `[improvement]`
- **A little Fourth of July on the homepage** — Visit the homepage this week and you'll catch some quiet Independence Day touches: a thin red-white-and-blue line across the top of the page and the occasional tiny firework sparkling in the hero. Nothing loud — it keeps the site clean, respects reduced-motion settings, works in both light and dark themes, and retires itself automatically after July 5. (`/`) `[improvement]`
- **Deploys restored — the platform ships again, and builds are 4× lighter** — three.ws was briefly unreachable while production moved to new infrastructure: every deploy was timing out at the build platform's 45-minute ceiling. The root cause is fixed — a monitoring SDK was being baked into every one of the platform's ~800 API functions, inflating the deploy payload to 2.3 GB; it now loads only where it is actually enabled, cutting that to 540 MB. Two smaller deploy blockers found along the way (a build-order race and two missing packages) are fixed too. The site is back, deploys complete with time to spare, and nothing about how you use the platform changes. `[infra, fix]`
- **Four gestures return to the walk companion — nod, shrug, jog, celebrate** — The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in. (`/walk`) `[fix]`
diff --git a/data/changelog.json b/data/changelog.json
index 7e274bfdb..5eaa0c9ff 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-04",
+ "title": "A little Fourth of July on the homepage",
+ "summary": "For Independence Day (July 1–5) the homepage wears a touch of red, white, and blue: a soft ribbon glow along the top of the page and real launch-and-burst fireworks that rise and shower over the hero. It's sparse and tasteful, respects your reduced-motion setting, pauses when the tab is in the background, and retires itself automatically once the holiday passes.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/"
+ },
{
"date": "2026-07-04",
"title": "Global markets — live prices and a rich detail page for every coin",
diff --git a/public/changelog.json b/public/changelog.json
index cbcc9a3f1..667643665 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-04T05:07:28.444Z",
+ "generated_at": "2026-07-04T06:20:12.980Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -27,6 +27,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-04",
+ "type": "update",
+ "title": "A little Fourth of July on the homepage",
+ "summary": "For Independence Day (July 1–5) the homepage wears a touch of red, white, and blue: a soft ribbon glow along the top of the page and real launch-and-burst fireworks that rise and shower over the hero. It's sparse and tasteful, respects your reduced-motion setting, pauses when the tab is in the background, and retires itself automatically once the holiday passes.",
+ "link": "/",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-07-04",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 5993b4291..0a261a14e 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -22,6 +22,14 @@
<category>improvement</category>
<description>Seven of the heaviest built-in avatars were compressed from a combined 42 MB down to under 10 MB (76% smaller), so avatar pickers, NPC scenes, and the walk companion appear much sooner - especially on slower connections. Along the way we fixed a loading bug: a few pages, including the live agent-to-agent trade demo, could silently show placeholder capsule figures instead of the real 3D avatars. Every 3D surface on the site now decodes compressed avatars correctly.</description>
</item>
+ <item>
+ <title>A little Fourth of July on the homepage</title>
+ <link>https://three.ws/</link>
+ <guid isPermaLink="false">2026-07-04:A little Fourth of July on the homepage</guid>
+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>For Independence Day (July 1–5) the homepage wears a touch of red, white, and blue: a soft ribbon glow along the top of the page and real launch-and-burst fireworks that rise and shower over the hero. It's sparse and tasteful, respects your reduced-motion setting, pauses when the tab is in the background, and retires itself automatically once the holiday passes.</description>
+ </item>
<item>
<title>A little Fourth of July on the homepage</title>
<link>https://three.ws/</link>
diff --git a/public/features.json b/public/features.json
index 416790c0b..52d2380da 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-04T05:07:28.419Z",
+ "generated_at": "2026-07-04T06:20:12.967Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/seasonal.js b/public/seasonal.js
index e8dac60c4..704233efd 100644
--- a/public/seasonal.js
+++ b/public/seasonal.js
@@ -5,68 +5,64 @@
* year-round and retire itself automatically.
*
* Currently: Independence Day (July 1–5, viewer's local time).
- * - a faint red/white/blue hairline across the very top of the viewport
- * - sparse, tiny firework bursts inside the page's `.hero` (skipped when
- * the visitor prefers reduced motion, or when no hero exists)
- * Both layers are aria-hidden, pointer-events:none, and theme-aware.
+ * - a soft red/white/blue ribbon glow across the very top of the viewport
+ * - real launch-and-burst fireworks on a lightweight canvas confined to the
+ * page's `.hero` — rockets rise with a trail, then explode into a patriotic
+ * shower that falls and fades. Sparse by design (one rocket every few
+ * seconds) so it reads as celebratory, not busy.
+ *
+ * Every layer is aria-hidden, pointer-events:none, and theme-aware. Fireworks
+ * are skipped entirely for visitors who prefer reduced motion (the ribbon
+ * still shows), and the animation pauses whenever the tab is hidden.
*/
(() => {
const now = new Date();
if (now.getMonth() !== 6 || now.getDate() > 5) return; // July 1–5 only
- if (document.getElementById('seasonal-hairline')) return;
+ if (document.getElementById('seasonal-ribbon')) return;
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const style = document.createElement('style');
style.textContent = `
:root {
- --fw-red: #ff6b6e;
- --fw-mid: #f0f2ff;
- --fw-blue: #7a97ff;
+ --fw-red: #ff5a5f;
+ --fw-mid: #f4f6ff;
+ --fw-blue: #6f8cff;
}
:root[data-theme='light'] {
--fw-red: #d4373c;
- --fw-mid: #7583c9;
+ --fw-mid: #8b97d8;
--fw-blue: #3452c7;
}
- #seasonal-hairline {
- position: fixed; top: 0; left: 0; right: 0; height: 2px;
+ #seasonal-ribbon {
+ position: fixed; top: 0; left: 0; right: 0; height: 3px;
z-index: 120; pointer-events: none;
background: linear-gradient(90deg,
- transparent, var(--fw-red) 18%, var(--fw-red) 34%,
+ transparent, var(--fw-red) 16%, var(--fw-red) 32%,
var(--fw-mid) 46%, var(--fw-mid) 54%,
- var(--fw-blue) 66%, var(--fw-blue) 82%, transparent);
- opacity: .5;
+ var(--fw-blue) 68%, var(--fw-blue) 84%, transparent);
+ opacity: .62;
+ }
+ #seasonal-ribbon::after {
+ content: ''; position: absolute; inset: -14px 0 auto 0; height: 40px;
+ background: linear-gradient(90deg,
+ transparent, color-mix(in srgb, var(--fw-red) 40%, transparent) 24%,
+ color-mix(in srgb, var(--fw-mid) 40%, transparent) 50%,
+ color-mix(in srgb, var(--fw-blue) 40%, transparent) 76%, transparent);
+ filter: blur(10px); opacity: .5;
}
.seasonal-fireworks {
position: absolute; inset: 0; overflow: hidden;
- pointer-events: none; z-index: 0;
- }
- .seasonal-fw {
- position: absolute; width: 0; height: 0;
- }
- .seasonal-fw i {
- position: absolute; left: -1.5px; top: -1.5px;
- width: 3px; height: 3px; border-radius: 50%;
- background: var(--fw-c, var(--fw-mid));
- opacity: 0;
- animation: seasonal-burst var(--fw-cycle, 12s) ease-out infinite;
- animation-delay: var(--fw-delay, 0s);
- }
- @keyframes seasonal-burst {
- 0% { opacity: 0; transform: rotate(var(--fw-a)) translateY(0) scale(1); }
- 1% { opacity: .55; }
- 9% { opacity: .3; transform: rotate(var(--fw-a)) translateY(var(--fw-r)) scale(.9); }
- 14% { opacity: 0; transform: rotate(var(--fw-a)) translateY(calc(var(--fw-r) + 14px)) scale(.4); }
- 100% { opacity: 0; transform: rotate(var(--fw-a)) translateY(calc(var(--fw-r) + 14px)) scale(.4); }
+ pointer-events: none; z-index: 1;
}
+ .seasonal-fireworks canvas { width: 100%; height: 100%; display: block; }
`;
document.head.appendChild(style);
- const hairline = document.createElement('div');
- hairline.id = 'seasonal-hairline';
- hairline.setAttribute('aria-hidden', 'true');
- document.body.appendChild(hairline);
+ const ribbon = document.createElement('div');
+ ribbon.id = 'seasonal-ribbon';
+ ribbon.setAttribute('aria-hidden', 'true');
+ document.body.appendChild(ribbon);
if (reducedMotion) return;
const hero = document.querySelector('.hero');
@@ -75,36 +71,151 @@
const layer = document.createElement('div');
layer.className = 'seasonal-fireworks';
layer.setAttribute('aria-hidden', 'true');
+ const canvas = document.createElement('canvas');
+ layer.appendChild(canvas);
+ if (getComputedStyle(hero).position === 'static') hero.style.position = 'relative';
+ hero.appendChild(layer);
- const colors = ['var(--fw-red)', 'var(--fw-mid)', 'var(--fw-blue)'];
- // Sparse: three burst sites in the hero's upper band, on offset cycles so
- // at most one is usually lighting up at a time.
- const sites = [
- { x: '16%', y: '18%', r: 52, cycle: 13, delay: 1.5 },
- { x: '78%', y: '12%', r: 64, cycle: 17, delay: 7 },
- { x: '55%', y: '30%', r: 44, cycle: 15, delay: 12 },
- ];
- for (const [i, site] of sites.entries()) {
- const fw = document.createElement('div');
- fw.className = 'seasonal-fw';
- fw.style.left = site.x;
- fw.style.top = site.y;
- fw.style.setProperty('--fw-cycle', site.cycle + 's');
- const spokes = 10;
- for (let s = 0; s < spokes; s++) {
- const p = document.createElement('i');
- p.style.setProperty('--fw-a', (s * (360 / spokes) + i * 12) + 'deg');
- p.style.setProperty('--fw-r', site.r + (s % 3) * 9 + 'px');
- p.style.setProperty('--fw-delay', site.delay + (s % 4) * 0.05 + 's');
- p.style.setProperty('--fw-c', colors[s % colors.length]);
- fw.appendChild(p);
+ const ctx = canvas.getContext('2d');
+
+ // Patriotic palette, theme-aware. Read once; re-read on theme flip.
+ const PALETTES = {
+ dark: ['#ff5a5f', '#f4f6ff', '#6f8cff', '#ffd166'],
+ light: ['#d4373c', '#e6ecff', '#3452c7', '#e0a53b'],
+ };
+ let palette = PALETTES[document.documentElement.getAttribute('data-theme') === 'light' ? 'light' : 'dark'];
+ const themeObserver = new MutationObserver(() => {
+ palette = PALETTES[document.documentElement.getAttribute('data-theme') === 'light' ? 'light' : 'dark'];
+ });
+ themeObserver.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
+
+ let dpr = Math.min(window.devicePixelRatio || 1, 2);
+ let W = 0, H = 0;
+ function resize() {
+ W = hero.clientWidth; H = hero.clientHeight;
+ dpr = Math.min(window.devicePixelRatio || 1, 2);
+ canvas.width = Math.max(1, Math.round(W * dpr));
+ canvas.height = Math.max(1, Math.round(H * dpr));
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ }
+ resize();
+ const ro = new ResizeObserver(resize);
+ ro.observe(hero);
+
+ const rockets = []; // rising trails
+ const sparks = []; // exploded particles
+ const GRAVITY = 0.05;
+ const MAX_SPARKS = 320;
+
+ function launch() {
+ if (W === 0 || H === 0) return;
+ const targetY = H * (0.16 + Math.random() * 0.34);
+ const x = W * (0.16 + Math.random() * 0.68);
+ rockets.push({
+ x, y: H + 4,
+ vy: -(Math.sqrt(2 * GRAVITY * (H - targetY)) + 0.6),
+ color: palette[(Math.random() * palette.length) | 0],
+ trail: [],
+ });
+ }
+
+ function burst(x, y, color) {
+ const count = 26 + ((Math.random() * 16) | 0);
+ const speed = 1.6 + Math.random() * 1.1;
+ for (let i = 0; i < count; i++) {
+ const a = (Math.PI * 2 * i) / count + Math.random() * 0.16;
+ const s = speed * (0.55 + Math.random() * 0.6);
+ // Mostly the rocket's color, with a few white/gold accents for pop.
+ const c = Math.random() < 0.22 ? palette[(Math.random() * palette.length) | 0] : color;
+ sparks.push({
+ x, y,
+ vx: Math.cos(a) * s,
+ vy: Math.sin(a) * s,
+ life: 1, decay: 0.012 + Math.random() * 0.012,
+ color: c, r: 1.4 + Math.random() * 1.1,
+ });
}
- layer.appendChild(fw);
+ if (sparks.length > MAX_SPARKS) sparks.splice(0, sparks.length - MAX_SPARKS);
}
- // Appended last so the dots aren't buried behind the stage's opaque
- // backdrop; they're faint, tiny, and pointer-transparent, so painting
- // over hero content reads as fireworks in the scene, not clutter.
- if (getComputedStyle(hero).position === 'static') hero.style.position = 'relative';
- hero.appendChild(layer);
+ let raf = 0;
+ let sinceLaunch = 0;
+ let nextGap = 40; // frames until first rocket
+ let running = false;
+
+ function frame() {
+ if (!running) return;
+ raf = requestAnimationFrame(frame);
+
+ // Trails fade rather than hard-clear, for a soft afterglow.
+ ctx.globalCompositeOperation = 'destination-out';
+ ctx.fillStyle = 'rgba(0,0,0,0.22)';
+ ctx.fillRect(0, 0, W, H);
+ ctx.globalCompositeOperation = 'lighter';
+
+ if (++sinceLaunch >= nextGap) {
+ sinceLaunch = 0;
+ nextGap = 150 + ((Math.random() * 130) | 0); // ~2.5–4.6s at 60fps
+ launch();
+ if (Math.random() < 0.28) launch(); // occasional double
+ }
+
+ for (let i = rockets.length - 1; i >= 0; i--) {
+ const r = rockets[i];
+ r.x += (r.vx || 0);
+ r.y += r.vy;
+ r.vy += GRAVITY;
+ r.trail.push({ x: r.x, y: r.y });
+ if (r.trail.length > 8) r.trail.shift();
+
+ ctx.beginPath();
+ for (let t = 0; t < r.trail.length; t++) {
+ const p = r.trail[t];
+ if (t === 0) ctx.moveTo(p.x, p.y); else ctx.lineTo(p.x, p.y);
+ }
+ ctx.strokeStyle = r.color;
+ ctx.globalAlpha = 0.7;
+ ctx.lineWidth = 1.6;
+ ctx.stroke();
+ ctx.globalAlpha = 1;
+
+ if (r.vy >= -0.4) { // apex reached — explode
+ burst(r.x, r.y, r.color);
+ rockets.splice(i, 1);
+ }
+ }
+
+ for (let i = sparks.length - 1; i >= 0; i--) {
+ const s = sparks[i];
+ s.x += s.vx;
+ s.y += s.vy;
+ s.vy += GRAVITY;
+ s.vx *= 0.985;
+ s.life -= s.decay;
+ if (s.life <= 0) { sparks.splice(i, 1); continue; }
+ ctx.globalAlpha = Math.max(0, s.life);
+ ctx.fillStyle = s.color;
+ ctx.beginPath();
+ ctx.arc(s.x, s.y, s.r, 0, Math.PI * 2);
+ ctx.fill();
+ }
+ ctx.globalAlpha = 1;
+ }
+
+ function start() {
+ if (running) return;
+ running = true;
+ sinceLaunch = 0; nextGap = 40;
+ raf = requestAnimationFrame(frame);
+ }
+ function stop() {
+ running = false;
+ if (raf) cancelAnimationFrame(raf);
+ raf = 0;
+ }
+
+ document.addEventListener('visibilitychange', () => {
+ if (document.hidden) stop(); else start();
+ });
+ if (!document.hidden) start();
})();