# kincreatives360-ui/abekyo-editor architecture

> Architecture diagram of the GitHub repository kincreatives360-ui/abekyo-editor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kincreatives360-ui/abekyo-editor
- Repository: https://github.com/kincreatives360-ui/abekyo-editor

## Overview

Abekyo is a self-hosted browser video editor and JSON-driven rendering service. Users upload media, edit a clip/subtitle/BGM timeline, preview it, and export an MP4; scripts and agents can instead upload media, validate project JSON, and request a render. The editor shell coordinates specialized timeline and property views over project and session state, while the server validates and resolves project media before invoking Remotion. The README documents MCP and several editor features whose implementation is not sampled; those relationships are shown as documented, not as inspected call paths.

Main entry points: [`components/VideoEditor.tsx`](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/VideoEditor.tsx) (Editor shell), [`app/api/render/route.ts`](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/render/route.ts) (Render endpoint), [`src/ProductVideo.tsx`](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/ProductVideo.tsx) (Video composition), [`scripts/mcp-server.mjs`](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/scripts/mcp-server.mjs) (MCP tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Browser editor"]
  node_home["Landing page<br/>[page.tsx]"]
  node_editorpage["Editor page<br/>[page.tsx]"]
  node_videoeditor["Editor shell<br/>[VideoEditor.tsx]"]
  node_timeline["Timeline<br/>[ModernTimeline.tsx]"]
  node_subtitles["Subtitle tools<br/>[SubtitleEditor.tsx]"]
  node_subtitlepreview["Subtitle preview"]
  node_bgm["BGM controls<br/>[BgmSettings.tsx]"]
  node_clipprops["Clip properties<br/>[ClipProperties.tsx]"]
end

subgraph group_project["Project state"]
  node_projectstore["Project data<br/>[store.ts]"]
  node_editorstore["Editor session<br/>[editorStore.ts]"]
end

subgraph group_api["Media and render API"]
  node_upload["Media upload<br/>[route.ts]"]
  node_uploadcheck["File detection<br/>[detect.ts]"]
  node_validateapi["Validation endpoint<br/>[route.ts]"]
  node_validator["Project validation<br/>[validate.ts]"]
  node_mediapolicy["Media URL policy<br/>[media.ts]"]
  node_renderapi["Render endpoint<br/>[route.ts]"]
  node_limiter["Render rate limit<br/>[rate-limit.ts]"]
end

subgraph group_composition["Video composition"]
  node_remotion["Remotion renderer"]
  node_productvideo["Video composition<br/>[ProductVideo.tsx]"]
  node_transitions["Transitions<br/>[Transitions.tsx]"]
  node_effects["Image effects<br/>[ImageEffects.tsx]"]
  node_subtitlesrender["Subtitle rendering"]
end

subgraph group_automation["Automation"]
  node_mcp["MCP tools<br/>[mcp-server.mjs]"]
end

node_person(("Editor user"))
node_agent(("Script or agent"))

node_person -->|"opens"| node_home
node_home -->|"uploads media"| node_upload
node_upload -->|"checks signature"| node_uploadcheck
node_person -->|"opens editor"| node_editorpage
node_editorpage -->|"renders"| node_videoeditor
node_videoeditor -->|"reads and updates"| node_projectstore
node_videoeditor -->|"reads and updates"| node_editorstore
node_videoeditor -->|"renders"| node_timeline
node_videoeditor -->|"renders"| node_subtitles
node_videoeditor -->|"renders"| node_subtitlepreview
node_videoeditor -->|"renders"| node_bgm
node_videoeditor -->|"renders"| node_clipprops
node_timeline -->|"updates session"| node_editorstore
node_timeline -.->|"edits timeline"| node_projectstore
node_subtitlepreview -->|"reads selection"| node_editorstore
node_validateapi -->|"validates project"| node_validator
node_renderapi -->|"checks limit"| node_limiter
node_renderapi -->|"validates project"| node_validator
node_renderapi -->|"resolves media"| node_mediapolicy
node_renderapi -->|"renders MP4"| node_remotion
node_remotion -.->|"renders composition"| node_productvideo
node_productvideo -->|"applies transitions"| node_transitions
node_productvideo -->|"applies effects"| node_effects
node_productvideo -->|"renders subtitles"| node_subtitlesrender
node_agent -->|"uses tools"| node_mcp
node_mcp -.->|"uploads media"| node_upload
node_mcp -.->|"validates project"| node_validateapi
node_mcp -.->|"requests render"| node_renderapi

click node_home "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/page.tsx"
click node_editorpage "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/video-edit/page.tsx"
click node_videoeditor "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/VideoEditor.tsx"
click node_timeline "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/ModernTimeline.tsx"
click node_subtitles "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/SubtitleEditor.tsx"
click node_subtitlepreview "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/SubtitlePreviewOverlay.tsx"
click node_bgm "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/BgmSettings.tsx"
click node_clipprops "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/ClipProperties.tsx"
click node_projectstore "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/store.ts"
click node_editorstore "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/editorStore.ts"
click node_upload "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/upload/route.ts"
click node_uploadcheck "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/upload/detect.ts"
click node_validateapi "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/project/validate/route.ts"
click node_validator "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/project/validate.ts"
click node_mediapolicy "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/project/media.ts"
click node_renderapi "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/render/route.ts"
click node_limiter "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/render/rate-limit.ts"
click node_mcp "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/scripts/mcp-server.mjs"
click node_productvideo "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/ProductVideo.tsx"
click node_transitions "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/Transitions.tsx"
click node_effects "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/ImageEffects.tsx"
click node_subtitlesrender "https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/TimeBasedSubtitle.tsx"

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_home,node_editorpage,node_videoeditor,node_timeline,node_subtitles,node_subtitlepreview,node_bgm,node_clipprops,node_person toneBlue
class node_projectstore,node_editorstore toneAmber
class node_upload,node_uploadcheck,node_validateapi,node_validator,node_mediapolicy,node_renderapi,node_limiter toneMint
class node_remotion,node_productvideo,node_transitions,node_effects,node_subtitlesrender toneRose
class node_mcp,node_agent toneIndigo
```

## Components

### Browser editor

- [Landing page](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/page.tsx): `app/page.tsx`
- [Editor page](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/video-edit/page.tsx): `app/video-edit/page.tsx`
- [Editor shell](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/VideoEditor.tsx): `components/VideoEditor.tsx`
- [Timeline](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/ModernTimeline.tsx): `components/editor/ModernTimeline.tsx`
- [Subtitle tools](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/SubtitleEditor.tsx): `components/editor/SubtitleEditor.tsx`
- [Subtitle preview](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/SubtitlePreviewOverlay.tsx): `components/editor/SubtitlePreviewOverlay.tsx`
- [BGM controls](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/BgmSettings.tsx): `components/editor/BgmSettings.tsx`
- [Clip properties](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/components/editor/ClipProperties.tsx): `components/editor/ClipProperties.tsx`

### Project state

- [Project data](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/store.ts): `lib/store.ts`
- [Editor session](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/editorStore.ts): `lib/editorStore.ts`

### Media and render API

- [Media upload](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/upload/route.ts): `app/api/upload/route.ts`
- [File detection](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/upload/detect.ts): `app/api/upload/detect.ts`
- [Validation endpoint](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/project/validate/route.ts): `app/api/project/validate/route.ts`
- [Project validation](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/project/validate.ts): `lib/project/validate.ts`
- [Media URL policy](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/lib/project/media.ts): `lib/project/media.ts`
- [Render endpoint](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/render/route.ts): `app/api/render/route.ts`
- [Render rate limit](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/app/api/render/rate-limit.ts): `app/api/render/rate-limit.ts`

### Video composition

- **Remotion renderer**
- [Video composition](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/ProductVideo.tsx): `src/ProductVideo.tsx`
- [Transitions](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/Transitions.tsx): `src/Transitions.tsx`
- [Image effects](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/ImageEffects.tsx): `src/ImageEffects.tsx`
- [Subtitle rendering](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/src/TimeBasedSubtitle.tsx): `src/TimeBasedSubtitle.tsx`

### Automation

- [MCP tools](https://github.com/kincreatives360-ui/abekyo-editor/blob/main/scripts/mcp-server.mjs): `scripts/mcp-server.mjs`

### Other components

- **Editor user**
- **Script or agent**

## Connections

- Editor user → Landing page: opens (evidence: `README.md`)
- Landing page → Media upload: uploads media (evidence: `README.md`)
- Media upload → File detection: checks signature (evidence: `app/api/upload/route.ts`)
- Editor user → Editor page: opens editor (evidence: `README.md`)
- Editor page → Editor shell: renders (evidence: `app/video-edit/page.tsx`)
- Editor shell → Project data: reads and updates (evidence: `components/VideoEditor.tsx`)
- Editor shell → Editor session: reads and updates (evidence: `components/VideoEditor.tsx`)
- Editor shell → Timeline: renders (evidence: `components/VideoEditor.tsx`)
- Editor shell → Subtitle tools: renders (evidence: `README.md`)
- Editor shell → Subtitle preview: renders (evidence: `components/VideoEditor.tsx`)
- Editor shell → BGM controls: renders (evidence: `README.md`)
- Editor shell → Clip properties: renders (evidence: `README.md`)
- Timeline → Editor session: updates session (evidence: `components/editor/ModernTimeline.tsx`)
- Timeline → Project data: edits timeline
- Subtitle preview → Editor session: reads selection (evidence: `components/editor/SubtitlePreviewOverlay.tsx`)
- Validation endpoint → Project validation: validates project (evidence: `app/api/project/validate/route.ts`)
- Render endpoint → Render rate limit: checks limit (evidence: `app/api/render/route.ts`)
- Render endpoint → Project validation: validates project (evidence: `app/api/render/route.ts`)
- Render endpoint → Media URL policy: resolves media (evidence: `app/api/render/route.ts`)
- Render endpoint → Remotion renderer: renders MP4 (evidence: `app/api/render/route.ts`)
- Remotion renderer → Video composition: renders composition
- Video composition → Transitions: applies transitions (evidence: `src/ProductVideo.tsx`)
- Video composition → Image effects: applies effects (evidence: `src/ProductVideo.tsx`)
- Video composition → Subtitle rendering: renders subtitles (evidence: `src/ProductVideo.tsx`)
- Script or agent → MCP tools: uses tools (evidence: `README.md`)
- MCP tools → Media upload: uploads media (evidence: `README.md`)
- MCP tools → Validation endpoint: validates project (evidence: `README.md`)
- MCP tools → Render endpoint: requests render (evidence: `README.md`)
