rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hijoywell/dsh-tjing-reading
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
An EPUB / PDF / Kindle / plain-text reader that lives in the DSH sidebar — WeChat Read style typography, table of contents, bookmarks, highlights and reading-progress memory, select-to-translate, plus an AI assistant that answers only from passages retrieved from the book you have open.
English · 简体中文
Verified on DSH 0.2.1 – 0.2.2 (desktop and
webprofile) · Plain JavaScript, no install-time build · MIT
| Format | Notes |
|---|---|
| EPUB 2 / 3 | Spine, NCX/nav TOC, images, themes and adjustable typography. |
| 22 zoom steps, continuous scrolling, first-page cover thumbnails. | |
| MOBI / AZW3 (KF8) | DRM-free Kindle files only. Combo files open the KF8 half automatically. |
| TXT | UTF-8, UTF-16 (LE/BE with BOM) and GB18030 are detected automatically; chapters are detected from heading patterns (Chapter 1, 第一章, etc.) and can be jumped to from the contents panel. |
What is not supported: DRM-protected MOBI/AZW3 files (no DRM removal), KFX, and .azw files. Import Kindle books with their correct .mobi or .azw3 extension; their Palm database headers are validated before parsing.
The desktop app owns its desktop profile, so plugins are installed from the UI rather than the CLI.
Desktop — Settings → Plugins → Add plugin, then enter:
github:hijoywell/dsh-tjing-reading
Any other profile (web, tui, custom):
dsh plugin --profile web add github:hijoywell/dsh-tjing-reading
From a source checkout (development):
git clone https://github.com/hijoywell/dsh-tjing-reading
dsh plugin --profile web add "link:$PWD/dsh-tjing-reading"
Restart DSH after installing; the 竹居 icon appears in the sidebar.
Not published to npm yet —
dsh plugin add dsh-tjing-readingwill fail. Use the Git address above.
Book files, bookmarks, highlights and reading progress are stored in the browser's IndexedDB. Nothing is uploaded to a server.
IndexedDB is scoped per origin, so switching browser or port (another profile, a different dsh web port) starts with an empty bookshelf. That is the browser's security model, not data loss.
When you ask the book a question, only the handful of passages retrieved for that question — never the whole book — is sent to the model configured in your host. The host does not store book content. Without a configured model, the assistant tells you to set one up instead of failing silently.
0.2.1-rc.5 and 0.2.2-rc.1, desktop and web profile.engines.dsh constraint is declared on purpose: a narrow range makes the host refuse to load the plugin after a DSH upgrade. If your host is older than 0.2.1 the sidebar entry will not appear — upgrade DSH first.DecompressionStream for EPUB, Canvas for PDF, IndexedDB for storage. pdf.js (Apache-2.0) is inlined into client.js, so there are no runtime dependencies.index.js Host half — /api/bookshelf/ai/chat, /api/bookshelf/ai/translate and /api/bookshelf/ai/models
client.js Client half — sidebar entry, bookshelf, reader, EPUB/PDF/MOBI/TXT parsing
src/ Format sources that are embedded into client.js (mobi-book.js, text-book.js)
vendor/ Vendored third-party sources (see vendor/README.md)
tools/build-formats.mjs Embeds vendor/mobi.js + src/*.js into client.js (run after editing them)
tests/ Node test-runner suites — npm test
cordis.patch.yml Cordis patch that mounts the plugin
locale/ zh.json / en.json
icon.svg Sidebar icon
client.js — after changing src/ or vendor/, run node tools/build-formats.mjs to regenerate it.npm test runs the suites in tests/ with Node's built-in test runner (node --test tests/*.test.js); it needs no installed dev dependencies.link: into a profile while developing, then restart DSH to pick changes up (host code is loaded into the process; for client.js-only changes try a page refresh first).id in window.__ModuleLoader__.load({ id: 'dsh-tjing-reading', … }) must match the package name, otherwise the host cannot resolve the client half.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。