Spark Classroom (dsh-bili-lesson): Completing the Bilibili Kids' Learning Closed Loop in the DSH Sidebar

Preface

DeepSeek Harness (DSH) desktop uses plugins to extend sidebar capabilities. If you want your child to complete “Watch → Check-in → Do Exercises → Review → Reward” on a controllable playlist, without injecting recommendation algorithms or AI-generated questions into the learning process, you need a “Learning Panel” that handles only scheduling, grading, and local data. Spark Classroom (dsh-bili-lesson) is designed for this: videos and questions are entered by parents, while the plugin handles weekly plans, the training cabin, the mistake notebook, and the reward system.

What is this

Spark Classroom is a DSH Client plugin released by maintainer liweitan2046-cyber (Community Directory Category: Client). Current package version is 0.7.0, license MIT.

Its positioning can be summarized as: Parent picks videos → Schedule by week → Child checks off after watching → Match lesson cards → Submit and grade → Reheat mistakes → Blind boxes and medals. It does not search for you on Bilibili, nor does it automatically generate a question bank; its curation ideas and source organization reference bilipicks, and Bilibili content is not distributed with the repository.

Core Features

Below, documented capabilities are explained by interface (all based on the README).

Bridge Home & Video Library

  • Bridge Home: Today’s tasks, this week’s route, category star map; the right side “Current Course” card includes cover, learning goals, progress, and “Start Learning”.
  • Video Library Repo: Paste BV numbers or full Bilibili links to add to the library; fill in category, minimum age, and recommendation reason yourself; supports “Verify Dead” batch probe. Metadata is fetched via the public read-only interface GET https://api.bilibili.com/x/web-interface/view?bvid=… (with referer, without cookie). Automatically deletes entries if removed from Bilibili, marks as dead if invalid.

Scheduling, Check-in, and Training

  • This Week’s Route: Schedule for 7 days; can be auto-scheduled (category rotation, skip invalid and already scheduled in the last 3 weeks) or manually adjusted.
  • Sailing Record: Check off by day, shows this week’s count, consecutive check-ins, and a 7-day bar chart.
  • Training Cabin: Left side official player + this week’s playlist, right side lesson cards; answer questions one by one, submit and grade, get a blind box if accuracy ≥80%. Embedded playback uses player.bilibili.com iframe, approx max 480P.

Lesson Cards, Mistakes, and Achievements

  • Lesson Card Workshop: One video equals one set of cards, each set has 3–8 questions. Fields include prompt, spokenPrompt, options (2–6 items), answer, hint, explanation, difficulty (1–3); can also directly edit lessons.json in the data directory.
  • Mistake Notebook: Exam mistakes are recorded by lessonId:qid, can be redone on the spot, marked as “Mastered” if answered correctly.
  • Achievement Hall: 8 medals (unlocked automatically at thresholds), blind boxes, prize pool (configurable up to 54 items by default), and recent lottery records.
  • Bridge Settings: Daily count, default age, weekly blind box limit, prize weights, medal thresholds, Parent Lock PIN (soft lock, PIN salted sha256 stored in settings.json).

Environment & Dependencies

  • DSH Desktop 0.2.2-rc.x (verified on 0.2.2-rc.3). Plugin loaded via cordis patch and __ModuleLoader__, injecting @deepseek-ai/dsh-client-runtime; major version upgrades may need adjustments.
  • Node 24 / pnpm (DSH bundled runtime available). Plugin has zero third-party dependencies, only react ^18.2.0 in peerDependencies.

Installation & Activation

The official process uses install.ps1 in the repository, not commands like dsh plugin add github:…. Please review the source code and MIT license yourself before installing; the plugin runs with the current DSH process permissions and will read/write the local data directory.

  1. Get the repository and enter the directory (example in docs is cd dsh-bili-lesson after clone, clone command not expanded here).
  2. Run the installation script:
pwsh -ExecutionPolicy Bypass -File .\install.ps1

The script will backup the profile’s package.json, register the plugin as a link: dependency and write to dsh.profile.bundles, then execute pnpm install. After completion, fully exit and restart DSH Desktop (including tray), the sidebar should show “Spark Classroom”. Uninstall by adding -Uninstall to the same command.

Manual equivalent steps (Windows profile path):

# Edit $env:USERPROFILE/.dsh/profiles/desktop/package.json
# dependencies["dsh-bili-lesson"] = "link:<absolute path to this repo, forward slashes>"
# Append "dsh-bili-lesson" to the end of dsh.profile.bundles
cd "$env:USERPROFILE/.dsh/profiles/desktop"
pnpm install
# Restart DSH Desktop

If previously installed with the old name @local/dsh-bili-lesson, the script will clean up the old registration.

Typical Usage

Where do videos and questions come from

  1. Find videos outside the plugin: Bilibili search requires wbi signature, direct search inside the plugin will result in HTTP 412. Search on the site, copy the link, or have an assistant list BV IDs, or import videos.json from elsewhere.
  2. Add to library: Paste BV or link in Video Library Repo, fill in category and age; if third-party metadata interface is needed, currently only fetchVideo(bvid) in src/bili.js connects to Bilibili, change here (no API/Key items in settings page for now).
  3. Create questions: Write 3-8 questions for each video in Lesson Card Workshop, following “one point per question, equal length options, distractors from confusing points in the video”; full fields and examples can be seen in repository docs/HOW-TO-CURATE.md.
  4. Closed loop: Schedule this week’s route → Child watches and checks off → Training cabin answers → Mistake notebook consolidation → Meet criteria to draw blind box, accumulate medals.

Data Persistence Location

All on local machine, default ~/.dsh/bili-lesson/ (environment variable BILI_LESSON_HOME can be changed). No cloud sync, no telemetry. Main files: videos.json, plans.json, watch.json, lessons.json, settings.json, attempts.json, mistakes.json, rewards.json, honors.json, etc. Write operations use temp file + rename, corrupted JSON is treated as empty.

Standalone Demo without DSH

standalone/ provides standalone operation: after installing Node, run standalone/start.bat, browser access http://127.0.0.1:7788/. First open will populate 30 demo library entries (four themed weeks), requires local Node 24.

Self-Test Commands (Maintainers)

npm run check        # node --check eight entry/module files
npm test             # HTTP selftest (85 items, including one real Bilibili view request)
npm run check:load   # Simulate DSH loader

HTTP API prefix is /bili-lesson/, contracts can be found in repository CONTRACT.md and CONTRACT-LEARNING-LOOP.md; anonymous requests return 401, using DSH authentication.

Applicable Scenarios & Notes

Suitable for: Families or small class demos (including standalone) already using DSH Desktop, wanting parents to lead the playlist and question bank, needing weekly plans + check-ins + lesson card grading + local incentives.

Must note:

  • Plugin does not include built-in search or AI question generation; the workload for the video library and lesson cards is on the parents’ side.
  • Single machine single profile, no multiple child profiles or cloud backup; changing machines requires manually copying the data directory.
  • Outbound requests are limited to Bilibili view interface and cover image hosting; does not proxy playback streams, does not use account cookies.
  • Parent lock prevents accidental touches, not savvy users; forgetting PIN can delete parentPin in settings.json.
  • Community directory SkillHub is an independent site, with no official affiliation with DeepSeek / Synthesia; please verify source code and license before installing.

Ending

Spark Classroom brings “curated library + weekly scheduling + lesson card learning loop” into the DSH sidebar, data is all local, and process boundaries are clear. To view description and categories, open SkillHub Directory Page; for installation, field descriptions, and limitations, refer to GitHub Repository README.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye