How tirthpatell/fia-f1-docs-bot works
Component Relationships
• [FIA Website] → [Scraper] → [Document Processor] → [Storage]
• ↓
• [AI Summarization (Gemini)]
• ↓
• [Image Conversion Service] → [Imgur]
• ↓
• [Threads API Client]
Key Components Details
• Rectangles: Core services (Scraper, Processor, Storage)
• Clouds: External services (FIA Website, Threads API, Gemini API)
• Hexagons: Processing units (Image Conversion, AI Summarization)
Specific Elements
a) Core Services (from pkg directory):
• Scraper Service (pkg/scraper)
• Poster Service (pkg/poster)
• Storage Service (pkg/storage)
• Summary Service (pkg/summary)
• Configuration Management (pkg/config)
b) External Integrations:
• Imgur API
• Threads API
• Google Gemini API
• FIA Website
c) Configuration Elements:
• Environment Variables
• Docker Container Boundary
Technical Details
• Go version requirement (1.22+)
• Docker container specifications
• Environment variable dependencies
• Storage volume mappings
• The automated nature of the system
• Clear separation of concerns between components
• External service dependencies
• Data flow through the system
• Configuration requirements
• Connection types (API calls, file operations, etc.)
• Container boundaries
• Environment configurations
Keep the abstraction level focused on the system architecture while including enough detail to understand the complete flow from document scraping to final posting on Threads.