Preface¶
When building agents or local development environments, GitHub Trending remains a primary entry point for many to see “what repositories are gaining traction recently.” Common approaches include browser bookmarks, RSS, or writing custom scripts to scrape pages periodically; these methods either lack structured change logging or require assembling a separate stack for notifications, translation, and details. DeepSeek Harness (DSH) allows capabilities to be decoupled into plugins, enabling the creation of a panel directly within the desktop host sidebar. By using read-only GET requests to fetch trending pages and REST metadata, it consolidates list changes, Chinese descriptions, and on-demand details into one place. The following introduces the positioning, capabilities, and installation instructions for the community plugin gh-gongjin/dsh-plugin-gh-trending.
What is this¶
dsh-plugin-gh-trending is published by maintainer gh-gongjin and categorized as a Network Tool in the SkillHub directory (current package version 0.1.0, MIT License). The plugin adds an entry to the “Plugins” area of the DSH sidebar, focusing on three core tasks: tracking changes across Daily / Weekly / Monthly lists, highlighting repositories that appear on multiple lists simultaneously, and recording repositories seen for the first time locally. Change logs are written within the plugin panel, with no external notifications pushed.
All requests to github.com / api.github.com are strictly read-only GET: no keys or cookies are included by default, no POST, no ZIP downloads, and no cloning. A standard check cycle sends one request to each of the three trending pages (with up to 3 retries for a single list upon transport failure). An optional “Site-wide High Stars” search is disabled by default; when enabled, the check cycle sends at most one additional request, with specific rules for manual user activation documented separately in the README.
SkillHub has no official affiliation with DeepSeek or High-Flyer; the community directory is an independent site. Users should review the repository source code and license before installation.
Core Features¶
Three-List Monitoring and Independent Fault Isolation¶
The data source is the HTML of GitHub trending pages (https://github.com/trending?since=daily|weekly|monthly), which constitutes non-official page parsing. Site redesigns may cause parsing failures; the README explains why the Search API was not used to replicate “trending ranks.”
Each of the Daily, Weekly, and Monthly lists maintains independent state: if scraping or parsing fails for one list, only that list is frozen, displaying the last successful data and the failure reason, while the other two lists update normally. Configurable options include check interval (Settings page, factory default 60 minutes), items per list (5–25, default 15), and language filtering (valid slugs are verified via a test pull from the Weekly list upon saving).
Change Log and Cross-List Analysis¶
The plugin records event types in the local panel, such as entering a list, leaving a list, significant rank shifts, first appearance, renames (identifying the same repository via record_id when owner/name changes), cross-list rising/falling, and data source errors/recoveries. Rank shift threshold: ≥3 for Daily/Weekly and ≥2 for Monthly to record a “movement.” All three lists are fetched in the same check cycle, so cross-list co-occurrence analysis requires no additional GitHub requests.
Tabs and Typical Interface¶
After installation and host restart, the panel features a tabbed structure (the README currently lists nine tabs): Overview / Daily / Weekly / Monthly / Star Repos / Favorites / Search / Change Log / Settings. The Overview provides the status and quick view of all three lists; each list tab displays a table with a description column; Star Repos is based on local list rows and observation history, requiring zero requests to open; Favorites stores snapshots at the time of favoriting (star counts and descriptions do not refresh with the list); Search performs on-demand GitHub searches with non-persistent results; Change Log contains the full activity history.
Clicking a repository name on the list triggers the details dialog, which accesses api.github.com to pull metadata and README, assembling four sections of structured content (what the project is, popularity & metadata, repository readme, Chinese summary/section translation). Details have a TTL cache (factory default 24 hours, adjustable) and support conditional requests. An optional GitHub Token can be provided (entering only the Authorization header for REST detail quotas; trending pages remain anonymous).
Chinese Descriptions and Live Translation¶
- Built-in Offline Pre-translation Table (
lib/desc-zh.js): If matched, displays human-pretranslated Chinese with a tag “Built-in Offline Pretranslation · Date”; the criterion is exact match of repository primary key + original text with the table entry. If the original text is modified by the author, it reverts to the English description. - Live Translation Engine (5 Tiers) (selected in Settings): Free API, Baidu, Tencent, Alibaba, Host Model; description live translation is enabled by default, summary translation is disabled by default. Live translation occurs in two scenarios: “upon opening details” and “supplementary batch translation for list descriptions not hitting the built-in table after each check cycle.” The panel viewing path does not trigger extra network requests for translation. The supplementary translation budget is limited to 12 requests per cycle with a concurrency of 2 (consistent with README §8.7).
For proxies, the plugin can use its own CONNECT tunnel (lib/services/net.js) without modifying system proxies or listening on ports.
Installation and Activation¶
The DSH ecosystem philosophy is “Everything is a plugin”; the commands below are from the repository README.
Method A: Official CLI¶
The CLI uses pnpm internally; ensure pnpm is in your PATH.
dsh plugin --profile desktop add github:gh-gongjin/dsh-plugin-gh-trending
Local development directories can also be installed via an absolute path:
dsh plugin --profile desktop add <absolute path to this repo>
Method B: Manual Mounting¶
Edit the desktop profile’s package.json (usually ~/.dsh/profiles/desktop/package.json on Linux), add a link: dependency in dependencies, append the package name to dsh.profile.bundles, and create a directory link under the profile’s node_modules. Specific fields and PowerShell examples can be found in the “Installation” section of the README.
Restarting dsh is required after changes to the host side (index.js, lib/**); refreshing the panel is sufficient if only client.js is modified.
To temporarily disable, write the following to ~/.dsh/profiles/desktop/cordis.patch.yml:
- id: gh-trending
disabled: true
Typical Usage¶
- Complete installation and restart dsh desktop, then open the GitHub Trending plugin entry in the sidebar.
- In Settings, verify the check interval, network mode (Follow System / Custom Proxy Address / Direct), and language filtering. If direct connection to GitHub times out, switch to “Follow System” or enter an HTTP proxy address like
127.0.0.1:7897. - Use the “Check Now” button in the header to manually trigger a fetch cycle (counted as one cycle for network usage); browse the description column in Daily / Weekly / Monthly (built-in pre-translations and live translations may coexist; hover to see the original text and source).
- To delve into a repository, click the repository name to open details. If frequently opening details, configure a GitHub Token and detail cache duration in Settings, and be mindful of REST rate limits (README documents 60/hour/IP for anonymous, limits display according to GitHub returns when token is used).
- Use ☆ to favorite projects of interest (available at the end of rows in all three lists, in the Star screen, and in the detail title). The favorites list is a snapshot; click into the detail chain again for the latest star count or description.
- Optional: View repeatedly trending items and trends in the Star Repos tab; enable “Site-wide High Stars” or go to the Search tab to enter keywords and press Enter or click “Search” (search results are not persisted and disappear after switching tabs or restarting).
Scenarios and Notes¶
Target Audience: Developers who wish to long-term monitor Trending, observe cross-list rising trends, and maintain a local change log within the DSH workbench, occasionally opening details for Chinese README excerpts/summaries. Suitable for those who do not want to maintain crawlers and notification channels themselves and accept the premise that “non-official HTML parsing may fail.”
Permissions and Security: The plugin runs with the current dsh process privileges and will access GitHub and (if configured) translation cloud APIs. Cloud vendor keys and GitHub tokens only enter request signatures or headers; the README has constraints on echo and logging. Review the source code and MIT License of the GitHub Repository before deciding whether to enter third-party credentials.
Boundaries: Not an official GitHub product; list rankings are based on the trending page. No external push notifications; live translation and model calls consume their respective quotas (cloud vendor billing follows official websites). The built-in description pre-translation table is limited and decays over time; newly trending repositories may display only English descriptions for a long time until they hit a pre-translation or successful supplementary translation.
Conclusion¶
dsh-plugin-gh-trending integrates GitHub Daily/Weekly/Monthly trending monitoring, change logs, cross-list analysis, and Chinese description/detail reading into the DSH sidebar. Its design emphasizes read-only GET, list-specific fault isolation, and on-demand detail fetching. See the SkillHub Plugin Page for directory introduction and installation instructions; the GitHub README is authoritative for complete behavior and configuration standards.