How ttdiang2/tt_automanga works
TT_AutoManga is a local-first comic-production app: users turn story text into editable panels, enhance prompts, create or upload art, compose manga pages, then manage and export projects. The graph preserves the documented feature branches, including characters, templates, settings and archives. Backend route coverage and several frontend features are identified from the README/tree or the app’s tab dispatch; their internal calls were not sampled, so uncertain connections are omitted. Optional AI services are shown as integrations.
Main entry points: main.py FastAPI server · App.tsx Workspace tabs · projectStore.ts Project state · ComposerTab.tsx Visual Composer
Components 32
Frontend workspace
- Workspace tabs
frontend/src/App.tsx - Showcase
frontend/src/components/showcase/ShowcaseTab.tsx - Settings
frontend/src/components/settings/SettingsTab.tsx
Story and art
- Storyboard editor
frontend/src/components/storyboard/StoryboardTab.tsx - Prompt Lab
frontend/src/components/prompt/PromptLabTab.tsx - Asset manager
frontend/src - Characters
frontend/src/components/characters/CharacterTab.tsx
Page composition
- Visual Composer
frontend/src/components/composer/ComposerTab.tsx - Canvas editor
frontend/src/components/composer/Canvas.tsx - Element properties
frontend/src/components/composer/PropertiesPanel.tsx - Image picker
frontend/src/components/composer/ImagePicker.tsx - Page renderer
frontend/src/components/composer/pageRenderer.ts
API and services
- Storyboard API
backend/api/storyboard.py - Prompt API
backend/api/prompt.py - Assets API
backend/api/assets.py - Character API
backend/api/characters.py - Character templates
backend/api/character_templates.py - Layout templates
backend/api/layouts.py - Image archive
backend/api/archive.py - Project API
backend/api/project.py - Export API
backend/api/export.py - Settings API
backend/api/settings.py - FastAPI server
backend/main.py - LLM client
backend/core/openai_client.py - SwarmUI client
backend/core/swarmui_client.py - Runtime configuration
backend/core/config.py
Project data
- Project state
frontend/src/store/projectStore.ts - Composer state
frontend/src/store/composerStore.ts - File storage
backend/storage/manager.py
Other components
- Creator
- OpenAI-compatible LLM
- SwarmUI
Connections 47
- Creator → Workspace tabs: uses
frontend/src/App.tsx - Workspace tabs → Storyboard editor: dispatches
frontend/src/App.tsx - Workspace tabs → Prompt Lab: dispatches
frontend/src/App.tsx - Workspace tabs → Visual Composer: dispatches
frontend/src/App.tsx - Workspace tabs → Showcase: dispatches
frontend/src/App.tsx - Workspace tabs → Settings: dispatches
frontend/src/App.tsx - Workspace tabs → Characters: dispatches
frontend/src/App.tsx - Storyboard editor → Project state: edits
frontend/src/components/storyboard/StoryboardTab.tsx - Prompt Lab → Project state: reads state
frontend/src/components/prompt/PromptLabTab.tsx - Characters → Project state: reads state
frontend/src/components/characters/CharacterTab.tsx - Visual Composer → Composer state: updates
frontend/src/components/composer/ComposerTab.tsx - Visual Composer → Project state: autosaves
frontend/src/components/composer/ComposerTab.tsx - Visual Composer → Canvas editor: renders
frontend/src/components/composer/ComposerTab.tsx - Visual Composer → Element properties: renders
frontend/src/components/composer/ComposerTab.tsx - Visual Composer → Page renderer: exports image
frontend/src/components/composer/ComposerTab.tsx - Canvas editor → Composer state: reads state
frontend/src/components/composer/Canvas.tsx - Canvas editor → Image picker: opens
frontend/src/components/composer/Canvas.tsx - Element properties → Composer state: updates
frontend/src/components/composer/PropertiesPanel.tsx - Image picker → Composer state: updates
frontend/src/components/composer/ImagePicker.tsx - Showcase → Project state: manages projects
frontend/src/components/showcase/ShowcaseTab.tsx - Showcase → Composer state: reads pages
frontend/src/components/showcase/ShowcaseTab.tsx - Showcase → Page renderer: renders pages
frontend/src/components/showcase/ShowcaseTab.tsx - Project state → Project API: loads and saves
frontend/src/store/projectStore.ts - Workspace tabs → Settings API: fetches settings
frontend/src/App.tsx - Settings → Project state: updates settings
frontend/src/components/settings/SettingsTab.tsx - Storyboard API → LLM client: decomposes text
backend/api/storyboard.py - Prompt API → LLM client: enhances prompts
backend/api/prompt.py - Assets API → SwarmUI client: generates images
backend/api/assets.py - Assets API → File storage: stores uploads
backend/api/assets.py - Project API → File storage: reads and writes
backend/api/project.py - LLM client → OpenAI-compatible LLM: calls
- SwarmUI client → SwarmUI: calls
- FastAPI server → Storyboard API: registers
backend/main.py - FastAPI server → Prompt API: registers
backend/main.py - FastAPI server → Assets API: registers
backend/main.py - FastAPI server → Project API: registers
backend/main.py - FastAPI server → Export API: registers
backend/main.py - FastAPI server → Settings API: registers
backend/main.py - FastAPI server → Layout templates: registers
backend/main.py - FastAPI server → Image archive: registers
backend/main.py - FastAPI server → Character API: registers
backend/main.py - FastAPI server → Character templates: registers
backend/main.py - Assets API → Runtime configuration: uses settings
backend/api/assets.py - Character templates → SwarmUI client: uses
backend/api/character_templates.py - LLM client → Runtime configuration: loads settings
backend/core/openai_client.py - SwarmUI client → Runtime configuration: loads settings
backend/core/swarmui_client.py - File storage → Runtime configuration: uses paths
backend/storage/manager.py