How vitoplantamura/hackernewsremovals works
Data Collection Layer
• HN API Client Component
• Connection to official HN API
• 1-minute polling interval
• 90 Top Stories fetch operation
• Front Page (top 30) monitoring
Processing Layer
• Story Comparison Engine
• Input from consecutive API calls
• Logic for detecting removed stories
• Filter for second-chance pool exclusions
• Story State Tracker
• Track story positions and metadata
• Store previous minute's state
Logging Layer
• Markdown File Generator
• Organization by date
• Story metadata formatting
• Archive management system
Storage Layer
• Archive System
• Monthly markdown files structure
• Chronological organization
Design Guidelines:
Timing indicators
• 1-minute polling cycle
• Archive rotation schedule
Data flow markers
• → for real-time data flow
• ⇢ for archival operations
Separation between active monitoring and historical storage
• Component types
• Timing indicators