Curated website design inspiration gallery, open zero-auth MCP server for AI agents, and shareable moodboard lists.
JavaScript ai-agentschatgptclaude-codecodexcurated-listcursordesign-gallerydesign-inspirationdesign-systemsdesign-tastefrontendmcpmcp-servermodel-context-protocolmoodboardopen-sourceui-designweb-design
Restore tilted 4-column centered design for <1MB social-preview.gif at 128 colors / near-lossless
Ethanb4b71c09617d
diff --git a/docs/images/social-preview.gif b/docs/images/social-preview.gifindex c8edaef..aadd97f 100644Binary files a/docs/images/social-preview.gif and b/docs/images/social-preview.gif differdiff --git a/scripts/render-og.mjs b/scripts/render-og.mjsindex 5fa37fc..d26e689 100644--- a/scripts/render-og.mjs+++ b/scripts/render-og.mjs@@ -4,7 +4,7 @@* 1. apps/gallery/og.jpg (1200×630 static hero OG for social unfurls)* 2. docs/images/og-motion.mp4 (1200×630 60fps seamless 8s H.264 loop)* 3. docs/images/og-motion.gif (720×378 16fps seamless 8s optimized GIF)- * 4. docs/images/social-preview.gif (640×320 12.5fps seamless 2.4s <1MB GIF for GitHub Social Preview)+ * 4. docs/images/social-preview.gif (640×320 12.5fps seamless 1.92s <1MB tilted 4-col GIF)** Pass --social-only to regenerate only docs/images/social-preview.gif.*@@ -355,15 +355,17 @@ async function runCmd(cmd, args) {async function renderSocialPreviewGif(browser, data) {const W = 640;const H = 320;- const SP_FRAMES = 30; // 2.4s @ 12.5fps (exact 80ms/frame GIF delay, exact 10px/frame step!)+ const SP_FRAMES = 24; // 1.92s @ 12.5fps (exact 80ms/frame GIF delay, seamless loop)const SP_FPS = 12.5;+ // 8 iconic sites across 4 tilted alternating columns (larger cards -> SET_H=304px, zero visible dupes!)const SP_COLS = [- ["linear", "stripe-press", "raycast"],- ["stripe", "playdate", "mercury"],- ["recraft", "rive", "daylight"],+ ["linear", "raycast"],+ ["stripe", "playdate"],+ ["recraft", "rive"],+ ["mercury", "daylight"],];- const SP_PHASES = [0.08, 0.42, 0.22];- const SP_DIRS = [1, -1, 1];+ const SP_PHASES = [0.22, 0.36, 0.14, 0.48];+ const SP_DIRS = [1, -1, 1, -1];const byId = new Map(data.columns.flat().map((c) => [c.id, c]));const geistSans = fs@@ -373,16 +375,16 @@ async function renderSocialPreviewGif(browser, data) {.readFileSync(path.join(GALLERY_DIR, "fonts/geist-mono-variable.woff2")).toString("base64");- const CARD_W = 110;- const CARD_H = 92;- const GAP = 8;- const STRIDE = CARD_H + GAP; // 100px exact- const SET_H = 3 * STRIDE; // 300px exact -> 300 / 30 = 10.000px per frame!+ const CARD_W = 208;+ const CARD_H = 140;+ const GAP = 12;+ const STRIDE = CARD_H + GAP; // 152px+ const SET_H = 2 * STRIDE; // 304px (> visible height with vignette -> no duplicate cards visible)const colsHtml = SP_COLS.map((ids, ci) => {const cards = ids.map((id) => byId.get(id));- const quad = [...cards, ...cards, ...cards, ...cards];- return `<div class="col"><div class="track" data-col="${ci}">${quad+ const rep = [...cards, ...cards, ...cards, ...cards, ...cards];+ return `<div class="col"><div class="track" data-col="${ci}">${rep.map((c) => `<div class="card"><img src="${c.dataUrl}" alt=""></div>`).join("")}</div></div>`;}).join("");@@ -396,130 +398,98 @@ async function renderSocialPreviewGif(browser, data) {@font-face{font-family:"Geist Mono";src:url("data:font/woff2;base64,${geistMono}") format("woff2");font-weight:100 900;font-display:block}*{box-sizing:border-box;margin:0;padding:0}html,body{width:${W}px;height:${H}px;overflow:hidden;background:#070709;font-family:"Geist",-apple-system,sans-serif;-webkit-font-smoothing:antialiased}-.stage{position:relative;width:${W}px;height:${H}px;overflow:hidden;background:#070709;display:flex}--/* Static obsidian studio left panel: 0 moving pixels after frame 0 -> rich 128-color budget for right wall */-.left{- position:relative;- z-index:3;- width:288px;- height:100%;- padding:32px 24px 30px 34px;- display:flex;- flex-direction:column;- justify-content:center;- gap:14px;- background:#070709;-}-.left::after{- content:"";- position:absolute;- top:0;- right:-26px;- width:26px;- height:100%;- background:linear-gradient(90deg,#070709 0%,rgba(7,7,9,0.72) 45%,rgba(7,7,9,0) 100%);- pointer-events:none;-}-.brand-row{display:inline-flex;align-items:center;gap:8px}-.brand-name{font-size:14px;font-weight:620;letter-spacing:-0.025em;color:#f6f6f9}-.brand-name .dot{color:#8b8b9b;font-weight:450}-.mcp-pill{- font-family:"Geist Mono",monospace;- font-size:8.5px;- font-weight:600;- letter-spacing:0.06em;- text-transform:uppercase;- padding:3px 7px;- border-radius:999px;- color:#d6deff;- background:#191c34;- border:1px solid rgba(165,180,252,0.44);-}-.headline{- font-size:32px;- font-weight:670;- letter-spacing:-0.042em;- line-height:1.05;- color:#f7f8fc;-}-.sub{- font-size:11.5px;- font-weight:430;- line-height:1.45;- letter-spacing:-0.01em;- color:#a2a4b8;-}-.meta{- display:flex;- align-items:center;- gap:7px;- margin-top:2px;- font-family:"Geist Mono",monospace;- font-size:9px;- color:#7e8094;-}-.meta .dot-accent{width:5px;height:5px;border-radius:999px;background:#818cf8}--/* Right moving 3-column showcase wall (straight vertical columns for razor-sharp LZW compression) */-.right{- position:relative;- flex:1;- height:100%;- overflow:hidden;-}+.stage{position:relative;width:${W}px;height:${H}px;overflow:hidden;background:#070709}.wall{position:absolute;- top:0;- left:4px;+ top:50%;+ left:50%;+ width:${4 * CARD_W + 3 * GAP}px;+ height:760px;display:grid;- grid-template-columns:repeat(3,${CARD_W}px);+ grid-template-columns:repeat(4,${CARD_W}px);gap:${GAP}px;+ transform:translate(-50%,-50%) rotate(-7deg);+ opacity:0.95;}-.col{position:relative;overflow:visible}+.col{position:relative;height:100%;overflow:visible}.track{display:flex;flex-direction:column;gap:${GAP}px;will-change:transform}.card{width:${CARD_W}px;height:${CARD_H}px;- border-radius:8px;+ border-radius:10px;overflow:hidden;background:#141418;- border:1px solid rgba(255,255,255,0.16);+ border:1px solid rgba(255,255,255,0.18);flex-shrink:0;}.card img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}-.fade-y{+.vignette{position:absolute;inset:0;pointer-events:none;- z-index:2;- background:linear-gradient(180deg,#070709 0%,rgba(7,7,9,0) 16%,rgba(7,7,9,0) 84%,#070709 100%);+ background:+ linear-gradient(180deg,#070709 0%,rgba(7,7,9,0.06) 24%,rgba(7,7,9,0.06) 76%,#070709 100%),+ linear-gradient(90deg,rgba(7,7,9,0.52) 0%,rgba(7,7,9,0) 14%,rgba(7,7,9,0) 86%,rgba(7,7,9,0.52) 100%);+}+.hero-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}+/* Solid obsidian center card stays pixel-identical across frames so GIF frame-diff preserves 128 rich colors at near-lossless quality under 1MB */+.hero-card{+ display:flex;+ flex-direction:column;+ align-items:center;+ text-align:center;+ gap:8px;+ padding:17px 28px 18px;+ border-radius:15px;+ background:#0b0b0f;+ border:1px solid rgba(255,255,255,0.22);+ box-shadow:0 18px 46px -4px rgba(0,0,0,0.96);+}+.brand-row{display:inline-flex;align-items:center;gap:6px}+.brand-name{font-size:12px;font-weight:620;letter-spacing:-0.02em;color:#f6f6f9}+.brand-name .dot{color:#8b8b9b;font-weight:450}+.mcp-pill{+ font-family:"Geist Mono",monospace;+ font-size:7px;+ font-weight:600;+ letter-spacing:0.06em;+ text-transform:uppercase;+ padding:2.5px 7px;+ border-radius:999px;+ color:#d6deff;+ background:#1b1e36;+ border:1px solid rgba(165,180,252,0.44);}+.headline{font-size:27px;font-weight:680;letter-spacing:-0.04em;line-height:1.04;color:#f7f8fc}+.sub{font-size:9.5px;font-weight:460;letter-spacing:-0.01em;color:#b8b9c8;display:flex;align-items:center;gap:5px}+.sub .sep{color:#5b5c6e}</style></head><body><div class="stage">- <div class="left">- <div class="brand-row">- <svg width="22" height="22" viewBox="0 0 40 40" fill="none" aria-hidden="true">- <rect width="40" height="40" rx="11" fill="#17171f" stroke="#ffffff" stroke-opacity="0.24" stroke-width="1.6"/>- <path d="M13 11.5h6.2c5.4 0 8.8 3.3 8.8 8.5s-3.4 8.5-8.8 8.5H13V11.5Zm4.2 3.5v10h1.9c3 0 4.6-1.8 4.6-5s-1.6-5-4.6-5h-1.9Z" fill="#e6eaff"/>- <circle cx="29.5" cy="11.5" r="2.8" fill="#ff4d6d"/>- </svg>- <span class="brand-name">designtaste<span class="dot">.wtf</span></span>- <span class="mcp-pill">Open MCP</span>- </div>- <h1 class="headline">Curated web<br>design taste.</h1>- <p class="sub">${data.totalSites} standout websites, zero-auth MCP for AI agents, and shareable moodboards.</p>- <div class="meta">- <span class="dot-accent"></span>- <span>MIT · OPEN GALLERY · MCP APPS UI</span>+ <div class="wall">${colsHtml}</div>+ <div class="vignette"></div>+ <div class="hero-wrap">+ <div class="hero-card">+ <div class="brand-row">+ <svg width="19" height="19" viewBox="0 0 40 40" fill="none" aria-hidden="true">+ <rect width="40" height="40" rx="11" fill="#17171f" stroke="#ffffff" stroke-opacity="0.25" stroke-width="1.8"/>+ <path d="M13 11.5h6.2c5.4 0 8.8 3.3 8.8 8.5s-3.4 8.5-8.8 8.5H13V11.5Zm4.2 3.5v10h1.9c3 0 4.6-1.8 4.6-5s-1.6-5-4.6-5h-1.9Z" fill="#e6eaff"/>+ <circle cx="29.5" cy="11.5" r="2.8" fill="#ff4d6d"/>+ </svg>+ <span class="brand-name">designtaste<span class="dot">.wtf</span></span>+ <span class="mcp-pill">Open MCP</span>+ </div>+ <h1 class="headline">Curated web design taste.</h1>+ <p class="sub">+ <span>${data.totalSites} standout websites</span>+ <span class="sep">·</span>+ <span>Zero-auth MCP</span>+ <span class="sep">·</span>+ <span>Shareable moodboards</span>+ </p></div></div>- <div class="right">- <div class="wall">${colsHtml}</div>- <div class="fade-y"></div>- </div></div><script>const SET_H = ${SET_H};@@ -529,9 +499,8 @@ const tracks = [...document.querySelectorAll(".track")];window.setProgress = function (t) {for (let i = 0; i < tracks.length; i++) {const r = DIRS[i] > 0 ? (PHASES[i] + t) % 1 : (PHASES[i] + (1 - (t % 1))) % 1;- // Exact integer pixel step keeps every card razor-sharp with zero subpixel shimmer- const y = -Math.round(SET_H + r * SET_H);- tracks[i].style.transform = "translate3d(0," + y + "px,0)";+ const y = -(SET_H * 1.5 + r * SET_H);+ tracks[i].style.transform = "translate3d(0," + y.toFixed(2) + "px,0)";}};window.setProgress(0);@@ -546,7 +515,7 @@ window.setProgress(0);await page.setContent(html, { waitUntil: "load" });await page.evaluate(() => document.fonts.ready);- // Capture direct lossless RGB PNG frames (no H.264/YUV420 round-trip noise on dark solids!)+ // Direct lossless RGB PNG frames -> zero H.264/YUV420 noise on dark areasconst tmpDir = "/tmp/designtaste-sp-frames";fs.rmSync(tmpDir, { recursive: true, force: true });fs.mkdirSync(tmpDir, { recursive: true });@@ -562,13 +531,12 @@ window.setProgress(0);const tmpGif = path.join(tmpDir, "raw.gif");const outGif = path.join(DOCS_IMG_DIR, "social-preview.gif");- // Pick highest visual quality preset (colors + minimal lossy) that stays strictly < 970KB+ // Pick highest visual quality preset (128-144 rich colors + near-lossless) strictly < 990KB decimalconst presets = [+ { colors: 144, lossy: 15 },+ { colors: 128, lossy: 15 },{ colors: 128, lossy: 20 },- { colors: 128, lossy: 30 },- { colors: 112, lossy: 25 },- { colors: 96, lossy: 25 },- { colors: 96, lossy: 35 },+ { colors: 112, lossy: 20 },];let chosen = null;@@ -605,7 +573,7 @@ window.setProgress(0);outGif,]);const bytes = fs.statSync(outGif).size;- if (bytes < 970_000) {+ if (bytes < 990_000) {chosen = { ...preset, bytes };break;}@@ -614,7 +582,7 @@ window.setProgress(0);fs.rmSync(tmpDir, { recursive: true, force: true });if (!chosen) {- throw new Error("Could not fit social-preview.gif under 970KB.");+ throw new Error("Could not fit social-preview.gif under 990KB.");}console.log(`Wrote <1MB GitHub social preview GIF: ${outGif} (${(chosen.bytes / 1024).toFixed(1)} KB / ${chosen.bytes} bytes, ${chosen.colors} colors, lossy=${chosen.lossy})`,