How steph-vie/prompt_manager works
Prompt Manager is a Flask application for organizing image-generation prompts and their source images. Users browse, search, filter, create, edit, and delete prompts; uploads are parsed for generation metadata and associated with categories and tags. The application also provides category management, statistics, JSON backup and restore, and image/hash maintenance. The main request and startup flows are visible in the excerpts; template behavior and some route details are only documented or referenced, so those links are limited to the available evidence.
Main entry points: prompt_routes.py Prompt routes · app.py Flask app · maintenance.py Image conversion and hashes · models.py Prompt and category models
Components 16
Web application
- Flask app
app.py - Prompt routes
routes/prompt_routes.py - Web templates
templates - App configuration
config.py
Prompt domain
- Prompt management
routes/prompt_routes.py - Category management
routes/prompt_routes.py - Browse and statistics
routes/prompt_routes.py - Image metadata extraction
utils.py
Data operations
- Prompt and category models
models.py - SQLite database
- JSON backup and restore
backup.py
Image maintenance
- Uploaded images
config.py - Image conversion and hashes
maintenance.py - Image and hash utilities
utils.py
Other components
- Web user
- CLI operator
Connections 18
- Web user → Prompt routes: uses
README.md - Prompt routes → Web templates: renders
routes/prompt_routes.py - Flask app → App configuration: loads
app.py - Flask app → Prompt routes: registers
app.py - Prompt routes → Prompt management: handles
routes/prompt_routes.py - Prompt routes → Category management: manages
routes/prompt_routes.py - Prompt routes → Browse and statistics: filters
routes/prompt_routes.py - Prompt routes → Image metadata extraction: extracts
routes/prompt_routes.py - Prompt routes → Prompt and category models: queries and saves
routes/prompt_routes.py - Prompt and category models → SQLite database: persists
- Prompt routes → Uploaded images: stores uploads
- Flask app → JSON backup and restore: registers commands
app.py - CLI operator → Flask app: runs commands
README.md - JSON backup and restore → Prompt and category models: reads and restores
backup.py - Flask app → Image conversion and hashes: runs at startup
app.py - Image conversion and hashes → Prompt and category models: updates records
maintenance.py - Image conversion and hashes → Image and hash utilities: converts and hashes
maintenance.py - Image conversion and hashes → Uploaded images: processes files
maintenance.py