Release 0.4.0: Kaname, search, filters and tags
Release / release (push) Successful in 11m41s

- Rename the app to Kaname
- Hub metadata per model (base models, architecture, license, Hub tags),
  backfilled by the worker for existing models
- Library search across repo/author/family/quant/tags and multi-select
  facet filters (author, family, quant, tag, status) kept in the URL
- Custom tags (model page editor, on add, click-to-filter)
- README rewritten around a quick install, with banner and screenshots
- deploy/compose.yaml: models in a host folder (KANAME_MODELS_DIR)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-05 19:49:17 +02:00
1 parent 2167ea0950
commit 67191b3e16
37 files changed
+2028 -206

No files matched your search

+29 -1
View File
@@ -1,7 +1,7 @@
"use client";
import Link from "next/link";
import { useMemo, useState } from "react";
import { useEffect, useMemo, useState } from "react";
import { toast } from "sonner";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
@@ -44,6 +44,15 @@ export function AddModelForm({
const [includeText, setIncludeText] = useState("");
const [excludeText, setExcludeText] = useState("");
const [submitting, setSubmitting] = useState(false);
const [tagsText, setTagsText] = useState("");
const [knownTags, setKnownTags] = useState<string[]>([]);
useEffect(() => {
fetch("/api/tags")
.then((r) => (r.ok ? r.json() : []))
.then((all: { name: string }[]) => setKnownTags(all.map((t) => t.name)))
.catch(() => {});
}, []);
async function lookup(e: React.FormEvent) {
e.preventDefault();
@@ -56,6 +65,7 @@ export function AddModelForm({
setChecked(new Set());
setIncludeText("");
setExcludeText("");
setTagsText("");
} catch (err) {
setResult(null);
setError(err instanceof Error ? err.message : String(err));
@@ -129,6 +139,7 @@ export function AddModelForm({
sha: result.sha,
include: [...includePatterns, ...[...checked].sort().map(escapeGlob)],
exclude: excludePatterns,
tags: parsePatternList(tagsText),
});
toast.success(`${result.repoId} added, download queued`);
onAdded(id);
@@ -269,6 +280,23 @@ export function AddModelForm({
folder. Selected = checked or matching an include pattern, minus excludes.
</p>
</div>
<div className="flex flex-col gap-1.5">
<Label htmlFor="tags">Tags</Label>
<Input
id="tags"
value={tagsText}
onChange={(e) => setTagsText(e.target.value)}
placeholder="roleplay, security"
list="known-tags"
/>
<datalist id="known-tags">
{knownTags.map((t) => (
<option key={t} value={t} />
))}
</datalist>
<p className="text-xs text-muted-foreground">Optional, comma-separated. Editable later on the model page.</p>
</div>
</CardContent>
</Card>