Skip to content

The agent that grows with you

feat(website): a page for every catalog plugin and every author

teknium1845fee6cf4b2
diff --git a/plugin-catalog/README.md b/plugin-catalog/README.md
index dc13cd0ce51..fd850de6409 100644
--- a/plugin-catalog/README.md
+++ b/plugin-catalog/README.md
@@ -72,6 +72,8 @@ docs_url: "" # optional
version: "1.4.0" # optional human label for the sha (quote it); shown as "1.4.0 @ abcd1234"
image: "" # optional https image on a GitHub host, 2:1 (e.g. 1200x600), e.g.
# https://raw.githubusercontent.com/owner/repo/<sha>/docs/banner.png
+screenshots: [] # optional, up to 6 https images on a GitHub host; gallery on /docs/plugins/<name>
+readme: false # optional; true renders the README FROM THE PINNED SHA on /docs/plugins/<name>
platforms: [] # optional, e.g. [linux, macos]; empty = all
capabilities:
provides_tools: []
@@ -80,12 +82,22 @@ capabilities:
requires_env: []
```
-`version` and `image` are cosmetic: neither is parsed or used to pick what
-installs. The sha stays the release; bump `version` in the same PR that bumps
-`sha` so the label on the card matches the code. Images must live on
-`raw.githubusercontent.com`, `github.com` or `*.githubusercontent.com` so
-the Desktop catalog never fetches from third-party hosts; pin the raw URL to
-the entry's commit and the picture is as immutable as the code.
+`version`, `image`, `screenshots` and `readme` are cosmetic: none is parsed or
+used to pick what installs. The sha stays the release; bump `version` in the
+same PR that bumps `sha` so the label on the card matches the code. Images must
+live on `raw.githubusercontent.com`, `github.com` or `*.githubusercontent.com`
+so the Desktop catalog and the docs site never fetch from third-party hosts;
+pin the raw URL to the entry's commit and the picture is as immutable as the
+code.
+
+Every entry gets a page at `https://hermes-agent.nousresearch.com/docs/plugins/<name>`
+and every maintainer a page at `/docs/plugins/by/<maintainer>`, both generated
+from these files at docs build time. `screenshots:` fills the page's gallery;
+`readme: true` makes the build fetch `README.md` (from `subdir` if set, else the
+repo root) **at the pinned sha** — GitHub and GitLab repos — and render it
+through an allowlist (raw HTML dropped, links and images resolved against the
+pinned tree). The page therefore shows the README the reviewer read, and it
+changes only when a reviewed re-pin lands.
## removed.yaml — the blocklist
diff --git a/website/.gitignore b/website/.gitignore
index 618c20e2b1e..e28ebf5b6ec 100644
--- a/website/.gitignore
+++ b/website/.gitignore
@@ -7,6 +7,8 @@
# Generated files
.docusaurus
.cache-loader
+# READMEs fetched from pinned commits by plugins/plugin-catalog-pages (keyed by sha)
+.cache/
src/data/skills.json
src/data/skills-meta.json
static/llms.txt
diff --git a/website/docs/user-guide/features/plugin-catalog.md b/website/docs/user-guide/features/plugin-catalog.md
index 003ef218501..353c3619541 100644
--- a/website/docs/user-guide/features/plugin-catalog.md
+++ b/website/docs/user-guide/features/plugin-catalog.md
@@ -19,6 +19,14 @@ category (Memory, Desktop, Platforms, Web & Browser, Tools, Voice, Automation,
Models), with search, tier filters (Official / Community), capability chips, and
copyable install commands for every entry.
+Every entry also has its own page at `/docs/plugins/<name>` (click a card):
+the full description and any disclosure, the pinned commit, tools, hooks and
+environment variables, the Desktop install button and CLI command, optional
+screenshots and the README from the reviewed commit, plus a **More by this
+author** shelf. Authors have a page at `/docs/plugins/by/<maintainer>` listing
+everything they maintain in the catalog. Both are generated at build time from
+the same catalog files, so a merged PR is the only way a page changes.
+
The catalog complements — it does not replace — the existing
[plugin system](plugins.md). Anything you can install from the catalog is a
normal plugin under the hood; the catalog just adds discovery and a review
@@ -43,7 +51,9 @@ directory of the hermes-agent repository, declaring:
| `platforms` | OS restrictions, empty = all (optional) |
| `docs_url` | External documentation link (optional) |
| `version` | Human-readable label for the pinned sha, e.g. `"1.4.0"`; shown as `1.4.0 @ abcd1234` in the CLI, on the catalog card and on the Desktop **Update to** button (optional, cosmetic) |
-| `image` | Banner image for the catalog card, shown at 2:1 (1200×600 works; other shapes are centre-cropped); an `https` URL on `raw.githubusercontent.com`, `github.com` or `*.githubusercontent.com` (optional). Pin it to the entry's commit (`raw.githubusercontent.com/owner/repo/<sha>/...`) so it never changes under the review |
+| `image` | Banner image for the catalog card and the plugin page hero, shown at 2:1 (1200×600 works; other shapes are centre-cropped); an `https` URL on `raw.githubusercontent.com`, `github.com` or `*.githubusercontent.com` (optional). Pin it to the entry's commit (`raw.githubusercontent.com/owner/repo/<sha>/...`) so it never changes under the review |
+| `screenshots` | Up to 6 images shown as a gallery on the plugin page, same host rule as `image` (optional). Pin them to the entry's commit too |
+| `readme` | `true` renders the repository README (the entry's `subdir` first, else the repo root) on the plugin page. It is fetched **from the pinned commit** at docs build time — never from a branch — so the page shows the README the reviewer read and changes only when the pin does. GitHub and GitLab repos (optional, default `false`) |
## Trust model
@@ -178,7 +188,10 @@ in short, an entry must be:
Pin updates (bumping `sha` to a newer commit) follow the same PR + review
process; bump `version` in the same PR so the label users see matches the
-code. Installed plugins compare their recorded sha against the live pin:
+code, and re-pin any `image` / `screenshots` URLs that embed the sha. Your
+plugin page (`/docs/plugins/<name>`) is built from the same file: add
+`screenshots:` and `readme: true` there to fill it out — there is no separate
+listing to maintain. Installed plugins compare their recorded sha against the live pin:
`hermes plugins list --json` reports `update_available`, the Desktop Plugins
tab shows an **Update to 1.4.0** button, and `hermes plugins update <name>`
checks out exactly the new pin.
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index cb82b8e85ec..2f67c6b405d 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -42,6 +42,8 @@ const config: Config = {
],
plugins: [
+ // Static /plugins/<name> and /plugins/by/<author> pages generated from the catalog JSON.
+ './plugins/plugin-catalog-pages',
[
'@docusaurus/plugin-client-redirects',
{
diff --git a/website/plugins/plugin-catalog-pages/index.js b/website/plugins/plugin-catalog-pages/index.js
new file mode 100644
index 00000000000..6712aeed3b4
--- /dev/null
+++ b/website/plugins/plugin-catalog-pages/index.js
@@ -0,0 +1,148 @@
+// Docusaurus plugin: static pages for every plugin catalog entry and every author.
+//
+// /docs/plugins/<name> one page per entry in website/static/api/plugins.json
+// /docs/plugins/by/<slug> one page per maintainer (slug from extract-plugins.py)
+//
+// Both are generated at build time from the same plugins.json the catalog grid fetches, so
+// there is no second data source: a merged catalog PR is the only way a page appears,
+// changes or disappears. Entries that opt in with `readme: true` get their README fetched
+// from the pinned commit and rendered through the allowlist in ./readme.js.
+//
+// The site degrades, never fails: a missing plugins.json (extract-plugins.py did not run)
+// generates zero pages with a warning, and a README that cannot be fetched leaves that
+// section off the page.
+
+const fs = require("node:fs");
+const path = require("node:path");
+const { fetchReadme, renderReadme } = require("./readme.js");
+
+const PLUGINS_JSON = path.join("static", "api", "plugins.json");
+const META_JSON = path.join("static", "api", "plugins-meta.json");
+const README_CONCURRENCY = 6;
+
+function log(msg) {
+ console.warn(`[plugin-catalog-pages] ${msg}`);
+}
+
+function readJson(file, fallback) {
+ try {
+ return JSON.parse(fs.readFileSync(file, "utf8"));
+ } catch {
+ return fallback;
+ }
+}
+
+async function mapLimit(items, limit, fn) {
+ const out = new Array(items.length);
+ let next = 0;
+ async function worker() {
+ while (next < items.length) {
+ const i = next++;
+ out[i] = await fn(items[i], i);
+ }
+ }
+ await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker));
+ return out;
+}
+
+/** Group entries by maintainerSlug, preserving the catalog's (stars-first) order inside a group. */
+function groupAuthors(entries) {
+ const authors = new Map();
+ for (const entry of entries) {
+ const slug = entry.maintainerSlug || "unknown";
+ const author = authors.get(slug) || { slug, name: entry.maintainer || slug, plugins: [] };
+ author.plugins.push(entry);
+ authors.set(slug, author);
+ }
+ return [...authors.values()];
+}
+
+module.exports = function pluginCatalogPages(context) {
+ const { siteDir, baseUrl } = context;
+ const cacheDir = path.join(siteDir, ".cache", "plugin-readmes");
+
+ return {
+ name: "plugin-catalog-pages",
+
+ getPathsToWatch() {
+ return [path.join(siteDir, PLUGINS_JSON)];
+ },
+
+ async loadContent() {
+ const entries = readJson(path.join(siteDir, PLUGINS_JSON), null);
+ if (!Array.isArray(entries)) {
+ log(`${PLUGINS_JSON} missing or invalid; generating no plugin pages`);
+ return { entries: [], meta: {} };
+ }
+ const meta = readJson(path.join(siteDir, META_JSON), {});
+ const wantReadme = entries.filter((e) => e.readme && e.readmeUrl);
+ const rendered = await mapLimit(wantReadme, README_CONCURRENCY, async (entry) => {
+ const fetched = await fetchReadme(entry.readmeUrl, cacheDir, log);
+ if (fetched == null) return null;
+ try {
+ return { html: await renderReadme(fetched.markdown, fetched.url), url: fetched.url };
+ } catch (err) {
+ log(`README for ${entry.name} failed to render: ${err && err.message ? err.message : err}`);
+ return null;
+ }
+ });
+ const readmes = Object.fromEntries(wantReadme.map((entry, i) => [entry.name, rendered[i]]));
+ if (wantReadme.length) {
+ log(`rendered ${rendered.filter(Boolean).length}/${wantReadme.length} opted-in READMEs from pinned commits`);
+ }
+ return { entries, meta, readmes };
+ },
+
+ async contentLoaded({ content, actions }) {
+ const { addRoute, createData } = actions;
+ const { entries, meta, readmes = {} } = content;
+ if (!entries.length) return;
+ const authors = groupAuthors(entries);
+ const bySlug = new Map(authors.map((a) => [a.slug, a]));
+ const prefix = `${baseUrl.replace(/\/$/, "")}/plugins`;
+
+ // Compact cards for shelves ("More by this author", author page grid) — the full entry
+ // minus nothing heavy; keeping the shape identical to plugins.json keeps one card type.
+ for (const entry of entries) {
+ const author = bySlug.get(entry.maintainerSlug || "unknown");
+ const siblings = author ? author.plugins.filter((p) => p.name !== entry.name) : [];
+ const data = await createData(
+ `plugin-${entry.name}.json`,
+ JSON.stringify({
+ plugin: entry,
+ readmeHtml: readmes[entry.name]?.html || null,
+ readmeSourceUrl: readmes[entry.name]?.url || null,
+ author: author ? { slug: author.slug, name: author.name, count: author.plugins.length } : null,
+ moreByAuthor: siblings,
+ generatedAt: meta.generatedAt || null,
+ starsFetchedAt: meta.starsFetchedAt || null,
+ }),
+ );
+ addRoute({
+ path: `${prefix}/${entry.name}`,
+ component: "@site/src/components/PluginCatalog/PluginPage",
+ exact: true,
+ modules: { data },
+ });
+ }
+
+ for (const author of authors) {
+ const data = await createData(
+ `author-${author.slug}.json`,
+ JSON.stringify({
+ author: { slug: author.slug, name: author.name, count: author.plugins.length },
+ plugins: author.plugins,
+ generatedAt: meta.generatedAt || null,
+ }),
+ );
+ addRoute({
+ path: `${prefix}/by/${author.slug}`,
+ component: "@site/src/components/PluginCatalog/AuthorPage",
+ exact: true,
+ modules: { data },
+ });
+ }
+ log(`generated ${entries.length} plugin pages and ${authors.length} author pages under ${prefix}/`);
+ },
+ };
+};
diff --git a/website/plugins/plugin-catalog-pages/readme.js b/website/plugins/plugin-catalog-pages/readme.js
new file mode 100644
index 00000000000..b9aaa8c6eb4
--- /dev/null
+++ b/website/plugins/plugin-catalog-pages/readme.js
@@ -0,0 +1,192 @@
+// README rendering for the per-plugin pages (/docs/plugins/<name>).
+//
+// An entry that opts in with `readme: true` gets its README rendered on its page. The
+// build fetches it from the PINNED commit (extract-plugins.py emits `readmeUrl` as a
+// raw.githubusercontent.com / gitlab.com raw URL at <sha>) — never a branch tip — so the
+// page shows exactly the README the catalog reviewer read, and it only changes when the
+// author re-pins through a reviewed PR.
+//
+// Rendering is build-time and allowlisted: markdown → mdast (remark-parse + GFM) → hast
+// (remark-rehype WITHOUT allowDangerousHtml, so raw HTML in the README is dropped) → a
+// small serializer that emits only the tags/attributes below and only http(s)/mailto/#
+// URLs. Relative image and link paths are rewritten to the pinned commit on the forge.
+// The remark packages are Docusaurus's own copies (resolved through @docusaurus/mdx-loader)
+// so the site adds no dependency and the README pipeline moves with the Docusaurus pin.
+
+const fs = require("node:fs");
+const path = require("node:path");
+const { createRequire } = require("node:module");
+const { pathToFileURL } = require("node:url");
+
+const FETCH_TIMEOUT_MS = 15_000;
+const MAX_README_BYTES = 512 * 1024;
+// Hosts the build is allowed to fetch README bodies from (raw file endpoints at a sha).
+const README_HOSTS = new Set(["raw.githubusercontent.com", "gitlab.com"]);
+
+const ALLOWED_TAGS = new Set([
+ "a", "p", "br", "hr", "blockquote", "pre", "code", "em", "strong", "del", "s",
+ "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "table", "thead", "tbody",
+ "tr", "th", "td", "img", "input", "sup", "sub", "section", "div", "span", "kbd",
+]);
+const ALLOWED_ATTRS = {
+ "*": new Set(["id", "className", "align"]),
+ a: new Set(["href", "title"]),
+ img: new Set(["src", "alt", "title", "width", "height"]),
+ input: new Set(["type", "checked", "disabled"]),
+ ol: new Set(["start"]),
+ td: new Set(["align", "colSpan", "rowSpan"]),
+ th: new Set(["align", "colSpan", "rowSpan"]),
+ li: new Set(["className"]),
+};
+const VOID_TAGS = new Set(["br", "hr", "img", "input"]);
+const ATTR_NAME = { className: "class", colSpan: "colspan", rowSpan: "rowspan" };
+
+function escapeHtml(text) {
+ return String(text)
+ .replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")
+ .replace(/"/g, "&quot;").replace(/'/g, "&#39;");
+}
+
+function safeUrl(value) {
+ const url = String(value ?? "").trim();
+ if (url === "" || url.startsWith("#")) return url;
+ if (/^(https?:|mailto:)/i.test(url)) return url;
+ return null; // javascript:, data:, vbscript:, protocol-relative … are dropped
+}
+
+/** Where relative README paths point at the pinned commit: {raw, blob} bases. */
+function forgeBases(readmeUrl) {
+ const u = new URL(readmeUrl);
+ const dir = u.pathname.replace(/[^/]*$/, ""); // strip README.md
+ if (u.hostname === "raw.githubusercontent.com") {
+ // /owner/repo/<sha>/<dir>/
+ const [, owner, repo, sha, ...rest] = dir.split("/");
+ const sub = rest.join("/");
+ return {
+ raw: `https://raw.githubusercontent.com/${owner}/${repo}/${sha}/${sub}`,
+ blob: `https://github.com/${owner}/${repo}/blob/${sha}/${sub}`,
+ };
+ }
+ // gitlab: /group/proj/-/raw/<sha>/<dir>/
+ const blob = dir.replace("/-/raw/", "/-/blob/");
+ return { raw: `https://${u.hostname}${dir}`, blob: `https://${u.hostname}${blob}` };
+}
+
+function absolutize(value, base) {
+ const v = String(value ?? "").trim();
+ if (v === "" || v.startsWith("#") || /^[a-z][a-z0-9+.-]*:/i.test(v) || v.startsWith("//")) return v;
+ try {
+ return new URL(v.replace(/^\.\//, ""), base).toString();
+ } catch {
+ return v;
+ }
+}
+
+function rewriteUrls(node, bases) {
+ if (node.type === "element") {
+ const props = node.properties || {};
+ if (node.tagName === "img" && props.src != null) props.src = absolutize(props.src, bases.raw);
+ if (node.tagName === "a" && props.href != null) props.href = absolutize(props.href, bases.blob);
+ // GitHub-flavoured READMEs assume the forge's heading ids; prefix ours so they never clash
+ // with the page chrome.
+ if (/^h[1-6]$/.test(node.tagName) && typeof props.id === "string") props.id = `readme-${props.id}`;
+ }
+ for (const child of node.children || []) rewriteUrls(child, bases);
+}
+
+function serializeAttrs(tagName, props) {
+ const allowed = ALLOWED_ATTRS[tagName];
+ let out = "";
+ for (const [key, raw] of Object.entries(props || {})) {
+ if (!(ALLOWED_ATTRS["*"].has(key) || (allowed && allowed.has(key)))) continue;
+ if (raw == null || raw === false) continue;
+ let value = Array.isArray(raw) ? raw.join(" ") : raw;
+ if (key === "href" || key === "src") {
+ value = safeUrl(value);
+ if (value == null) continue;
+ }
+ if (tagName === "input" && key === "type" && value !== "checkbox") continue;
+ const name = ATTR_NAME[key] || key;
+ out += value === true ? ` ${name}` : ` ${name}="${escapeHtml(value)}"`;
+ }
+ return out;
+}
+
+function serialize(node) {
+ if (node.type === "root") return (node.children || []).map(serialize).join("");
+ if (node.type === "text") return escapeHtml(node.value);
+ if (node.type !== "element") return ""; // comments, raw html, doctype — dropped
+ const tag = node.tagName.toLowerCase();
+ const inner = (node.children || []).map(serialize).join("");
+ if (!ALLOWED_TAGS.has(tag)) return inner; // unwrap unknown elements, keep their text
+ const open = `<${tag}${serializeAttrs(tag, node.properties)}>`;
+ return VOID_TAGS.has(tag) ? open : `${open}${inner}</${tag}>`;
+}
+
+let pipelinePromise = null;
+function loadPipeline() {
+ if (pipelinePromise) return pipelinePromise;
+ pipelinePromise = (async () => {
+ const req = createRequire(require.resolve("@docusaurus/mdx-loader/package.json"));
+ const load = (name) => import(pathToFileURL(req.resolve(name)).href);
+ const [{ unified }, remarkParse, remarkGfm, remarkRehype] = await Promise.all([
+ load("unified"), load("remark-parse"), load("remark-gfm"), load("remark-rehype"),
+ ]);
+ return unified().use(remarkParse.default).use(remarkGfm.default).use(remarkRehype.default);
+ })();
+ return pipelinePromise;
+}
+
+/** Markdown → allowlisted HTML string. `readmeUrl` anchors relative paths at the pinned commit. */
+async function renderReadme(markdown, readmeUrl) {
+ const processor = await loadPipeline();
+ const tree = await processor.run(processor.parse(markdown));
+ rewriteUrls(tree, forgeBases(readmeUrl));
+ return serialize(tree);
+}
+
+/** README.md candidates at the pinned commit: the entry's subdir first, then the repo root
+ * (a monorepo plugin often documents itself in the root README), each in both casings. */
+function readmeCandidates(readmeUrl) {
+ const root = readmeUrl.replace(/(\/[0-9a-f]{40}\/).+$/, "$1README.md");
+ const paths = root === readmeUrl ? [readmeUrl] : [readmeUrl, root];
+ return paths.flatMap((p) => [p, p.replace(/README\.md$/, "readme.md")]);
+}
+
+/** Resolve the README at the pinned commit → `{ markdown, url }` (url = the file that answered), or null. */
+async function fetchReadme(readmeUrl, cacheDir, log) {
+ const u = new URL(readmeUrl);
+ if (u.protocol !== "https:" || !README_HOSTS.has(u.hostname)) {
+ log(`refusing README fetch from ${u.hostname}`);
+ return null;
+ }
+ // The URL embeds the sha, so a cache hit is exact; the cache lives outside git.
+ const cacheFile = path.join(cacheDir, `${Buffer.from(readmeUrl).toString("base64url")}.json`);
+ if (fs.existsSync(cacheFile)) return JSON.parse(fs.readFileSync(cacheFile, "utf8"));
+ for (const candidate of readmeCandidates(readmeUrl)) {
+ try {
+ const res = await fetch(candidate, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS), redirect: "follow" });
+ if (res.status === 404) continue;
+ if (!res.ok) {
+ log(`README fetch ${candidate} → HTTP ${res.status}`);
+ return null;
+ }
+ const text = await res.text();
+ if (Buffer.byteLength(text, "utf8") > MAX_README_BYTES) {
+ log(`README at ${candidate} exceeds ${MAX_README_BYTES} bytes; skipped`);
+ return null;
+ }
+ const result = { markdown: text, url: candidate };
+ fs.mkdirSync(cacheDir, { recursive: true });
+ fs.writeFileSync(cacheFile, JSON.stringify(result));
+ return result;
+ } catch (err) {
+ log(`README fetch ${candidate} failed: ${err && err.message ? err.message : err}`);
+ return null;
+ }
+ }
+ log(`no README.md at ${readmeUrl}`);
+ return null;
+}
+
+module.exports = { fetchReadme, renderReadme, readmeCandidates, serialize, safeUrl, absolutize };
diff --git a/website/src/components/PluginCatalog/AuthorPage.tsx b/website/src/components/PluginCatalog/AuthorPage.tsx
new file mode 100644
index 00000000000..2ba948f49de
--- /dev/null
+++ b/website/src/components/PluginCatalog/AuthorPage.tsx
@@ -0,0 +1,85 @@
+import React from "react";
+import Layout from "@theme/Layout";
+import Link from "@docusaurus/Link";
+import { type CatalogPlugin, CATEGORY_ORDER, categoryOf, formatDate, formatStars, repoUrl } from "./catalog";
+import MiniCard from "./MiniCard";
+import styles from "./pages.module.css";
+
+interface AuthorPageData {
+ author: { slug: string; name: string; count: number };
+ plugins: CatalogPlugin[];
+ generatedAt: string | null;
+}
+
+/** GitHub/GitLab profile when every listed repo belongs to one owner; null when they differ. */
+function profileUrl(plugins: CatalogPlugin[]): string | null {
+ const owners = new Set<string>();
+ for (const p of plugins) {
+ const m = repoUrl(p).match(/^https:\/\/(github\.com|gitlab\.com)\/([^/]+)\//);
+ if (!m) return null;
+ owners.add(`https://${m[1]}/${m[2]}`);
+ }
+ return owners.size === 1 ? [...owners][0] : null;
+}
+
+export default function AuthorPage({ data }: { data: AuthorPageData }) {
+ const { author, plugins } = data;
+ const stars = plugins.reduce((sum, p) => sum + (typeof p.stars === "number" ? p.stars : 0), 0);
+ const hasStars = plugins.some((p) => typeof p.stars === "number");
+ const profile = profileUrl(plugins);
+ const firstListed = plugins
+ .map((p) => p.addedAt)
+ .filter((d): d is string => Boolean(d))
+ .sort()[0];
+ const categories = CATEGORY_ORDER.filter((c) => plugins.some((p) => categoryOf(p) === categoryOf({ category: c })));
+ const official = plugins.filter((p) => p.tier === "official").length;
+
+ return (
+ <Layout
+ title={`Plugins by ${author.name} · Plugin Catalog`}
+ description={`${plugins.length} Hermes Agent plugin${plugins.length === 1 ? "" : "s"} by ${author.name} in the reviewed catalog.`}
+ >
+ <div className={styles.page}>
+ <nav className={styles.crumbs} aria-label="Breadcrumb">
+ <Link to="/plugins">Plugin Catalog</Link>
+ <span aria-hidden="true">/</span>
+ <span>Authors</span>
+ <span aria-hidden="true">/</span>
+ <span className={styles.crumbCurrent}>{author.name}</span>
+ </nav>
+
+ <header className={`${styles.hero} ${styles.authorHero}`}>
+ <div className={styles.heroBody}>
+ <p className={styles.eyebrow}>Plugin author</p>
+ <h1 className={styles.title}>{author.name}</h1>
+ <p className={styles.byline}>
+ {plugins.length} plugin{plugins.length === 1 ? "" : "s"} in the catalog
+ {official > 0 && <> · {official} official</>}
+ {hasStars && <> · {"\u2605"} {formatStars(stars)} GitHub stars across them</>}
+ {firstListed && <> · first listed {formatDate(firstListed)}</>}
+ {categories.length > 0 && (
+ <> · {categories.map((c) => categoryOf({ category: c }).label).join(", ")}</>
+ )}
+ </p>
+ {profile && (
+ <div className={styles.links}>
+ <a className={styles.link} href={profile} target="_blank" rel="noopener noreferrer">
+ {profile.replace(/^https:\/\//, "")} ↗
+ </a>
+ </div>
+ )}
+ </div>
+ </header>
+
+ <main className={styles.main}>
+ <div className={styles.shelf}>
+ {plugins.map((p) => <MiniCard key={p.name} plugin={p} />)}
+ </div>
+ <p className={styles.footerMeta}>
+ <Link to="/plugins">← Back to the catalog</Link>
+ </p>
+ </main>
+ </div>
+ </Layout>
+ );
+}
diff --git a/website/src/components/PluginCatalog/CopyButton.tsx b/website/src/components/PluginCatalog/CopyButton.tsx
new file mode 100644
index 00000000000..ecf648447d8
--- /dev/null
+++ b/website/src/components/PluginCatalog/CopyButton.tsx
@@ -0,0 +1,44 @@
+import React, { useCallback, useState } from "react";
+import styles from "../../pages/plugins/styles.module.css";
+
+/** Copies an install command; shared by the catalog cards and the plugin pages. */
+export default function CopyButton({ text }: { text: string }) {
+ const [copied, setCopied] = useState(false);
+ const onCopy = useCallback(
+ (e: React.MouseEvent) => {
+ e.stopPropagation();
+ navigator.clipboard?.writeText(text).then(
+ () => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ },
+ () => {},
+ );
+ },
+ [text],
+ );
+ return (
+ <button
+ className={styles.copyBtn}
+ onClick={onCopy}
+ title="Copy install command"
+ aria-label="Copy install command"
+ >
+ {copied ? (
+ <svg viewBox="0 0 20 20" fill="currentColor" width="14" height="14">
+ <path
+ fillRule="evenodd"
+ d="M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z"
+ clipRule="evenodd"
+ />
+ </svg>
+ ) : (
+ <svg viewBox="0 0 20 20" fill="currentColor" width="14" height="14">
+ <path d="M7 3.5A1.5 1.5 0 018.5 2h3.879a1.5 1.5 0 011.06.44l3.122 3.12A1.5 1.5 0 0117 6.622V12.5a1.5 1.5 0 01-1.5 1.5h-1v-3.379a3 3 0 00-.879-2.121L10.5 5.379A3 3 0 008.379 4.5H7v-1z" />
+ <path d="M4.5 6A1.5 1.5 0 003 7.5v9A1.5 1.5 0 004.5 18h7a1.5 1.5 0 001.5-1.5v-5.879a1.5 1.5 0 00-.44-1.06L9.44 6.439A1.5 1.5 0 008.378 6H4.5z" />
+ </svg>
+ )}
+ <span className={styles.copyBtnLabel}>{copied ? "Copied" : "Copy"}</span>
+ </button>
+ );
+}
diff --git a/website/src/components/PluginCatalog/MiniCard.tsx b/website/src/components/PluginCatalog/MiniCard.tsx
new file mode 100644
index 00000000000..28354606e07
--- /dev/null
+++ b/website/src/components/PluginCatalog/MiniCard.tsx
@@ -0,0 +1,41 @@
+import React from "react";
+import Link from "@docusaurus/Link";
+import {
+ type CatalogPlugin,
+ categoryOf,
+ formatStars,
+ pluginPagePath,
+ repoUrl,
+ tierOf,
+} from "./catalog";
+import styles from "./pages.module.css";
+
+/** Compact card for shelves: "More by this author" on a plugin page and the author page grid. */
+export default function MiniCard({ plugin }: { plugin: CatalogPlugin }) {
+ const tier = tierOf(plugin);
+ const category = categoryOf(plugin);
+ return (
+ <Link className={styles.miniCard} to={pluginPagePath(plugin.name)}>
+ <span className={styles.miniAccent} style={{ background: tier.color }} />
+ <div className={styles.miniTop}>
+ <span className={styles.miniIcon} aria-hidden="true" title={category.label}>
+ {category.icon}
+ </span>
+ <span className={styles.miniName}>{plugin.name}</span>
+ <span
+ className={styles.tierPill}
+ style={{ color: tier.color, background: tier.bg, borderColor: tier.border }}
+ >
+ {tier.icon} {tier.label}
+ </span>
+ {typeof plugin.stars === "number" && (
+ <span className={styles.miniStars} title={`${plugin.stars.toLocaleString()} GitHub stars on ${repoUrl(plugin)}`}>
+ {"\u2605"} {formatStars(plugin.stars)}
+ </span>
+ )}
+ </div>
+ <p className={styles.miniDesc}>{plugin.description || "No description available."}</p>
+ <span className={styles.miniCategory}>{category.label}</span>
+ </Link>
+ );
+}
diff --git a/website/src/components/PluginCatalog/PluginPage.tsx b/website/src/components/PluginCatalog/PluginPage.tsx
new file mode 100644
index 00000000000..e4b7f5b1951
--- /dev/null
+++ b/website/src/components/PluginCatalog/PluginPage.tsx
@@ -0,0 +1,305 @@
+import React from "react";
+import Layout from "@theme/Layout";
+import Link from "@docusaurus/Link";
+import Head from "@docusaurus/Head";
+import {
+ type CatalogPlugin,
+ SUBMIT_PLUGIN_URL,
+ authorPagePath,
+ categoryOf,
+ desktopInstallLink,
+ formatDate,
+ formatStars,
+ pinUrl,
+ repoUrl,
+ splitDisclosure,
+ tierOf,
+} from "./catalog";
+import CopyButton from "./CopyButton";
+import MiniCard from "./MiniCard";
+import styles from "./pages.module.css";
+
+interface PluginPageData {
+ plugin: CatalogPlugin;
+ /** Allowlisted HTML rendered at build time from the README at the pinned commit; null when not opted in. */
+ readmeHtml: string | null;
+ /** Raw URL of the README file that was rendered (subdir or repo root at the pinned sha). */
+ readmeSourceUrl: string | null;
+ author: { slug: string; name: string; count: number } | null;
+ moreByAuthor: CatalogPlugin[];
+ generatedAt: string | null;
+ starsFetchedAt: string | null;
+}
+
+function Fact({ label, children }: { label: string; children: React.ReactNode }) {
+ return (
+ <div className={styles.fact}>
+ <dt className={styles.factLabel}>{label}</dt>
+ <dd className={styles.factValue}>{children}</dd>
+ </div>
+ );
+}
+
+function ChipList({ label, items, mono = true }: { label: string; items?: string[]; mono?: boolean }) {
+ if (!items?.length) return null;
+ return (
+ <div className={styles.capRow}>
+ <h3 className={styles.capLabel}>
+ {label} <span className={styles.count}>{items.length}</span>
+ </h3>
+ <div className={styles.chipWrap}>
+ {items.map((item) =>
+ mono ? (
+ <code key={item} className={styles.chip}>{item}</code>
+ ) : (
+ <span key={item} className={styles.chip}>{item}</span>
+ ),
+ )}
+ </div>
+ </div>
+ );
+}
+
+function platformLabel(p: string): string {
+ return p === "macos" ? "macOS" : p === "linux" ? "Linux" : p === "windows" ? "Windows" : p;
+}
+
+export default function PluginPage({ data }: { data: PluginPageData }) {
+ const { plugin, readmeHtml, author, moreByAuthor } = data;
+ const tier = tierOf(plugin);
+ const category = categoryOf(plugin);
+ const caps = plugin.capabilities || {};
+ const { prose, disclosures } = splitDisclosure(plugin.description || "");
+ const repo = repoUrl(plugin);
+ const pinned = pinUrl(plugin);
+ const readmeFileUrl = data.readmeSourceUrl
+ ? data.readmeSourceUrl
+ .replace(/^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([0-9a-f]{40})\//, "https://github.com/$1/$2/blob/$3/")
+ .replace("/-/raw/", "/-/blob/")
+ : null;
+ const added = formatDate(plugin.addedAt);
+ const updated = formatDate(plugin.updatedAt);
+ const metaDescription = (prose || plugin.description || `${plugin.name} — a Hermes Agent plugin`).slice(0, 160);
+
+ return (
+ <Layout title={`${plugin.name} · Plugin Catalog`} description={metaDescription}>
+ <Head>
+ <meta property="og:type" content="website" />
+ {plugin.image && <meta property="og:image" content={plugin.image} />}
+ </Head>
+ <div className={styles.page}>
+ <nav className={styles.crumbs} aria-label="Breadcrumb">
+ <Link to="/plugins">Plugin Catalog</Link>
+ <span aria-hidden="true">/</span>
+ <span>{category.label}</span>
+ <span aria-hidden="true">/</span>
+ <span className={styles.crumbCurrent}>{plugin.name}</span>
+ </nav>
+
+ <header className={styles.hero}>
+ {plugin.image && (
+ <img
+ className={styles.heroImage}
+ src={plugin.image}
+ alt=""
+ decoding="async"
+ referrerPolicy="no-referrer"
+ />
+ )}
+ <div className={styles.heroBody}>
+ <div className={styles.titleRow}>
+ <span className={styles.heroIcon} aria-hidden="true" title={category.label}>
+ {category.icon}
+ </span>
+ <h1 className={styles.title}>{plugin.name}</h1>
+ <span
+ className={styles.tierPill}
+ style={{ color: tier.color, background: tier.bg, borderColor: tier.border }}
+ >
+ {tier.icon} {tier.label}
+ </span>
+ {plugin.version && (
+ <span className={styles.versionPill} title={`Version ${plugin.version} at ${plugin.sha}`}>
+ v{plugin.version.replace(/^v/i, "")}
+ </span>
+ )}
+ {typeof plugin.stars === "number" && (
+ <a
+ className={styles.starPill}
+ href={`${repo}/stargazers`}
+ target="_blank"
+ rel="noopener noreferrer"
+ title={`${plugin.stars.toLocaleString()} GitHub stars${data.starsFetchedAt ? ` as of ${data.starsFetchedAt}` : ""}`}
+ >
+ {"\u2605"} {formatStars(plugin.stars)}
+ </a>
+ )}
+ </div>
+ <p className={styles.byline}>
+ {category.label}
+ {plugin.maintainer && (
+ <>
+ {" · by "}
+ {author ? (
+ <Link className={styles.authorLink} to={authorPagePath(author.slug)}>
+ {plugin.maintainer}
+ </Link>
+ ) : (
+ plugin.maintainer
+ )}
+ </>
+ )}
+ {added && <> {" · added "}<time dateTime={plugin.addedAt || undefined}>{added}</time></>}
+ {updated && updated !== added && (
+ <> {" · updated "}<time dateTime={plugin.updatedAt || undefined}>{updated}</time></>
+ )}
+ </p>
+ {prose && <p className={styles.lede}>{prose}</p>}
+ {disclosures.map((text) => (
+ <aside key={text} className={styles.disclosure} role="note">
+ <strong>Disclosure</strong> — {text}
+ </aside>
+ ))}
+
+ <div className={styles.actions}>
+ <a
+ className={styles.installBtn}
+ href={desktopInstallLink(plugin.name)}
+ title="Opens the Install Plugin dialog in Hermes Desktop at the reviewed version. No app? Use the install command."
+ >
+ Open in Hermes Desktop
+ </a>
+ <div className={styles.installCmd}>
+ <code>{plugin.installCommand}</code>
+ <CopyButton text={plugin.installCommand} />
+ </div>
+ </div>
+ <div className={styles.links}>
+ <a className={styles.link} href={repo} target="_blank" rel="noopener noreferrer">Repository ↗</a>
+ <a className={styles.link} href={pinned} target="_blank" rel="noopener noreferrer" title={plugin.sha}>
+ Reviewed source @ {plugin.shaShort} ↗
+ </a>
+ {plugin.docsUrl && (
+ <a className={styles.link} href={plugin.docsUrl} target="_blank" rel="noopener noreferrer">Documentation ↗</a>
+ )}
+ </div>
+ </div>
+ </header>
+
+ <main className={styles.main}>
+ <div className={styles.columns}>
+ <div className={styles.primary}>
+ {plugin.screenshots?.length ? (
+ <section className={styles.section} aria-labelledby="screenshots">
+ <h2 id="screenshots" className={styles.sectionTitle}>Screenshots</h2>
+ <div className={styles.gallery}>
+ {plugin.screenshots.map((src, i) => (
+ <a key={src} href={src} target="_blank" rel="noopener noreferrer" className={styles.shot}>
+ <img
+ src={src}
+ alt={`${plugin.name} screenshot ${i + 1}`}
+ loading="lazy"
+ decoding="async"
+ referrerPolicy="no-referrer"
+ />
+ </a>
+ ))}
+ </div>
+ </section>
+ ) : null}
+
+ {(caps.providesTools?.length || caps.providesHooks?.length || caps.providesMiddleware?.length || caps.requiresEnv?.length) ? (
+ <section className={styles.section} aria-labelledby="capabilities">
+ <h2 id="capabilities" className={styles.sectionTitle}>What it adds</h2>
+ <ChipList label="Tools" items={caps.providesTools} />
+ <ChipList label="Hooks" items={caps.providesHooks} />
+ <ChipList label="Middleware" items={caps.providesMiddleware} />
+ <ChipList label="Environment variables it needs" items={caps.requiresEnv} />
+ </section>
+ ) : null}
+
+ {readmeHtml ? (
+ <section className={styles.section} aria-labelledby="readme">
+ <div className={styles.readmeHead}>
+ <h2 id="readme" className={styles.sectionTitle}>README</h2>
+ <span className={styles.readmeNote}>
+ From the reviewed commit{" "}
+ {readmeFileUrl ? (
+ <a href={readmeFileUrl} target="_blank" rel="noopener noreferrer"><code>{plugin.shaShort}</code> ↗</a>
+ ) : (
+ <code>{plugin.shaShort}</code>
+ )}
+ ; it updates when the author re-pins.
+ </span>
+ </div>
+ <article
+ className={`${styles.readme} markdown`}
+ // Build-time output of plugins/plugin-catalog-pages/readme.js: raw HTML dropped,
+ // tags/attributes allowlisted, URLs restricted to http(s)/mailto/#.
+ dangerouslySetInnerHTML={{ __html: readmeHtml }}
+ />
+ </section>
+ ) : null}
+ </div>
+
+ <aside className={styles.side}>
+ <dl className={styles.facts}>
+ <Fact label="Pinned commit">
+ <a href={pinned} target="_blank" rel="noopener noreferrer" title={plugin.sha}>
+ <code>{plugin.shaShort}</code> ↗
+ </a>
+ </Fact>
+ {plugin.version && <Fact label="Version"><code>{plugin.version}</code></Fact>}
+ {plugin.subdir && <Fact label="Path in repo"><code>{plugin.subdir}</code></Fact>}
+ <Fact label="Requires">
+ <code>hermes {plugin.requiresHermes || "(any version)"}</code>
+ </Fact>
+ <Fact label="Platforms">
+ {plugin.platforms?.length ? plugin.platforms.map(platformLabel).join(", ") : "Linux, macOS, Windows"}
+ </Fact>
+ <Fact label="Category">
+ <Link to="/plugins">{category.label}</Link>
+ </Fact>
+ <Fact label="Tier">{tier.label}</Fact>
+ {plugin.maintainer && (
+ <Fact label="Maintainer">
+ {author ? <Link to={authorPagePath(author.slug)}>{plugin.maintainer}</Link> : plugin.maintainer}
+ </Fact>
+ )}
+ {added && <Fact label="Listed">{added}</Fact>}
+ {updated && updated !== added && <Fact label="Last re-pin">{updated}</Fact>}
+ </dl>
+ <p className={styles.sideNote}>
+ Every entry installs exactly the commit above. Updates reach users only through a
+ reviewed re-pin PR — <Link to={SUBMIT_PLUGIN_URL}>how listing works</Link>.
+ </p>
+ </aside>
+ </div>
+
+ {author && moreByAuthor.length > 0 && (
+ <section className={styles.section} aria-labelledby="more-by">
+ <div className={styles.shelfHead}>
+ <h2 id="more-by" className={styles.sectionTitle}>More by {author.name}</h2>
+ <Link className={styles.shelfAll} to={authorPagePath(author.slug)}>
+ All {author.count} plugins by {author.name} →
+ </Link>
+ </div>
+ <div className={styles.shelf}>
+ {moreByAuthor.slice(0, 6).map((p) => <MiniCard key={p.name} plugin={p} />)}
+ </div>
+ </section>
+ )}
+
+ <p className={styles.footerMeta}>
+ <Link to="/plugins">← Back to the catalog</Link>
+ {formatDate(data.generatedAt) && (
+ // Absolute date, not "x hours ago": the page is server-rendered and a clock-relative
+ // string would differ at hydration.
+ <span title={data.generatedAt || undefined}> · catalog built {formatDate(data.generatedAt)}</span>
+ )}
+ </p>
+ </main>
+ </div>
+ </Layout>
+ );
+}
diff --git a/website/src/components/PluginCatalog/catalog.ts b/website/src/components/PluginCatalog/catalog.ts
new file mode 100644
index 00000000000..3922ad9c909
--- /dev/null
+++ b/website/src/components/PluginCatalog/catalog.ts
@@ -0,0 +1,172 @@
+// Shared catalog vocabulary for the Plugins grid (src/pages/plugins), the per-plugin pages and the
+// author pages (plugins/plugin-catalog-pages generates their routes). One definition of the entry
+// shape, the tier/category taxonomy and the link builders keeps the three surfaces from drifting.
+
+export interface PluginCapabilities {
+ providesTools?: string[];
+ providesHooks?: string[];
+ providesMiddleware?: string[];
+ requiresEnv?: string[];
+}
+
+export interface CatalogPlugin {
+ name: string;
+ description: string;
+ repo: string;
+ sha: string;
+ shaShort: string;
+ tier: string;
+ category: string;
+ maintainer: string;
+ /** URL segment of the author page (/plugins/by/<slug>); one per maintainer. */
+ maintainerSlug?: string;
+ subdir?: string;
+ requiresHermes?: string;
+ platforms?: string[];
+ capabilities?: PluginCapabilities;
+ docsUrl?: string;
+ /** Human label for the pin ("1.4.0"); cosmetic, shown beside the sha. */
+ version?: string;
+ /** Card banner image (GitHub-hosted https URL enforced by the extractor). */
+ image?: string;
+ /** Gallery on the plugin page; GitHub-hosted https URLs, at most 6. */
+ screenshots?: string[];
+ /** The plugin page renders the README from the pinned commit when true. */
+ readme?: boolean;
+ readmeUrl?: string;
+ installCommand: string;
+ /** GitHub stargazers at the last daily probe; null when the repo is not on GitHub or unprobed. */
+ stars?: number | null;
+ /** ISO dates from git history (first listing / last re-pin); present once the dates extractor runs. */
+ addedAt?: string | null;
+ updatedAt?: string | null;
+ /** Lowercase pre-joined haystack for the search filter (built at load). */
+ _search?: string;
+}
+
+export interface CatalogMeta {
+ generatedAt?: string;
+ total?: number;
+ byTier?: Record<string, number>;
+ byCategory?: Record<string, number>;
+ removedCount?: number;
+ starsFetchedAt?: string | null;
+}
+
+// Docs section describing the PR-based submission workflow.
+export const SUBMIT_PLUGIN_URL = "/user-guide/features/plugin-catalog#submitting-a-plugin-to-the-catalog";
+
+/** Deep link into the Desktop app's Install Plugin dialog, catalog mode: the app
+ * resolves the reviewed pin itself, so the page never hands it a repo URL. */
+export function desktopInstallLink(name: string): string {
+ return `hermes://plugin/install?catalog=${encodeURIComponent(name)}`;
+}
+
+/** Site route of an entry's page (Docusaurus prefixes baseUrl/locale via <Link>). */
+export function pluginPagePath(name: string): string {
+ return `/plugins/${encodeURIComponent(name)}`;
+}
+
+/** Site route of a maintainer's page. */
+export function authorPagePath(slug: string): string {
+ return `/plugins/by/${encodeURIComponent(slug)}`;
+}
+
+export function repoUrl(plugin: Pick<CatalogPlugin, "repo">): string {
+ return plugin.repo.replace(/\.git$/, "").replace(/\/$/, "");
+}
+
+/** Browse link to the exact reviewed tree (GitHub `tree/<sha>`, GitLab `-/tree/<sha>`). */
+export function pinUrl(plugin: Pick<CatalogPlugin, "repo" | "sha" | "subdir">): string {
+ const base = repoUrl(plugin);
+ const tree = /^https:\/\/gitlab\.com\//.test(base) ? `${base}/-/tree/${plugin.sha}` : `${base}/tree/${plugin.sha}`;
+ return plugin.subdir ? `${tree}/${plugin.subdir.replace(/^\/+|\/+$/g, "")}` : tree;
+}
+
+export const TIER_CONFIG: Record<
+ string,
+ { label: string; color: string; bg: string; border: string; icon: string }
+> = {
+ official: {
+ label: "Official",
+ color: "#ffd700",
+ bg: "rgba(255, 215, 0, 0.08)",
+ border: "rgba(255, 215, 0, 0.25)",
+ icon: "\u{2713}",
+ },
+ community: {
+ label: "Community",
+ color: "#94a3b8",
+ bg: "rgba(148, 163, 184, 0.08)",
+ border: "rgba(148, 163, 184, 0.2)",
+ icon: "\u{2756}",
+ },
+};
+
+// Browse taxonomy. Order here is the order of the filter pills and of the
+// grouped sections; keep it in sync with CATALOG_CATEGORIES in
+// hermes_cli/plugin_catalog.py and website/scripts/extract-plugins.py.
+export const CATEGORY_CONFIG: Record<string, { label: string; icon: string; blurb: string }> = {
+ desktop: { label: "Desktop", icon: "\u{1F5A5}\u{FE0F}", blurb: "Panes, tabs and views for Hermes Desktop" },
+ memory: { label: "Memory", icon: "\u{1F9E0}", blurb: "Memory providers and context engines" },
+ platform: { label: "Platforms", icon: "\u{1F4AC}", blurb: "Messaging and channel adapters" },
+ web: { label: "Web & Browser", icon: "\u{1F310}", blurb: "Search backends, extraction and browser control" },
+ tools: { label: "Tools", icon: "\u{1F6E0}\u{FE0F}", blurb: "New tools the agent can call" },
+ voice: { label: "Voice", icon: "\u{1F399}\u{FE0F}", blurb: "Speech, TTS and realtime audio" },
+ automation: { label: "Automation", icon: "\u{23F1}\u{FE0F}", blurb: "Hooks, wake triggers and session automation" },
+ models: { label: "Models", icon: "\u{2728}", blurb: "Model and inference providers" },
+ general: { label: "General", icon: "\u{1F4E6}", blurb: "Plugins that span several areas" },
+};
+export const CATEGORY_ORDER = Object.keys(CATEGORY_CONFIG);
+
+export function categoryOf(plugin: Pick<CatalogPlugin, "category">) {
+ return CATEGORY_CONFIG[plugin.category] || CATEGORY_CONFIG.general;
+}
+
+export function tierOf(plugin: Pick<CatalogPlugin, "tier">) {
+ return TIER_CONFIG[plugin.tier] || TIER_CONFIG.community;
+}
+
+export function formatStars(n: number): string {
+ return n >= 1000 ? `${(n / 1000).toFixed(n >= 10_000 ? 0 : 1)}k` : String(n);
+}
+
+export function formatRelativeTime(iso?: string | null): string | null {
+ if (!iso) return null;
+ const then = new Date(iso).getTime();
+ if (!Number.isFinite(then)) return null;
+ const diffMs = Date.now() - then;
+ if (diffMs < 0) return "just now";
+ const mins = Math.floor(diffMs / 60_000);
+ if (mins < 1) return "just now";
+ if (mins < 60) return `${mins} minute${mins === 1 ? "" : "s"} ago`;
+ const hours = Math.floor(mins / 60);
+ if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"} ago`;
+ const days = Math.floor(hours / 24);
+ if (days < 30) return `${days} day${days === 1 ? "" : "s"} ago`;
+ const months = Math.floor(days / 30);
+ return `${months} month${months === 1 ? "" : "s"} ago`;
+}
+
+/** "Sep 20, 2026" for an ISO date; null when unparseable. */
+export function formatDate(iso?: string | null): string | null {
+ if (!iso) return null;
+ const d = new Date(iso);
+ if (!Number.isFinite(d.getTime())) return null;
+ return d.toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", timeZone: "UTC" });
+}
+
+/** Split a description into prose and its "Disclosure — …" sentences (catalog convention for
+ * behaviour a user opts into: auto-payments, vendor client identity, etc.). */
+export function splitDisclosure(description: string): { prose: string; disclosures: string[] } {
+ const marker = /\bDisclosure\s*[—–-]\s*/g;
+ const idx = description.search(marker);
+ if (idx === -1) return { prose: description, disclosures: [] };
+ const prose = description.slice(0, idx).trim();
+ const disclosures = description
+ .slice(idx)
+ .split(marker)
+ .map((s) => s.trim())
+ .filter(Boolean);
+ return { prose, disclosures };
+}
diff --git a/website/src/components/PluginCatalog/pages.module.css b/website/src/components/PluginCatalog/pages.module.css
new file mode 100644
index 00000000000..678e097aed1
--- /dev/null
+++ b/website/src/components/PluginCatalog/pages.module.css
@@ -0,0 +1,597 @@
+/* Per-plugin pages (/plugins/<name>) and author pages (/plugins/by/<slug>). Shares the visual
+ language of the catalog grid (src/pages/plugins/styles.module.css): DM Sans, gold accents,
+ mono pills. Light mode is a first-class check — every colour below has a light override or
+ uses an ifm variable. */
+
+.page {
+ font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 1.5rem 2rem 3rem;
+}
+
+.crumbs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+ font-size: 0.82rem;
+ color: var(--ifm-font-color-secondary, #9a968e);
+ margin-bottom: 1.25rem;
+}
+
+.crumbs a {
+ color: inherit;
+}
+
+.crumbs a:hover {
+ color: var(--ifm-color-primary);
+ text-decoration: none;
+}
+
+.crumbCurrent {
+ color: var(--ifm-font-color-base);
+ font-weight: 600;
+}
+
+/* ── Hero ─────────────────────────────────────────────────────────────── */
+
+.hero {
+ position: relative;
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ border-radius: 14px;
+ overflow: hidden;
+ background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), transparent 60%);
+}
+
+[data-theme="light"] .hero {
+ border-color: rgba(0, 0, 0, 0.08);
+ background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), #fff 60%);
+}
+
+.authorHero {
+ text-align: center;
+}
+
+.heroImage {
+ display: block;
+ width: 100%;
+ max-height: 360px;
+ object-fit: cover;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
+ background: rgba(255, 255, 255, 0.02);
+}
+
+.heroBody {
+ padding: 1.75rem 2rem 1.5rem;
+}
+
+.eyebrow {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.72rem;
+ letter-spacing: 0.15em;
+ text-transform: uppercase;
+ color: #a8860a;
+ margin: 0 0 0.5rem;
+}
+
+[data-theme="dark"] .eyebrow {
+ color: rgba(255, 215, 0, 0.6);
+}
+
+.titleRow {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.6rem;
+ margin-bottom: 0.35rem;
+}
+
+.heroIcon {
+ font-size: 1.6rem;
+ line-height: 1;
+ opacity: 0.85;
+}
+
+.title {
+ font-size: 2.2rem;
+ font-weight: 700;
+ letter-spacing: -0.03em;
+ line-height: 1.1;
+ margin: 0;
+ word-break: break-word;
+}
+
+.byline {
+ font-size: 0.92rem;
+ color: var(--ifm-font-color-secondary, #9a968e);
+ margin: 0 0 1rem;
+}
+
+.authorLink {
+ font-weight: 600;
+}
+
+.lede {
+ font-size: 1.05rem;
+ line-height: 1.6;
+ max-width: 72ch;
+ margin: 0 0 1rem;
+}
+
+.disclosure {
+ max-width: 72ch;
+ margin: 0 0 1rem;
+ padding: 0.7rem 0.9rem;
+ border-left: 3px solid #f59e0b;
+ border-radius: 6px;
+ background: rgba(245, 158, 11, 0.08);
+ font-size: 0.9rem;
+ line-height: 1.5;
+}
+
+/* Pills — same look as the grid cards. */
+.tierPill,
+.versionPill,
+.starPill {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25rem;
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.7rem;
+ font-weight: 500;
+ padding: 0.18rem 0.5rem;
+ border-radius: 4px;
+ border: 1px solid;
+ white-space: nowrap;
+ text-decoration: none;
+}
+
+.versionPill {
+ font-weight: 600;
+ border-color: rgba(96, 165, 250, 0.45);
+ background: rgba(96, 165, 250, 0.12);
+ color: rgba(96, 165, 250, 0.95);
+}
+
+.starPill {
+ border-color: rgba(255, 215, 0, 0.3);
+ background: rgba(255, 215, 0, 0.08);
+ color: #d4af37;
+}
+
+.starPill:hover {
+ background: rgba(255, 215, 0, 0.16);
+ text-decoration: none;
+ color: #d4af37;
+}
+
+/* ── Actions ───────────────────────────────────────────────────────────── */
+
+.actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ gap: 0.75rem;
+ margin: 0.25rem 0 0.9rem;
+}
+
+.installBtn {
+ display: inline-flex;
+ align-items: center;
+ padding: 0.55rem 1.1rem;
+ border: 1px solid var(--ifm-color-primary);
+ border-radius: 8px;
+ background: var(--ifm-color-primary);
+ color: #fff;
+ font-size: 0.9rem;
+ font-weight: 600;
+ text-decoration: none;
+ transition: filter 0.15s ease;
+}
+
+.installBtn:hover {
+ filter: brightness(1.1);
+ color: #fff;
+ text-decoration: none;
+}
+
+.installCmd {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.3rem 0.4rem 0.3rem 0.8rem;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ border-radius: 8px;
+ background: rgba(255, 255, 255, 0.03);
+}
+
+[data-theme="light"] .installCmd {
+ border-color: rgba(0, 0, 0, 0.1);
+ background: rgba(0, 0, 0, 0.03);
+}
+
+.installCmd code {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.82rem;
+ background: none;
+ border: none;
+ padding: 0;
+ white-space: nowrap;
+}
+
+.links {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem 1.25rem;
+ font-size: 0.86rem;
+}
+
+.link {
+ color: var(--ifm-font-color-secondary, #9a968e);
+ text-decoration: none;
+}
+
+.link:hover {
+ color: var(--ifm-color-primary);
+ text-decoration: none;
+}
+
+/* ── Body ─────────────────────────────────────────────────────────────── */
+
+.main {
+ margin-top: 1.5rem;
+}
+
+.columns {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 300px;
+ gap: 2rem;
+ align-items: start;
+}
+
+.primary {
+ min-width: 0;
+}
+
+.section {
+ margin: 0 0 2rem;
+}
+
+.sectionTitle {
+ font-size: 1.15rem;
+ font-weight: 700;
+ letter-spacing: -0.01em;
+ margin: 0 0 0.75rem;
+}
+
+.count {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.7rem;
+ font-weight: 500;
+ padding: 0.1rem 0.45rem;
+ border-radius: 999px;
+ background: rgba(255, 255, 255, 0.08);
+ color: var(--ifm-font-color-secondary, #9a968e);
+ vertical-align: middle;
+ margin-left: 0.3rem;
+}
+
+[data-theme="light"] .count {
+ background: rgba(0, 0, 0, 0.06);
+}
+
+.capRow {
+ margin-bottom: 0.9rem;
+}
+
+.capLabel {
+ font-size: 0.78rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--ifm-font-color-secondary, #9a968e);
+ margin: 0 0 0.4rem;
+}
+
+.chipWrap {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+}
+
+.chip {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.74rem;
+ padding: 0.2rem 0.5rem;
+ border-radius: 4px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(255, 255, 255, 0.04);
+}
+
+[data-theme="light"] .chip {
+ border-color: rgba(0, 0, 0, 0.1);
+ background: rgba(0, 0, 0, 0.04);
+}
+
+/* Screenshots */
+.gallery {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
+ gap: 0.75rem;
+}
+
+.shot {
+ display: block;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 10px;
+ overflow: hidden;
+ background: rgba(255, 255, 255, 0.02);
+ transition: border-color 0.2s, transform 0.2s;
+}
+
+[data-theme="light"] .shot {
+ border-color: rgba(0, 0, 0, 0.1);
+}
+
+.shot:hover {
+ border-color: rgba(255, 215, 0, 0.35);
+ transform: translateY(-1px);
+}
+
+.shot img {
+ display: block;
+ width: 100%;
+ aspect-ratio: 16 / 10;
+ object-fit: cover;
+}
+
+/* README */
+.readmeHead {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 0.5rem 1rem;
+ margin-bottom: 0.75rem;
+}
+
+.readmeHead .sectionTitle {
+ margin: 0;
+}
+
+.readmeNote {
+ font-size: 0.8rem;
+ color: var(--ifm-font-color-secondary, #9a968e);
+}
+
+.readme {
+ padding: 1.25rem 1.5rem;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 12px;
+ font-size: 0.95rem;
+ line-height: 1.65;
+ overflow-wrap: anywhere;
+}
+
+[data-theme="light"] .readme {
+ border-color: rgba(0, 0, 0, 0.1);
+}
+
+/* Author READMEs open with their own H1; keep it in scale with our page. */
+.readme h1 {
+ font-size: 1.6rem;
+}
+
+.readme h2 {
+ font-size: 1.3rem;
+}
+
+.readme h3 {
+ font-size: 1.1rem;
+}
+
+.readme img {
+ max-width: 100%;
+ height: auto;
+}
+
+.readme pre {
+ font-size: 0.85rem;
+}
+
+.readme table {
+ display: block;
+ overflow-x: auto;
+}
+
+/* Facts sidebar */
+.side {
+ position: sticky;
+ top: calc(var(--ifm-navbar-height, 60px) + 1rem);
+}
+
+.facts {
+ margin: 0;
+ padding: 1rem 1.15rem;
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ border-radius: 12px;
+ display: grid;
+ gap: 0.7rem;
+}
+
+[data-theme="light"] .facts {
+ border-color: rgba(0, 0, 0, 0.1);
+}
+
+.fact {
+ display: grid;
+ gap: 0.15rem;
+}
+
+.factLabel {
+ font-size: 0.7rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ color: var(--ifm-font-color-secondary, #9a968e);
+}
+
+.factValue {
+ margin: 0;
+ font-size: 0.9rem;
+ word-break: break-word;
+}
+
+.factValue code {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.8rem;
+}
+
+.sideNote {
+ margin: 0.9rem 0 0;
+ font-size: 0.78rem;
+ line-height: 1.5;
+ color: var(--ifm-font-color-secondary, #9a968e);
+}
+
+/* Shelves (More by this author · author page grid) */
+.shelfHead {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 0.5rem 1rem;
+}
+
+.shelfAll {
+ font-size: 0.86rem;
+ font-weight: 600;
+ text-decoration: none;
+}
+
+.shelf {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ gap: 0.75rem;
+}
+
+.miniCard {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: 0.4rem;
+ padding: 0.9rem 1rem 0.85rem 1.1rem;
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ border-radius: 10px;
+ overflow: hidden;
+ color: inherit;
+ text-decoration: none;
+ transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
+}
+
+[data-theme="dark"] .miniCard {
+ background: #0c0c16;
+}
+
+[data-theme="light"] .miniCard {
+ border-color: rgba(0, 0, 0, 0.08);
+ background: #fff;
+}
+
+.miniCard:hover {
+ color: inherit;
+ text-decoration: none;
+ border-color: rgba(255, 215, 0, 0.25);
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
+ transform: translateY(-1px);
+}
+
+.miniAccent {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 3px;
+ height: 100%;
+ opacity: 0.6;
+}
+
+.miniTop {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0.45rem;
+}
+
+.miniIcon {
+ font-size: 1rem;
+ line-height: 1;
+ opacity: 0.75;
+}
+
+.miniName {
+ font-weight: 600;
+ font-size: 0.92rem;
+ word-break: break-word;
+}
+
+.miniName:hover {
+ color: var(--ifm-color-primary);
+}
+
+.miniStars {
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.7rem;
+ color: #d4af37;
+ margin-left: auto;
+}
+
+/* Gold on white washes out; darken the star text in light mode. */
+[data-theme="light"] .miniStars,
+[data-theme="light"] .starPill,
+[data-theme="light"] .starPill:hover {
+ color: #8a6d00;
+}
+
+.miniDesc {
+ margin: 0;
+ font-size: 0.82rem;
+ line-height: 1.5;
+ color: var(--ifm-font-color-secondary, #9a968e);
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+.miniCategory {
+ font-size: 0.72rem;
+ color: var(--ifm-font-color-secondary, #9a968e);
+}
+
+.footerMeta {
+ margin: 1.5rem 0 0;
+ font-size: 0.82rem;
+ color: var(--ifm-font-color-secondary, #9a968e);
+}
+
+@media (max-width: 900px) {
+ .page {
+ padding: 1rem 1rem 2.5rem;
+ }
+
+ .columns {
+ grid-template-columns: 1fr;
+ }
+
+ .side {
+ position: static;
+ }
+
+ .title {
+ font-size: 1.7rem;
+ }
+
+ .heroBody {
+ padding: 1.25rem 1.15rem 1.15rem;
+ }
+}
diff --git a/website/src/pages/plugins/index.tsx b/website/src/pages/plugins/index.tsx
index 63a2f15c51b..bec8ff1207e 100644
--- a/website/src/pages/plugins/index.tsx
+++ b/website/src/pages/plugins/index.tsx
@@ -1,87 +1,35 @@
import React, { useState, useMemo, useCallback, useRef, useEffect } from "react";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
+import { useHistory } from "@docusaurus/router";
+import useBaseUrl from "@docusaurus/useBaseUrl";
import styles from "./styles.module.css";
-interface PluginCapabilities {
- providesTools?: string[];
- providesHooks?: string[];
- providesMiddleware?: string[];
- requiresEnv?: string[];
-}
-
-interface CatalogPlugin {
- name: string;
- description: string;
- repo: string;
- sha: string;
- shaShort: string;
- tier: string;
- category: string;
- maintainer: string;
- subdir?: string;
- requiresHermes?: string;
- platforms?: string[];
- capabilities?: PluginCapabilities;
- docsUrl?: string;
- /** Human label for the pin ("1.4.0"); cosmetic, shown beside the sha. */
- version?: string;
- /** Card banner image (GitHub-hosted https URL enforced by the extractor). */
- image?: string;
- installCommand: string;
- /** GitHub stargazers at the last daily probe; null when the repo is not on GitHub or unprobed. */
- stars?: number | null;
- /** ISO committer date of the commit that added the entry to plugin-catalog/ (null: no git history at build). */
- addedAt?: string | null;
- /** ISO committer date of the last commit touching the entry (pin bumps, metadata edits). */
- updatedAt?: string | null;
- /** Lowercase pre-joined haystack for the search filter (built at load). */
- _search?: string;
-}
-
-interface CatalogMeta {
- generatedAt?: string;
- total?: number;
- byTier?: Record<string, number>;
- byCategory?: Record<string, number>;
- removedCount?: number;
- starsFetchedAt?: string | null;
-}
+import {
+ type CatalogPlugin,
+ type CatalogMeta,
+ CATEGORY_CONFIG,
+ CATEGORY_ORDER,
+ SUBMIT_PLUGIN_URL,
+ TIER_CONFIG,
+ authorPagePath,
+ categoryOf,
+ desktopInstallLink,
+ formatDate,
+ formatRelativeTime,
+ formatStars,
+ pinUrl,
+ pluginPagePath,
+ repoUrl,
+ tierOf,
+} from "../../components/PluginCatalog/catalog";
+import CopyButton from "../../components/PluginCatalog/CopyButton";
// Routes Docusaurus serves the static API JSON from. `baseUrl` is `/docs/`,
// `static/api/` ends up at `/docs/api/` — same pattern as the Skills Hub.
const PLUGINS_URL = "/docs/api/plugins.json";
const META_URL = "/docs/api/plugins-meta.json";
-// Docs section describing the PR-based submission workflow.
-const SUBMIT_PLUGIN_URL = "/user-guide/features/plugin-catalog#submitting-a-plugin-to-the-catalog";
-
-/** Deep link into the Desktop app's Install Plugin dialog, catalog mode: the app
- * resolves the reviewed pin itself, so the page never hands it a repo URL. */
-function desktopInstallLink(name: string): string {
- return `hermes://plugin/install?catalog=${encodeURIComponent(name)}`;
-}
-
-const TIER_CONFIG: Record<
- string,
- { label: string; color: string; bg: string; border: string; icon: string }
-> = {
- official: {
- label: "Official",
- color: "#ffd700",
- bg: "rgba(255, 215, 0, 0.08)",
- border: "rgba(255, 215, 0, 0.25)",
- icon: "\u{2713}",
- },
- community: {
- label: "Community",
- color: "#94a3b8",
- bg: "rgba(148, 163, 184, 0.08)",
- border: "rgba(148, 163, 184, 0.2)",
- icon: "\u{2756}",
- },
-};
-
const TIER_ORDER = ["all", "official", "community"];
// Sort orders. "stars" is the extractor's own order (stars desc, name), so it
@@ -107,50 +55,6 @@ function sortPlugins(list: CatalogPlugin[], sort: SortKey): CatalogPlugin[] {
);
}
-// Browse taxonomy. Order here is the order of the filter pills and of the
-// grouped sections; keep it in sync with CATALOG_CATEGORIES in
-// hermes_cli/plugin_catalog.py and website/scripts/extract-plugins.py.
-const CATEGORY_CONFIG: Record<string, { label: string; icon: string; blurb: string }> = {
- desktop: { label: "Desktop", icon: "\u{1F5A5}\u{FE0F}", blurb: "Panes, tabs and views for Hermes Desktop" },
- memory: { label: "Memory", icon: "\u{1F9E0}", blurb: "Memory providers and context engines" },
- platform: { label: "Platforms", icon: "\u{1F4AC}", blurb: "Messaging and channel adapters" },
- web: { label: "Web & Browser", icon: "\u{1F310}", blurb: "Search backends, extraction and browser control" },
- tools: { label: "Tools", icon: "\u{1F6E0}\u{FE0F}", blurb: "New tools the agent can call" },
- voice: { label: "Voice", icon: "\u{1F399}\u{FE0F}", blurb: "Speech, TTS and realtime audio" },
- automation: { label: "Automation", icon: "\u{23F1}\u{FE0F}", blurb: "Hooks, wake triggers and session automation" },
- models: { label: "Models", icon: "\u{2728}", blurb: "Model and inference providers" },
- general: { label: "General", icon: "\u{1F4E6}", blurb: "Plugins that span several areas" },
-};
-const CATEGORY_ORDER = Object.keys(CATEGORY_CONFIG);
-
-function formatRelativeTime(iso?: string): string | null {
- if (!iso) return null;
- const then = new Date(iso).getTime();
- if (!Number.isFinite(then)) return null;
- const diffMs = Date.now() - then;
- if (diffMs < 0) return "just now";
- const mins = Math.floor(diffMs / 60_000);
- if (mins < 1) return "just now";
- if (mins < 60) return `${mins} minute${mins === 1 ? "" : "s"} ago`;
- const hours = Math.floor(mins / 60);
- if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"} ago`;
- const days = Math.floor(hours / 24);
- if (days < 30) return `${days} day${days === 1 ? "" : "s"} ago`;
- const months = Math.floor(days / 30);
- return `${months} month${months === 1 ? "" : "s"} ago`;
-}
-
-function formatDate(iso?: string | null): string {
- const d = iso ? new Date(iso) : null;
- return d && Number.isFinite(d.getTime())
- ? d.toLocaleDateString(undefined, { year: "numeric", month: "short", day: "numeric" })
- : "";
-}
-
-function formatStars(n: number): string {
- return n >= 1000 ? `${(n / 1000).toFixed(n >= 10_000 ? 0 : 1)}k` : String(n);
-}
-
function highlightMatch(text: string, query: string): React.ReactNode {
if (!query || !text) return text;
const idx = text.toLowerCase().indexOf(query.toLowerCase());
@@ -164,47 +68,6 @@ function highlightMatch(text: string, query: string): React.ReactNode {
);
}
-function CopyButton({ text }: { text: string }) {
- const [copied, setCopied] = useState(false);
- const onCopy = useCallback(
- (e: React.MouseEvent) => {
- e.stopPropagation();
- navigator.clipboard?.writeText(text).then(
- () => {
- setCopied(true);
- setTimeout(() => setCopied(false), 1500);
- },
- () => {},
- );
- },
- [text],
- );
- return (
- <button
- className={styles.copyBtn}
- onClick={onCopy}
- title="Copy install command"
- aria-label="Copy install command"
- >
- {copied ? (
- <svg viewBox="0 0 20 20" fill="currentColor" width="14" height="14">
- <path
- fillRule="evenodd"
- d="M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z"
- clipRule="evenodd"
- />
- </svg>
- ) : (
- <svg viewBox="0 0 20 20" fill="currentColor" width="14" height="14">
- <path d="M7 3.5A1.5 1.5 0 018.5 2h3.879a1.5 1.5 0 011.06.44l3.122 3.12A1.5 1.5 0 0117 6.622V12.5a1.5 1.5 0 01-1.5 1.5h-1v-3.379a3 3 0 00-.879-2.121L10.5 5.379A3 3 0 008.379 4.5H7v-1z" />
- <path d="M4.5 6A1.5 1.5 0 003 7.5v9A1.5 1.5 0 004.5 18h7a1.5 1.5 0 001.5-1.5v-5.879a1.5 1.5 0 00-.44-1.06L9.44 6.439A1.5 1.5 0 008.378 6H4.5z" />
- </svg>
- )}
- <span className={styles.copyBtnLabel}>{copied ? "Copied" : "Copy"}</span>
- </button>
- );
-}
-
function PluginCard({
plugin,
query,
@@ -223,18 +86,24 @@ function PluginCard({
onCategoryClick?: (category: string) => void;
style?: React.CSSProperties;
}) {
- const tier = TIER_CONFIG[plugin.tier] || TIER_CONFIG.community;
- const category = CATEGORY_CONFIG[plugin.category] || CATEGORY_CONFIG.other;
+ const tier = tierOf(plugin);
+ const category = categoryOf(plugin);
const caps = plugin.capabilities || {};
const toolCount = caps.providesTools?.length || 0;
const hookCount = caps.providesHooks?.length || 0;
const middlewareCount = caps.providesMiddleware?.length || 0;
- const pinUrl = `${plugin.repo.replace(/\.git$/, "").replace(/\/$/, "")}/tree/${plugin.sha}`;
+ const pagePath = pluginPagePath(plugin.name);
+ const history = useHistory();
+ const pageHref = useBaseUrl(pagePath); // <Link> adds baseUrl itself; history.push does not
+ // Outside the Desktop picker a card is a link to the plugin's own page (shareable, indexable);
+ // inside the picker iframe navigation would leave the host's embed, so the card keeps
+ // expanding in place there.
+ const onCardClick = onPick ? onToggle : () => history.push(pageHref);
return (
<div
className={`${styles.card} ${expanded ? styles.cardExpanded : ""}`}
- onClick={onToggle}
+ onClick={onCardClick}
style={style}
>
<div className={styles.cardAccent} style={{ background: tier.color }} />
@@ -255,7 +124,11 @@ function PluginCard({
<div className={styles.cardTop}>
<span className={styles.cardIcon} title={category.label}>{category.icon}</span>
<div className={styles.cardTitleGroup}>
- <h3 className={styles.cardTitle}>{highlightMatch(plugin.name, query)}</h3>
+ <h3 className={styles.cardTitle}>
+ <Link className={styles.cardTitleLink} to={pagePath} onClick={(e) => e.stopPropagation()}>
+ {highlightMatch(plugin.name, query)}
+ </Link>
+ </h3>
<span
className={styles.tierPill}
style={{
@@ -274,7 +147,7 @@ function PluginCard({
{typeof plugin.stars === "number" && (
<a
className={styles.starPill}
- href={`${plugin.repo.replace(/\.git$/, "").replace(/\/$/, "")}/stargazers`}
+ href={`${repoUrl(plugin)}/stargazers`}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
@@ -371,7 +244,15 @@ function PluginCard({
{plugin.maintainer && (
<div className={styles.metaRow}>
<span className={styles.metaLabel}>Maintainer</span>
- <span className={styles.metaValue}>{plugin.maintainer}</span>
+ <span className={styles.metaValue}>
+ {plugin.maintainerSlug ? (
+ <Link to={authorPagePath(plugin.maintainerSlug)} onClick={(e) => e.stopPropagation()}>
+ {plugin.maintainer}
+ </Link>
+ ) : (
+ plugin.maintainer
+ )}
+ </span>
</div>
)}
{plugin.requiresHermes && (
@@ -386,7 +267,7 @@ function PluginCard({
<span className={styles.metaLabel}>Pinned</span>
<span className={styles.metaValue}>
<a
- href={pinUrl}
+ href={pinUrl(plugin)}
target="_blank"
rel="noopener noreferrer"
onClick={(e) => e.stopPropagation()}
@@ -414,6 +295,9 @@ function PluginCard({
<CopyButton text={plugin.installCommand} />
</div>
<div className={styles.cardLinks}>
+ <Link className={styles.docsLink} to={pagePath} onClick={(e) => e.stopPropagation()}>
+ Plugin page →
+ </Link>
<a
className={styles.docsLink}
href={plugin.repo}
diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.css
index 29610c4c551..531bbe60f99 100644
--- a/website/src/pages/plugins/styles.module.css
+++ b/website/src/pages/plugins/styles.module.css
@@ -955,3 +955,14 @@ a.pickBtn {
text-align: center;
text-decoration: none;
}
+
+/* Card title doubles as the link to the plugin's own page. */
+.cardTitleLink {
+ color: inherit;
+ text-decoration: none;
+}
+
+.cardTitleLink:hover {
+ color: var(--ifm-color-primary);
+ text-decoration: none;
+}