# andresibarrali1/sinaloapro architecture

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

- Interactive diagram: https://gitdiagram.com/andresibarrali1/sinaloapro
- Repository: https://github.com/andresibarrali1/sinaloapro

## Overview

Sinaloa Pro is a browser-based, local-processing multitrack video editor. The main workflow runs from importing media through timeline editing and playback to saving a project or rendering a downloadable file. The README documents these capabilities; sampled source confirms the app entry point, media decoding, project model, compositor, preset previews, and render workspace. Several editor subsystems are represented from documented capabilities and indexed modules; their unsampled internal links are omitted.

Main entry points: [`components/editor/editor.tsx`](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/editor.tsx) (Media and preview UI), [`components/editor/render-workspace.tsx`](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/render-workspace.tsx) (Render workspace), [`lib/editor/compositor.ts`](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/compositor.ts) (Video compositor), [`client.tsx`](https://github.com/andresibarrali1/sinaloapro/blob/master/client.tsx) (Editor entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Editing workspace"]
  node_entry["Editor entry<br/>[client.tsx]"]
  node_editor["Editing workspace<br/>[editor.tsx]"]
  node_timeline["Timeline editing"]
  node_pan_crop["Pan and crop<br/>[pan-crop.tsx]"]
  node_media_ui["Media and preview UI<br/>[editor.tsx]"]
end

subgraph group_engine["Media engine"]
  node_media["Media import and decode<br/>[media.ts]"]
  node_project_model["Timeline project model<br/>[project.ts]"]
  node_compositor["Video compositor<br/>[compositor.ts]"]
  node_audio["Audio mixing<br/>[audio.ts]"]
  node_effects["Effects and transitions<br/>[effects.ts]"]
  node_titles["Titles and generators<br/>[titles.ts]"]
end

subgraph group_projects["Project files"]
  node_project_files["Project save and reopen<br/>[project-file.ts]"]
  node_storage[("Local media cache<br/>[storage.ts]")]
end

subgraph group_output["Export and output"]
  node_render_ui["Render workspace"]
  node_export["Encoding and export<br/>[export.ts]"]
  node_batch["Batch render queue<br/>[batch.ts]"]
  node_download["Downloaded output<br/>[export-file.ts]"]
end

node_user(("Editor user"))
node_browser["Browser app"]

node_user -->|"opens editor"| node_browser
node_browser -->|"loads app"| node_entry
node_entry -->|"renders"| node_editor
node_user -->|"imports media"| node_media_ui
node_media_ui -->|"decodes files"| node_media
node_media_ui -->|"places clips"| node_timeline
node_timeline -->|"edits timeline"| node_project_model
node_user -->|"adjusts framing"| node_pan_crop
node_pan_crop -->|"previews frames"| node_compositor
node_media_ui -->|"previews project"| node_compositor
node_compositor -->|"reads media"| node_media
node_compositor -->|"reads timeline"| node_project_model
node_user -->|"mixes audio"| node_audio
node_user -->|"applies effects"| node_effects
node_user -->|"adds titles"| node_titles
node_editor -->|"saves and reopens"| node_project_files
node_project_files -->|"recovers media"| node_storage
node_user -->|"configures render"| node_render_ui
node_render_ui -->|"starts render"| node_export
node_render_ui -->|"queues jobs"| node_batch
node_render_ui -->|"downloads result"| node_download

click node_entry "https://github.com/andresibarrali1/sinaloapro/blob/master/client.tsx"
click node_editor "https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/editor.tsx"
click node_timeline "https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/timeline-event-row.tsx"
click node_pan_crop "https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/pan-crop.tsx"
click node_media_ui "https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/editor.tsx"
click node_media "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/media.ts"
click node_project_model "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/project.ts"
click node_compositor "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/compositor.ts"
click node_audio "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/audio.ts"
click node_effects "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/effects.ts"
click node_titles "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/titles.ts"
click node_project_files "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/project-file.ts"
click node_storage "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/storage.ts"
click node_render_ui "https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/render-workspace.tsx"
click node_export "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/export.ts"
click node_batch "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/batch.ts"
click node_download "https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/export-file.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_entry,node_editor,node_timeline,node_pan_crop,node_media_ui,node_user,node_browser toneBlue
class node_media,node_project_model,node_compositor,node_audio,node_effects,node_titles toneAmber
class node_project_files,node_storage toneMint
class node_render_ui,node_export,node_batch,node_download toneRose
```

## Components

### Editing workspace

- [Editor entry](https://github.com/andresibarrali1/sinaloapro/blob/master/client.tsx): `client.tsx`
- [Editing workspace](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/editor.tsx): `components/editor/editor.tsx`
- [Timeline editing](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/timeline-event-row.tsx): `components/editor/timeline-event-row.tsx`
- [Pan and crop](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/pan-crop.tsx): `components/editor/pan-crop.tsx`
- [Media and preview UI](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/editor.tsx): `components/editor/editor.tsx`

### Media engine

- [Media import and decode](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/media.ts): `lib/editor/media.ts`
- [Timeline project model](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/project.ts): `lib/editor/project.ts`
- [Video compositor](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/compositor.ts): `lib/editor/compositor.ts`
- [Audio mixing](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/audio.ts): `lib/editor/audio.ts`
- [Effects and transitions](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/effects.ts): `lib/editor/effects.ts`
- [Titles and generators](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/titles.ts): `lib/editor/titles.ts`

### Project files

- [Project save and reopen](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/project-file.ts): `lib/editor/project-file.ts`
- [Local media cache](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/storage.ts): `lib/editor/storage.ts`

### Export and output

- [Render workspace](https://github.com/andresibarrali1/sinaloapro/blob/master/components/editor/render-workspace.tsx): `components/editor/render-workspace.tsx`
- [Encoding and export](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/export.ts): `lib/editor/export.ts`
- [Batch render queue](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/batch.ts): `lib/editor/batch.ts`
- [Downloaded output](https://github.com/andresibarrali1/sinaloapro/blob/master/lib/editor/export-file.ts): `lib/editor/export-file.ts`

### Other components

- **Editor user**
- **Browser app**

## Connections

- Editor user → Browser app: opens editor (evidence: `README.md`)
- Browser app → Editor entry: loads app (evidence: `client.tsx`)
- Editor entry → Editing workspace: renders (evidence: `client.tsx`)
- Editor user → Media and preview UI: imports media (evidence: `README.md`)
- Media and preview UI → Media import and decode: decodes files (evidence: `lib/editor/media.ts`)
- Media and preview UI → Timeline editing: places clips (evidence: `README.md`)
- Timeline editing → Timeline project model: edits timeline (evidence: `README.md`)
- Editor user → Pan and crop: adjusts framing (evidence: `README.md`)
- Pan and crop → Video compositor: previews frames (evidence: `components/editor/pan-crop.tsx`)
- Media and preview UI → Video compositor: previews project (evidence: `components/editor/editor.tsx`)
- Video compositor → Media import and decode: reads media (evidence: `lib/editor/compositor.ts`)
- Video compositor → Timeline project model: reads timeline (evidence: `lib/editor/compositor.ts`)
- Editor user → Audio mixing: mixes audio (evidence: `README.md`)
- Editor user → Effects and transitions: applies effects (evidence: `README.md`)
- Editor user → Titles and generators: adds titles (evidence: `README.md`)
- Editing workspace → Project save and reopen: saves and reopens (evidence: `README.md`)
- Project save and reopen → Local media cache: recovers media (evidence: `README.md`)
- Editor user → Render workspace: configures render (evidence: `README.md`)
- Render workspace → Encoding and export: starts render (evidence: `components/editor/render-workspace.tsx`)
- Render workspace → Batch render queue: queues jobs (evidence: `components/editor/render-workspace.tsx`)
- Render workspace → Downloaded output: downloads result (evidence: `README.md`)
