$ show yamadashy/tech-blog-rss-feed
This repository implements an RSS feed aggregator for corporate tech blogs. It fetches RSS/Atom feeds from a predefined list of company technology blogs, processes and enriches the feed items with metadata (Open Graph data, Hatena bookmark counts), generates aggregated feeds in Atom/RSS/JSON formats, and builds a static website using Eleventy to display the aggregated content. The site features a homepage with recent articles grouped by date, a 'hot' page showing popular articles based on Hatena bookmarks, individual blog pages, and a blog listing page. Updates are automated via GitHub Actions that run hourly on weekdays and every two hours on weekends.
The LLM identified 2 files worth highlighting for reuse:
Contains reusable utility functions including exponentialBackoff (implements robust retry mechanism with exponential backoff and jitter) and fetchHatenaCountMap (handles batching requests to Hatena bookmark API with proper chunking and concurrency control). These functions are isolated, have minimal dependencies, and solve common problems in a reusable way.
A self-contained utility for recursively deleting files older than a specified threshold from directories. It handles edge cases like non-existent directories, returns detailed statistics (files deleted, bytes freed), and has no external dependencies beyond Node.js fs and path modules. This component could be easily extracted and used in other projects requiring cache cleanup functionality.