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
Add Aside and Sellbird to catalog and send ref=designtaste.wtf + Referer header on outbound site links
Ethan733c5a971617
diff --git a/api/lists.js b/api/lists.jsindex cafdae2..d009eb7 100644--- a/api/lists.js+++ b/api/lists.js@@ -23,11 +23,27 @@ export function resetListsState() {memoryRate.clear();}+export function outboundUrl(url) {+ try {+ const u = new URL(url);+ if (u.protocol === "https:" || u.protocol === "http:") {+ if (!u.searchParams.has("ref")) {+ u.searchParams.set("ref", "designtaste.wtf");+ }+ return u.toString();+ }+ } catch {+ // fall through+ }+ return url;+}+export function formatPublicSite(site) {return {id: site.id,name: site.name,url: site.url,+ visitUrl: outboundUrl(site.url),category: site.category,tags: site.tags,description: site.description,diff --git a/api/mcp-app.js b/api/mcp-app.jsindex 09306c4..c84485e 100644--- a/api/mcp-app.js+++ b/api/mcp-app.js@@ -552,6 +552,20 @@ const SCRIPT = `return typeof url === "string" && /^https:\\/\\//i.test(url) ? url : "";}+ function withRef(url) {+ var href = safeHref(url);+ if (!href) return "";+ try {+ var u = new URL(href);+ if (u.hostname !== "designtaste.wtf" && !u.searchParams.has("ref")) {+ u.searchParams.set("ref", "designtaste.wtf");+ }+ return u.toString();+ } catch (_) {+ return href;+ }+ }+function openExternal(url) {var href = safeHref(url);if (!href) return;@@ -559,7 +573,7 @@ const SCRIPT = `try { window.openai.openExternal({ href: href }); return; } catch (_) {}}rpc("ui/open-link", { url: href }).catch(function () {- try { window.open(href, "_blank", "noopener,noreferrer"); } catch (_) {}+ try { window.open(href, "_blank", "noopener"); } catch (_) {}});}@@ -739,12 +753,12 @@ const SCRIPT = `left.appendChild(el("span", "card-cat", site.category));foot.appendChild(left);- if (safeHref(site.url)) {+ if (safeHref(site.visitUrl || site.url)) {var visit = el("button", "card-visit", "\\u2197");visit.type = "button";visit.title = "Visit " + site.name;visit.setAttribute("aria-label", "Visit " + site.name);- visit.onclick = function () { openExternal(site.url); };+ visit.onclick = function () { openExternal(site.visitUrl || withRef(site.url)); };foot.appendChild(visit);}card.appendChild(foot);@@ -978,10 +992,10 @@ const SCRIPT = `}var acts = el("div", "detail-acts");- if (safeHref(s.url)) {+ if (safeHref(s.visitUrl || s.url)) {var visit = el("button", "btn btn-primary", "Visit live site \\u2197");visit.type = "button";- visit.onclick = function () { openExternal(s.url); };+ visit.onclick = function () { openExternal(s.visitUrl || withRef(s.url)); };acts.appendChild(visit);}diff --git a/apps/gallery/assets/aside.jpg b/apps/gallery/assets/aside.jpgnew file mode 100644index 0000000..6859e3cBinary files /dev/null and b/apps/gallery/assets/aside.jpg differdiff --git a/apps/gallery/assets/sellbird.jpg b/apps/gallery/assets/sellbird.jpgnew file mode 100644index 0000000..c28e149Binary files /dev/null and b/apps/gallery/assets/sellbird.jpg differdiff --git a/apps/gallery/render.mjs b/apps/gallery/render.mjsindex 12fbacc..2c6dde1 100644--- a/apps/gallery/render.mjs+++ b/apps/gallery/render.mjs@@ -26,6 +26,21 @@ export const slug = (text) =>.replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");+export function outboundUrl(url) {+ try {+ const u = new URL(url);+ if (u.protocol === "https:" || u.protocol === "http:") {+ if (!u.searchParams.has("ref")) {+ u.searchParams.set("ref", "designtaste.wtf");+ }+ return u.toString();+ }+ } catch {+ // fall through to original url+ }+ return url;+}+const brandMark = `<svg class="brand-svg" viewBox="0 0 28 28" fill="none" aria-hidden="true"><rect x="0.75" y="0.75" width="26.5" height="26.5" rx="7.5" fill="url(#dt-bg)" stroke="rgba(255,255,255,0.16)" stroke-width="1.2"/><path d="M9 8h4.5c3.9 0 6.3 2.3 6.3 6s-2.4 6-6.3 6H9V8Zm3 2.5v7h1.4c2.1 0 3.2-1.2 3.2-3.5s-1.1-3.5-3.2-3.5H12Z" fill="url(#dt-fg)"/><circle cx="20.6" cy="8.1" r="1.9" fill="#ff4d6d"/><defs><linearGradient id="dt-bg" x1="0" y1="0" x2="28" y2="28" gradientUnits="userSpaceOnUse"><stop stop-color="#1e1e24"/><stop offset="1" stop-color="#0b0b0d"/></linearGradient><linearGradient id="dt-fg" x1="9" y1="8" x2="20" y2="20" gradientUnits="userSpaceOnUse"><stop stop-color="#ffffff"/><stop offset="1" stop-color="#b4c0ff"/></linearGradient></defs></svg>`;const searchIcon = `<svg viewBox="0 0 20 20" fill="none" aria-hidden="true"><circle cx="9" cy="9" r="5.5" stroke="currentColor" stroke-width="1.6"/><path d="m13.5 13.5 3.5 3.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>`;@@ -52,10 +67,11 @@ export function card(site, index = 0) {return "";}})();+ const visitUrl = outboundUrl(site.url);return `<article class="site-card" data-id="${e(site.id)}" data-date="${e(site.capturedAt)}" data-category="${e(site.category)}" data-search="${e([site.name, host, site.category, ...site.tags, site.description].join(" ").toLowerCase())}"><div class="preview-wrap">- <a class="preview" href="${e(site.url)}" target="_blank" rel="noopener noreferrer" aria-label="Visit ${e(site.name)} (opens in a new tab)">+ <a class="preview" href="${e(visitUrl)}" target="_blank" rel="noopener" aria-label="Visit ${e(site.name)} (opens in a new tab)"><picture><source media="(hover: hover) and (min-width: 760px)" srcset="/images/${e(site.id)}-720.jpg"><img src="/images/${e(site.id)}-thumb.jpg" width="640" height="400" alt="${e(site.name)} website screenshot" ${imgPriority} decoding="async">@@ -67,7 +83,7 @@ export function card(site, index = 0) {</div><div class="card-caption"><div class="card-meta">- <a class="site-name" href="${e(site.url)}" target="_blank" rel="noopener noreferrer">${e(site.name)}<span class="sr-only"> (opens in a new tab)</span></a>+ <a class="site-name" href="${e(visitUrl)}" target="_blank" rel="noopener">${e(site.name)}<span class="sr-only"> (opens in a new tab)</span></a><span class="category">${e(site.category)}</span></div><a class="details" href="/sites/${e(site.id)}/" aria-label="About ${e(site.name)}">Details</a>@@ -313,12 +329,12 @@ export function detail(site, sites) {</div><div class="detail-actions"><button class="btn btn-ghost detail-save-btn" type="button" data-save-id="${e(site.id)}" aria-pressed="false">${heartIcon}<span data-save-label>Save</span></button>- <a class="btn btn-primary" href="${e(site.url)}" target="_blank" rel="noopener noreferrer">Visit website ${arrowUpRight}<span class="sr-only"> (opens in a new tab)</span></a>+ <a class="btn btn-primary" href="${e(outboundUrl(site.url))}" target="_blank" rel="noopener">Visit website ${arrowUpRight}<span class="sr-only"> (opens in a new tab)</span></a></div></div></div><div class="detail-layout">- <a class="detail-image" href="${e(site.url)}" target="_blank" rel="noopener noreferrer" aria-label="Visit ${e(site.name)} (opens in a new tab)">+ <a class="detail-image" href="${e(outboundUrl(site.url))}" target="_blank" rel="noopener" aria-label="Visit ${e(site.name)} (opens in a new tab)"><img src="/${e(site.image)}" width="${site.imageDimensions.width}" height="${site.imageDimensions.height}" alt="${e(site.name)} website captured on ${e(site.capturedAt)}" fetchpriority="high"></a><aside class="detail-aside">@@ -330,7 +346,7 @@ export function detail(site, sites) {<h2>Details</h2><dl><dt>Website</dt>- <dd><a href="${e(site.url)}" target="_blank" rel="noopener noreferrer">${e(new URL(site.url).hostname.replace(/^www\./, ""))}</a></dd>+ <dd><a href="${e(outboundUrl(site.url))}" target="_blank" rel="noopener">${e(new URL(site.url).hostname.replace(/^www\./, ""))}</a></dd><dt>Category</dt><dd><a href="/categories/${slug(site.category)}/">${e(site.category)}</a></dd><dt>Captured</dt>diff --git a/apps/gallery/sites.json b/apps/gallery/sites.jsonindex e958c74..bb88164 100644--- a/apps/gallery/sites.json+++ b/apps/gallery/sites.json@@ -7974,5 +7974,61 @@"captureSha256": "61463879a2d6f2978c12dd1cab9cafe8140db86de99337535f93ff4c954d8f04","captureMethod": "Single-viewport capture at 1440×900.","rank": 273+ },+ {+ "id": "aside",+ "name": "Aside",+ "url": "https://aside.com/",+ "category": "AI tools",+ "tags": [+ "Light",+ "Editorial",+ "Gradient",+ "Playful"+ ],+ "description": "AI-native browser with a calm sky-lit hero, crisp macOS window framing, and clear benchmark storytelling.",+ "observation": "Airy cloud atmosphere and soft pastel feature cards turn dense browser-agent capabilities into an inviting consumer product.",+ "image": "assets/aside.jpg",+ "capturedAt": "2026-12-04",+ "viewport": {+ "width": 1440,+ "height": 900+ },+ "credit": "Aside",+ "imageDimensions": {+ "width": 1280,+ "height": 3733+ },+ "captureSha256": "7d1c2844054694325b53db0344b4693eda4561b05147e3e9b6666055efb5c92b",+ "captureMethod": "Stitched full-page capture at 1440px viewport with repeated sticky chrome hidden.",+ "rank": 274+ },+ {+ "id": "sellbird",+ "name": "Sellbird",+ "url": "https://sellbird.ai/",+ "category": "AI tools",+ "tags": [+ "Light",+ "Dark",+ "SaaS",+ "Minimal"+ ],+ "description": "Open-source AI sales platform pairing an atmospheric cloud hero with a dark macOS workspace preview and clean pipeline diagrams.",+ "observation": "High-contrast dark product chrome anchored inside a bright sky backdrop gives outbound, inbound, and pipeline workflows immediate clarity.",+ "image": "assets/sellbird.jpg",+ "capturedAt": "2026-12-04",+ "viewport": {+ "width": 1440,+ "height": 900+ },+ "credit": "Sellbird",+ "imageDimensions": {+ "width": 1280,+ "height": 3733+ },+ "captureSha256": "13b47c837bd5f03241c429265c9071b9f83ee91026b03c3f9157cffca91524e1",+ "captureMethod": "Stitched full-page capture at 1440px viewport with repeated sticky chrome hidden.",+ "rank": 275}]diff --git a/tests/gallery.test.mjs b/tests/gallery.test.mjsindex 8fc0ff1..1ad246b 100644--- a/tests/gallery.test.mjs+++ b/tests/gallery.test.mjs@@ -707,3 +707,31 @@ test("open MCP server handles initialize, icons, MCP Apps UI, tools, saved listsassert.match(mcpPage.window.document.body.textContent, /https:\/\/designtaste\.wtf\/api\/mcp\//);mcpPage.window.close();});++test("outbound links include ref=designtaste.wtf and preserve Referer while keeping canonical URLs clean", () => {+ const sellbird = sites.find((s) => s.id === "sellbird");+ assert.ok(sellbird, "sellbird should be in catalog");+ assert.equal(sellbird.url, "https://sellbird.ai/");++ const homeDom = dom(gallery(sites));+ const card = homeDom.window.document.querySelector('[data-id="sellbird"]');+ const previewLink = card.querySelector("a.preview");+ const titleLink = card.querySelector("a.site-name");+ assert.equal(previewLink.getAttribute("href"), "https://sellbird.ai/?ref=designtaste.wtf");+ assert.equal(titleLink.getAttribute("href"), "https://sellbird.ai/?ref=designtaste.wtf");+ assert.equal(previewLink.getAttribute("rel"), "noopener");+ assert.equal(titleLink.getAttribute("rel"), "noopener");+ homeDom.window.close();++ const detailDom = dom(detail(sellbird, sites));+ const visitBtn = detailDom.window.document.querySelector(".detail-actions a.btn-primary");+ const heroLink = detailDom.window.document.querySelector("a.detail-image");+ assert.equal(visitBtn.getAttribute("href"), "https://sellbird.ai/?ref=designtaste.wtf");+ assert.equal(heroLink.getAttribute("href"), "https://sellbird.ai/?ref=designtaste.wtf");+ assert.equal(visitBtn.getAttribute("rel"), "noopener");+ const ldJson = JSON.parse(+ detailDom.window.document.querySelector('script[type="application/ld+json"]').textContent,+ );+ assert.equal(ldJson.about.url, "https://sellbird.ai/");+ detailDom.window.close();+});