How krausefx/fxlifesheet works
Main Components
a) Data Collection Layer:
• Telegram Bot (worker.ts/worker.js)
• Manual Input System
• Various Data Importers (ruby_importers/)
• Apple Health
• RescueTime
• Spotify
• Swarm
• Weather
• etc.
b) Data Storage Layer:
• PostgreSQL Database
• Database Schema (from db/create_tables.sql)
c) Configuration Layer:
• lifesheet.json (question configurations)
• Environment Variables
• Config Management (classes/config.ts)
d) Visualization Layer:
• Web Frontend (visual_playground/)
• Data Processing APIs
• Graph Generation Systems
[User Interaction Layer]
• Telegram Bot ────┐
• Manual Input ────┤
• Data Importers ──┘
• [Data Processing Layer]
• [PostgreSQL Database]
• [Visualization Layer]
• [Web Frontend (howisFelix.today)]
Key Elements to Highlight
a) Data Flow:
• How data moves from input sources to storage
• How data is processed for visualization
• Scheduled tasks and automation points
b) Integration Points:
• External APIs (Telegram, weather services, etc.)
• Data import mechanisms
• Database connections
c) Component Relationships:
• Blue: User interaction components
• Green: Data processing components
• Yellow: Storage components
• Purple: Visualization components
Implementation Details
Use these symbols and conventions:
• Rectangles: Main components
• Double lines: API boundaries
• Clouds: External services