Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:EricWang1358/dsh-web-studyhub
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文
Turn your lecture slides into questions that each link back to their page; finish a round and see yourself getting it.
Free and open source, your sources stay on your computer; pick your own model and pay for what you use.
StudyHub is a plugin for DeepSeek Harness (DSH), an AI agent app. DSH runs as a desktop app or as a web page served from your own computer, and StudyHub opens inside it.
Try the demo · Install guide · Release 4.13.0 · Changelog
The demo runs in your browser with sample questions, playable Interactive Companions, and prepared AI replies. It needs no install and no key, and your progress there stays in that browser.
.html lessons (generation.companion.build) across Mathematics, Philosophy, Mechanical Engineering, Physics, Economics and Computer Science — with parametric math sandboxes, dialectical thought-experiment matrices, stepwise vector schematics, empirical code/proof traces, built-in LaTeX-to-MathML formulas and 0-token spaced-repetition card sync — or mount existing local HTML companion packs (companion.attach). See Interactive Companions and external tools.| You want to | You need | Cost |
|---|---|---|
| Take the sample course and tour, browse sources, practise existing questions | StudyHub only | Free, no model calls |
| Generate questions, explanations and Help me understand | A model provider key in DSH Settings › Models | Billed by your provider, for example the DeepSeek API |
| Turn recordings into text | A transcription key (or local live engine) in StudyHub Settings › Audio transcription | Google Gemini, Groq Whisper and SiliconFlow SenseVoice are supported for recordings (availability and allowances depend on the provider); Live class also supports an offline local engine |
Install DSH (skip this if you have it). Use the official Windows x64 installer or macOS Apple silicon installer. On any other computer, install Node.js 22.19 or later and run npx @deepseek-ai/dsh web.
Install StudyHub. In DSH, open Plugins, click Add plugin, paste this address and click Enable:
https://github.com/EricWang1358/dsh-web-studyhub/releases/download/v4.13.0/ericwang1358-dsh-daily-flashcard-4.13.0.tgz
Check that the package is @ericwang1358/dsh-daily-flashcard, version 4.13.0. The release page is the newest channel: npm's latest tag can lag behind it, so install the .tgz from the release page. StudyHub then opens by itself. Later, open it from StudyHub in DSH's left sidebar (the session tab and the right sidebar also work); you do not need to send a chat message first.
Take the tour (optional, a minute or two). On the welcome page, click Load the sample and start the tour. The 7-step tour follows the first-run line's order (where the model is set up, add a source, make questions, check the draft, practise), pointing at the real controls, and ends on the line's step 2. A full tour of every page, Jobs included, is offered at its end. The sample makes no model calls and can be removed with one click.
Add a model. Paste a key in DSH Settings › Models and choose a model in your session. Until then, StudyHub says so wherever a step needs a model, with a Go to settings link, instead of letting the step fail later; Settings › Library & model shows Model connected or Model not connected and the steps.
Start with your own material. Click Add source and drop several PDFs, slides or notes at once. Then use Generate from sources, review the draft, publish it and practise.
Notes on installing:
unable to get local issuer certificate? Use your browser to download the complete 4.13.0 package. Keep the original .tgz file; do not extract it. In Add plugin, enter the absolute path to the file itself, for example C:\Users\your-name\Downloads\ericwang1358-dsh-daily-flashcard-4.13.0.tgz, replacing it with your actual saved path. The file must be on the computer or server that runs DSH. See the local-file install steps.Click Add source, choose the course, then drop several files at once or paste text. Recordings go in the Audio / recording tab of the same window.
| Format | Limit | Notes |
|---|---|---|
| 8 MB, 200 pages | Kept as one document that you expand to pages. For bigger books, see below | |
| Word (.docx), PowerPoint (.pptx, and the old .ppt) | 40 MB | Only text is read. Pictures, charts and SmartArt are skipped, and so are Word text boxes, headers and footers. A presentation keeps one page per slide, with its speaker notes. In an old .ppt, bullet indent levels are not kept |
| Markdown, HTML, TXT | 8 MB | |
| JSON deck | 2 MB | Questions you already have, or ones written elsewhere (format) |
| Subtitles (.srt, .vtt) | 8 MB | Needs the audio component |
| Audio (MP3, WAV, M4A, AAC, OGG, FLAC, OPUS, WEBM, AIFF) | 512 MB, 8 hours | See Transcribe recordings |
Old .doc files (and .wps, .key, .pages) are not read. Save them as .docx or PDF first. Password-protected files are not read either.
Large textbooks (over 8 MB or 200 pages):
See large textbooks and MinerU conversion.
For another route, open the external Marker guide from Add material, download a script to run yourself, then choose its paginated Markdown output. Install Marker and its models separately; code and model licences apply separately.
To add to an existing deck, choose that deck: approved questions are added, and the old questions and their review progress stay. To bring in questions you already have, use the Import JSON deck tab.
Save a default question type, count, content language, difficulty and focus in Settings › Question defaults; each new request can override them. Questions per batch, parallel batches and the time budget are there too, initially 5, 4 and 20 minutes. Started tasks keep their original choices; a continued draft keeps its own, except the time budget and applying review suggestions, which follow the setting as it is now. See Generation pace.
Open Interactive Companions on Course outline or Sources to unpack difficult concepts in a progressive stage-and-voice lesson (studyhub-lesson/1):
generation.companion.build). A 4-stage pipeline compiles a 16–20 slide, zero-dependency .html file into <workspace>/companions/<course>/ using four interactive stage archetypes — Parametric & Phase-Plane Math Sandbox (sandbox, pure AST 1D curves, 2D parametric trajectories, phase-plane quiver vector fields, live equilibrium markers and hover crosshair readouts), Dialectical Counterexample Matrix (dialectic, predict-before-reveal matrices and Socratic lanes), Closed-Loop Schematic & Force Path (mechanism, curved feedback loops and clickable node details) and Empirical Trace & Workshop (empirical, spot, try) — with offline built-in zero-dependency W3C MathML rendering, ? keyboard shortcut help and @media print multi-slide study-sheet export. Grounded builds cite selected materials; free-topic builds work without materials and are honestly marked AI-drafted.companion.attach, companion.sync). Point StudyHub at a single .html lesson or a folder of companion pages (pages/*.html or unbuilt lessons/*.json compiled live): existing courses link matching questions to exact #slide anchors (Enrich existing), while blank courses deterministically compile takeaway flashcards, boundary quizzes and oral/task drills at 0 model tokens (Full pack, granting First-Pass Credit on walkthrough completion). Inside the sandboxed viewer, jump slides, sync dark/light themes, 1-click Sync disk changes, or highlight text to look up terms, ask the tutor (companion.ask), save cards to Companion Catch-ups, and sync <pack>/feedback/questions.json. See Interactive Companions and external tools.Today's learning plan connects tasks to the library home. Ask AI for a plan based on real due reviews, weak areas, available materials and accepted tasks. Give feedback to revise it, or accept. Each action has a reason and estimated duration; suggestions become board tasks only after acceptance, with direct start and resume controls.
Today's time budget is separate from your saved weekday/weekend pace; zero minutes supports a rest day. Unfinished actions are allocated within the budget, and completed actions still count toward today's workload. Record actual time after completion. After at least five comparable completed-day records, the median estimates your usual pace; explicitly saved preferences always take priority.
Practice progress counts actual answers, flows use completed steps, and you explicitly mark a reading block complete. Opening content or skipping questions does not count, and completing an action does not establish mastery. AI sees compact titles, progress and exam dates, not full materials. Invalid or unavailable AI results are clearly labelled as local suggestions. Plans are saved by library and date, alongside ordinary board tasks.
When DSH supports local subagents, repeated Help me understand on the same question keeps the same tutor and its conversation, and follow-ups sent together are answered in order. Moving to another question, editing the question or switching model starts a new tutor. A tutor is released after 2 idle minutes or 8 rounds; a new one receives the last 3 answered exchanges. Earlier answers stay saved with the question.
? to see every keyboard shortcut.Generation, explanations and learning help use the model selected in your DSH session. To use a different model for StudyHub, open Settings › Library & model and change Generation model from Follow current session. DSH stores the model credentials.
Setup steps: configure a model provider. For how many tokens each feature uses, see token usage and estimates.
Only transcription uses these keys. Proofreading and translation use your DSH model by default, so their tokens are billed by your model provider and appear under Model usage in Statistics. Live class transcribes lectures in real time (producing bilingual transcripts) using either Google Gemini or the offline local engine (SenseVoice / Whisper, installed locally with no transcription key).
study/audio.json in your DSH home (by default ~/.dsh/study/audio.json), outside the library. The interface shows only whether a key is set and its last 4 characters. Keys never enter library exports or chats. The environment variables GEMINI_FREE_API_KEY, GEMINI_PAID_API_KEY, GROQ_API_KEY and SILICONFLOW_API_KEY fill in a key that is not saved.See audio import and live class.
studyhub-work/ in the workspace, never deletes or overwrites your originals, and asks before installing anything./study-spar <your question> in a DSH chat. StudyHub files it in your question bank as a flashcard. Add --mq (or as MCQ) for single choice, --multi (or as multi-select) for multiple choice, or --open (or as open question); start with --pre (or prerequisite:) to file it as a prerequisite of the question you are working on.DSH plugins do not update themselves, and restarting DSH alone keeps the old version.
SHA256SUMS-x.y.z.txt and hands it to DSH's plugin manager. If background tasks are running, Stop tasks and upgrade stops them and keeps their finished parts. The check sends no study data; switch it off in Settings › About & updates.Then restart DSH. Quit the desktop app fully (including the tray icon) and reopen it, or restart the web service with its original profile and reload the page. A browser refresh alone does not load new plugin code. Your library and settings are kept.
Stays on your computer
study/ in your DSH home (by default ~/.dsh/study/). They never enter the library, exports or backups. DSH keeps the model keys. (A MinerU token saved by a version before 3.5.5 stays in study/mineru.json; nothing reads it any more, and you can delete it.)Leaves your computer only when you use the feature
Backups and older libraries
backups/. It is refused while a generation job is running.study-lib-spar tool, use the same Settings category and choose the folder that holds study-lib.json, nodes/ and quizzes/ (not the tool's source code). The import only reads those files, keeps the due dates, intervals and sources it can parse, and importing again does not overwrite existing progress.The interface starts in Chinese when your browser's first preferred language is Chinese, and in English otherwise. Switch it with Language at the bottom of the sidebar; StudyHub remembers your choice. Buttons, errors, background progress, notifications, messages handed to the chat and new AI explanations follow it.
Switching does not translate what you saved: sources, file names, questions, notes and provider replies stay in their original language. New questions use the interface language unless you choose another in the Language field of Create deck. To read English under a Chinese question while you practise, click EN on the practice toolbar (details). Audio transcripts keep their own source and translation languages.
The complete package installs seven components. DSH's own plugin manager lists them as StudyHub (the main package), StudyHub · Core, StudyHub · Materials, StudyHub · Question bank, StudyHub · Question generation, StudyHub · Practice & review and StudyHub · Audio. Turn each one on or off there. Saved data is kept while a component is off.
Details and safe source deletion: customise components. Command-line installs: install from the command line.
StudyHub is an ES-module DSH plugin built on Cordis, with a React interface bundled by esbuild. Its seven components work together through public plugin APIs; see architecture. The package is named @ericwang1358/dsh-daily-flashcard; the product name is StudyHub.
npm install --legacy-peer-deps
npm run verify # lint, tests and build
npm run test:fast # the tests without browser, ffmpeg and program-starting files, for quick iteration
npm run dev # preview at http://127.0.0.1:4178 (after a build)
npm run build:demo # static demo in output/static-demo-site/dist
npm run release:pack # release packages and SHA256SUMS-<version>.txt in output/release-<version>
npm run dev needs npm run build (or npm run verify) first, because it serves dist/. It uses a throwaway library in output/preview-library and keeps global study files in output/preview-home, never in ~/.dsh. Add -- --library=<dir> to open another library, and set STUDY_FAKE_MODEL=1 for a deterministic fake model.npm run release:pack does not build; run npm run verify first.npm test (and so npm run verify and CI) always runs every test file, starting the longest first from the durations of the last run (cached in node_modules/.cache/studyhub-tests/; a machine with no timings of its own, such as a CI runner, orders by tests/test-weights.json). Full runs on one machine take turns through a lock file in ~/.cache/studyhub-tests/: a second run prints one line and waits (at most 20 minutes, then it goes ahead with fewer workers); set STUDY_TEST_NO_LOCK=1 to skip the queue. npm test -- tests/<file>.test.mjs runs just those files without queueing.npm run test:fast skips the files named in tests/slow-tests.json: those that launch a browser, run ffmpeg or start another program. tests/slow-tests-list.test.mjs fails when a new test file does one of these and is not listed, so the fast tier stays fast; run npm run verify before a pull request.@deepseek-ai/dsh-tools and @deepseek-ai/dsh-llm (optional peers, >=0.2.0-rc.2 <0.3). Tests that need a missing SDK report an explicit skip.verify check that is green only when lint and every shard are. A new push to a pull request replaces the checks still running for it. node scripts/test.mjs --shard=2/5 runs one shard locally (--list with node scripts/qa/run-tests.mjs names its files). tests/test-weights.json says roughly how long each test file takes, so that every machine cuts the suite the same way and a fresh machine starts the longest files first; refresh it with node scripts/qa/test-weights.mjs --write <durations.json> (the shards of a CI run upload theirs as durations-* artifacts; add --sum for the files of one run). A separate, non-blocking browser-smoke job (.github/workflows/browser-smoke.yml, Ubuntu) installs Playwright's Chromium and runs four real-browser test files (shell, review reveal, mistakes page, right-sidebar hand-off) that otherwise skip in the shards for want of a browser; it stays green when they fail, so open its run to see the result. To make it blocking, remove its continue-on-error and require it in the branch protection.Contributions of code, bug reports, testing and documentation are welcome:
npm run verify.Report a bug or ask a question in GitHub Issues.
MIT License; see LICENSE. The learning-quality and scheduling references are in references/.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: study、education。