Introduction¶
When browsing GitHub Trending in DeepSeek Harness (DSH), you typically only see a raw list or simple cards. This approach lacks contextual information and is not intuitive when switching time windows or filtering by category. The wzvx/dsh-github-trending-masonry plugin provides a masonry card panel in the DSH sidebar, presenting the daily, weekly, and monthly GitHub Trending lists in a card format with one-click starring support.
Plugin Overview¶
This is a web tool plugin for the DeepSeek Harness Web UI, developed by maintainer wzvx (author wei.zhang). It displays the three time windows of GitHub Trending (daily, weekly, and monthly) in a masonry card layout. Each card includes a model-generated project summary, tech stack tags, category tags, and a project banner image. The plugin supports one-click starring, syncing favorites to a connected GitHub account or saving them locally.
Core Features¶
- Time Window Switching: The daily, weekly, and monthly lists are toggled via tabs at the top. The plugin pre-loads unopened lists in the background.
- Masonry Card Layout: Card heights adapt to their content—longer descriptions stretch the card taller. The overall page is scrollable, creating a more visually cohesive experience.
- Model-Generated Summaries: Leveraging the current default model in Harness (no additional API key required), the plugin generates a 2-4 sentence fluent description and 3-4 bullet points for each project, explaining what it does and what problem it solves. Summaries are automatically generated in Chinese or English based on the DSH interface language.
- Category Filtering: Tech stack and category tags are displayed on each card. Clicking a tag quickly filters to matching projects.
- One-Click Star: Click the star button in the top-right corner of a card to favorite a project. With a GitHub account connected, the star syncs directly to your real GitHub account; without one, favorites are saved to a local “My Favorites” list and persist across restarts.
- Local Caching & Warm-Up: Trending lists, summaries, and images are cached locally. After DSH starts, the plugin warms up the last viewed list and pre-downloads images. Reopening the panel immediately displays cached content. Click the refresh button to fetch the latest data.
- Image Caching: Project README banner images and repository avatars are mirrored to the plugin’s cache directory on first access. Subsequent refreshes reuse files on disk, and only genuinely changed banners are re-downloaded.
Installation & Enabling¶
Run the following command in the terminal to install the plugin:
dsh plugin --profile desktop add dsh-github-trending-masonry
After installation, restart DSH and click the trending icon in the sidebar icon list to open the panel.
Typical Usage¶
- Open DSH and click the trending icon in the sidebar to open the panel.
- Switch between “Daily,” “Weekly,” and “Monthly” tabs at the top of the panel. Click category tags to filter.
- Click the star button in the top-right corner of a card to favorite a project.
- View all favorited projects in the “My Favorites” list at the top of the panel, sorted in reverse chronological order. The GitHub badge indicates it has been synced to your real account; the local badge indicates it is saved only on this machine.
- Click the account button in the top-right corner of the panel and enter your GitHub Personal Access Token (requires
public_reposcope) to connect your account. After that, stars will sync directly to GitHub.
Configuration Options¶
The default plugin configuration covers most scenarios. To customize, add the following to DSH’s cordis.patch.yml:
- id: github-trending-masonry
name: dsh-github-trending-masonry
config:
ttlMinutes: 30 # Trending list cache TTL in minutes, range 5-1440, default 30
warmup: true # Warm up the last viewed list after DSH starts
warmupDelayMs: 1500 # Warm-up delay in milliseconds, range 0-60000
summaries: true # Enable model-generated summaries; set false to show translated README text instead
summaryProvider: '' # Use a different model route
summaryModel: '' # Use a different model
summaryConcurrency: 6 # Concurrent model calls, range 1-8
summaryTimeoutMs: 60000
dataDir: '' # Storage path for cache and favorites
token: '' # Fixed GitHub token, bypassing UI connection
When no account is connected, the plugin also reads the GITHUB_TOKEN or GH_TOKEN environment variable.
Data & Privacy¶
- All trending list caches, summary caches, favorite lists, and account metadata are stored locally under the
plugin-data/github-trending-masonry/directory. - The GitHub token is stored in DSH’s credential service; if the service is unavailable, it falls back to a local owner-private JSON file. The token is sent only to GitHub itself.
- Summaries are generated via DSH’s own model service, requiring no additional API key.
Notes¶
- On first load of a trending list, the model generates summaries for each project, consuming a small number of tokens (11-25 tokens per list, only for previously unseen projects). Results are cached. You can set
summaries: falseto fully disable this feature. - The plugin only tracks stars it has issued itself. Projects you starred previously on GitHub will show as unstarred on the card; click once to correct the state.
- If the GitHub Trending page structure changes, the panel will continue to display the last cached list and automatically recover once the parsing logic is updated.
Summary¶
wzvx/dsh-github-trending-masonry integrates GitHub Trending into the DSH sidebar panel, providing masonry layout, model-generated project summaries, category filtering, one-click starring, and local caching. It is ideal for users who need to browse and favorite trending projects within DSH. The plugin is licensed under MIT—you are welcome to review the source code before installing.
- Plugin directory: https://www.skillhub.cn/plugins/wzvx/dsh-github-trending-masonry
- GitHub repository: https://github.com/wzvx/dsh-github-trending-masonry