How rehanali357/ai-video-editor works
This is a browser-based slide video editor: users work with slides, add and style text, shapes, images, video, and audio, then preview the composition through Remotion. The sampled editor page mounts the player, which coordinates editing state and editor panels; slide actions and element-specific actions update the slide model, and the composition renders slides and animations. The tree also shows Pixabay and image-search API routes and an Unsplash search component. Those integrations are represented, but their runtime wiring is not established by the excerpts.
Main entry points: player.tsx Editor player · layers-panel.tsx Layers panel · composition.tsx Video composition · slide-actions.ts Slide actions
Components 22
App entry
- Project dashboard
app/(protected)/dashboard/page.tsx - Editor page
app/(protected)/editor/page.tsx
Editor workspace
- Editor player
components/page/editor/player.tsx - Layers panel
components/page/editor/layers-panel.tsx - Slide canvas
components/page/editor/slide-canvas.tsx - Element editor
components/page/editor/slide-element-editor.tsx - Shape menu
components/page/editor/shape-menu.tsx - Pixabay search UI
components/page/editor/pixabay-media-search.tsx
Slide model and actions
- Slide data model
components/page/editor/types/slide.ts - Slide actions
components/page/editor/actions/slide-actions.ts - Image actions
components/page/editor/actions/image-actions.ts - Shape actions
components/page/editor/actions/shape-actions.ts - Text actions
components/page/editor/actions/text-actions.ts - Animation actions
components/page/editor/actions/animation-actions.ts - Font size extension
components/page/editor/lib/font-size-extension.ts
Preview and media
- Video composition
remotion/composition.tsx - Remotion registration
remotion/root.tsx - Unsplash search UI
components/page/editor/unsplash-image-search.tsx - Image search API
app/api/images/search/route.ts - Pixabay search API
app/api/pixabay/search/route.ts - Media API
app/api/media/route.ts
Other components
- Editor user
Connections 21
- Editor user → Project dashboard: opens
app/(protected)/dashboard/page.tsx - Editor page → Editor player: renders
app/(protected)/editor/page.tsx - Editor player → Video composition: previews with
components/page/editor/player.tsx - Editor player → Image actions: calls
components/page/editor/player.tsx - Editor player → Slide actions: calls
components/page/editor/player.tsx - Editor player → Shape actions: calls
components/page/editor/player.tsx - Editor player → Text actions: calls
components/page/editor/player.tsx - Editor player → Layers panel: renders
components/page/editor/player.tsx - Editor player → Slide canvas: renders
components/page/editor/player.tsx - Editor player → Shape menu: renders
components/page/editor/player.tsx - Editor player → Pixabay search UI: renders
components/page/editor/player.tsx - Layers panel → Slide actions: calls
components/page/editor/layers-panel.tsx - Layers panel → Shape actions: calls
components/page/editor/layers-panel.tsx - Layers panel → Animation actions: calls
components/page/editor/layers-panel.tsx - Slide data model → Slide actions: creates types for
components/page/editor/actions/slide-actions.ts - Video composition → Animation actions: applies styles from
remotion/composition.tsx - Video composition → Slide data model: renders
remotion/composition.tsx - Remotion registration → Video composition: registers
remotion/root.tsx - Project dashboard → Editor user: offers project UI
app/(protected)/dashboard/page.tsx - Pixabay search UI → Pixabay search API: searches via
- Unsplash search UI → Image search API: searches via