Skip to content

Releases

dramai v0.5.0-beta.1

dramai v0.5.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 12 Nov 15:13

First beta of 0.5.0, a rewrite of dramai. It is no longer a browser-only app: the studio now runs
on a local server on your own machine, which is what removes the browser's limits (CORS, storage
quota, in-browser video encoding) and makes long-running work survive closing the tab.

This is a beta. Everything in it was verified with automated tests and with the built-in mock
providers only. It has not been run against any real AI provider.
See "Known limitations".

Incompatible changes

  • A local server is now required. The workspace is no longer a static site that runs entirely in
    the browser. Start it from a checkout of the repository (pnpm install, pnpm build, pnpm webui)
    and open the printed address. Node.js 22.22.2 or newer is required, and the project now uses pnpm
    instead of npm.
  • Data from v0.4 does not appear automatically. v0.4 kept projects in your browser's IndexedDB and
    provider settings in localStorage; the new version cannot read either. Before the old app goes away,
    open it and use Settings → export all as JSON. The new version imports that file in
    Settings → Data & backup.
  • GitHub Pages no longer serves a usable workspace. The workspace cannot work without the local
    server, so the automatic Pages deployment has been turned off (it can only be run by hand), and a
    landing page will replace the app there in a later release. The last browser-only version is
    v0.4.1.
  • API keys have moved. They are no longer in the browser; the local server keeps them in
    secrets.json in the data directory (default ~/.dramai), readable only by your operating system
    user and not encrypted in this beta. You need to enter your keys again.
  • Video composition uses the ffmpeg installed on your machine instead of the in-browser
    ffmpeg.wasm. Install ffmpeg yourself; it is not bundled. Burned-in subtitles need an ffmpeg
    built with libass.
  • A different project structure. A project is now project → episodes → scenes → shots, with a
    library of characters, locations, props and costumes that shots refer to, instead of one flat list
    of at most 12 shots.

Upgrade notes

  1. While you still can, open your existing v0.4 workspace and export a backup JSON; keep the file.
  2. Install Node.js 22.22.2+, pnpm and ffmpeg, then run the steps above to start the server. Data lives
    in ~/.dramai by default (--data-dir changes it).
  3. Add your providers again in Settings → Providers and use "test connection".
  4. To bring old projects over, open Settings → Data & backup → Import an old backup and choose the file
    (the API route is POST /api/import/legacy). Each old project becomes a new project with a single episode "第一集" and scene
    "导入的镜头"; the aspect ratio is set to 16:9 and narration to "added in post", because v0.4 had
    neither. Importing never changes existing projects, and importing the same old project twice is
    skipped unless you ask for it.

Added

  • Local server (@dramai/server, with the typed contract in @dramai/api): about 90 routes,
    live events over SSE, SQLite storage through Node's built-in node:sqlite, projects as folders
    on disk (images and videos are ordinary files), and a task queue that survives restarts. It only
    listens on 127.0.0.1 by default, checks the Host header, refuses cross-origin writes, locks
    the data directory so two instances cannot write at once, and refuses to listen on any other
    address without an access token.
  • dramai launcher (pnpm webui): starts the server, serves the workspace and opens the
    browser. Options for port, host, data directory and token; --version; one-line startup errors.
  • A rewritten workspace on top of the API, with Simplified Chinese, Traditional Chinese and English
    interfaces and light and dark themes: project list and creation, project overview, materials and
    episode planning with streamed output, a storyboard page grouped by scene, the asset library and
    asset detail pages, a confirmation page for candidates found in the text, a confirmation step before
    batch generation, and a task panel for queued, running and failed tasks. Pages load on demand, and
    non-default languages load only when chosen.
  • Compose and export pages: a four-track timeline with a clip inspector, a list of issues that
    block rendering (each with an action that fixes it), a revision history you can roll back, narration
    voice generation, render options (subtitles soft, burned in or none), an in-browser preview, and an
    export page that shows whether each product is latest, out of date, missing or blocked and lets you
    download it. Transitions are hard cuts only, there is a single music track, and the preview leaves
    out subtitles, music, freeze frames and transitions.
  • Settings pages: providers with connection tests, general (language, theme, default subtitles,
    optional currency conversion for cost estimates), access and security (shows whether a token is on
    and how to set it), data and backup (the data folder, importing v0.4 backups, and the trash), and
    about (version, runtime and what your ffmpeg can do).
  • Trash: deleting a project moves it to the trash; it can be restored, or deleted for good, which
    removes its folder.
  • A story model that scales past one clip chain: episodes, scenes and shots; characters,
    locations, props and costumes as reusable assets that shots reference; a style chosen at project
    creation (20 built-in style presets) and kept as a snapshot.
  • Generation pipeline: storyboard breakdown, asset reference sheets, shot images generated from
    several reference images, and image-to-video. Every regeneration keeps the earlier versions
    instead of overwriting them. When something upstream changes, downstream results are marked
    outdated; nothing is regenerated automatically.
  • Checks before spending money: shots that refer to an unregistered asset or one without a
    reference image are blocked, a batch either runs completely or not at all, a shot can have only
    one video task in flight, and a cost estimate is computed from the model's price table.
  • A task system built to avoid double charges: separate lanes for text, image, video and audio
    work, classified failures, and recovery after a restart. A video task that already has an upstream
    task id resumes polling; one that does not is marked "submission unconfirmed" and is never
    resubmitted automatically
    . Cancelling only affects tasks that are still queued.
  • Provider protocols, run on the server so there is no CORS: OpenAI-compatible chat, OpenAI
    Images, Gemini image, Alibaba DashScope video, Volcengine video, Kling video, a generic video
    protocol, and OpenAI-compatible text-to-speech. Adapters are pure functions that never touch the
    network, model capabilities and prices live in a data file, and a missing capability fails with
    an explanation instead of silently switching models. Prompts are data files too.
  • Composition and export on the server: native ffmpeg rendering with
    the project's aspect ratio (9:16, 16:9 or 1:1), soft or burned-in subtitles, SRT and VTT, and an
    asset package (videos, images, subtitles and a manifest in a zip) for editing elsewhere. ffmpeg
    capabilities such as subtitle burn-in are detected rather than assumed.
  • Import of v0.4 backups, from Settings → Data & backup or the API (see Upgrade notes).
  • Demo mode (pnpm demo): a local mock of every provider type plus the server, with its own data
    directory (~/.dramai-demo). No account, no key and no cost; the generated content is
    placeholder content. Options simulate latency and failures.
  • Desktop app (Electron, apps/desktop): the same local server and workspace in their own window,
    in three forms: run from source (pnpm desktop:dev), build and install on your own machine
    (pnpm desktop:install, desktop:uninstall; per-user, no administrator rights and no certificate
    needed) and installers built by the release workflow (pnpm desktop:dist: .dmg and .zip on macOS,
    .exe and .zip on Windows, .AppImage and .tar.gz on Linux). API keys are stored with the
    operating system's key store where one exists. The installers are not signed and there is no
    automatic update; the app only tells you when a newer release exists. ffmpeg is not bundled.
    Where it has been run: on macOS (Apple silicon) by hand. On Linux and on Windows the app builds
    and the unattended install, smoke-check and uninstall self-check passes in CI; nobody has operated it
    by hand on a real Linux or Windows desktop. macOS Intel is built but has not been run, and nothing has
    been tried on a machine without an OS key store.
  • Browser end-to-end tests (pnpm e2e, Playwright): they run in demo mode, so they cost nothing and
    need no key, and walk from creating a project to downloading the cut, resuming a failed upstream
    task, the English interface and keyboard-only use.
  • For contributors: a pnpm monorepo (apps/, packages/, tooling/), shared TypeScript and ESLint
    configs, CI on Linux, macOS and Windows, one version number for every package with a tool to
    change it (pnpm version:bump), and the versioning rules in docs/VERSIONING.md.

Changed

  • The design system was redone (@dramai/ui): new brand marks, a light "storyboard paper" theme
    and a dark "editing room" theme, self-hosted fonts and a new set of components.
  • Node.js engine range is now >=22.22.2 (v0.4 refused Node 25).

Removed

  • The in-browser data layer (Dexie / IndexedDB), the in-browser ffmpeg.wasm, and the settings store
    that kept API keys in localStorage.

In progress, not included in this version

Listed so nothing here is mistaken for finished work:

  • Writing a real JianYing draft (today the export is an asset package).
  • An npm package and a Docker image for the WebU...
Read more