# khilaraj123/pro-motion architecture

> Architecture diagram of the GitHub repository khilaraj123/pro-motion, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/khilaraj123/pro-motion
- Repository: https://github.com/khilaraj123/pro-motion

## Overview

Pro-Motion is a Remotion motion-design system for authoring deterministic 2D, illustration-led, 3D, and hybrid videos. The principal workflow registers compositions in the Remotion root, runs a template or composition on the frame timeline, and uses reusable visual components, animation presets, and rendering runtimes to produce scenes. Technical explainers, scientific illustration, kinetic typography, and 3D/hybrid graphics are distinct product capabilities. Edges reflect the shown imports, calls, and composition registration; broader 3D capabilities are documented in the README, while unsampled implementation details are not inferred.

Main entry points: [`templates/technical-explainer/HttpRequestExplainer.tsx`](https://github.com/khilaraj123/pro-motion/blob/main/templates/technical-explainer/HttpRequestExplainer.tsx) (HTTP explainer), [`runtime/three/components`](https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/components) (3D scene components), [`presets/springs.ts`](https://github.com/khilaraj123/pro-motion/blob/main/presets/springs.ts) (Spring configurations), [`templates/illustration-explainer/BlackHoleClip.tsx`](https://github.com/khilaraj123/pro-motion/blob/main/templates/illustration-explainer/BlackHoleClip.tsx) (Black-hole clip)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Composition authoring"]
  node_root["Composition registry<br/>[Root.tsx]"]
end

subgraph group_visuals["2D visual components"]
  node_technicaldiagrams["Technical diagrams"]
  node_charts["Data visualizations"]
  node_typography["Editorial typography"]
  node_windows["Browser and terminal views"]
  node_illustrations["Vector and particle scenes"]
  node_backgrounds["Background and effects"]
end

subgraph group_motion["Motion presets"]
  node_springs["Spring configurations<br/>[springs.ts]"]
  node_presetlibrary["Animation presets"]
end

subgraph group_rendering["3D and hybrid runtime"]
  node_threegeometry["Procedural geometry"]
  node_threecomponents["3D scene components"]
  node_threecameras["3D camera systems"]
  node_threeenvironment["3D environments"]
  node_materials["PBR materials"]
  node_hybrid["Hybrid compositions"]
  node_blender["Blender enhancer<br/>[blender-bridge.ts]"]
end

subgraph group_templates["Video templates"]
  node_technical["HTTP explainer"]
  node_blackhole["Black-hole clip<br/>[BlackHoleClip.tsx]"]
  node_templatefamily["Starter templates"]
end

node_creator(("Video author"))
node_remotion(("Remotion renderer"))

node_creator -->|"authors compositions"| node_root
node_remotion -->|"renders registry"| node_root
node_root -->|"registers composition"| node_technical
node_technical -->|"uses diagrams"| node_technicaldiagrams
node_technical -->|"uses metrics"| node_charts
node_technical -->|"uses titles"| node_typography
node_technical -->|"uses browser view"| node_windows
node_technical -->|"uses backgrounds"| node_backgrounds
node_technical -->|"uses motion presets"| node_presetlibrary
node_blackhole -->|"uses scene elements"| node_illustrations
node_blackhole -->|"uses editorial labels"| node_typography
node_blackhole -->|"uses motion presets"| node_presetlibrary
node_technicaldiagrams -->|"uses spring config"| node_springs
node_charts -->|"uses spring config"| node_springs
node_typography -->|"uses spring config"| node_springs
node_presetlibrary -->|"exports configs"| node_springs
node_templatefamily -.->|"builds with components"| node_technicaldiagrams
node_threegeometry -.->|"composes 3D scenes"| node_threecomponents
node_threecomponents -.->|"uses camera systems"| node_threecameras
node_threecomponents -.->|"uses environments"| node_threeenvironment
node_threecomponents -.->|"uses materials"| node_materials
node_hybrid -.->|"combines 2D and 3D"| node_threecomponents
node_blender -.->|"optional enhancement"| node_threegeometry

click node_root "https://github.com/khilaraj123/pro-motion/blob/main/src/Root.tsx"
click node_technical "https://github.com/khilaraj123/pro-motion/blob/main/templates/technical-explainer/HttpRequestExplainer.tsx"
click node_blackhole "https://github.com/khilaraj123/pro-motion/blob/main/templates/illustration-explainer/BlackHoleClip.tsx"
click node_templatefamily "https://github.com/khilaraj123/pro-motion/tree/main/templates"
click node_technicaldiagrams "https://github.com/khilaraj123/pro-motion/tree/main/components/diagrams"
click node_charts "https://github.com/khilaraj123/pro-motion/tree/main/components/data-visualization"
click node_typography "https://github.com/khilaraj123/pro-motion/tree/main/components/typography"
click node_windows "https://github.com/khilaraj123/pro-motion/tree/main/components/shapes"
click node_illustrations "https://github.com/khilaraj123/pro-motion/tree/main/components/illustration"
click node_backgrounds "https://github.com/khilaraj123/pro-motion/tree/main/components/backgrounds"
click node_springs "https://github.com/khilaraj123/pro-motion/blob/main/presets/springs.ts"
click node_presetlibrary "https://github.com/khilaraj123/pro-motion/tree/main/presets"
click node_threegeometry "https://github.com/khilaraj123/pro-motion/blob/main/runtime/three/geometry/SpecializedGeometry.tsx"
click node_threecomponents "https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/components"
click node_threecameras "https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/cameras"
click node_threeenvironment "https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/environments"
click node_materials "https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/materials"
click node_hybrid "https://github.com/khilaraj123/pro-motion/blob/main/runtime/hybrid/HybridComponents.tsx"
click node_blender "https://github.com/khilaraj123/pro-motion/blob/main/runtime/three/blender-bridge.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root toneBlue
class node_technicaldiagrams,node_charts,node_typography,node_windows,node_illustrations,node_backgrounds toneAmber
class node_springs,node_presetlibrary toneMint
class node_threegeometry,node_threecomponents,node_threecameras,node_threeenvironment,node_materials,node_hybrid,node_blender toneRose
class node_technical,node_blackhole,node_templatefamily,node_creator,node_remotion toneIndigo
```

## Components

### Composition authoring

- [Composition registry](https://github.com/khilaraj123/pro-motion/blob/main/src/Root.tsx): `src/Root.tsx`

### 2D visual components

- [Technical diagrams](https://github.com/khilaraj123/pro-motion/tree/main/components/diagrams): `components/diagrams`
- [Data visualizations](https://github.com/khilaraj123/pro-motion/tree/main/components/data-visualization): `components/data-visualization`
- [Editorial typography](https://github.com/khilaraj123/pro-motion/tree/main/components/typography): `components/typography`
- [Browser and terminal views](https://github.com/khilaraj123/pro-motion/tree/main/components/shapes): `components/shapes`
- [Vector and particle scenes](https://github.com/khilaraj123/pro-motion/tree/main/components/illustration): `components/illustration`
- [Background and effects](https://github.com/khilaraj123/pro-motion/tree/main/components/backgrounds): `components/backgrounds`

### Motion presets

- [Spring configurations](https://github.com/khilaraj123/pro-motion/blob/main/presets/springs.ts): `presets/springs.ts`
- [Animation presets](https://github.com/khilaraj123/pro-motion/tree/main/presets): `presets`

### 3D and hybrid runtime

- [Procedural geometry](https://github.com/khilaraj123/pro-motion/blob/main/runtime/three/geometry/SpecializedGeometry.tsx): `runtime/three/geometry/SpecializedGeometry.tsx`
- [3D scene components](https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/components): `runtime/three/components`
- [3D camera systems](https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/cameras): `runtime/three/cameras`
- [3D environments](https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/environments): `runtime/three/environments`
- [PBR materials](https://github.com/khilaraj123/pro-motion/tree/main/runtime/three/materials): `runtime/three/materials`
- [Hybrid compositions](https://github.com/khilaraj123/pro-motion/blob/main/runtime/hybrid/HybridComponents.tsx): `runtime/hybrid/HybridComponents.tsx`
- [Blender enhancer](https://github.com/khilaraj123/pro-motion/blob/main/runtime/three/blender-bridge.ts): `runtime/three/blender-bridge.ts`

### Video templates

- [HTTP explainer](https://github.com/khilaraj123/pro-motion/blob/main/templates/technical-explainer/HttpRequestExplainer.tsx): `templates/technical-explainer/HttpRequestExplainer.tsx`
- [Black-hole clip](https://github.com/khilaraj123/pro-motion/blob/main/templates/illustration-explainer/BlackHoleClip.tsx): `templates/illustration-explainer/BlackHoleClip.tsx`
- [Starter templates](https://github.com/khilaraj123/pro-motion/tree/main/templates): `templates`

### Other components

- **Video author**
- **Remotion renderer**

## Connections

- Video author → Composition registry: authors compositions (evidence: `README.md`)
- Remotion renderer → Composition registry: renders registry (evidence: `src/Root.tsx`)
- Composition registry → HTTP explainer: registers composition (evidence: `src/Root.tsx`)
- HTTP explainer → Technical diagrams: uses diagrams (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- HTTP explainer → Data visualizations: uses metrics (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- HTTP explainer → Editorial typography: uses titles (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- HTTP explainer → Browser and terminal views: uses browser view (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- HTTP explainer → Background and effects: uses backgrounds (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- HTTP explainer → Animation presets: uses motion presets (evidence: `templates/technical-explainer/HttpRequestExplainer.tsx`)
- Black-hole clip → Vector and particle scenes: uses scene elements (evidence: `templates/illustration-explainer/BlackHoleClip.tsx`)
- Black-hole clip → Editorial typography: uses editorial labels (evidence: `templates/illustration-explainer/BlackHoleClip.tsx`)
- Black-hole clip → Animation presets: uses motion presets (evidence: `templates/illustration-explainer/BlackHoleClip.tsx`)
- Technical diagrams → Spring configurations: uses spring config (evidence: `components/diagrams/NetworkPipeline.tsx`)
- Data visualizations → Spring configurations: uses spring config (evidence: `components/data-visualization/AnimatedBarChart.tsx`)
- Editorial typography → Spring configurations: uses spring config (evidence: `components/typography/EditorialTitle.tsx`)
- Animation presets → Spring configurations: exports configs (evidence: `presets/index.ts`)
- Starter templates → Technical diagrams: builds with components
- Procedural geometry → 3D scene components: composes 3D scenes
- 3D scene components → 3D camera systems: uses camera systems
- 3D scene components → 3D environments: uses environments
- 3D scene components → PBR materials: uses materials
- Hybrid compositions → 3D scene components: combines 2D and 3D
- Blender enhancer → Procedural geometry: optional enhancement (evidence: `README.md`)
