Daily Japanese vocabulary digest: reads the JSONL of words starred with the companion Edge extension and writes a Markdown summary grouped by part of speech, with a configurable day boundary, template and output directory.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/chuuu4536-gh/dsh-jp-vocab/releases/latest/download/dsh-jp-vocab.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:chuuu4536-gh/dsh-jp-vocab
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在 Edge 里选中日文单词查词、点星收藏;每天用一条命令,把这些词变成一份按词性分组的 Markdown 汇总。
本仓库是三件套,市场只能安装其中的 DSH 插件部分,另外两部分需要手动安装:
| 组件 | 位置 | 作用 | 如何安装 |
|---|---|---|---|
| DSH 插件 | 仓库根目录 | 读取当日词汇 JSONL,套模板写 Markdown 汇总 | dsh plugin add(可被插件市场收录) |
| Edge 扩展 | edge-ext/ |
网页选词 → 查 dict.asia → 星标收藏 | edge://extensions 手动加载解压目录 |
| 本地宿主 | native-host/ |
把星标词写进本地 JSONL | 运行 install.ps1 注册 |
只装 DSH 插件也能跑起来,但没有数据源——词表得由扩展收藏产生。扩展和宿主不在市场的安装范围内。
安装 DSH 插件
从 GitHub 安装:
dsh plugin --profile <profile> add github:chuuu4536-gh/dsh-jp-vocab
发布到 npm 之后也可以:
dsh plugin --profile <profile> add dsh-jp-vocab
装好后会注册三个工具:
| 工具 | 作用 |
|---|---|
jp_vocab_today |
读取指定日期(默认今天)的词汇,返回词条与当前配置 |
jp_vocab_summary |
按模板生成 summaries/YYYY-MM-DD.md |
jp_vocab_settings |
读取/修改共享配置 |
安装 Edge 扩展与本地宿主
注册宿主(Windows,普通权限):
cd native-host powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1加载扩展:打开
edge://extensions→ 开发者模式 → 加载解压缩的扩展 → 选择edge-ext/。打开扩展选项页,确认顶部显示「本地宿主已连接」。
详细排查见 native-host/README.md。
使用
- 在网页上选中日文单词 → 点「查词」;
- 结果卡默认出现在网页右上角(不遮挡正文);想让它跟着选区走,可在扩展选项页把「结果卡位置」改成「所选词旁边」;
- 点结果卡右下角星标收藏;
- 对 DSH 说「生成今日总结」,或直接调用
jp_vocab_summary; - 汇总写到配置的
summariesDir,形如2026-11-18.md。
词形还原由扩展侧完成(kuromoji + 规则兜底):选「惹かれて」会落到最原本的「惹く」,候选条可切回中间层。
配置
扩展设置页与 DSH 插件读同一份文件:%USERPROFILE%\.jp-vocab\config.json。
| 键 | 默认 | 说明 |
|---|---|---|
vocabDir |
D:\...\vocab |
每日词汇 JSONL 目录(宿主写) |
summariesDir |
D:\...\summaries |
汇总 Markdown 输出目录(插件写) |
timeZone |
Asia/Shanghai |
业务日期所用时区 |
dayStartHour |
0 |
一天从本地几点开始(0–6),6 表示 06:00–次日 05:59 算同一天 |
enrichMode |
auto |
auto 生成前先联网补例句/搭配;manual 只出草稿 |
overwrite |
true |
同名汇总文件是否覆盖 |
groupByPos |
true |
汇总按词性分组 |
templatePath |
空 | 自定义模板路径,空则用内置模板 |
扩展侧另有两个浏览器本地偏好(存在 chrome.storage.sync,不进 config.json):
| 偏好 | 默认 | 说明 |
|---|---|---|
direction |
auto |
词典方向:自动 / 日中 / 中日 |
cardPosition |
top-right |
结果卡位置:网页右上角 / 所选词旁边 |
enrichMode是给 agent 的执行约定:插件本身不联网,联网补全由调用它的 agent 完成。
模板
内置模板在 templates/daily-summary.md,支持 {{date}}、{{count}}、{{#words}}…{{/words}},词条内可用 {{no}}、{{word}}、{{reading}}、{{pitchText}}、{{posText}}、{{gloss}}、{{examplesText}}、{{context}}、{{url}}、{{note}},以及可选的 {{#groupHeading}} 分组标题。
开发
node --test test/ # 或逐个运行 test/*.test.mjs
许可
MIT,见 LICENSE。
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 37918
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37097
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
superdesigndev/treg★ 8650
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5964
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 2216
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
helloHub1212/dsh-windows-mcp★ 2002
Bridges the CursorTouch/Windows-MCP desktop automation server into DSH through the official MCP client bridge, registering its screenshot, UI tree snapshot, mouse and keyboard input, clipboard, process and registry tools as mcp__windows__* tools for the model, and adds a windows_mcp_doctor diagnostic tool. Computer Use is off by default and is switched on from the plugin panel.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.