DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

vamyane /

vamyane/dsh-brain-viewer

Verified

AI brain viewer for DeepSeek Harness: brain-shaped relationship graph in the sidebar + Markdown knowledge-base pipeline.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHubProject homepage
READMESource: main@1791e648

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 Brain button 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
# refresh the DSH page; if nothing changes, restart DSH once

The pipeline writes memory notes to brain/vault/, then rebuilds app/brain.html and re-embeds it into lib/client.js.

Near-real-time 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, then app/brain.html is updated. Refresh the DSH page to see new nodes.

This is near-real-time because the client HTML is embedded at build time. Fully live updates (runtime graph.json + client polling) are on the roadmap.

Performance (v0.2.2)

  • brain.html is embedded as gzip+base64, so client.js drops from 3.6 MB to ~1 MB and is decompressed only when the panel opens.
  • Large graphs (>2500 nodes) are capped at 30 fps with DPR 1.25; slow frames auto-degrade to 20 fps.
  • Edges are viewport-culled; pulse glows use a cached sprite; rendering pauses when the page is hidden.
  • 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 --workspace reads 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):

  1. keep the plugin in <profile>/local-plugins/dsh-brain-viewer
  2. record "dsh-brain-viewer": "link:./local-plugins/dsh-brain-viewer" in dependencies
  3. run pnpm install so the lockfile records the link
  4. 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.

—/ 5

No ratings yet

Verified DSH bundle

Commit 1791e64834aa

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout