Project: HN: Today by Points
What is it?
The HN front page mixes points with age, so a great story from this morning can already be gone by the afternoon. I wanted a simple "what was big today" view instead, so this extension pulls everything from the last day and sorts it by points.
The code is on GitHub: github.com/pnettto/HN-rank.
The front page with the last 24h ranked by points
Technical details
Data
- HN Search API (Algolia) for the last 24h of stories
- Fetched in the background script, since HN's security policy blocks it in the page
- Results cached for 5 minutes
Stack
- Chrome extension, Manifest V3
- Vanilla JavaScript, ~100 lines