Introduction¶
The bottom of the DeepSeek Harness (DSH) Web GUI sidebar typically only features fixed entries like Settings. When writing prompts or viewing conversations in the Harness for long periods, checking the current date and time often requires switching to the system tray or another window. The community plugin dsh-plugin-calendar-clock adds a clock entry next to the Settings button at the bottom of the sidebar. Clicking it allows you to view a digital clock, an analog dial, and a monthly calendar within the same interface without leaving the Harness.
The following sections introduce the plugin’s positioning, capabilities, installation methods, and daily usage. All facts are sourced from its GitHub repository README and manifest files.
What is this¶
dsh-plugin-calendar-clock is a client-side plugin for the DeepSeek Harness Web GUI, released by the maintainer XZT1118. The npm package name is @dsh-external/dsh-calendar-clock (version 1.0.0, license MIT).
It registers a clock button next to Settings at the bottom of the sidebar; clicking it pops up a card displaying a digital clock (HH:MM:SS) that refreshes every second, an analog dial with hour, minute, and second hands, and a 6×7 monthly calendar grid starting on Monday, highlighting “Today”. The host-side lib/index.js is deliberately empty, and time display is entirely handled in the browser.
The plugin is categorized as “Client” in the SkillHub directory; the repository description emphasizes no runtime dependencies (only require('react') in the browser, sourced from the client’s frozen platform module table).
Core Features¶
Clock and Dial¶
- Digital Clock: Redraws every second, aligned to the second boundary to avoid drift.
- Analog Dial: Hour, minute, and second hands match the second-level time; respects
prefers-reduced-motion. - Timing Strategy: A self-correcting
setTimeoutchain runs only when the card is open, re-triggering at1000 - (Date.now() % 1000)to ensure ticks fall on whole seconds.
Monthly Calendar¶
- Stable 6×7 grid with Monday as the first column.
- Today is highlighted with
aria-current="date". - Provides controls for previous month (
‹), return to today (•), and next month (›). - Date and 12/24-hour format display rely on the browser’s
Intl.DateTimeFormatand locale; there is no separate toggle switch within the plugin.
Sidebar and Accessibility¶
- Mount slot is
sidebar.footer.action, entryid: 'calendar-clock',order: 20, appended alongside official entries without replacing built-in items. - Slot passes prop
wide: whenfalseon the 56px narrow rail, the button degrades to an icon-only mode while retaining an accessible name; after expanding the sidebar, the current time can be seen next to the icon.
Internationalization and Fault Tolerance¶
- Registers English and Chinese dictionaries under the
plugin.calendar-clocknamespace; card text redraws immediately after the application language switches (viauseSyncExternalStoresubscribing tolocale). - The seat component is wrapped in a React error boundary; if rendering fails, it degrades to a plain time string to avoid crashing the entire sidebar.
Card Positioning¶
- The card uses
position: fixed, anchored above the trigger button based on its bounding box, escaping sidebar scrolling and clipping. - Re-measures on window resize and ancestor scroll, keeping it close to the button even when the sidebar is dragged wider.
Installation and Activation¶
Command Line (web profile)¶
The installation command must use the README original:
dsh plugin --profile web add 'github:XZT1118/dsh-plugin-calendar-clock'
GUI¶
Fill in the same repository spec in Settings → Plugins: github:XZT1118/dsh-plugin-calendar-clock.
Note: After the first installation of a new profile bundle, a restart is required to enter boot composition; subsequent modifications to the plugin’s lib/client.js support hot reload.
Manual Profile Editing¶
You can also add the bundle and dependency in $DSH_HOME/profiles/<profile>/package.json, then run pnpm install in the profile directory:
{
"dsh": { "profile": { "bundles": [
// ... existing bundles, official ones first ...
"@dsh-external/dsh-calendar-clock"
] } },
"dependencies": {
"@dsh-external/dsh-calendar-clock": "github:XZT1118/dsh-plugin-calendar-clock"
}
}
The order of the bundle list is the patch layer order; official bundles should be placed before third-party ones.
Typical Usage¶
- Find the clock button at the bottom of the sidebar, next to Settings; under the narrow rail, it is a pure icon, while the expanded sidebar shows the current time next to the icon.
- Click the button (or press Enter after focusing) to open the card.
- Use
‹/•/›to switch months or return to today. - Press Esc, click outside the card, or click the button again to close it.
Developers without GUI automation can use module-level inspection to confirm the Loader line contains include:calendar-clock and fiberPhase: active, and that the sidebar.footer.action slot has an occupant with id: "calendar-clock".
Use Cases and Notes¶
Target Audience: Developers or users who frequently work in the DSH Web GUI, wish to view date and time without leaving the interface, and occasionally browse the monthly calendar.
Permissions and Security: The plugin runs client-side within the current DSH process in the browser and does not declare additional server capabilities; however, before installation, you should still review the GitHub repository source code and the MIT license to ensure compatibility with your environment. The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site with no official affiliation with DeepSeek / High-Flyer.
Classic-script Constraint: lib/client.js will be concatenated and executed as a regular <script> in the combo; it cannot use top-level import/export, otherwise it may trigger Uncaught SyntaxError: Unexpected token 'export' and cause the entire web boot to fail. If the application fails to start after installation, check %APPDATA%\@deepseek-ai\dsh-desktop\logs\crash-*-web-boot.log, and use the repository’s provided node tools/rollback.mjs to remove the bundle from the profile (optional --profile <dir>), then run pnpm install in the profile directory before restarting.
Environment: package.json requires Node >= 22 (mainly for internal repository checks and testing; for complete instructions regarding non-Harness runtime hard dependencies, please refer to the README).
Conclusion¶
dsh-plugin-calendar-clock consolidates a digital clock, analog dial, and monthly calendar into a single entry at the bottom of the sidebar, accommodating narrow rail icon mode, bilingual support, and error isolation, making it suitable as a lightweight time tool in the Web GUI.
- Directory Page: https://www.skillhub.cn/plugins/XZT1118/dsh-plugin-calendar-clock
- GitHub: https://github.com/XZT1118/dsh-plugin-calendar-clock