In the plugin ecosystem of DeepSeek Harness (DSH), mathematical calculation requirements typically rely on external services or complex scripts. dsh-pace-calc provides a lightweight local calculation solution, focusing on running pace conversion.
dsh-pace-calc is a DeepSeek Harness client plugin maintained by developer uckkk. It aims to address the need to quickly calculate pace (minutes/kilometer) and speed (kilometers per hour) from running distance and time in a local, offline environment.
Core Features¶
- Pure Node implementation, zero dependencies: It does not depend on other libraries, does not make network requests, and works offline.
- Convert pace and speed: Based on the input distance and time, it converts to pace (minutes/kilometer) and speed (kilometers per hour).
- Supports arbitrary inputs: It supports arbitrary distance and minutes/seconds time inputs.
Installation and Enablement¶
- Run the installation command:
npm install dsh-pace-calc
- After installation is complete, restart the DSH page.
Typical Usage¶
After installing and restarting, you can directly call the pace_calc function in a DSH session. The function takes three parameters: distance (kilometers), total minutes, and total seconds (defaults to 0).
// 5 公里,30 分钟
pace_calc(dist=5, min=30)
// 返回:6′00″/km,10 km/h
// 半马,1:30:00
pace_calc(dist=21.0975, min=90)
// 返回:4′16″/km,14.1 km/h
// 全马,3:00:00
pace_calc(dist=42.195, min=180)
// 返回:4′16″/km,14.1 km/h
Notes¶
- This plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installing.
- The license is MIT.
Links¶
The plugin can be viewed on GitHub: https://github.com/uckkk/dsh-pace-calc. Plugin directory: https://www.skillhub.cn/plugins/uckkk/dsh-pace-calc.