Introduction¶
When developing client-side plugins for DSH (DeepSeek Harness), a common practice is to attach an entry button somewhere in the interface. However, having multiple plugins each occupying their own area can look scattered and compete for space with the sidebar and title bar toolbar. The community already has solutions like dsh-quick-toolbar for aggregating title bar buttons and dsh-sidebar-icon-row for adjusting sidebar inline icons, but they are either tailored for toolbar adapters or bound to sidebar layouts.
dsh-icon-grid (Maintainer: Boris-boomer, Category: Client) provides a scene- and skin-agnostic floating icon grid. External plugins push icons into it via a global registry; this plugin is solely responsible for arrangement, persistence, drag-and-drop sorting, and the settings panel. Its color scheme follows DSH’s current theme CSS variables and does not depend on separate skin plugins.
What is this¶
One-line positioning: A DSH client plugin that consolidates plugin entries into a draggable, sortable floating grid.
This plugin does not implement the business logic of other plugins; it only maintains the “Registry → Slot” mapping. Its responsibilities do not overlap with dsh-plugin-namecards (official plugin page display). Unlike the icon grid hardcoded into the Bot scene in dsh-bot-mode, this is a general-purpose container.
Boundaries with other DSH Plugins¶
- dsh-plugin-namecards: Manages icons, grouping, and sorting for the official DSH plugin page; this plugin manages custom entries registered by any plugin via
window.__dshIconRegistry. - dsh-sidebar-icon-row / dsh-agent-grid: Adjust sidebar layout; this plugin is an independent floating grid and does not modify the sidebar.
- dsh-quick-toolbar: Aggregates buttons on the title bar or floating ball; this plugin aggregates icon entries and arranges them in a grid.
- dsh-bot-mode: Binds the Bot list grid to the Bot scene; this plugin is scene-agnostic.
Core Features¶
The following capabilities are listed in the README.
- Layout: Floats to the right of the input box; automatically sticks to the right edge of the screen when space is insufficient. It relies on DSH DOM markers
[class*="BynINW_centerCol"]and[data-composer-card]for alignment. If these are not found, it falls back to the right-edge sticking method. - Interaction: Drag to swap grid cells; protects the
+Noverflow cell from being pushed out of bounds. Right-clicking non-built-in icons allows opening or unloading plugins. The built-in ⚙️ opens the settings panel. If there are no external icons, the first empty slot displays a semi-transparent+hint. - Settings Panel: Columns, rows, cell size, gap, icon background color, margins, grid line toggle (and depth/shading), and icon primary color.
- Persistence: Uses localStorage as a fallback, with DSH settings as the primary storage, and real-time synchronization via host broadcasts. On first launch, it can migrate
iconGridconfiguration from the olddsh-uinamespace. - Sorting: External icons support a
weightfield (higher values appear first); the built-in ⚙️ is always pinned to the front.
Currently unimplemented items (worth knowing before installation): No virtual scrolling when icons exceed visible slots (remedied only by using +N or adjusting rows/columns in settings); long-press dragging and right-click menus on mobile are unverified; on multi-device setups with the same account, local localStorage takes precedence, which may overwrite remote settings until local data is cleared.
Compatibility & Versions¶
- Node.js ≥ 18 (20 recommended)
- DSH Host ≥
0.2.0-rc.1(Declared inpackage.jsonunderengines.dsh) - Plugin Package Version:
0.1.0(Based onpackage.jsonin the materials) - License: MIT License
Installation & Activation¶
Refer to the repository README for installation steps. The following is the workflow for building from source and mounting to the host (specific mount paths depend on the DSH version; see host documentation):
git clone <repo> dsh-icon-grid
cd dsh-icon-grid
pnpm install
pnpm check # typecheck + lint + test
pnpm build # tsdown → lib/client.js
The build artifact is lib/client.js; the dsh.client.inject in package.json is dsh-icon-grid, which must be consistent with the id in cordis.patch.yml and the build banner (see repository instructions for development constraints).
DSH plugins run with the permissions of the current dsh process. Before installation, you should review the source code and the MIT license yourself to ensure compliance with your environment and security requirements.
Typical Usage¶
Command Line¶
dsh-icon-grid— View current grid statusdsh-icon-grid grid <cols> <rows>— Set grid dimensions (Columns 3–16, Rows 2–24)
Settings Panel¶
Click the ⚙️ icon in the bottom right corner of the grid to open the icon grid settings panel.
External Plugin Integration¶
Other DSH plugins can appear in the grid simply by pushing entries to the global registry:
window.__dshIconRegistry ??= []
window.__dshIconRegistry.push({
id: 'my-plugin',
icon: '🚀', // string or number, required
label: 'My Plugin',
weight: 0, // optional, higher value sorts earlier; same weight preserves registration order
onClick: () => { /* open plugin */ }, // optional, must be a function
onUnload: () => { /* unload callback */ }, // optional, must be a function
})
readRegistry() filters out invalid entries: where id is not a non-empty string, icon is not a string/number, or onClick / onUnload exists but is not a function. You can view window.__dshIconRegistry directly for debugging.
Configuration Namespace¶
Single namespace dsh-icon-grid:
{
iconGrid: {
order: [], // Icon id arrangement ('' represents an empty slot)
cols: 8, rows: 12,
cell: 46, gap: 6,
iconAlpha: 0.08,
gridAccent: '', // ''=follow light/dark semi-transparent; '#rrggbb'=primary color tint
marginRight: 24, marginBottom: 24,
showGridLines: true,
gridLineAlpha: 0.15,
},
}
The theme colors do not read from the skin token table; instead, the browser resolves DSH’s current CSS variables (such as var(--dsw-alias-label-primary, ...)). gridAccent can use color-mix to tint the icon background.
Use Cases & Caveats¶
Suitable for DSH users and plugin authors who need to centrally display multiple plugin icons near the input area and wish to customize drag-sorting, rows/columns, and styles. If you are primarily organizing the official plugin catalog page, use dsh-plugin-namecards; if you only want to modify the sidebar or title bar toolbar, choose the corresponding sidebar/toolbar plugin.
Note that if a major DSH version changes the aforementioned DOM selectors, grid alignment may temporarily rely only on the edge-sticking fallback. Limitations regarding long lists and multi-device configuration syncing are detailed in the “Currently unimplemented” section above.
Conclusion¶
dsh-icon-grid uses a registry + floating grid approach to consolidate scattered plugin entries into a configurable UI block, aligning with DSH theme variables. It serves well as an icon shell for other client plugins.
- Community Directory Page: https://www.skillhub.cn/plugins/Boris-boomer/dsh-icon-grid
- Source Code & Docs: https://github.com/Boris-boomer/dsh-icon-grid
The community plugin directory is an independent site and is not officially affiliated with DeepSeek / High-Flyer. Star counts and versions are subject to the real-time information on the repository and directory page.