irnews: A Daily Newspaper Generated from My GitHub Activity
I have a lot of side projects spread across GitHub, YouTube and a podcast, and I rarely have a clear picture of what actually happened in them on a given day. Commit logs are accurate but unpleasant to read. Dashboards show numbers without a story. I wanted something I would actually look at each morning, so I built The iR News (repo name irnews): a daily newspaper of everything happening across my repositories and media, laid out like a broadsheet with real page-turning.
Why I built it
The problem was attention, not data. The data already exists in the GitHub API. What was missing was a format that makes me want to read it. A newspaper is a good fit because it has a natural rhythm: one edition per day, a front page, sections, an archive. It also gives me a reason to add small things around the news, such as a lesson or a puzzle, so the paper is worth opening even on a quiet day.
What it does
Each edition has four pages:
- The front page.
- Development (A2).
- Screen & Sound, with Markets (A3).
- The Archive & Almanac (A4).
Headlines are written from commit messages, and the numbers come from the GitHub API. Like a morning paper, the edition dated D reports on D−1, so the 27 October paper covers 26 October.
Learn Something New Today
Every morning the paper picks a technology that one of my repositories actually uses, such as LoRA, GGUF, Jetpack Compose or RAG. It explains what it is, how it works and why it matters, then shows real lines of code from that repo with a link to them on GitHub. Topics rotate so each one runs once before any repeats, and the example repo rotates too. Tying the lesson to my own code keeps it concrete.
This Day in Tech History
A front-page box, with the full feature on A2. The daily job fetches Wikipedia's "On this day" feed for the paper's date and keeps only technology events and births: launches, inventions, first flights, companies and computer scientists. It shows the lead event with its picture, how many years ago each one happened, and links to Wikipedia. No API key is needed.
No empty columns
Real news days vary, so a layout that depends on content will have gaps. Any space the news leaves is filled with more videos and podcast episodes from the catalogue, a portfolio directory, past headlines, a sudoku, a repo-name jumble, git tips and a word of the day. These picks are seeded by date, so an edition always looks the same when you reopen it.
Reading it
- Turn pages by dragging a corner, using the buttons, or pressing the left and right arrow keys. Shift plus the arrows moves between editions.
- Every edition is kept. You can pick any date from the toolbar or the Archive page, and links look like
/#2026-10-26, with/3added to open on page 3. - Videos play inline and podcast episodes have an audio player.
- Download PDF saves the whole edition for offline reading, with headlines and videos still clickable.
- Read opens the pages full size and scrollable, which suits phones.
How it works
The stack is plain JavaScript, HTML and CSS. The viewer is static with no build step, and a generator script produces the data. The layout is:
scripts/generate.mjswrites one JSON file per day tosite/editions/<date>.json, plus an archive list (index.json) and a growing video and podcast catalogue (media.json). It also caches repo cards and podcast art insite/media/, and keepsdata/learn-index.json, which records which technologies each repo uses and is refreshed when a repo changes.scripts/learn-topics.mjsis the lesson library, with one entry per technology.scripts/history.mjsbuilds This Day in Tech History from Wikipedia.site/index.html,app.jsandstyles.cssform the static viewer.
A GitHub Actions workflow prints the paper every day at 05:00 IST. It commits the new edition to the repository, and Vercel redeploys on the push. GitHub can start scheduled runs a few minutes late, and if a morning is missed, a manual run with a date fills it in.
Configuration
Behaviour is controlled by a config.json. The owner key sets whose repositories are reported, and timezone (set to Asia/Kolkata) defines day boundaries and printed times. includePrivate is false by default so private repo activity is never published; turning it on also requires a REPOS_TOKEN secret. excludeRepos leaves repos out. automatedPatterns marks commit messages as bot traffic, which go to a column called "The Wire" instead of getting headlines. learnPinned lets me choose the lesson for a given day, and youtubeChannels and podcastRss define the media sources.
Live readers
A badge in the bottom-right corner shows how many people have the paper open right now and how many different readers visited today in India time. Each open, visible tab checks in with a small API route (api/live.js) every 15 seconds. A reader who closes the tab or switches away drops off at once, or within 45 seconds if the browser cannot say goodbye. The count lives in a free Upstash Redis database, and until it is connected the badge stays hidden.
Running it locally
npm run generatebuilds today's edition.node scripts/generate.mjs --date 2026-10-26builds a specific date.npm run backfillbuilds today plus the previous 13 days.npm run serveserves the site on localhost:8787.
The generator uses GITHUB_TOKEN if set, and otherwise falls back to gh auth token.
What I learned
- Commit the output. Because the generator writes JSON files into the repo, every edition is versioned, the archive comes for free, and the host only needs to serve static files. A database was not needed for the content itself.
- Seed randomness by date. Using a date-seeded shuffle for filler content means the same edition always renders the same way. That makes regeneration and old archive links predictable.
- Rotate instead of randomising. Running each lesson topic once before any repeat avoids the feeling of seeing the same item twice in a week, which a plain random pick would not guarantee.
- Default to safe publishing. Setting private activity off by default, and requiring an extra secret to change it, makes an accidental leak much harder.
- Design for empty days. Planning fallback content up front kept the layout from looking broken when little happened.
Try it
The paper is live at https://news.iramesh.com. Open the latest edition, turn a page by dragging a corner, or pick an older date from the toolbar.
Conclusion
The iR News is a small static site with a daily generator behind it, but the format changed how I look at my own work. If you have activity data that you never read, consider giving it a fixed daily shape, committing the output, and letting a scheduled job do the rest. Questions or feedback are welcome at hello@iramesh.com.
Live: https://news.iramesh.com