kinetograph.

Project structure

The files and folders that npx kinetograph init makes, what each is for, and where generated files go.

npx kinetograph init makes a small project with a starter title card. Keep its layout: the commands, the agent skills and Studio all look for it.

The layout

npx kinetograph init my-video
my-video
├─ src
│  ├─ index.tsx            registerRoot and the compositions
│  ├─ scenes
│  │  └─ Title.tsx         the starter scene
│  ├─ components           pieces used by more than one scene
│  ├─ lib                  helpers
│  └─ google-fonts.d.ts    types for @remotion/google-fonts/<Family>
├─ public                  files for staticFile()
│  ├─ images
│  ├─ fonts
│  ├─ audio
│  └─ video
├─ out                     everything the commands write
├─ package.json
├─ tsconfig.json
└─ .gitignore
A project folder with src for your code (index.tsx, scenes/Title.tsx, components, lib), public for images, fonts, audio and video, and out for everything the commands write: stills, sheets and renders. package.json, tsconfig.json and .gitignore sit beside them.

The entry is src/index.tsx. It is the file you give to every command, and it must call registerRoot:

src/index.tsx
import { Composition, registerRoot } from '@kinetographdev/core';
import { Title } from './scenes/Title';

registerRoot(() => (
  <Composition id="Main" component={Title} durationInFrames={60} fps={30} width={1280} height={720} />
));

package.json gets four scripts (still, strip, render and check) that run the matching commands on the entry.

What goes where

  • public/ holds the files you load with staticFile('images/logo.png'). See Assets.
  • out/ holds what a command writes when you leave out -o: out/stills/ for still, out/sheets/ for strip and onion, and out/renders/ for render. It is in .gitignore.
  • Beside the entry, Kinetograph keeps kinetograph.lock.json (pins for remote files, in an HTML project) and presets/ (props saved in Studio). Commit both.

init never overwrites a file and does not run npm install.

Compositions and props explains the file src/index.tsx, and Assets the public/ folder.

On this page