dsh-github-mirror: Browsing and Accelerating GitHub Repositories via Mirrors in DSH Web

Preface

When building agents or plugins inside DSH (DeepSeek Harness), you often need to switch from the sidebar to a browser: checking a particular owner/repo, copying a git clone command, or downloading a default-branch zip. If local access to github.com is unstable, you must tweak link prefixes, remember several mirror rules, and the workflow is easily interrupted at the “find the repository” step.

Below is the community plugin dsh-github-mirror (maintainer Jianmo-R): it adds a GitHub entry point to the DSH Web client sidebar, lists repositories and opens pages on configurable mirrors, while providing separate accelerated routes for clone and zip downloads. The plugin is categorized as a web tool; its GitHub repository currently has about 1 star, is MIT-licensed (package.json version 1.0.0). The community directory entry is at SkillHub plugin page; it is not officially affiliated with DeepSeek or High-Flyer. Please read the source code and license before installing.

What Is This

dsh-github-mirror is a GitHub repository launch panel for the DSH Web GUI. Once the GitHub icon appears in the sidebar, you can browse the repository list of a specified user, rewrite repository links to a chosen mirror (default browse mirror bgithub.xyz), and route git clone and zip downloads through another accelerated prefix (default ghfast.top). It does not replace a full GitHub client, nor does it proxy git traffic or cache repository content locally.

Runtime requirements (from README):

  • A DSH build with client-side plugin support (documented as tested on 0.2.1-rc.2).
  • Access to api.github.com; if not authenticated and the API is blocked, the panel attempts gh-proxy.com as an unauthenticated API fallback.
  • No build step; the browser side is a pre-built client.js bundle.

Core Features

Clicking the GitHub icon in the sidebar opens the panel. The plugin uses the GitHub REST API to read up to 100 recently updated repositories (no pagination yet), displaying description, language, stars, update time, and badges such as private / fork / archived.

Mirror Browsing and Health Check

The Browse via selector determines the prefix for repository pages, user profiles, etc. Built-in options include bgithub.xyz, gitclone.com, and official GitHub; you can also enter a custom mirror prefix in settings. When the panel opens, it probes the current browse mirror once; if it is unreachable, links temporarily fall back to official GitHub and a hint is shown in the UI.

Accelerated Clone and Download

Clone / download routing is configured separately from browsing. By default, clone/downloads go through ghfast.top; you may also choose gh-proxy.com, gitclone.com, or direct official access. Each repository row provides: copy clone command, download default-branch zip, and open in the selected mirror.

Quick Open and Optional Private Repositories

The search box accepts pasted owner/repo, https://github.com/owner/repo, git@github.com:owner/repo.git, or mirror URLs; pressing Enter navigates accordingly.

Public repositories require no login. For private or organization collaboration repos, enter a Personal Access Token with repo read-only scope in the gear menu. This calls /user/repos, raising API quota from 60 to 5,000 requests per hour. The token is stored only in sessionStorage by default; checking Remember the token writes it to localStorage.

Offline Cache

The last successful list is cached for 6 hours; if refresh fails, you still see the previous data.

Route Overview

Route Purpose Notes
bgithub.xyz Browsing GitHub-style web mirror; availability varies
gitclone.com Browsing / Git Web mirror and clone accelerator
ghfast.top Clone / Download Proxy for github.com and raw.githubusercontent.com
gh-proxy.com Clone / Download / API Also serves as unauthenticated API fallback
Official GitHub Fallback Direct connection

All mirrors are third-party services and may change or go offline. They can be switched at runtime, and the settings dialog accepts custom prefixes without code changes.

Installation and Activation

The plugin runs under the current DSH configuration and process permissions. Before installing, review the GitHub repository source code and MIT license.

Install from the DSH Plugin Page

  1. Open Settings → Plugins.
  2. Choose Add plugin → Install a third-party plugin.
  3. Enter the Git URL:
https://github.com/Jianmo-R/dsh-github-mirror
  1. Enable the bundle; if the host prompts for a restart, restart DSH.

The plugin installs to the active DSH profile and does not need to be published to npm.

Install from CLI

If the distribution provides a dsh command:

dsh plugin add https://github.com/Jianmo-R/dsh-github-mirror

Place the repository in a stable path, add it as a link: dependency in the profile’s package.json, and list dsh-github-mirror under dsh.profile.bundles. Run pnpm install in the profile directory, then restart DSH. The plugin’s cordis.patch.yml inserts a github-mirror Loader entry.

Typical Usage

  1. Click the GitHub icon in the DSH sidebar.
  2. On first use, enter a GitHub username (just the user name, not an email or full URL).
  3. Public repos can be browsed directly; for private repos, configure a Token (repo read-only) in the gear menu.
  4. At the top of the panel, set the two route groups: Browse via and Clone / download.
  5. On individual repository rows, use copy clone, download zip, or open in mirror.

Username, route selections, and list cache are stored in browser localStorage; Tokens are sent only to https://api.github.com and are never forwarded to gh-proxy.com or other mirrors. Links open in the system browser.

Use Cases and Considerations

Fits: Users who frequently query GitHub repos inside DSH, need a switchable set of browse mirrors and clone/zip accelerator prefixes, and accept a lightweight launcher with “up to 100 recently updated repositories, no pagination”.

Limitations (README highlights):

  • Without a Token, /users/:name/repos returns only public repositories owned by the account; organization and collaboration repos require a Token and /user/repos.
  • Mirror page freshness depends on the mirror itself and may lag behind GitHub.
  • The cache may contain private repository names and descriptions; you can remove them with Clear local settings.

The DSH ecosystem emphasizes “everything is a plugin”; SkillHub and similar directories are community-maintained, not official app stores. When choosing third-party mirrors, evaluate their availability and privacy policy on your own.

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye