Create a project
Initialize a React project from the app or CLI and add dependencies.
Initialize a folder for your React composition, media, and npm dependencies. Celesta includes the runtime needed to preview and export the starter scene.
From the app
Choose File Create New Project…, click Create New Project… in the toolbar, or press ⌘ N on macOS / Ctrl N on Windows and Linux. Select a project folder; the folder picker can create one. Celesta initializes that folder and opens film.tsx.
From the command line
With celesta on PATH, use init to create a project without opening a window or requiring a display server. Omit the folder to initialize the current directory:
celesta init my-video
cd my-video
celesta-editor film.tsx
celesta-exporter --react film.tsx output.mov
celesta init
List the installed templates with celesta templates and pick one with celesta init my-video --template slideshow. Explicitly selecting a template refuses to overwrite its files. Without --template, initialization uses the blank starter and preserves existing files outside the generated .celesta/ directory.
Desktop packages name the executables Celesta, Celesta-export, and Celesta-cli (.exe on Windows). Use their installed paths in place of celesta-editor, celesta-exporter, and celesta, including in generated scripts when needed. The desktop editor's existing --init and --list-templates flags still work. Examples using the unified CLI:
macOS
This command assumes the app is installed in /Applications. Adjust the path if needed.
"/Applications/Celesta.app/Contents/MacOS/Celesta-cli" init my-videoWindows
Use PowerShell and replace C:\path\to\Celesta with your installed or extracted app folder. The installer does not add Celesta to PATH.
& "C:\path\to\Celesta\Celesta-cli.exe" init my-videoFor a source build, build the React runtime first to stage the templates, then run cargo run -p celesta-cli --release -- init my-video from the repository root.
What initialization creates
film.tsx: a five-second, 1920 × 1080 composition at 30 fps. The background and title sit in a<Group>, which is the parent the editor's Add menu inserts new layers into.package.json: a private project with preview, export, and typecheck scripts, and TypeScript^7.0.2as a development dependency.tsconfig.jsonand.celesta/: configuration and declarations matching Celesta’s bundled runtime..gitignore: ignoresnode_modules/andoutput.mov. The generated.celesta/directory ignores itself.celesta.config.json: marks the folder as the project root, so the editor remembers that you trust the project. It can also list plugins that come with the project.
Preview and export work without installing packages. To use the project’s TypeScript compiler, install Node.js and pnpm separately, then run these commands in the project folder:
pnpm install
pnpm typecheck
Add npm dependencies
Install external packages in the project that imports them. For a project outside the Celesta repository, run this in its folder:
pnpm add ag-psd
Preview and export resolve external imports from the importing file’s project node_modules. Celesta supplies every @celesta.studio/* package and React from its runtime; you do not need to install them in an external project.
Node asset preparation scripts use the same dependencies. Save this as prepare-assets.mjs beside package.json, with portrait.psd in the same folder:
import { readFileSync, writeFileSync } from 'node:fs';
import { readPsd } from 'ag-psd';
const { width, height } = readPsd(
readFileSync(new URL('./portrait.psd', import.meta.url)),
{ skipLayerImageData: true, skipCompositeImageData: true, skipThumbnail: true },
);
writeFileSync(
new URL('./portrait-info.json', import.meta.url),
JSON.stringify({ width, height }),
);
node prepare-assets.mjs
Import the generated JSON in your composition as usual. Direct Node scripts use your installed Node.js; the app’s bundled Node.js evaluates compositions. For .ts scripts, use a Node.js version with TypeScript stripping support or a TypeScript runner installed in the project.
Dependencies in repository examples
The React examples under examples/ belong to the pnpm workspace. Run pnpm install from the repository root, then add dependencies to the example that needs them:
pnpm --dir examples/versus add ag-psd
cargo run -p celesta-editor --release -- examples/versus/film.tsx
cargo run -p celesta-exporter --release -- --react examples/versus/film.tsx output.mov
Example manifests use workspace:* for local Celesta packages so Node tools can resolve their imports too. Complete the source-build setup before running Cargo commands.
Continue with your first React composition, preview controls, or MP4 export.
The generated export script writes ProRes/MOV using the standard plugin.
For MP4, use an installed native H.264 encoder or the ffmpeg-x264 download;
see Export.