How elsbrock/hetzner-radar works
Main Components
A. Frontend Layer:
• SvelteKit application (static site)
• Client-side DuckDB instance
• Components for visualization (LineChart, Radar, ServerPriceChart)
• Filter management system
• User interface elements
B. Backend Services:
• Cloudflare Workers:
• Email Queue Worker (for notifications)
• Rate Limiter Worker
• Authentication system
• Session management
• Alert system
C. Data Processing:
• Python-based data ingestion system
• Database management system
• Data update pipeline
D. External Services:
• Hetzner Auction API (data source)
• Cloudflare Pages (hosting)
• Email service (for alerts)
[External Data Source]
• ↓
[Data Processing Pipeline]
• ↓
[Static Assets & Database]
• ↓
[Frontend Application] ←→ [Cloudflare Workers]
• ↓
[End Users]
Key Interactions to Highlight
a. Data Flow:
• Hourly data fetching from Hetzner
• Database rebuild process
• Static asset deployment
• Client-side querying flow
b. User Interactions:
• Authentication flow
• Alert creation and notification path
• Filtering and analysis operations
Important Technical Details
• DuckDB client-side query system
• SvelteKit static site generation
• Cloudflare Workers architecture
• Python data processing pipeline
• Authentication and session management flow
Specific Implementation Notes
• The separation between static and dynamic components
• The role of Cloudflare Workers in handling dynamic operations
• The data update pipeline's automation
• The client-side database query system
• The alert system's architecture