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

+2 -1
View File
@@ -27,5 +27,6 @@ export async function proxy(req: NextRequest, event: NextFetchEvent) {
export const config = {
// Everything except the Auth.js endpoints, the login page and static assets.
matcher: ["/((?!api/auth|login|_next/static|_next/image|favicon.ico).*)"],
// Exact exclusions only: an org like "loginx" must still go through the gate.
matcher: ["/((?!api/auth/|login$|_next/static/|_next/image/|favicon\\.ico$).*)"],
};