# flutter-team-archive/holobooth architecture

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

- Interactive diagram: https://gitdiagram.com/flutter-team-archive/holobooth
- Repository: https://github.com/flutter-team-archive/holobooth

## Overview

Holobooth is a Flutter web photobooth backed by Firebase and TensorFlow-related packages. Its user-facing journey appears to move from landing and camera setup through avatar detection and customization, recording, conversion, and sharing or downloading. The sampled backend confirms conversion, storage, share-page rendering, and download handlers. The Flutter workflow and several package integrations are represented from the tree and product description; their internal calls were not sampled, so those links are dashed and unverified.

Main entry points: [`functions/src/convert/index.ts`](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts) (Media conversion), [`functions/src/share/index.ts`](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/share/index.ts) (Share endpoint), [`lib/app/app.dart`](https://github.com/flutter-team-archive/holobooth/blob/main/lib/app/app.dart) (Flutter app), [`lib/avatar_detector/bloc/avatar_detector_bloc.dart`](https://github.com/flutter-team-archive/holobooth/blob/main/lib/avatar_detector/bloc/avatar_detector_bloc.dart) (Face detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Booth experience"]
  node_app["Flutter app<br/>[app.dart]"]
  node_landing["Landing<br/>[landing_page.dart]"]
  node_camera["Camera setup<br/>[camera_bloc.dart]"]
  node_avatar["Face detection"]
  node_selection["Avatar customization"]
  node_booth["Photo booth"]
  node_convert_ui["Conversion progress<br/>[convert_bloc.dart]"]
  node_share_ui["Share experience<br/>[share_page.dart]"]
end

subgraph group_media["Media processing"]
  node_convert_handler["Media conversion<br/>[index.ts]"]
  node_frames["Frame intake<br/>[index.ts]"]
  node_video_output["Video and GIF output<br/>[index.ts]"]
end

subgraph group_sharing["Sharing services"]
  node_share_handler["Share endpoint<br/>[index.ts]"]
  node_share_templates["Share page templates<br/>[share.ts]"]
  node_download_handler["Download endpoint<br/>[index.ts]"]
end

subgraph group_platform["Platform capabilities"]
  node_storage[("Firebase Storage")]
  node_tensorflow["TensorFlow models"]
  node_analytics["Analytics"]
end

node_user(("Visitor"))

node_user -.->|"uses"| node_app
node_app -.->|"opens"| node_landing
node_landing -.->|"starts capture"| node_camera
node_camera -.->|"provides camera feed"| node_avatar
node_avatar -.->|"informs customization"| node_selection
node_selection -.->|"configures booth"| node_booth
node_booth -.->|"submits recording"| node_convert_ui
node_convert_ui -.->|"requests conversion"| node_convert_handler
node_convert_handler -->|"reads uploaded frames"| node_frames
node_convert_handler -->|"creates media"| node_video_output
node_convert_handler -->|"uploads files"| node_storage
node_video_output -.->|"enables sharing"| node_share_ui
node_share_ui -.->|"requests share page"| node_share_handler
node_share_handler -->|"checks video"| node_storage
node_share_handler -->|"renders response"| node_share_templates
node_share_handler -->|"builds media URLs"| node_storage
node_user -.->|"requests download"| node_download_handler
node_download_handler -->|"reads media"| node_storage
node_avatar -.->|"uses detection models"| node_tensorflow
node_app -.->|"records events"| node_analytics

click node_app "https://github.com/flutter-team-archive/holobooth/blob/main/lib/app/app.dart"
click node_landing "https://github.com/flutter-team-archive/holobooth/blob/main/lib/landing/view/landing_page.dart"
click node_camera "https://github.com/flutter-team-archive/holobooth/blob/main/lib/camera/bloc/camera_bloc.dart"
click node_avatar "https://github.com/flutter-team-archive/holobooth/blob/main/lib/avatar_detector/bloc/avatar_detector_bloc.dart"
click node_selection "https://github.com/flutter-team-archive/holobooth/blob/main/lib/in_experience_selection/bloc/in_experience_selection_bloc.dart"
click node_booth "https://github.com/flutter-team-archive/holobooth/blob/main/lib/photo_booth/bloc/photo_booth_bloc.dart"
click node_convert_ui "https://github.com/flutter-team-archive/holobooth/blob/main/lib/convert/bloc/convert_bloc.dart"
click node_share_ui "https://github.com/flutter-team-archive/holobooth/blob/main/lib/share/view/share_page.dart"
click node_convert_handler "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts"
click node_frames "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts"
click node_video_output "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts"
click node_share_handler "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/share/index.ts"
click node_share_templates "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/share/templates/share.ts"
click node_download_handler "https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/download/index.ts"
click node_tensorflow "https://github.com/flutter-team-archive/holobooth/tree/main/packages/tensorflow_models/tensorflow_models/lib"
click node_analytics "https://github.com/flutter-team-archive/holobooth/blob/main/packages/analytics_repository/lib/src/analytics_repository.dart"

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_app,node_landing,node_camera,node_avatar,node_selection,node_booth,node_convert_ui,node_share_ui toneBlue
class node_convert_handler,node_frames,node_video_output toneAmber
class node_share_handler,node_share_templates,node_download_handler toneMint
class node_storage,node_tensorflow,node_analytics toneRose
class node_user toneIndigo
```

## Components

### Booth experience

- [Flutter app](https://github.com/flutter-team-archive/holobooth/blob/main/lib/app/app.dart): `lib/app/app.dart`
- [Landing](https://github.com/flutter-team-archive/holobooth/blob/main/lib/landing/view/landing_page.dart): `lib/landing/view/landing_page.dart`
- [Camera setup](https://github.com/flutter-team-archive/holobooth/blob/main/lib/camera/bloc/camera_bloc.dart): `lib/camera/bloc/camera_bloc.dart`
- [Face detection](https://github.com/flutter-team-archive/holobooth/blob/main/lib/avatar_detector/bloc/avatar_detector_bloc.dart): `lib/avatar_detector/bloc/avatar_detector_bloc.dart`
- [Avatar customization](https://github.com/flutter-team-archive/holobooth/blob/main/lib/in_experience_selection/bloc/in_experience_selection_bloc.dart): `lib/in_experience_selection/bloc/in_experience_selection_bloc.dart`
- [Photo booth](https://github.com/flutter-team-archive/holobooth/blob/main/lib/photo_booth/bloc/photo_booth_bloc.dart): `lib/photo_booth/bloc/photo_booth_bloc.dart`
- [Conversion progress](https://github.com/flutter-team-archive/holobooth/blob/main/lib/convert/bloc/convert_bloc.dart): `lib/convert/bloc/convert_bloc.dart`
- [Share experience](https://github.com/flutter-team-archive/holobooth/blob/main/lib/share/view/share_page.dart): `lib/share/view/share_page.dart`

### Media processing

- [Media conversion](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts): `functions/src/convert/index.ts`
- [Frame intake](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts): `functions/src/convert/index.ts`
- [Video and GIF output](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/convert/index.ts): `functions/src/convert/index.ts`

### Sharing services

- [Share endpoint](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/share/index.ts): `functions/src/share/index.ts`
- [Share page templates](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/share/templates/share.ts): `functions/src/share/templates/share.ts`
- [Download endpoint](https://github.com/flutter-team-archive/holobooth/blob/main/functions/src/download/index.ts): `functions/src/download/index.ts`

### Platform capabilities

- **Firebase Storage**
- [TensorFlow models](https://github.com/flutter-team-archive/holobooth/tree/main/packages/tensorflow_models/tensorflow_models/lib): `packages/tensorflow_models/tensorflow_models/lib`
- [Analytics](https://github.com/flutter-team-archive/holobooth/blob/main/packages/analytics_repository/lib/src/analytics_repository.dart): `packages/analytics_repository/lib/src/analytics_repository.dart`

### Other components

- **Visitor**

## Connections

- Visitor → Flutter app: uses
- Flutter app → Landing: opens
- Landing → Camera setup: starts capture
- Camera setup → Face detection: provides camera feed
- Face detection → Avatar customization: informs customization
- Avatar customization → Photo booth: configures booth
- Photo booth → Conversion progress: submits recording
- Conversion progress → Media conversion: requests conversion
- Media conversion → Frame intake: reads uploaded frames (evidence: `functions/src/convert/index.ts`)
- Media conversion → Video and GIF output: creates media (evidence: `functions/src/convert/index.ts`)
- Media conversion → Firebase Storage: uploads files (evidence: `functions/src/convert/index.ts`)
- Video and GIF output → Share experience: enables sharing
- Share experience → Share endpoint: requests share page
- Share endpoint → Firebase Storage: checks video (evidence: `functions/src/share/index.ts`)
- Share endpoint → Share page templates: renders response (evidence: `functions/src/share/index.ts`)
- Share endpoint → Firebase Storage: builds media URLs (evidence: `functions/src/share/index.ts`)
- Visitor → Download endpoint: requests download
- Download endpoint → Firebase Storage: reads media (evidence: `functions/src/download/index.ts`)
- Face detection → TensorFlow models: uses detection models
- Flutter app → Analytics: records events
