How pradeepdev07/ideogram-bbox-editor works
Ideogram BBox Editor is a browser-based visual editor for constructing Ideogram 4 prompts. The main workflow is to draw and describe canvas regions, set global image style, then serialize and copy or export the resulting JSON. Users can also start from templates or generate/deconstruct compositions with optional AI. The graph reflects documented capabilities and the sampled imports/calls; unsampled component internals are represented at their exact paths, so their internal connections are omitted where not evidenced.
Main entry points: App.jsx Application shell · store.jsx Editor state · ai.js AI backend · VisionDeconstructModal.jsx Image deconstruction
Components 26
Prompt editing
- Application shell
src/App.jsx - Toolbar
src/components/Toolbar.jsx - Drawing tools
src/components/Toolbox.jsx - BBox canvas
src/components/Canvas.jsx - Element properties
src/components/PropertiesPanel.jsx - Global style
src/components/GlobalPanel.jsx - Right panel
src/components/RightPanel.jsx - Color palettes
src/components/ColorPalette.jsx - JSON panel
src/components/JsonPanel.jsx - Prompt import
src/components/ImportModal.jsx
AI workflows
- Prompt orchestration
src/useMagicPrompt.js - Text generation
src/components/GenerateView.jsx - Image deconstruction
src/components/VisionDeconstructModal.jsx - AI settings
src/components/SettingsModal.jsx - AI backend
src/ai.js
Templates and palettes
- Template gallery
src/components/TemplateGallery.jsx - Template library
src/components/LibraryView.jsx - Template storage
src/utils/templateStorage.js - Template thumbnail
src/components/TemplateThumbnail.jsx - Palette presets
src/components/PalettePresetModal.jsx - Color utilities
src/utils/colorUtils.js - Sample inspirations
src/utils/sampleInspirations.js
State and serialization
- Editor state
src/store.jsx
Other components
- User
- Ollama
- Cloud providers
Connections 40
- User → Application shell: edits prompts
README.md - Application shell → Editor state: provides state
src/App.jsx - Application shell → Toolbar: renders
src/App.jsx - Application shell → Drawing tools: renders
src/App.jsx - Application shell → BBox canvas: renders
src/App.jsx - Application shell → Right panel: renders
src/App.jsx - Application shell → JSON panel: renders
src/App.jsx - Application shell → Template gallery: opens
src/App.jsx - Application shell → Template library: switches to
src/App.jsx - Application shell → Text generation: switches to
src/App.jsx - Application shell → Image deconstruction: opens
src/App.jsx - Application shell → AI settings: opens
src/App.jsx - Toolbar → Editor state: dispatches edits
src/components/Toolbar.jsx - Drawing tools → Editor state: dispatches edits
src/components/Toolbox.jsx - BBox canvas → Editor state: dispatches boxes
src/components/Canvas.jsx - Right panel → Element properties: renders
src/components/RightPanel.jsx - Right panel → Global style: renders
src/components/RightPanel.jsx - Element properties → Editor state: updates elements
src/components/PropertiesPanel.jsx - Global style → Editor state: updates style
src/components/GlobalPanel.jsx - Element properties → Color palettes: uses
src/components/PropertiesPanel.jsx - Global style → Color palettes: uses
src/components/GlobalPanel.jsx - JSON panel → Editor state: serializes prompt
README.md - JSON panel → Prompt import: opens
src/components/JsonPanel.jsx - Prompt import → Editor state: loads prompt
src/components/ImportModal.jsx - Application shell → Prompt orchestration: runs magic
src/App.jsx - Prompt orchestration → AI backend: requests generation
src/useMagicPrompt.js - Text generation → AI backend: requests generation
src/components/GenerateView.jsx - Image deconstruction → AI backend: requests analysis
src/components/VisionDeconstructModal.jsx - Image deconstruction → Color utilities: extracts palette
src/components/VisionDeconstructModal.jsx - Image deconstruction → Sample inspirations: uses examples
src/components/VisionDeconstructModal.jsx - Image deconstruction → Editor state: loads composition
src/components/VisionDeconstructModal.jsx - AI settings → AI backend: configures backend
src/components/SettingsModal.jsx - AI backend → Ollama: calls local API
README.md - AI backend → Cloud providers: calls provider API
README.md - Template gallery → Editor state: loads layout
src/components/TemplateGallery.jsx - Template library → Editor state: loads template
src/components/LibraryView.jsx - Template library → Template storage: manages templates
src/components/LibraryView.jsx - Template library → Template thumbnail: renders previews
src/components/LibraryView.jsx - Color palettes → Palette presets: opens presets
src/components/ColorPalette.jsx - Palette presets → Color utilities: uses palette data
src/components/PalettePresetModal.jsx