Below is an introduction to dsh-trend-radar. This is a network-connected tool designed to provide a “market dashboard” for the DSH plugin ecosystem. It addresses a specific problem: existing markets and catalogs are static views of the “current moment” and lack analysis of trends (new entries, growth, and popularity).
Core Features¶
This plugin provides the following capabilities:
- Local Historical Snapshots: Saves
dsh-plugintopics and the awesome-dsh-plugin inclusion list to local history records. - Trend Analysis: Generates weekly reports, including new plugins, star gains leaderboard, category popularity, and awesome inclusion coverage.
- Keyword Radar: Monitors new plugins and star surges.
- Experimental Web Dashboard: Overlays dashboard data above the session input box (currently in experimental stage).
Installation and Enablement¶
The installation command is as follows:
dsh plugin --profile <profile> add dsh-trend-radar
Note: Replace <profile> in the installation command with the actual profile name.
Typical Usage¶
After installation, you can use the core features with the following commands:
-
Snapshot Collection:
Runtrend_snapshotto capture the current state. By default, if the time since the last snapshot has not exceededstaleHours(default is 1 hour), it will skip collection. To force collection, useforce: true. -
Weekly Report Generation:
Runtrend_reportto analyze historical data. This command supports thedaysparameter to specify the time window and supports thekeywordsparameter for filtering. -
Subscription Monitoring:
Runtrend_watchto subscribe to keywords and star surges. It supports theadd,remove,list, andchecksubcommands.
Configuration Options¶
| Key | Default Value | Description |
|---|---|---|
dataDir |
.dsh/trends |
Storage directory for snapshots and subscriptions (relative to the current working directory of the host filesystem). |
staleHours |
1 |
Snapshot freshness window (hours). |
surgeStars |
20 |
Star surge threshold for the radar. |
githubTokenEnv |
`` | Optional. The environment variable name for a GitHub token. Setting a token can increase API rate limits (anonymous API is 60 requests/hour). |
sectionOrder |
5 |
Prompt section order. |
Data and Limitations¶
- Data Storage: Data is stored in the local
.dsh/trendsdirectory in JSONL format. - GitHub API: The anonymous GitHub API rate limit is 60 requests/hour.
- Web UI: The Web UI dashboard is currently experimental and is on the roadmap.
- Permissions: The plugin only uses read-only public APIs to access data and writes data to the local data directory. It does not involve sensitive information.
Notes¶
The plugin runs with the permissions of the current DSH process. Before installation, please review the source code and license.
Links¶
- GitHub repository: https://github.com/863683348/dsh-trend-radar
- Plugin directory: https://www.skillhub.cn/plugins/863683348/dsh-trend-radar