GIT-NEWSPAPER(1)

NAME

git-newspaperGenerate a Victorian broadsheet newspaper from any git repository's history

SYNOPSIS

$npm install -g git-newspaper

INFO

90 stars
5 forks
0 views

DESCRIPTION

Generate a Victorian broadsheet newspaper from any git repository's history

README

git-newspaper

Generate a Victorian broadsheet newspaper from any git repository's commit history.

npx git-newspaper

preview

Opens newspaper.html in your browser, a fully typeset front page built from your actual commits, authors, deleted files, and code churn. No API keys. No LLM. Works offline.


Install

npm install -g git-newspaper

Or run without installing:

npx git-newspaper

Usage

# Run inside any git repo
git-newspaper

Point at a specific repo

git-newspaper --repo /path/to/repo

Scope to recent activity

git-newspaper --since "2 weeks ago" git-newspaper --since "2024-01-01"

Export as PNG instead of HTML

git-newspaper --format png

Save to a specific file

git-newspaper --output my-paper.html

Limit commits analysed (default: 500)

git-newspaper --limit 200

Don't open the browser automatically

git-newspaper --no-open

What's in the newspaper

Every section is generated from your actual git data, nothing is made up.

SectionSource
Front page headlineYour largest commit by lines changed
Lead articleCommit authors, file counts, date range
Meteorological ReportCommit sentiment and activity pattern
ObituariesFiles deleted in the period
Opinion columnYour most-modified file, writing about itself
Vital StatisticsCommit counts, top authors, churn rankings
Commit ActivityTimeline chart of activity over the period
ClassifiedsArchetype-specific notices based on your repo's patterns

Archetypes

The tool detects what kind of repository it's looking at and adjusts the layout, tone, and content accordingly:

ArchetypeTriggerEdition
Revert Crisis>12% of commits are revertsCrisis Edition
Solo MarathonOne author dominates >70% of commitsProfile Edition
Ghost TownFewer than 8 commitsQuiet Edition
Dependency Churn>35% of commits touch lock filesAdministrative Notice
Refactor Sweep>25% of commits are refactorsInfrastructure Report
Bugfix Crisis>35% of commits are fixesEmergency Edition
Feature Sprint>35% of commits are featuresLaunch Edition
Collaborative5+ authors with 40+ commitsCollaborative Edition
BalancedEverything elseMorning Edition

PNG export

Requires Playwright (not installed by default):

npm install -D playwright
npx playwright install chromium
git-newspaper --format png

How it works

  • Parses git log --stat locally via simple-git, no GitHub API, no network requests
  • Detects a repository archetype from commit patterns
  • Selects content from archetype-specific template libraries using a seeded RNG (same repo always produces the same paper)
  • Renders a self-contained HTML file with all fonts and styles inline

Requirements

  • Node.js 18 or later
  • A git repository with at least one commit

License

MIT

SEE ALSO

clihub4/25/2026GIT-NEWSPAPER(1)