How thibmaek/instagramtomealie works
Main Components
a. Client Layer:
• Web Browser Interface (represented by templates/index.html)
• HTTP Endpoint for direct API calls
b. Application Layer:
• Flask Web Server (main.py)
• Instagram Integration Service (helpers/instadownloader.py)
• Mealie API Integration Service (helpers/mealie_api.py)
• Instagram Authentication Service (helpers/instaloader_login_helper.py)
c. External Services:
• Instagram Platform
• Mealie Server (with OpenAI/Ollama integration)
• Docker Container Environment
┌─ Client Tier ─────────────────────┐
• Web Browser │
• HTTP API Endpoint │
• ┬──────────────────┘
• ↓
┌─ Application Tier ────────────────┐
• ┌─ Flask Web Server ────────────┐ │
• Route Handlers │ │
• Request Processing │ │
• ┘ │
• ┌─ Service Layer ──────────────┐ │
• Instagram Downloader │ │
• Mealie API Client │ │
• Authentication Handler │ │
• ┘ │
• ┬────────────┬─────────┘
• ↓ ↓
┌─ External Services ───────────────┐
• Instagram Platform │
• Mealie Server │
• OpenAI/Ollama Integration │
• ┘
Key Flows to Highlight
a. Authentication Flow:
• Instagram session file or credentials → Authentication Handler
• Mealie API key validation
b. Main Application Flow:
Important Details
• Docker container boundary
• Environment variable configuration points
• Volume mount for Instagram session file
• Port mappings (9001)
• Dependencies between services