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
import { CATEGORIES } from "../../scripts/gallery-catalog.mjs";
export const ORIGIN = "https://designtaste.wtf";
export const REPO = "https://github.com/ethanplusai/designtaste";
const sourceRef =
process.env.VERCEL_ENV === "preview" &&
/^[a-f0-9]{40}$/.test(process.env.VERCEL_GIT_COMMIT_SHA || "")
? process.env.VERCEL_GIT_COMMIT_SHA
: "main";
export const escapeHTML = (value) =>
String(value ?? "").replace(
/[&<>"']/g,
(c) =>
({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[
c
],
);
const e = escapeHTML;
export const slug = (text) =>
text
.toLowerCase()
.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>`;
const heartIcon = `<svg class="heart-svg" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M12 20.25s-7.25-4.35-9.2-8.75C1.35 8.2 3.15 4.75 6.8 4.75c2.1 0 3.7 1.15 5.2 2.9 1.5-1.75 3.1-2.9 5.2-2.9 3.65 0 5.45 3.45 4 6.75-1.95 4.4-9.2 8.75-9.2 8.75Z" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/></svg>`;
const arrowUpRight = `<svg class="ext-svg" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
const plusIcon = `<svg class="plus-svg" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M8 3.25v9.5M3.25 8h9.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>`;
const shareIcon = `<svg class="share-svg" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M8 10.5V2.75M5.25 5.25 8 2.5l2.75 2.75M3.25 9.25v2.5A1.5 1.5 0 0 0 4.75 13.25h6.5a1.5 1.5 0 0 0 1.5-1.5v-2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
const playIcon = `<svg class="play-svg" viewBox="0 0 12 12" fill="currentColor" aria-hidden="true"><path d="M3 2.15v7.7a.65.65 0 0 0 .99.55l6.1-3.85a.65.65 0 0 0 0-1.1L3.99 1.6A.65.65 0 0 0 3 2.15Z"/></svg>`;
const githubIcon = `<svg class="gh-svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path 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-.27s1.36.09 2 .27c1.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.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg>`;
export function card(site, index = 0) {
const imgPriority =
index < 4
? 'fetchpriority="high"'
: index < 12
? 'loading="eager"'
: 'loading="lazy"';
const host = (() => {
try {
return new URL(site.url).hostname.replace(/^www\./, "");
} catch {
return "";
}
})();
const visitUrl = outboundUrl(site.url);
const hasVideo = Boolean(site.video);
return `<article class="site-card" data-id="${e(site.id)}" data-name="${e(site.name)}" data-url="${e(site.url)}" data-image="/${e(site.image)}" data-note="${e(site.observation || site.description)}" 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${hasVideo ? " has-video" : ""}"${hasVideo ? ` data-video="/${e(site.video)}"` : ""} 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">
</picture>
${hasVideo ? `<span class="preview-motion-badge" aria-hidden="true">${playIcon}<span>Scroll</span></span>` : ""}
<span class="preview-visit" aria-hidden="true">Visit ${arrowUpRight}</span>
<span class="scroll-progress" aria-hidden="true"></span>
</a>
<button class="save-btn" type="button" data-save-id="${e(site.id)}" aria-pressed="false" aria-label="Save ${e(site.name)}" title="Save to favorites">${heartIcon}</button>
</div>
<div class="card-caption">
<div class="card-meta">
<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>
</div>
</article>`;
}
function submitFormMarkup(idPrefix = "submit") {
const categoryOptions = CATEGORIES.map(
(c) => `<option value="${e(c)}">${e(c)}</option>`,
).join("");
return `<form class="submit-form" data-submit-form novalidate>
<div class="field">
<label for="${idPrefix}-url">Website URL <span class="req" aria-hidden="true">*</span></label>
<input id="${idPrefix}-url" name="url" type="url" required placeholder="https://example.com" autocomplete="off" inputmode="url">
</div>
<div class="field-row">
<div class="field">
<label for="${idPrefix}-name">Name <span class="opt">optional</span></label>
<input id="${idPrefix}-name" name="name" type="text" maxlength="100" placeholder="Auto-filled from domain">
</div>
<div class="field">
<label for="${idPrefix}-category">Category <span class="opt">optional</span></label>
<select id="${idPrefix}-category" name="category">
<option value="">Choose a category</option>
${categoryOptions}
</select>
</div>
</div>
<div class="field">
<label for="${idPrefix}-note">Why it caught your eye <span class="opt">optional</span></label>
<textarea id="${idPrefix}-note" name="note" rows="3" maxlength="500" placeholder="Typography, motion, layout, restraint..."></textarea>
</div>
<div class="hp-field" aria-hidden="true">
<label for="${idPrefix}-company">Company website</label>
<input id="${idPrefix}-company" name="company_website" type="text" tabindex="-1" autocomplete="off">
</div>
<div class="submit-actions">
<button class="btn btn-primary" type="submit">Submit website</button>
<span class="submit-hint">No account required. Reviewed before publishing.</span>
</div>
<div class="submit-status" role="status" aria-live="polite" hidden></div>
</form>`;
}
function head({ title, description, path = "/", image = "/og.jpg", schema }) {
const canonical = ORIGIN + path;
const verification = path === "/"
? '<meta name="google-site-verification" content="xsXQ5zByv7mbedTiOYXv4kjx7DHeMM8NVQLALayE2Jg"><meta name="msvalidate.01" content="F44403BDA061D27A918786BE12E4C735">'
: "";
return `<meta charset="utf-8">${verification}<meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="dark"><meta name="robots" content="${process.env.VERCEL_ENV === "preview" || path === "/404.html" ? "noindex,nofollow" : "index,follow"}"><meta name="theme-color" content="#0b0b0b"><title>${e(title)}</title><meta name="description" content="${e(description)}"><link rel="canonical" href="${canonical}"><meta property="og:type" content="website"><meta property="og:site_name" content="DesignTaste"><meta property="og:title" content="${e(title)}"><meta property="og:description" content="${e(description)}"><meta property="og:url" content="${canonical}"><meta property="og:image" content="${ORIGIN + image}"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="${e(title)}"><meta name="twitter:description" content="${e(description)}"><meta name="twitter:image" content="${ORIGIN + image}"><link rel="icon" href="/favicon.svg" type="image/svg+xml"><link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="stylesheet" href="/gallery.css"><link rel="preload" href="/fonts/geist-variable.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="/fonts/geist-mono-variable.woff2" as="font" type="font/woff2" crossorigin>${schema ? `<script type="application/ld+json">${JSON.stringify(schema).replace(/</g, "\\u003c")}</script>` : ""}`;
}
function shell(content, options) {
const isGallery = Boolean(options.isGallery);
return `<!doctype html>
<html lang="en">
<head>${head(options)}</head>
<body>
<div class="ambient-glow" aria-hidden="true"></div>
<a class="skip" href="#main">Skip to content</a>
<header class="site-header">
<div class="nav-pill">
<a class="brand" href="/" aria-label="DesignTaste home">${brandMark}<span>designtaste<span class="brand-dot">.wtf</span></span></a>
<nav class="nav-links" aria-label="Main navigation">
<a href="/" ${options.path === "/" ? 'aria-current="page"' : ""}>Explore</a>
<a href="/?saved=1" class="nav-saved-link" data-nav-saved>${heartIcon}<span>Saved</span><span class="saved-badge" data-saved-count hidden>0</span></a>
<a href="/mcp/" ${options.path === "/mcp/" ? 'aria-current="page"' : ""}>MCP</a>
<a href="/about/" ${options.path === "/about/" ? 'aria-current="page"' : ""}>About</a>
</nav>
<div class="nav-actions">
${isGallery ? `<form class="search nav-search" role="search"><label for="search" class="sr-only">Search websites</label>${searchIcon}<input id="search" name="q" type="search" placeholder="Search websites…" autocomplete="off" maxlength="120"><kbd aria-hidden="true">/</kbd></form>` : ""}
<a class="nav-icon-btn" href="${REPO}" target="_blank" rel="noopener noreferrer" aria-label="DesignTaste on GitHub (opens in a new tab)" title="GitHub">${githubIcon}</a>
<a class="btn btn-primary btn-sm nav-cta" href="/submit/" data-open-submit>${plusIcon}<span>Submit</span></a>
</div>
</div>
</header>
<main id="main" tabindex="-1">${content}</main>
<footer class="site-footer">
<div class="footer-inner">
<a class="footer-brand" href="/">${brandMark}<span>designtaste<span class="brand-dot">.wtf</span></span></a>
<div class="footer-links">
<a href="/mcp/">Open MCP</a>
<a href="/about/">About</a>
<a href="/submit/" data-open-submit>Submit a site</a>
<a href="/about/#credits">Credits & removal</a>
<a href="${REPO}" target="_blank" rel="noopener noreferrer">GitHub<span class="sr-only"> (opens in a new tab)</span></a>
</div>
<small>Independent curation. Websites and trademarks belong to their creators.</small>
</div>
</footer>
<dialog id="submit-modal" class="submit-dialog" aria-labelledby="submit-modal-title">
<div class="dialog-panel">
<div class="dialog-head">
<div>
<p class="eyebrow">Submit to DesignTaste</p>
<h2 id="submit-modal-title">Share a great website</h2>
</div>
<button type="button" class="icon-close" data-close-submit aria-label="Close submission dialog">
<svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M4 4l8 8M12 4l-8 8" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</button>
</div>
${submitFormMarkup("modal")}
</div>
</dialog>
<script type="module" src="/gallery.js"></script>
<script type="module" src="/share-studio.js"></script>
<script defer src="/_vercel/insights/script.js"></script>
</body>
</html>`;
}
export function gallery(sites, { category = null } = {}) {
const categories = [...new Set(sites.map((x) => x.category))];
const list = category ? sites.filter((x) => x.category === category) : sites;
const path = category ? `/categories/${slug(category)}/` : "/";
return shell(
`<section class="collection" aria-label="Website inspiration">
<div class="gallery-toolbar">
<div class="toolbar-top">
<div class="toolbar-title">
<h1>${category ? e(category) : "Websites"}</h1>
<span id="result-count" class="count-chip" role="status" aria-live="polite">${list.length}</span>
<span id="saved-browser-note" class="saved-browser-note" hidden>Saved in this browser</span>
</div>
<div class="toolbar-controls js-only">
<label for="sort" class="sr-only">Sort websites</label>
<select id="sort" class="control-select">
<option value="popular" selected>Popular</option>
<option value="curated">Curated</option>
<option value="newest">Newest</option>
<option value="az">Name, A–Z</option>
</select>
<button id="motion-toggle" class="control-pill" type="button" aria-pressed="false">Pause scroll</button>
</div>
</div>
<div class="toolbar-filters">
<nav class="filters" aria-label="Filter by category">
<a href="/" data-filter="" ${!category ? 'aria-current="page"' : ""}>All <span class="pill-count">${sites.length}</span></a>
<a href="/?saved=1" class="filter-saved" data-saved-filter>${heartIcon}<span>Saved</span><span class="pill-count" data-saved-count hidden>0</span></a>
<span class="filter-sep" aria-hidden="true"></span>
${categories.map((c) => `<a href="/categories/${slug(c)}/" data-filter="${e(c)}" ${c === category ? 'aria-current="page"' : ""}>${e(c)}</a>`).join("")}
</nav>
<form class="search mobile-search" role="search">
<label for="search-mobile" class="sr-only">Search websites</label>
${searchIcon}
<input id="search-mobile" name="q" type="search" placeholder="Search websites…" autocomplete="off" maxlength="120">
</form>
</div>
</div>
<div id="share-list-bar" class="list-banner share-list-bar" hidden>
<div class="list-banner-main">
<div class="list-banner-copy">
<strong>Share saved list with humans or AI agents</strong>
<span>Generate a unique list ID (no account required) to drop into Cursor, Claude, Codex, or ChatGPT via the <a href="/mcp/">Open MCP</a>.</span>
</div>
<form id="share-list-form" class="share-list-form" novalidate>
<label for="share-list-title" class="sr-only">Optional list title</label>
<input id="share-list-title" name="title" type="text" maxlength="80" placeholder="Optional list name (e.g. Dark SaaS)">
<button id="share-list-btn" class="btn btn-primary btn-sm" type="submit">Create share ID</button>
<button id="export-saved-edition" class="btn btn-ghost btn-sm" type="button" data-export-edition="saved">${shareIcon}<span>Export edition</span></button>
</form>
</div>
<div id="share-list-result" class="share-list-result" hidden></div>
</div>
<div id="shared-list-banner" class="list-banner shared-list-banner" hidden>
<div class="list-banner-main">
<div class="list-banner-copy">
<div class="list-banner-head">
<strong id="shared-list-title">Shared list</strong>
<code id="shared-list-id" class="list-id-pill"></code>
</div>
<span id="shared-list-meta">Curated references ready to browse or pass straight to your AI agent via MCP.</span>
</div>
<div class="shared-list-actions">
<button id="export-shared-edition" class="btn btn-primary btn-sm" type="button" data-export-edition="shared">${shareIcon}<span>Export edition</span></button>
<button id="shared-list-save-all" class="btn btn-ghost btn-sm" type="button">Save all locally</button>
<button id="shared-list-copy-prompt" class="btn btn-ghost btn-sm" type="button" data-copy-text="">Copy agent prompt</button>
<a id="shared-list-exit" class="btn btn-ghost btn-sm" href="/">All websites</a>
</div>
</div>
</div>
<div class="gallery">${sites.map((s, i) => card(s, i).replace("<article ", category && s.category !== category ? "<article hidden " : "<article ")).join("")}</div>
<div id="load-more-wrap" class="load-more-wrap" hidden>
<button id="load-more" class="btn btn-ghost" type="button">Load more websites</button>
</div>
<div id="load-sentinel" class="load-sentinel" aria-hidden="true"></div>
<div id="empty" class="empty" hidden>
<h2 id="empty-title">No matching websites.</h2>
<p id="empty-copy">Try a different keyword, style, or category.</p>
<a id="empty-reset" class="btn btn-ghost btn-sm" href="/">Show all websites</a>
</div>
<div class="end-note">
<p>Spotted a site worth keeping?</p>
<a class="btn btn-ghost btn-sm" href="/submit/" data-open-submit>${plusIcon}<span>Submit a website</span></a>
</div>
</section>`,
{
title: category
? `${category} website inspiration — DesignTaste`
: "DesignTaste — Curated website design inspiration",
description: category
? `Explore ${category.toLowerCase()} websites selected for their design craft. Hover to scroll, save favorites, and visit the originals.`
: "A dark, curated gallery of high-craft websites. Hover to scroll full pages, save your favorite references, and discover considered web design.",
path,
isGallery: true,
schema: {
"@context": "https://schema.org",
"@type": "CollectionPage",
name: category || "DesignTaste website inspiration",
url: ORIGIN + path,
description: "An independent curated gallery of website design.",
mainEntity: {
"@type": "ItemList",
numberOfItems: list.length,
itemListElement: list.map((x, i) => ({
"@type": "ListItem",
position: i + 1,
url: ORIGIN + "/sites/" + x.id + "/",
name: x.name,
})),
},
},
},
);
}
export function detail(site, sites) {
const related = sites
.filter((x) => x.id !== site.id && x.category === site.category)
.slice(0, 6);
return shell(
`<div class="detail-shell">
<div class="detail-heading">
<a class="back-link" href="/">← Back to gallery</a>
<div class="detail-title">
<div>
<p class="eyebrow">${e(site.category)}</p>
<h1>${e(site.name)}</h1>
<p class="lede">${e(site.description)}</p>
</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>
<button class="btn btn-ghost detail-share-btn" type="button" data-share-site data-site-id="${e(site.id)}" data-site-name="${e(site.name)}" data-site-url="${e(site.url)}" data-site-category="${e(site.category)}" data-site-image="/${e(site.image)}" data-site-note="${e(site.observation || site.description)}">${shareIcon}<span>Share card</span></button>
<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">
${
site.video
? `<div class="detail-media" data-detail-media>
<a class="detail-video-link" href="${e(outboundUrl(site.url))}" target="_blank" rel="noopener" aria-label="Visit ${e(site.name)} (opens in a new tab)">
<video class="detail-video" src="/${e(site.video)}" poster="/${e(site.image)}" width="${site.imageDimensions.width}" height="${site.imageDimensions.height}" muted loop playsinline preload="metadata" aria-label="${e(site.name)} recorded scroll preview"></video>
</a>
<button class="detail-video-toggle" type="button" data-detail-video-toggle aria-pressed="false" aria-label="Pause scroll preview">Pause</button>
<span class="detail-video-progress" aria-hidden="true"></span>
</div>`
: `<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">
<section class="aside-card">
<h2>What caught our eye</h2>
<p>${e(site.observation || site.description)}</p>
</section>
<section class="aside-card">
<h2>Details</h2>
<dl>
<dt>Website</dt>
<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>
<dd><time datetime="${e(site.capturedAt)}">${e(site.capturedAt)}</time></dd>
<dt>Credit</dt>
<dd>${e(site.credit || site.name)}</dd>
${site.discoveredVia ? `<dt>Source</dt><dd><a href="${e(site.discoveredVia.url)}" target="_blank" rel="noopener noreferrer">${e(site.discoveredVia.name)}</a></dd>` : ""}
</dl>
<div class="tags">${site.tags.map((t) => `<span>${e(t)}</span>`).join("")}</div>
</section>
<p class="capture-note">${site.video ? "Recorded scroll preview, not a live embed." : "Captured snapshot, not a live embed."} Designs and trademarks belong to their creators.${site.captureMethod ? " " + e(site.captureMethod) : ""}</p>
<a class="text-link" href="${REPO}/edit/${sourceRef}/apps/gallery/sites.json">Suggest a correction</a>
</aside>
</div>
${related.length ? `<section class="related"><div class="section-title"><h2>More in ${e(site.category)}</h2><a href="/categories/${slug(site.category)}/">View all ${e(site.category.toLowerCase())} →</a></div><div class="gallery">${related.map((s, i) => card(s, i + 6)).join("")}</div></section>` : ""}
</div>`,
{
title: `${site.name} — Website design inspiration — DesignTaste`,
description: site.description + " " + (site.observation || ""),
path: `/sites/${site.id}/`,
image: `/images/${site.id}-og.jpg`,
schema: {
"@context": "https://schema.org",
"@type": "WebPage",
name: `${site.name} website inspiration`,
url: `${ORIGIN}/sites/${site.id}/`,
description: site.description,
about: { "@type": "WebSite", name: site.name, url: site.url },
primaryImageOfPage: {
"@type": "ImageObject",
url: ORIGIN + "/" + site.image,
creditText: site.credit || site.name,
},
isPartOf: { "@type": "WebSite", name: "DesignTaste", url: ORIGIN },
},
},
);
}
export function info(kind) {
if (kind === "mcp") {
const mcpUrl = `${ORIGIN}/api/mcp/`;
const jsonSnippet = JSON.stringify(
{ mcpServers: { designtaste: { url: mcpUrl } } },
null,
2,
);
const claudeCmd = `claude mcp add --transport http designtaste ${mcpUrl}`;
const codexCmd = `codex mcp add designtaste --url ${mcpUrl}`;
return shell(
`<article class="prose mcp-page">
<p class="eyebrow">Open Model Context Protocol</p>
<h1>Give your AI agent real design taste.</h1>
<p class="lede">Connect Cursor, Claude Code, Codex, or ChatGPT directly to <strong>designtaste.wtf</strong> with zero account, zero API key, and zero local setup.</p>
<section class="mcp-endpoint-card">
<div class="mcp-endpoint-row">
<div>
<span class="mcp-label">Remote MCP Endpoint (Streamable HTTP · Open · No Auth)</span>
<code class="mcp-url">${e(mcpUrl)}</code>
</div>
<button class="btn btn-primary btn-sm" type="button" data-copy-text="${e(mcpUrl)}">Copy URL</button>
</div>
</section>
<section>
<h2>1. Connect in one step</h2>
<div class="code-stack">
<div class="code-card">
<div class="code-head">
<span>Cursor / Claude Desktop / Windsurf</span>
<button class="btn btn-ghost btn-sm" type="button" data-copy-text="${e(jsonSnippet)}">Copy JSON</button>
</div>
<pre><code>${e(jsonSnippet)}</code></pre>
</div>
<div class="code-card">
<div class="code-head">
<span>Claude Code CLI</span>
<button class="btn btn-ghost btn-sm" type="button" data-copy-text="${e(claudeCmd)}">Copy command</button>
</div>
<pre><code>${e(claudeCmd)}</code></pre>
</div>
<div class="code-card">
<div class="code-head">
<span>Codex CLI</span>
<button class="btn btn-ghost btn-sm" type="button" data-copy-text="${e(codexCmd)}">Copy command</button>
</div>
<pre><code>${e(codexCmd)}</code></pre>
</div>
</div>
</section>
<section>
<h2>2. Share your saved moodboard by ID</h2>
<p>No accounts needed. Browse the gallery, tap the heart button on 3–6 sites whose craft fits your project, open <a href="/?saved=1">Saved</a>, and click <strong>Create share ID</strong>. You get a compact ID like <code>dt_k8x4m2p9</code> and a shareable link.</p>
<div class="code-card">
<div class="code-head">
<span>Example prompt for your coding agent</span>
<button class="btn btn-ghost btn-sm" type="button" data-copy-text="Use my DesignTaste saved list dt_k8x4m2p9 via the DesignTaste MCP as visual direction for this landing page.">Copy prompt</button>
</div>
<pre><code>Use my DesignTaste saved list dt_k8x4m2p9 via the DesignTaste MCP as visual direction for this landing page.</code></pre>
</div>
</section>
<section>
<h2>Available MCP tools (with in-chat UI)</h2>
<p>In hosts that support <strong>MCP Apps</strong> (Claude Desktop, Claude.ai, Claude Code, ChatGPT, and Cursor), DesignTaste renders an interactive dark-studio website browser right inside your chat — with live category pills, search, hover cards, heart moodboarding, and one-click direction prompts.</p>
<div class="mcp-tools-grid">
<div class="mcp-tool-card"><code>browse_gallery</code><p>Open the interactive visual gallery inside chat — search, filter categories, paginate, and heart sites into a moodboard.</p></div>
<div class="mcp-tool-card"><code>search_sites</code><p>Filter all curated websites by keyword, category, visual tag, or popular/curated/newest/A–Z order.</p></div>
<div class="mcp-tool-card"><code>get_site</code><p>Inspect full editorial notes, similar references, and optionally receive the screenshot thumbnail directly as an image.</p></div>
<div class="mcp-tool-card"><code>find_similar_sites</code><p>Find websites matching the aesthetic of any reference site ID or set of visual tags.</p></div>
<div class="mcp-tool-card"><code>discover_random</code><p>Surface fresh random inspiration sparks with a live Shuffle button inside chat.</p></div>
<div class="mcp-tool-card"><code>list_categories</code><p>Explore all 8 design categories with counts, preview thumbnails, and clickable top visual tags.</p></div>
<div class="mcp-tool-card"><code>get_saved_list</code><p>Render any shared <code>dt_...</code> moodboard visually with optional thumbnail images for vision models.</p></div>
<div class="mcp-tool-card"><code>create_saved_list</code><p>Assemble a shortlist of valid site IDs into a shareable <code>designtaste.wtf/?list=...</code> moodboard.</p></div>
<div class="mcp-tool-card"><code>submit_site</code><p>Recommend a public HTTPS website URL directly into the curated review queue.</p></div>
</div>
</section>
<section>
<h2>Open-source & safe by design</h2>
<p>The MCP only reads public catalog metadata and validated public list IDs. Writes are strictly validated against real site IDs or public HTTPS URLs, rate-limited, and never expose private infrastructure. Source code is <a href="${REPO}" target="_blank" rel="noopener noreferrer">MIT open source on GitHub</a>.</p>
</section>
</article>`,
{
title: "Open MCP for AI Agents — DesignTaste",
description:
"Connect Cursor, Claude Code, Codex, or ChatGPT to designtaste.wtf with our open, zero-auth MCP server and shareable saved list IDs.",
path: "/mcp/",
},
);
}
const submit = kind === "submit";
return shell(
submit
? `<article class="prose submit-page">
<p class="eyebrow">Submit a website</p>
<h1>Found something worth keeping?</h1>
<p class="lede">Drop the URL below. No GitHub account or pull request required — every submission lands in our curation queue for review.</p>
<div class="submit-card">${submitFormMarkup("page")}</div>
<p class="quiet">Looking for the open-source catalog, MCP server, or local capture CLI? It lives in <a href="${REPO}" target="_blank" rel="noopener noreferrer">the repository</a>.</p>
</article>`
: `<article class="prose">
<p class="eyebrow">About DesignTaste</p>
<h1>An eye for considered web design.</h1>
<p class="lede">DesignTaste is a quiet, curated gallery of websites with a distinct point of view — built to browse fast, scroll previews on hover, save moodboards by ID, and connect directly to AI agents via our <a href="/mcp/">Open MCP</a>.</p>
<section>
<h2>Browse, scroll, save, and share.</h2>
<p>Hover any desktop preview to scroll through the captured page. Tap the circular heart button on any site to save it locally in your browser — and turn your saved collection into a shareable <code>dt_...</code> list ID for teammates or AI coding agents.</p>
</section>
<section>
<h2>Simple submissions.</h2>
<p>Found a site with real craft? Send us the URL on the <a href="/submit/">submit page</a> (no account needed). We review submissions for originality, execution, and attribution before capturing and publishing.</p>
</section>
<section id="credits">
<h2>The work belongs to its creators.</h2>
<p>Website designs, screenshots, names, and trademarks retain their respective owners’ rights. Inclusion is editorial reference, not an endorsement or permission to reuse a design. Our original gallery code is MIT licensed, not the showcased artwork.</p>
<p>Own a featured site and want it updated or removed? Email <a href="mailto:[email protected]">[email protected]</a> with the site URL and your connection to it.</p>
</section>
<section>
<h2>Lightweight & open source.</h2>
<p>Pages, fonts, and screenshots are served statically with zero advertising cookies or tracking pixels. Original code is <a href="${REPO}" target="_blank" rel="noopener noreferrer">MIT open source on GitHub</a>.</p>
</section>
</article>`,
{
title: submit ? "Submit a website — DesignTaste" : "About — DesignTaste",
description: submit
? "Submit a website to the DesignTaste inspiration gallery with just a URL."
: "An independent gallery of considered websites. Learn about curation, credits, open MCP, and submissions.",
path: `/${kind}/`,
},
);
}
export const notFound = () =>
shell(
`<section class="prose">
<p class="eyebrow">404</p>
<h1>Page not found.</h1>
<p class="lede">This page isn’t in the collection — head back to the gallery to keep exploring.</p>
<a class="btn btn-primary" href="/">Back to gallery</a>
</section>`,
{
title: "Page not found — DesignTaste",
description:
"Find your way back to the DesignTaste website inspiration gallery.",
path: "/404.html",
},
);