How aichouramine/filewizardai works
FileWizardAI organizes and renames files using content summaries, caches summaries to avoid repeat API work, and also searches files from a text query. The main workflow runs from the Angular UI through FastAPI into directory processing, cached or new AI summaries, and AI-proposed paths; users can then apply the proposed moves. Search is a separate capability that reuses summaries. The graph includes UI, API, processing, cache, and AI layers. Evidence is limited to the supplied excerpts and README; unsampled component behavior is not inferred.
Main entry points: run.py Workflow orchestrator · server.py FastAPI routes · app.component.ts Main interface · search-files.component.ts Search interface
Components 15
Angular interface
- Main interface
frontend/src/app/app.component.ts - Folder tree
frontend/src/app/components/folder-tree.component.ts - Search interface
frontend/src/app/components/search-files.component.ts - HTTP client
frontend/src/app/data.service.ts - Angular module
frontend/src/app/app.module.ts
HTTP API
- FastAPI routes
backend/app/server.py
File processing
- Workflow orchestrator
backend/app/run.py - Directory reader
backend/app/run.py - Summary cache
backend/app/database.py - File moves
backend/app/run.py
AI capabilities
- Content summarization
backend/app/settings.py - Path generation
backend/app/settings.py - Query matching
backend/app/settings.py
Other components
- User
- Text and image model APIs
Connections 22
- User → Main interface: uses
README.md - Main interface → HTTP client: requests files
frontend/src/app/app.component.ts - Search interface → HTTP client: requests matches
frontend/src/app/components/search-files.component.ts - Search interface → Folder tree: renders results
frontend/src/app/components/search-files.component.ts - Main interface → Folder tree: renders tree
frontend/src/app/app.component.ts - Angular module → Main interface: declares
frontend/src/app/app.module.ts - Angular module → Folder tree: declares
frontend/src/app/app.module.ts - Angular module → Search interface: declares
frontend/src/app/app.module.ts - HTTP client → FastAPI routes: sends HTTP requests
frontend/src/app/data.service.ts - FastAPI routes → Workflow orchestrator: invokes workflow
backend/app/server.py - Workflow orchestrator → Directory reader: loads directory
backend/app/run.py - Workflow orchestrator → Summary cache: reads and writes summaries
backend/app/run.py - Workflow orchestrator → Content summarization: requests summaries
backend/app/run.py - Content summarization → Text and image model APIs: calls model APIs
backend/app/settings.py - Workflow orchestrator → Path generation: requests proposed paths
backend/app/run.py - Path generation → Text and image model APIs: calls text model
backend/app/settings.py - FastAPI routes → File moves: updates files
backend/app/server.py - File moves → Summary cache: updates cached path
backend/app/run.py - FastAPI routes → Workflow orchestrator: requests search
backend/app/server.py - Workflow orchestrator → Query matching: requests query matches
backend/app/run.py - Query matching → Text and image model APIs: calls text model
backend/app/settings.py - User → Search interface: enters query
README.md