How gab1-flt/brainout works
BrainOut turns written or dictated thoughts into structured project notebooks. The user submits a brain dump; App coordinates AI structuring, selects the resulting project, and renders it in the five-tab workspace. The sidebar supports navigation and project management, while settings handle API keys and JSON backup. The README documents browser speech input, Gemini and heuristic generation, and localStorage persistence; several implementation excerpts are partial, so unsampled details are represented only where documented.
Main entry points: App.tsx App State Controller · aiService.ts AI Structuring Service · BrainDumpZone.tsx Brain Dump Zone · ProjectView.tsx Five-Tab Workspace
Components 13
Idea Capture
- Brain Dump Zone
src/components/BrainDumpZone.tsx
Notebook Application
- App State Controller
src/App.tsx - Project Sidebar
src/components/Sidebar.tsx - Five-Tab Workspace
src/components/ProjectView.tsx - Settings and Backup
src/components/SettingsModal.tsx
Idea Structuring
- AI Structuring Service
src/services/aiService.ts - Offline Heuristic Engine
src/services/aiService.ts
Models and Portability
- Project Idea Model
src/types/project.ts - Sample Projects
src/data/mockProjects.ts
Other components
- Notebook User
- Browser Speech API
- Google Gemini API
- Browser Local Storage
Connections 19
- Notebook User → Brain Dump Zone: enters idea
README.md - Browser Speech API → Brain Dump Zone: transcribes speech
README.md - Brain Dump Zone → App State Controller: submits text
src/App.tsx - App State Controller → Brain Dump Zone: renders capture
src/App.tsx - App State Controller → Project Sidebar: renders and supplies state
src/App.tsx - Project Sidebar → App State Controller: selects and manages projects
src/App.tsx - App State Controller → Five-Tab Workspace: renders active project
src/App.tsx - Five-Tab Workspace → App State Controller: updates project
src/App.tsx - App State Controller → Settings and Backup: renders and supplies data
src/App.tsx - Settings and Backup → App State Controller: saves key and imports
src/App.tsx - App State Controller → AI Structuring Service: requests structuring
src/App.tsx - AI Structuring Service → App State Controller: returns project
src/App.tsx - AI Structuring Service → Google Gemini API: posts generation request
README.md - AI Structuring Service → Offline Heuristic Engine: falls back offline
README.md - Offline Heuristic Engine → App State Controller: returns project
README.md - Five-Tab Workspace → AI Structuring Service: builds sketch data
src/components/ProjectView.tsx - App State Controller → Browser Local Storage: loads and persists state
README.md - App State Controller → Sample Projects: loads initial projects
src/App.tsx - Settings and Backup → Notebook User: exports JSON backup
README.md