dsh-brain-viewer
Manifest validBrain-shaped relationship graph viewer for DeepSeek Harness with a Markdown knowledge-base pipeline that imports documents and builds the graph.
dsh-brain-viewer
An AI brain viewer for DeepSeek Harness: a brain-shaped relationship graph that opens from the left sidebar, plus a Markdown knowledge-base pipeline that turns a folder of notes into that graph.
What it does
- Left sidebar entry — a
🧠 AI Brainbutton at the bottom of the sidebar opens a full-screen relationship graph. - Brain-shaped layout — thousands of notes are packed into a real brain silhouette (sampled from the 🧠 emoji outline), with cluster hubs, drifting neurons, hover highlighting, drag-and-rebound and synapse pulses.
- Knowledge pipeline included —
brain/ships the full Markdown pipeline: scan a workspace (md/docx/xlsx) → split documents into memory units → write Obsidian-compatible[[wiki-link]]notes → compile the graph. - Demo data — the package ships a generic demo vault, so it works out of the box. Nothing personal is bundled.
Install
dsh plugin --profile desktop add dsh-brain-viewer
Then fully quit and reopen DSH. The 🧠 AI Brain button appears at the bottom of the
left sidebar.
Build your own brain
Requirements: Node.js 20+ and Python 3.8+ (only for rebuilding; the viewer itself has no Python dependency).
# inside the installed package, or from a local checkout
node tools/rebuild.mjs --workspace "D:/my-notes" # scan your own folder
node tools/rebuild.mjs --demo # restore the demo brain
# data lands in brain/graph.json — reopen the panel, no page refresh needed
The pipeline writes memory notes to brain/vault/ and generates brain/graph.json,
which the panel reads live.
Live sync
# watch a Markdown vault (e.g. the vault your DSH memory skill writes to)
node tools/watch.mjs --vault "C:/path/to/vault"
# or watch a documents folder (md / docx / xlsx)
node tools/watch.mjs --workspace "D:/my-notes"
Changes are debounced (2.5s) and the graph is rebuilt in ~1-3s. The panel re-fetches
/api/dsh-brain/graph every time it opens, so reopening it shows the latest graph —
no repack, no page refresh.
Data source (v0.3.0)
The panel no longer embeds data; it asks the host:
GET /api/dsh-brain/graph → brain/graph.json
- Default: the plugin's own
brain/graph.json(demo data, or whateverrebuild.mjswrote). - To point elsewhere (e.g. the graph produced by your vault skill):
// ~/.dsh/brain-viewer.config.json
{ "graphPath": "C:/path/to/ai-brain/graph.json" }
Restart DSH once so the host route is loaded; after that, data changes only need reopening the panel.
Performance (v0.3.0)
- WebGL batch rendering: nodes are instanced quads and links a single
gl.LINESbatch; pan/zoom only updates a matrix instead of rebuilding geometry. A 6,398-node graph renders in 0.6–1.2 ms per frame (the old Canvas2D path was ~90 ms/frame). - Render on demand: no
requestAnimationFrameat all while nothing is animating or interacting (0 frames at rest) — the same strategy as Obsidian's graph view. Continuous frames only while the drift / pulse toggles are on. - Label LOD: labels appear by zoom threshold, capped at 64 with overlap culling; labels and highlights live on a separate 2D overlay that draws only the few needed.
- Data over a host route:
client.jsdropped from 1 MB to 31 KB; data never ships in the bundle and changes need no repack. - Without WebGL it falls back to batched 2D paths and still renders on demand.
- Closing the panel unmounts the iframe, so it costs no CPU when idle.
Privacy
- The demo vault is generated from generic content (
brain/seed_demo.py). tools/rebuild.mjs --workspacereads files locally only; nothing is uploaded.- The graph is rendered in an iframe from a local Blob URL; no network requests.
Uninstall
dsh plugin --profile desktop remove dsh-brain-viewer
Or delete dsh-brain-viewer from the profile's dsh.profile.bundles.
License
MIT
Troubleshooting: the sidebar button disappears after restart
DSH runs pnpm install on every start. If the plugin is only in dsh.profile.bundles but not in
dependencies, pnpm treats it as "not in the dependency tree" and moves it to node_modules/.ignored/.
The correct install (what install.mjs does):
- keep the plugin in
<profile>/local-plugins/dsh-brain-viewer - record
"dsh-brain-viewer": "link:./local-plugins/dsh-brain-viewer"independencies - run
pnpm installso the lockfile records the link - restart DSH
If pnpm fails on minimumReleaseAge / supply-chain policy (a transitive package missing from the mirror
manifest), add it to minimumReleaseAgeExclude in the profile's pnpm-workspace.yaml.
Comments
Loading…
Similar plugins
by lzhphantom
DSH(DeepSeek Harness)组合包插件:只读扫描任意项目目录,自动构建**模块级 + 文件级知识图谱**,帮助快速理解项目整体架构与设计思路,为后续进化、优化提供依据。
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-kgraph-pluginby zoahdev
Give DeepSeek Harness eyes: analyze images with an OpenAI-compatible vision model via a vision_analyze tool.
★ 0
↓ 285/wk
MIT
TypeScript
Aug 17, 2026
dsh plugin --profile web add dsh-visionby benz-ai-x
DSH Research Graph · 研图 — DeepSeek Harness plugin for research topics, traceable knowledge cards, and reusable AI discussions.
★ 8
↓ 535/wk
MIT
TypeScript
Oct 24, 2026
dsh plugin --profile web add @benz-ai-x/dsh-research-graphby Favio8
DeepEye vision plugin for DeepSeek Harness (DSH): image description, OCR, VQA, UI layout, and clipboard analysis.
★ 3
↓ 69/wk
MIT
TypeScript
Aug 17, 2026
dsh plugin --profile web add dsh-plugin-deepeyeby Luke-Yong
dsh-plugin-knowledge-graph for Deepseek Harness
★ 4
MIT
TypeScript
Aug 17, 2026
dsh plugin --profile web add dsh-plugin-knowledge-graphby kanchengw
Plug-in vision for text-only models on DSH, with native interaction for image understanding and generation, GUI automation, through layered evidence memory and cache.
★ 1
↓ 386/wk
MIT
TypeScript
Aug 29, 2026
dsh plugin --profile web add dsh-mindseye