You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template dialog currently uses a static index.json file as its data source. We want to migrate to the hub API (GET /api/hub/workflows) so that the database becomes the source of truth.
However, the current hub list API only supports search and tag (single) query parameters. The frontend template dialog relies on several filters that are not yet available server-side:
Filter
Server support
Text search
✅ search param
Tag (single)
✅ tag param
Model filter (multi-select)
❌ Not supported
Runs on (open source vs external)
❌ Not supported
Sort (recommended, popular, newest, alphabetical, VRAM, model size)
❌ Not supported
Using server-side pagination with incomplete filter support would degrade the UX — client-side filters would only apply to the currently loaded page, producing incomplete results.
Proposed Plan
Phase 1 — Database as source of truth (frontend-driven filtering)
Fetch all hub workflows via the list API (paginate through all pages on init)
Keep all existing client-side filtering, sorting, and search (Fuse.js) unchanged
This preserves the current UX while switching the data source from static files to the database
Context
The template dialog currently uses a static
index.jsonfile as its data source. We want to migrate to the hub API (GET /api/hub/workflows) so that the database becomes the source of truth.However, the current hub list API only supports
searchandtag(single) query parameters. The frontend template dialog relies on several filters that are not yet available server-side:searchparamtagparamUsing server-side pagination with incomplete filter support would degrade the UX — client-side filters would only apply to the currently loaded page, producing incomplete results.
Proposed Plan
Phase 1 — Database as source of truth (frontend-driven filtering)
Phase 2 — Server-side filtering and pagination (scalable)
model,open_source,sort, multi-tag support┆Issue is synchronized with this Notion page by Unito