DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

oceanz0312 /

oceanz0312/dsh-lovideo

Verified

lovideo 视频插件:在 DeepSeek Harness 里一句话做出任意风格的视频(导演用你选的模型,画面在你自己的电脑上渲染)

★ 4 Stars1 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHubProject homepage
READMESource: main@4078dea7

dsh-lovideo

English | 中文

The lovideo plugin for DeepSeek Harness: turn one sentence into an explainer video in any style, right in a DSH chat.

  • Director: an agent preset (shown as 「lovideo 导演」, "lovideo director") plus a Skill. It uses whichever model you picked in DSH.
  • Production: runs on your own computer. The model writes the drawing code for each shot, your local Chrome renders it frame by frame, and ffmpeg assembles the film.
  • Styles: official styles download from lovideo.ai (free after you sign in). You can also distill a reference video into one of "My styles".
  • Your videos: the sidebar entry "lovideo video" holds your videos, official styles, your own styles and settings. The cards in a chat and the management page read the same local data.
  • Voice-over: the system voice by default. One click downloads offline voice-over (Kokoro by default, which runs on any computer). The settings page rates each model for this computer as recommended / smooth / heavy / won't run, and you choose which to download and which model and voice to use. If the chosen one would need more than 3 minutes for a film, that film switches to a faster one, and falls back to the system voice when none is fast enough.
  • Music: set separately from voice-over. Offline music by default (Stable Audio 3 Small, instrumental only; a track takes a few seconds on a Mac), or bring your own Volcengine or ElevenLabs key.
  • Cloud services need only a key: endpoints and models for Doubao Speech, ElevenLabs and Volcengine music are built in, and voices come from a dropdown (Doubao has the same 15 voices as the website; ElevenLabs reads the ones in your account). After you save a key the plugin plays a test line and switches over only if it is actually spoken. Not sure how to get a key? Click "How do I get an API key?": the director can use the bundled lovideo-setup Skill to sign you up in the browser, then show a card for you to paste the key into; or copy the instructions to another agent, or follow three steps yourself. System voice and OpenAI-compatible services are under "More". The check card in a chat downloads offline voice-over and music with one button.
  • Length, voice-over, music, subtitles: as on the website, films run from 30 seconds to 5 minutes in 30-second steps, with at least 15 seconds per shot. The director suggests each of these every time (music comes with a Chinese note and an English prompt for the model). You change them on the storyboard card, the director keeps your choices when it revises the storyboard, and changing the length asks the director for a new storyboard. Three switches under the finished film turn each one on or off at any time; anything switched off is left out of playback, the MP4 and the Jianying project.
  • Export: MP4 (subtitles can be burned in), or open the film directly in Jianying Pro.

What users see is described in docs/DETAIL.md. The conventions shared with the website are in docs/PROTOCOL.md.

Demo

https://github.com/user-attachments/assets/8825dfe5-1ce6-49c3-977e-28635af5a38f

Install

  • Desktop or web app: in DeepSeek Harness, open Plugins → Add plugin, enter the npm package name dsh-lovideo, install, then restart. This also works best from mainland China: when DSH installs an npm package and the official registry is unreachable, it falls back to npmmirror. A GitHub address may fail to install from mainland China, because Git addresses have no mirror. A new npm release can only be installed 24 hours after it is published (the default rule of the pnpm bundled with DSH). To get a new version right away, and if you can reach GitHub, enter github:oceanz0312/dsh-lovideo#v<version>.
  • Command line:
dsh plugin --profile web add dsh-lovideo

Before your first film, click "Prepare". Only what your computer is missing (browser, ffmpeg, fonts) is downloaded. Each has mirrors in China (npmmirror, jsDelivr, PyPI mirrors); the fastest one wins, and a download that stalls moves on to the next address. If nothing downloads, the plugin lists why each address failed. You can also install Chrome / Edge or ffmpeg yourself and click again.

Community

Scan with WeChat to join the "DeepSeek Harness & Lovideo" group for questions and tips.

QR code for the WeChat group DeepSeek Harness & Lovideo

WeChat group QR codes are valid for 7 days; this one expires on December 9. If it has expired, let us know in Issues and we will post a new one.

Layout

Path What it is
src/host/ Runs in the DSH host (Node): tools, the local API (/lovideo/api), production, export, distilling
src/client/ Runs in the DSH page: chat cards, tool rows, the management page (React 18, using DSH's own React)
skills/lovideo-director/ How the director works
cordis.patch.yml Registers the plugin and the 「lovideo 导演」 preset
vendor/base-style/ The generic canvas engine and page conventions used for distilled styles
vendor/jianying/ The Jianying exporter, copied verbatim from the website
vendor/tts/worker.py Long-running process for offline voice-over and music (mlx-audio on Apple silicon, PyTorch elsewhere; the PyTorch music build has its own environment)
test/ Integration tests: a fake model and one style from the website repo run a full production and export

Local data lives in ~/.dsh/lovideo/: works/ holds videos, styles/ holds styles, runtime/ holds the browser, ffmpeg, fonts, Jianying dependencies and offline voice-over and music (runtime/tts/). settings.json has permissions 0600.

Development

npm install
npm test               # integration tests, about 30 seconds; needs Chrome and ffmpeg on this computer

Hot reload in the DeepSeek Harness desktop app

npm run dev:desktop    # once: link the desktop profile to this repo and turn on backend hot reload
npm run dev            # keep running: rebuild the client on every change
  • Frontend (src/client): about a second after you save, open pages swap in the new plugin without a refresh (React state inside the plugin resets).
  • Backend (src/host): within a few seconds of saving, DeepSeek Harness swaps in the new code in the same process. A film in production pauses first; click "Continue" after the reload.
  • Run npm run dev:desktop and npm run dev:desktop:off while the desktop app is fully quit (the script refuses while it is running; see "How it works" below), then open it again. After that, code changes need no restart.
  • npm run dev:desktop:status shows the current state; --profile <name> targets another profile (default: desktop).
  • How it works: the official dsh plugin add points the desktop app's plugin dependency at this repo with link: (and adds the plugin to the profile's plugin list itself). A marked hmr block in the profile's cordis.patch.yml watches src/host. No official command can add that block, so the script writes it. The official guidance is not to edit a running profile from outside, and replacing an installed plugin needs a restart before new code loads, so the script asks you to quit the desktop app first. The client is picked up because DeepSeek Harness polls dist/client.js; the build writes a temporary file and renames it, so the app always reads a complete file.

Releasing (GitHub first, npm after it is verified)

There are two ways to install: enter dsh-lovideo under Plugins → Add plugin in DeepSeek Harness (from npm; the plugins page offers new versions and one-click updates), or enter https://github.com/oceanz0312/dsh-lovideo (from GitHub; no update prompts; to pin a version, enter github:oceanz0312/dsh-lovideo#v<version>). A new npm release can only be installed 24 hours after it is published: the pnpm bundled with the desktop app skips versions published in the last 24 hours (minimumReleaseAge defaults to 1440 minutes), and an exact version such as dsh-lovideo@<version> is blocked too (tested with 0.6.0 on 2026-11-27). To use a new version right away, install the GitHub tag. Installing from GitHub does not build the UI, so dist/client.js is committed to the repo.

npm is not published from your computer. When a v* tag is pushed, GitHub Actions (.github/workflows/publish-npm.yml) first checks the packaged output (test/package.test.mjs: UI format, the list of files in the package, package.json), then publishes with npm trusted publishing (no login, no token). If npm already has that version, nothing is published. Pushing to main alone never publishes to npm. The dsh-lovideo settings on npmjs.com are bound to this repo and this workflow file; if you rename the file, update it there too. Results show on the repo's Actions page.

Release only after the change works in the desktop app in development mode:

  1. npm test
  2. Bump the version in package.json and rewrite lovideo.whatsNew (what this version changes, one sentence each in Chinese and English; it appears in the update reminder users see at startup). Commit to main.
  3. npm run release: builds the UI from committed code, commits only dist/client.js and pushes main (no tag yet, so npm is not published). Uncommitted changes in the working tree are left out. The script prints the commit it pushed.
  4. Verify it the way users install it (at this point only GitHub has the new version):
    • In the desktop app, uninstall lovideo under Plugins, then add https://github.com/oceanz0312/dsh-lovideo (or the github:oceanz0312/dsh-lovideo#<commit> the script printed);
    • After adding it, fully quit DeepSeek Harness (Cmd+Q on macOS, not just closing the window) and open it again: a replaced plugin only loads new code after a restart;
    • Start a new session: changes to the 「lovideo 导演」 preset and its Skills only apply to new sessions;
    • Click through what changed in the light theme, the dark theme and a narrow window;
    • If something is wrong, fix it, commit, and repeat from step 3 (nothing is tagged and npm does not have this version, so the version number stays).
  5. Once verified, run npm run release:tag: it checks that local main is exactly the commit you pushed and verified, creates and pushes the v<version> tag, and npm publishes shortly after. Then run npm run dev:desktop to return to development mode.

npm run dev rewrites dist/client.js (the development build). The release script marks it skip-worktree so git ignores the development build; use git show HEAD:dist/client.js to see the committed one.

Requires DSH >=0.2.2-rc.3 <0.3.0. Works on macOS, Windows and Linux: when the computer has no Chrome or ffmpeg, the plugin downloads chrome-headless-shell and a static ffmpeg.

DSH conventions to keep in mind

  • A notification to the director (agent.followup) must carry id and role: 'user'. Without them the session history breaks and DSH removes the session from the workspace.
  • The backend must not leave a rejected promise unhandled (for example a bare p.finally(...) that ignores the rejection): DeepSeek Harness treats an unhandled rejection as fatal, the whole backend exits and the desktop app has to restart. Background tasks always use p.then(done, done) or their own catch.
  • Cards hang on conversation.chat.turnTail, so they stay visible when tool rows are collapsed. The tool row itself is a single line (tool.call.toolview).
  • Open external addresses (such as the sign-in page) from the page with window.open or a target="_blank" link: the desktop app hands them to the default browser and the web app opens a new tab. Never have the backend run open / explorer: on Windows, explorer may open a folder for an address containing ? or &, and with remote access to the web app it would open on the computer running DSH.
  • The client uses only DSH theme variables (--dsw-alias-*) and never imports DSH UI component packages.

Community directory listing

This project authorizes DSH Plugin to list this repository and show the plugin's information on that site.

—/ 5

No ratings yet

Verified DSH bundle

Commit 4078dea7df95

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout