Introduction¶
When building plugins or tools within DSH, projects are often scattered across local directories, GitHub, npm, and plugin marketplaces like SkillHub. Determining whether a project is “listed in the marketplace,” “how many downloads it has,” “how long the listing PR has been waiting,” or “if the local version matches the online version” usually requires opening repositories, marketplace pages, and registries separately to compare timestamps manually. dsh-lighthouse consolidates these issues into a single observation dashboard powered by a unified set of read-only collection logic. All metrics are derived from APIs and local files; if data cannot be retrieved, the reason is explicitly stated rather than generated by an AI model.
What is this¶
dsh-lighthouse is a client-side plugin released by maintainer 7gzgn. Its purpose is to aggregate local facts, GitHub stars and last push times, marketplace listings and download counts, and the waiting status of listing PRs relative to the upstream median for every “project” listed in your roster, providing a refreshable observation area in the DSH sidebar. Repositories outside the roster are not discovered automatically to avoid mistakenly including other projects in your dashboard.
Core Features¶
Sidebar Observation Panel¶
The DSH sidebar adds a lighthouse icon; clicking it opens the observation panel. Each project is represented by a card (providing the most comprehensive information when the number of projects is small). A manual refresh is available in the top right corner, and data is automatically fetched once when the panel is opened. Data is sourced from the host’s read-only interface /dsh-lighthouse/status. The panel, tools, and HTML cards share the same collection path, ensuring metric consistency across all outputs.
Typical dimensions visible on the cards include:
| Dimension | Description |
|---|---|
| Release & Repo | Whether released, if the repo exists or is readable |
| Marketplace | Listed (incl. downloads), listing in progress, or unreadable |
| Listing PR | Merged, waiting duration, or no PR |
| GitHub | Stars, watchers, open issues |
| Local & Push | Local version, file count, last push time |
Since v0.3.0, the display name prioritizes “English Name + Chinese Name,” and names are clickable to link directly to the repository. Additionally, a “Direct Links” section lists identifiable links for GitHub, npm, and marketplace entries. The Chinese name is derived from the roster’s nameZh or the local package.json’s dsh.displayName.
Compact View for Large Portfolios¶
When the roster contains more than 12 projects, the view automatically switches to compact mode: text receipts list one project per line; HTML renders as a table sorted by “attention required” (Needs handling → Waiting for listing & long duration → Listed). Table headers and summary bars are sticky for scrolling. The table is pure static HTML without scripts and does not support embedded search; use roster tools to group projects when narrowing down scope.
Multi-Source, Separated Reporting¶
Data sources are limited to the GitHub API, marketplace registries, and npm. Data is segregated by source for each project: Local (version, file count, presence of test/smoke.mjs), GitHub, npm (default query, can be disabled), Marketplace, and Listing PR. If a specific source fails, it is marked as “unreadable” and will not be substituted with figures from other sources. For projects hosted only on Gitee, GitLab, etc., the roster can include mirrors links for navigation, but the plugin will not fabricate star or push data for those platforms.
Read-Only Operation & PR Wait Warnings¶
All operations are GET requests; the plugin does not modify repositories, open PRs, or write to remote sources. The report highlights listing PRs where the waiting time exceeds the upstream median; for those within the normal range, it clarifies that they are still waiting within standard limits.
Tools & CLI¶
lighthouse_report: Generates a summary text and writes a single-file HTML card to~/.dsh/lighthouse-reports/lighthouse-<timestamp>.html.lighthouse_fleet: Commands such asshow,init,syncto maintain the roster. Usesyncafter channel releases or renames to backfill missing Chinese names and links, and to report inconsistencies between the roster package name and the repository name (reports only, does not rename).
Installation & Activation¶
Once listed in the marketplace, search for dsh-lighthouse within DSH to install. For development, a manual link can be used (the README example uses a Windows directory junction):
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-lighthouse" -Target "D:\dsh\projects\dsh-lighthouse"
# In the profile's package.json: add "dsh-lighthouse": "link:D:/dsh/projects/dsh-lighthouse" to dependencies
# And add "dsh-lighthouse" to dsh.profile.bundles (it won't load if omitted) → Restart DSH
The plugin runs with the permissions of the current DSH process; please review the source code and MIT license before installing. The runtime README is tested on DSH 0.2.1-rc.2; dsh.compatibility in package.json indicates compatibility with 0.2.0-rc.2 and 0.2.1-rc.2. Node >=18 is required.
Access to more comprehensive GitHub data may require a PAT (repo scope); the plugin searches for configurations in the following order: tokenFile, DSH_SLIPWAY_TOKEN_FILE, ~/.dsh/.gh-token.
Typical Usage¶
Roster¶
The default file is ~/.dsh/lighthouse-fleet.json. owner and works are required; localDir is optional (if omitted, only the online side is observed).
{
"version": 1,
"owner": "7gzgn",
"upstream": { "owner": "awesome-dsh-plugin", "repo": "awesome-dsh-plugin", "branch": "main" },
"works": [
{
"name": "dsh-slipway",
"repo": "dsh-slipway",
"category": "tools",
"localDir": "D:\\dsh\\projects\\dsh-slipway"
}
]
}
Initialization example:
lighthouse_fleet action=init owner=7gzgn works='[{"name":"dsh-slipway","repo":"dsh-slipway","category":"tools","localDir":"D:\\dsh\\projects\\dsh-slipway"}]'
dsh-lighthouse init --owner 7gzgn --works '[…]'
Report & Roster Commands¶
Tool parameter overview: lighthouse_report [fleetFile] [html] [includeNpm] [marketUrl] [reportDir]; lighthouse_fleet action=show|init ….
dsh-lighthouse report [--fleet <path>] [--dir <card_directory>] [--no-npm] [--no-html] [--json]
dsh-lighthouse fleet [--fleet <path>]
The marketplace registry requests the host web service origin by default (e.g., GET <marketUrl>/dsh-market/registry), with an in-process cache of approximately 5 minutes. Since v0.2.4, if the marketplace address cannot be read, the entire row is reported as no data with an explanation to avoid displaying “not read” as 0 downloads. npm queries can be disabled via --no-npm or includeNpm:false.
Local self-test (mock network, does not access external network):
node test/smoke.mjs
Use Cases & Notes¶
This tool is suitable for developers maintaining multiple DSH plugins or tools long-term who need to periodically verify synchronization across “GitHub — npm — Marketplace — Local.” It is not designed for automatic disk scanning to discover projects, nor does it cover metrics for platforms hosted outside GitHub.
The plugin only registers tools, CLI commands, and client injections; it does not run foreground services or background polling. Data collection only occurs when invoked. The community directory SkillHub Entry Page has no official affiliation with DeepSeek or High-Flyer; please rely on trusted channels for installation sources.
Conclusion¶
Lighthouse solves the tracking problem of “invisibility after release”: roster-driven, multi-source read-only, with a unified data source for both GUI and reports. The current version is available in the repository’s package.json (e.g., 0.3.3). Directory page: https://www.skillhub.cn/plugins/7gzgn/dsh-lighthouse; Source code and documentation: https://github.com/7gzgn/dsh-lighthouse.