Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Tulipe1735/dsh-plugin-paper-reader
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A Zotero-like reading library for DeepSeek Harness. Keep papers, tech blogs, docs and long reads on one shelf; read the English original on the left and a Simplified-Chinese translation on the right in one shared scrollbar; ask a chat rail that sees the text.
English | 简体中文

Developer preview. DeepSeek Harness is in developer preview and its plugin APIs still change. This plugin is developed against the current DSH developer preview; pin a commit if you need a stable install.
Most "read it later" tools stop at a bookmark, and most translation tools lose the page. This plugin keeps the page's structure — headings, lists, code, figures, captions — and puts a cached, paragraph-aligned Chinese translation next to it. The paper/blog never leaves DSH: the panel, the translation model and the chat model all run through the harness you already have.
It is one reader, not two products: arXiv papers and tech blogs share the same shelf, the same bilingual layout and the same chat.
--dsw-font-family), including dsh-fonttune overrides.<img>, <object> SVG and inline SVG are downloaded into the item's folder and rendered at their original position; figure captions are translated like any other block.snapshots gallery can attach static frames to an item (the screenshot shows Anthropic's When AI builds itself); frames are captured separately, and 原文 always opens the live page.abs metadata, Open Graph, article:published_time, JSON-LD and <time> are used for title/author/date/site. Re-adding an existing link repairs missing metadata and figures without touching cached translations.ctx.llm.stream with the model selected in DSH; results are cached per block in zh.json. Visible blocks translate lazily; 译全文 translates the rest. Code, images and references are skipped.[§3.2 · b42].paper_list, paper_read and paper_add, so any DSH session can read what the reader is showing.~/.dsh/paper-reader.| Library with type filters | Tech blog with code blocks |
|---|---|
![]() |
![]() |
| Interactive demo snapshots | Figure with bilingual caption |
|---|---|
![]() |
![]() |
| Card metadata editor | Bilingual paper reader |
|---|---|
![]() |
![]() |
dsh plugin --profile web add github:Tulipe1735/dsh-plugin-paper-reader
Use --profile desktop instead of web for the desktop profile. The repository ships a prebuilt client.js; no frontend build is required for installation.
Submitted to the Awesome DeepSeek Harness Plugins list in PR #15612. Once merged, search for dsh-plugin-paper-reader in DSH's plugin marketplace and install it there.
git clone https://github.com/Tulipe1735/dsh-plugin-paper-reader.git
cd dsh-plugin-paper-reader
pnpm install
Then mount it in a profile:
# ~/.dsh/profiles/desktop/cordis.patch.yml
- insert:
- id: dsh-plugin-paper-reader
name: 'dsh-plugin-paper-reader'
and add the link dependency to that profile's package.json:
{
"dependencies": {
"dsh-plugin-paper-reader": "link:C:/path/to/dsh-plugin-paper-reader"
}
}
The host half is plain ESM; the client is loaded through DSH's module loader.
https://arxiv.org/abs/1706.03762https://arxiv.org/pdf/1810.04805https://www.anthropic.com/institute/recursive-self-improvementhttps://simonwillison.net/2024/Dec/31/llms-in-2024/| Source | Text | Figures | Code | Notes |
|---|---|---|---|---|
| arXiv HTML | Yes | HTML figures | Yes | Preferred full-text route |
| arXiv PDF | Yes | Not extracted | No | XY-cut paragraph/column rebuild |
| Direct PDF | Yes | Not extracted | No | Scanned PDFs without a text layer are reported |
| Tech blog / docs | Yes | Inline images and figures | Yes | Readability + metadata fallbacks |
DSH Web UI
└─ paper-reader panel (client.js, React)
└─ same-origin /plugins/dsh-plugin-paper-reader/api/*
├─ add → fetch → Readability / arXiv / pdf.js → figures
├─ translate→ ctx.llm.stream → per-block cache (zh.json)
├─ chat → summary + outline + relevant blocks → SSE
└─ store → ~/.dsh/paper-reader
The plugin is a normal Cordis plugin: it registers a web-server prefix, a sidebar panel and three agent tools. It does not start a second server and does not proxy model calls outside DSH.
Everything lives under $DSH_HOME/paper-reader (default ~/.dsh/paper-reader):
| Path | Content |
|---|---|
library.json |
shelf index (type, site, title, authors, date, counts, reading time) |
papers/<id>/paper.json |
metadata + blocks (b1, b2, …) |
papers/<id>/zh.json |
cached Chinese translations keyed by block id |
papers/<id>/chat.json |
last 80 chat turns |
papers/<id>/source.pdf |
original PDF, served by /api/source |
papers/<id>/figures/ |
downloaded HTML/blog images, served by /api/figure |
papers/<id>/snapshots/ |
optional static demo frames, served by /api/snapshot |
Deleting an item removes its folder. To back up the library, copy that directory.
pnpm install
pnpm build # esbuild → .build/app.cjs → wrapped into client.js
pnpm test # happy-dom smoke test for the client half
pnpm test:extract # PDF extraction fixture
client.js is generated; edit src/** and run pnpm build. The host half (index.js, lib/**) is plain ESM and needs no build step.
api/* enforces same-origin Sec-Fetch-Site / Origin / Referer checks.<img>, so scripts inside it do not execute.Issues and pull requests are welcome. Please keep the dsh.bundle manifest and cordis.patch.yml intact, run pnpm test and node --check on host files before sending a change, and add the dsh-plugin topic when forking for the marketplace.
MIT.
Built on DeepSeek Harness and Cordis. HTML extraction uses Readability and linkedom; PDF extraction uses pdf.js. Screenshots include short excerpts from third-party articles for demonstration only; the original authors retain all rights to that content.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: arxiv。