Skip to main content

Module catalog_api

Module catalog_api 

Source
Expand description

Catalog REST surface. Live HF + Civitai proxy with a 5-min in-process cache; the bulk-scrape DB and scanner are gone.

Structs§

CompanionJob
One queued companion download surfaced in the POST /api/catalog/:id/download response.
InstalledQuery
ListLorasQuery
LiveSearchQuery

Functions§

get_catalog_entry
list_families
list_installed_catalog
GET /api/catalog/installed — enumerate installed catalog entries from the per-install sidecar files under models_dir. The LoRA picker uses this as its primary data source.
list_loras
GET /api/loras — list installed LoRA adapters, optionally filtered by model compatibility. This is a small MCP-friendly view over the catalog sidecars used by the web picker.
live_search_catalog
GET /api/catalog/search — live proxy to upstream catalog APIs with a 5-min in-process cache. Replaces /api/catalog on the read path for the SPA’s catalog tab. The bulk-scrape DB is retained until a follow-up release.
post_catalog_dispatch
POST dispatcher for /api/catalog/*id — routes sub-actions based on the trailing path segment. Currently only /download is handled; everything else returns 404.
post_catalog_download