dsh-service-hub: Start and stop local services in the DSH sidebar
dsh-service-hub is a DSH client plugin maintained by liuhuan007 (MIT License). It registers local services, one-off scripts, and terminal tools into a list, providing start, stop, restart, logs, and refresh operations in the DSH sidebar. The plugin includes a zero-dependency console daemon (console/, using only Node standard libraries) that starts on 127.0.0.1:3999 upon activation and stops upon uninstallation. Registration data and logs are stored in ~/.dsh-service-hub/. The sidebar Service tab displays real-time status, health, ports, and shortcut URLs, and provides LAN addresses. The Scan feature scans unregistered executables and listening ports, suggesting types (app/service/terminal/script) that can be overridden, while skipping system directories. The client only makes fetch requests to localhost, and the daemon only binds to 127.0.0.1. It contains no telemetry and only starts or stops user-registered commands. The /healthz endpoint exposes only ok/version/pid and the X-LC-Daemon header, and regression tests are run using `npm test`. The installation command is `dsh plugin --profile desktop add dsh-service-hub`, requiring DSH 0.2.1+, dsh-better-sidebar, Node 18+, and Windows, with port 3999 needing to be free. Known limitations: panel text is only in Chinese, the console URL is fixed, and the sidebar tab is only available after installing dsh-better-sidebar.
Read More