jsJianYingDraft v1.0.0 is a TypeScript port of pyJianYingDraft for programmatically generating JianYing (CapCut) draft files. It provides draft folder lifecycle, track/segment editing, SRT import, effects, keyframes, masks, transitions, and a Windows automation controller. The package ships first-class TypeScript types, dual ESM/CJS builds, Python-compatible snake_case aliases for migration, and metadata presets. It requires Node >= 18 and is maintained by the pyJianYingDraft community with active development.
npm install jsjianyingdraftNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a draft with video/audio track, adds segments, imports subtitle, and saves.
Use PascalCase equivalents (e.g., DraftFolder, VideoSegment).
Use new VideoMaterial(path, { duration: ..., width: ..., height: ... }).Use trange helper (e.g., trange('0s', '8s')) or multiply seconds by 1_000_000.Use materialOptions in segment constructors.
Ensure a text track with matching name exists before calling importSrt.
Replace TrackType.from_name('video') with TrackType.video.Run 'npm install jsjianyingdraft' (ensure Node >= 18).
Use 'import { DraftFolder } from 'jsjianyingdraft'' (PascalCase).Import Timerange directly: 'import { Timerange } from 'jsjianyingdraft''.Verify the folder path and ensure JianYing draft storage directory is correct.
No dependency data recorded yet.