Skip to content

Add Hugging Face - #118

Open
Snuux wants to merge 18 commits into
karakanb:masterfrom
Snuux:add-huggingface
Open

Snuux wants to merge 18 commits into
karakanb:masterfrom
Snuux:add-huggingface

Conversation

@Snuux

@Snuux Snuux commented Nov 17, 2026

Copy link
Copy Markdown

Goal

Add Hugging Face (https://huggingface.co) as a platform, with settings to choose what the card shows.

Builds on #115: it uses the card settings button, the settings panel slot and the state-aware dataUrl / transform added there, so this diff also shows the Reddit commits until #115 is merged.

Changes

  • Hugging Face card with a settings panel. One section per card:
    • Models: sort by trending, likes, downloads, recently created or updated; filter by search term, author or organization, and task (pipeline tag)
    • Spaces: emoji, title and short description from the space card; sort by trending, likes, created or updated; search and author filters
    • Datasets: same sorts as models; search and author filters
    • Daily Papers: today's papers or trending papers, with upvotes and comments
    • Collections: trending, most upvoted or recently updated; search and owner filters
  • rows show the title link, likes or upvotes, downloads or comments, author and age; models also show their task
  • data comes from the public Hub API (https://huggingface.co/api/...); expand[] keeps the responses small, and the items are reduced to the fields the rows need before they are persisted
  • the API sends CORS headers, so no new host_permissions entry is needed
  • transform now also receives the store state, so the card knows which section a response belongs to
  • changing the section, sort or filters drops the cache; the settings are shared by every Hugging Face card
  • yellow header with a smiling face icon (Font Awesome has no Hugging Face logo), yellow title in night mode
  • 15 minute cache
  • README mentions Hugging Face

Verification

  • unit tests: 39 passed, including new tests for the URL builder, the response reducers, the row and the settings panel
  • lint is clean for the changed files
  • checked every section in the dev server against the live API, in day and night mode

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant