Preface¶
After running a Q&A session in DeepSeek Harness (DSH), the common practice to share it in group chats or forums is taking system screenshots or manual cropping. However, screenshots capture the UI skin, sidebars, and scrollbars; long answers require stitching multiple images, and code blocks or small text often become blurry upon posting. The community plugin chat-share-card (package name dsh-share-card) takes a different approach: it reads structured content directly from the current rendered answer, rearranges the layout using the browser’s Canvas, and then exports it as a PNG or copies it to the clipboard. It does not rely on html2canvas, nor does it hand the DOM over to the browser for full-page screenshots. The README specifies that it is a pure frontend solution with zero third-party dependencies, offline capability, and no content uploading.
What is this¶
chat-share-card is released by maintainer samsam560 and categorized as “Fun Dress-up” in the SkillHub directory. Its positioning is a “Conversation Screenshot Beautifier / Share Card”: with one click, it generates a share image with gradient backgrounds, rounded corners, fonts, and color schemes from a single answer in an AI conversation. It supports customizing backgrounds, fonts, colors, and corner radius, ultimately exporting as a PNG. Currently, the GitHub star count is 0; the first version is 0.1.0 with an MIT license; it requires DSH >=0.1.5-rc.1 (see package.json).
Core Features¶
The following introduces the capabilities documented in the README, without exceeding the scope of the provided materials.
Entry Points & Interaction
- Registers the action “Share Card” (
id: share-card) in the client slotconversation.chat.assistant-actions, appearing alongside native “Good answer / Bad answer” actions on the action row of generated answers. - Clicking it opens a Workbench Overlay: live preview on the left, all parameters on the right; changing any item immediately redraws the preview.
- Settings → Share Card provides a persistent panel with the same set of parameters; preferences are saved locally in the browser via
localStorage["dsh-share-card:config"].
Export
- Export PNG: Default filename is
share-card-<timestamp>.png. - Copy to Clipboard, allowing direct pasting into chat windows.
- Press
Esc, click the mask, or click “Close” to exit the overlay.
Visual & Layout Parameters
| Parameter | Description | Default |
|---|---|---|
| Preset | 8 gradient color schemes | Deep Space Blue-Purple |
| Theme | Dark / Light | Dark |
| Font | Sans-serif / Serif / Monospace | Sans-serif |
| Width | 720 / 880 / 1080 logical pixels | 880 |
| Corner Radius | 0–48 | 28 |
| Padding | 24–80 | 48 |
| Body Font Size | 14–22 | 16 |
| Line Height | 1.2–2.0 | 1.7 |
| Export Scale | 1× / 2× / 3× | 2× |
| Code Wrap / Code Highlight | Whether code blocks wrap and whether syntax coloring is applied | On / On |
| Code Line Numbers | Line numbers on the left side of code blocks | Off |
| Draw Images | Whether images within the answer are drawn into the card | Off (default [Image] placeholder) |
| Show Header / Footer / Question Box / Time / Watermark | Toggles for each region | All On |
| Title / Footer Text / Question Label / Watermark | Custom text; if title is empty, conversation title is used | — |
8 Presets: Deep Space Blue-Purple deepseek, Dark Night Graphite midnight, Sunset Orange-Pink sunset, Mint Teal mint, Paper Beige paper, Pure White Minimal snow, Cyber Neon neon, Deep Sea Whale Blue ocean.
Card Content
Title (conversation name or custom) and time at the top right; an optional question quote box with a “Question” label; the answer body supports paragraphs, headings, ordered/unordered lists (including nested ones), quote blocks, tables, code blocks (language name, syntax highlighting, optional line numbers), inline code, bold/italic/links, and dividers; the footer contains custom text and a watermark. Layout uses Canvas 2D two-pass rendering (measure first, then draw); CJK text wraps by character, while English wraps by word.
Automation Interface
Exposes window.__dshShareCard globally (including version, config, set, reset, open, close, extractLast, render, extractAndRender, renderBlocks, presets, state) to facilitate scripted validation and secondary development.
Installation & Activation¶
The DSH ecosystem emphasizes “Everything is a plugin”; the community directory SkillHub is an independent site with no official affiliation with DeepSeek or Quantou (Huanfang). Before installing the plugin, it is recommended to review the GitHub Repository source code and MIT license yourself—plugins run under the permissions of the current DSH process.
The official installation command is as follows (Desktop profile):
dsh plugin add --profile desktop github:samsam560/chat-share-card
A full restart of DSH is required for the changes to take effect (Desktop goes through .generations/staging). After restarting, you should see the “Share Card” section in the settings.
Typical Usage¶
- Hover over any generated answer and click “Share Card” in the action row.
- Adjust presets, theme, width, corner radius, etc., in the workbench; the left preview updates immediately with changes.
- Once satisfied, click Export PNG or Copy to Clipboard.
- If you wish to fix the default style, modify parameters in Settings → Share Card; the next time you open it, the locally saved configuration will be used.
When needing to share a specific answer, ensure that the answer is visible in the chat area before clicking the button (see limitations below).
Use Cases & Notes¶
Who is it for
- Developers or users who want to post a specific answer from DSH to WeChat, group chats, or forums without carrying the full UI interface.
- Users who require a consistent gradient background, code highlighting, and rounded corner style, and want the 2× export (e.g., 880 logical width → 1760px) to be clear enough for sharing in groups.
Known Limitations (from README)
- DSH chat area uses a virtualized list: content from historical turns not rendered on the page cannot be retrieved; please scroll to make the target answer visible before clicking “Share Card”.
- “Draw Images” is off by default; enabling it may cause the Canvas to be tainted by cross-origin images, leading to export failure.
- There is a height safeguard for extremely long answers; in extreme cases, the bottom of the card will display “Content too long, truncated”.
Conclusion¶
chat-share-card uses a pure browser-side Canvas to rearrange single answers into PNGs with finely tunable parameters, keeping data local. Directory page: SkillHub · chat-share-card; Source code and full parameter descriptions: GitHub · samsam560/chat-share-card.