Hugging Face style model pages at /<org>/<name>

- Model URLs are the repo path (case-insensitive, canonical redirect);
  /models/<id> redirects
- Header with avatar, org/name + copy, task/format/arch/language/license
  pills, user tags, cross-links to the Hub (files @ sha, commits, community,
  base model) and tabs: rendered model card at the pinned commit, files, jobs
- Sidebar: download card, local copy, model tree with related local models
- Metadata gains author avatar and base relation (refetched once)
- Proxy matcher excludes only exact /login and /api/auth/ paths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-05 20:12:39 +02:00
1 parent d16bd6dfee
commit 1527fcd830
29 files changed
+4335 -269

No files matched your search

+3 -3
View File
@@ -12,9 +12,9 @@ export default async function AppLayout({ children }: LayoutProps<"/">) {
const worker = await getWorkerStatus();
return (
<div className="flex min-h-screen flex-col">
<div className="flex min-h-screen flex-col overflow-x-clip">
<header className="border-b">
<div className="mx-auto flex h-14 max-w-6xl items-center gap-6 px-4">
<div className="mx-auto flex h-14 max-w-7xl items-center gap-6 px-4">
<Link href="/" className="flex items-baseline gap-1.5 font-semibold">
Kaname
<span className="text-xs font-normal text-muted-foreground">{process.env.APP_VERSION ?? "dev"}</span>
@@ -42,7 +42,7 @@ export default async function AppLayout({ children }: LayoutProps<"/">) {
</div>
</div>
</header>
<main className="mx-auto w-full max-w-6xl flex-1 px-4 py-6">{children}</main>
<main className="mx-auto w-full max-w-7xl flex-1 px-4 py-6">{children}</main>
</div>
);
}