DeepSeek Harness Plugin

snowowowo/dsh-manim-card

Stars ★ 1 Downloads (30d) 1,214 Category UI Enhancements Added 2026-10-17 npm dsh-manim-card

Adds a manim_card tool that renders Manim Python into a playable animation card in the chat stream; the code runs in the browser on a bundled runtime, so no local Python is needed, and video export goes through the local Manim CLI when installed or frame by frame in the browser otherwise.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-manim-card

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:snowowowo/dsh-manim-card

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

中文 | English

A capability for DeepSeek Harness: the AI writes Manim code right in the session, and a playable animation card shows up in the chat stream — play it, read the code, export a video.

The code runs in the browser and its runtime ships with the plugin, so rendering needs no local Python and no external service. Video export has two routes: if Manim is installed, your local Manim renders an mp4; if not, the export runs frame by frame in the browser (see below).

A Manim animation card in the chat stream: title row, canvas, three buttons on the right

Documentation (installation, using it in a session, configuration surface; Chinese and English): https://snowowowo.github.io/dsh-manim-card/en/

Highlights

  • The card lives in the chat stream: one title row, one canvas, three buttons on the right — play / view code / export video (which opens two routes). Playback stops on the final frame instead of starting over.
  • Check first, then present: before the code is handed back, it runs once in a real interpreter. Syntax errors and unsupported constructs go straight back to the model and get fixed in the same turn, so the chat never keeps a blank or half-drawn card.
  • No local Python needed: execution happens in the browser, and the runtime ships with the plugin.
  • Playback with restraint: only a freshly generated card actually plays once; remounts and cards from earlier sessions go straight to the final frame. Pressing play yourself overrides every automatic rule.
  • Two export routes, so anyone can export: with Manim installed, the manim CLI renders a real mp4 (1080p); without it, export falls back to frame-by-frame in the browser (seek the timeline frame by frame, then encode — webm or mp4 depends on the browser), which keeps the frame rate steady and never plays in real time. Each row has a quality submenu: local defaults to HD 1080p60, web defaults to smooth 720p30 (each step up in frame-by-frame encoding costs multiples of the time, so the user picks). Each row states its own requirements, so whatever is missing is obvious; per-item detection of the local environment lives on the plugin detail page.

Installation

In the host's plugin manager:

dsh plugin add github:snowowowo/dsh-manim-card

Refresh the host page after installing: "Manim Card" appears on the Plugins page, and its detail page carries this plugin's configuration surface. The first render fetches the runtime assets once (about 13 MB); after that it works offline.

Using it

Say "draw a unit circle with Manim" in a session, and the card appears in the chat stream. For the details, see Using it in a session.

Development

The stack, directory layout, workflow and test split are documented under Development.

pnpm install
pnpm build      # produces client.js
pnpm test       # unit tests (the offline tier)
pnpm docs       # local docs site

License

Released under MIT; the full text is in LICENSE.

The runtime assets shipped with the package and the third-party components inlined into the build artifacts keep their own licenses — see THIRD-PARTY.md.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.