dshbase

插件目录 / UI & Skins / dsh-web-notes

dsh-web-notes

已验证 · 实测可装 Shrbuz

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-21最近推送
跨平台平台

功能简介

Floating notes for the dsh web GUI: keep commands, credentials and snippets at hand, insert any note into the composer, save any selection as a note

✅
我们的评价
可用 — 实测通过,早期项目

Floating notes for the dsh web GUI: keep commands, credentials and snippets at hand, insert any note into the composer, save any selection as a note 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-web-notes

Floating notes for the DeepSeek Harness web GUI (dsh web). Keep commands, credentials, parameter values and any other important snippets at hand while working — and feed them back into the conversation with one click.

中文

Features

  • Floating dock — an animated notebook icon on the right edge of the chat window, one click away at all times. Drag it anywhere (the position persists); it honours prefers-reduced-motion.
  • Configurable placement & size — in Settings → Plugins → Plugin Configuration the dock can be set to floating (draggable) or fixed (pinned to the chat window's top-right corner, not draggable), and the button size to Small / Regular / Large. Changes apply live — no reload.
  • Notes panel — slide-over panel with search, a note list (title, preview, tags, relative time), and per-note actions.
  • Insert into the composer — one click places the note's content into the current session's input box (the title stays a list label), ready to review and send. When no session is open, the content is copied to the clipboard instead.
  • Save any selection — select text anywhere on the page (e.g. part of an AI answer) and a floating "Save as note" button appears; one click captures it, with the first line as the title. The bubble follows the selection while you scroll and only disappears when the selection collapses, you click elsewhere on the page, or you switch windows.
  • Markdown preview — the note editor auto-detects Markdown (headings, lists, code fences, quotes, tables, links, bold/italic…). Plain notes stay a plain editor; once MD syntax is present an Edit / Preview toggle appears, and the preview renders full GFM (sanitized with DOMPurify — raw HTML/scripts never execute).
  • Per-session notes — a note can be bound to the current session (visible only while that session is current) or saved as global (visible in every session and on the new-conversation screen). The panel has All / This session / Global scope tabs; new notes default to the current session, with a "save to global" checkbox in the editor — or default to global for every new note via the Default to global setting.
  • Persistence — notes are stored locally on the host under $DSH_HOME/notes/notes.json (default ~/.dsh/notes/notes.json), atomic writes, tolerant reads.
  • Privacy by design — the notes API is loopback-only, so the data never leaves the local machine.
  • Theme & skin adaptive — every color rides the official dsh design tokens (--dsw-alias-*), so the UI matches the official light/dark theme out of the box AND recolors live when a skin plugin (dsh-skins / skin-center) is installed — no reload, no skin-specific code.
  • zh/en UI — follows the document language.

Install

From npm

The package is published on the npm registry:

dsh plugin --profile web add dsh-web-notes

If your default npm registry is a mirror that has not synced the package yet (e.g. npmmirror — read-only, syncs with a delay), install straight from the official registry instead:

dsh plugin --profile web add dsh-web-notes --registry https://registry.npmjs.org/

From a local checkout (development)

dsh plugin --profile web add link:/path/to/dsh-web-notes

Then add the bundle to the profile manifest so it actually boots:

# append "dsh-web-notes" to the bundles list in ~/.dsh/profiles/web/package.json
# under "dsh" > "profile" > "bundles", then restart dsh web

The official dsh plugin --profile web add <spec> command forwards to pnpm; it installs the package but does not edit the dsh.profile.bundles manifest — that list decides which installed packages boot. Add the package name there (or ship a cordis.patch.yml insert via an aggregator bundle) and restart.

Verify the install

dsh plugin --profile web list          # dsh-web-notes should be installed
npm view dsh-web-notes version         # → the latest published version

After restarting dsh web, the notebook icon appears on the right edge of the chat window (see Usage).

Update

dsh plugin forwards to pnpm, so updating is just pnpm's update — no manifest edits needed (the profile reconciles its bundle list against what is installed on the next dsh plugin run), then restart dsh web:

dsh plugin --profile web update dsh-web-notes
# or pin an exact version:
dsh plugin --profile web add dsh-web-notes@latest --registry https://registry.npmjs.org/

Mirror sync delay: publishing goes to the official registry, but mirrors like npmmirror sync on a delay — right after a release your default registry may still serve the previous version (or briefly 404). If an update "does nothing" after a new release, point at the official registry with --registry https://registry.npmjs.org/.

Updates never touch your notes: they live on the host at $DSH_HOME/notes/notes.json and your settings survive an upgrade.

Usage

  1. Click the notebook icon on the right edge of the chat window.
  2. Click New to write a note (title optional — defaults to the first line), or select any text on the page and click Save as note.
  3. In the note list:
    • Insert — puts the note into the input box of the current session (appended after any existing draft); press Enter to send.
    • Copy — copies title + content to the clipboard.
    • Edit / Delete — manage the note.

Notes are searchable by title, content and tags (comma-separated in the editor).

Configuration

The plugin registers a notes settings namespace and a settings card in Settings → Plugins → Plugin Configuration (the namespace is also editable via ~/.dsh/settings.yaml):

notes:
  enabled: true            # master switch: false hides the dock entirely
  selectionCapture: true   # false disables the selection "Save as note" bubble
  dockMode: floating       # floating (draggable) | fixed (chat window top-right)
  buttonSize: large        # small | regular | large
  defaultGlobal: false     # new notes default to global (all sessions)

All five options are editable live in the settings card; the dock and panel pick up changes immediately.

Security

Notes may contain credentials, tokens, or other sensitive values. They are stored in plaintext in a local JSON file (~/.dsh/notes/notes.json, same trust model as ~/.dsh/credentials.yaml) and are served only to the loopback browser UI. Do not store secrets you cannot afford to expose on this machine, and protect the file with your OS-level user permissions. Exporting/backing up that file also exports every note.

Development

pnpm install
pnpm run build        # tsc -b (types) + tsdown (lib/index.js + lib/client.js)
node scripts/smoke-host.mjs   # standalone host-logic smoke test (no dsh app needed)

Architecture:

  • Host half (src/index.ts, src/service.ts, src/routes.ts, src/persist.ts) — cordis plugin row notes; CRUD service, atomic JSON persistence, loopback-guarded /api/notes/* routes, settings namespace.
  • Browser half (src/client/) — global floating surface mounted on document.body (notes have no session dimension); talks to the host through same-origin JSON; inserts into the composer through the official conversation input facade (ctx.conversation.input.for(actx).setDraft(...)).

The client bundle is built as a closure-factory artifact (window.__ModuleLoader__.load({ id: 'dsh-web-notes', factory })) served by the web plugin table at /plugins/dsh-web-notes/client.js.

Roadmap

  • Note categories/pinning.
  • Insert with optional send-immediately.

License

Apache-2.0. © 2026 Shrbuz — see NOTICE for attribution.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-web-notes」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Shrbuz/dsh-web-notes

Headless(CLI)profile:

dsh plugin --profile headless add github:Shrbuz/dsh-web-notes

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →