Installation
Quick Start
The fastest way to get started is using the scaffolding tool:
bash
npx create-framely my-video
cd my-video
npm install
npx framely previewThis creates a new project with a sample composition and opens the studio.
Manual Installation
If you prefer to set up manually:
bash
npm install @codellyson/framely @codellyson/framely-cli react react-domThen create an entry file that registers your compositions:
jsx
// src/index.jsx
import { registerRoot } from '@codellyson/framely';
import { Root } from './Root';
registerRoot(Root);jsx
// src/Root.jsx
import { Composition } from '@codellyson/framely';
import { MyVideo } from './MyVideo';
export function Root() {
return (
<Composition
id="my-video"
component={MyVideo}
width={1920}
height={1080}
fps={30}
durationInFrames={150}
/>
);
}Requirements
- Node.js 18 or higher
- FFmpeg (for rendering)