npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

git-newspaper

v0.1.1

Published

Generate a beautifully typeset newspaper front page from your git repository 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.

| Section | Source | |---|---| | Front page headline | Your largest commit by lines changed | | Lead article | Commit authors, file counts, date range | | Meteorological Report | Commit sentiment and activity pattern | | Obituaries | Files deleted in the period | | Opinion column | Your most-modified file, writing about itself | | Vital Statistics | Commit counts, top authors, churn rankings | | Commit Activity | Timeline chart of activity over the period | | Classifieds | Archetype-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:

| Archetype | Trigger | Edition | |---|---|---| | Revert Crisis | >12% of commits are reverts | Crisis Edition | | Solo Marathon | One author dominates >70% of commits | Profile Edition | | Ghost Town | Fewer than 8 commits | Quiet Edition | | Dependency Churn | >35% of commits touch lock files | Administrative Notice | | Refactor Sweep | >25% of commits are refactors | Infrastructure Report | | Bugfix Crisis | >35% of commits are fixes | Emergency Edition | | Feature Sprint | >35% of commits are features | Launch Edition | | Collaborative | 5+ authors with 40+ commits | Collaborative Edition | | Balanced | Everything else | Morning 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