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

code-report

v1.1.0

Published

Interactive developer statistics report generator - analyze git commits and code changes

Readme

code-report

Interactive developer statistics report generator - analyze git commits and code changes with Excel export.

Features

  • 📊 Interactive CLI - Easy-to-use prompts for all parameters
  • 📈 Git Statistics - Analyzes commits, lines added/deleted per author
  • 📅 Date Range - Flexible date selection with sensible defaults
  • 📁 Branch Support - Works with any git branch
  • 🎯 Author Filtering - View stats for specific authors or all committers
  • 📋 Excel Export - Professional Excel reports with formatting
  • Fast - Leverages native git commands for performance

Installation

npm install -g code-report

Usage

Simply run the command:

code-report

Interactive Prompts

  1. Select branch (default: current branch)

    • Press Enter to use current branch
    • Or enter a different branch name
  2. Start date (default: 1st of current month)

    • Format: YYYY-MM-DD
    • Press Enter to use default
  3. End date (default: last day of current month)

    • Format: YYYY-MM-DD
    • Press Enter to use default
  4. Authors (default: all committers)

  5. Save as Excel? (default: yes)

    • Type yes or y to save
    • File saves to ~/Downloads/

Example Output

╔════════════════════════════════════════════════╗
║   Dev Statistics Report Generator              ║
╚════════════════════════════════════════════════╝

Select branch (default: dev):
Start date YYYY-MM-DD (default: 2026-02-01):
End date YYYY-MM-DD (default: 2026-02-28):
Authors - space-separated emails (leave empty for all):

Git Statistics Report
Branch: dev | Period: 2026-02-01 to 2026-02-28
─────────────────────────────────────────────────────────────
Author                         |      Added |    Deleted |    Commits
─────────────────────────────────────────────────────────────
[email protected]           |       2450 |       1230 |         15
[email protected]         |       1890 |        950 |         12
─────────────────────────────────────────────────────────────

Save as Excel file? (yes/no) (default: yes):

✓ Report saved to: /Users/username/Downloads/code-report-dev-2026-02-01_to_2026-02-28.xlsx

Excel Report Features

  • 📑 Title and period information
  • 🎨 Color-coded header (blue background, white text)
  • 📌 Frozen header row for easy scrolling
  • 📏 Auto-sized columns
  • 🔲 Professional borders and alignment
  • 📊 Right-aligned numbers for better readability

Requirements

  • Node.js 18+
  • Git installed and available in PATH

Excluded Files & Directories

The tool always excludes these files/directories from statistics:

  • node_modules/ - Node.js dependencies
  • dist/ - Build output
  • package-lock.json - npm lock file
  • yarn.lock - Yarn lock file

Plus, any patterns defined in your project's .gitignore file are automatically excluded as well.

This ensures accurate developer statistics by ignoring build artifacts, lock files, and other ignored files defined in your project.

Options

Global Installation

npm install -g code-report
code-report

Local Development

npm install
npm run build
npm start

Development Mode (with TypeScript)

npm install
npm run dev

Output

  • Console output: Formatted table with all statistics
  • Excel file: Saved to ~/Downloads/code-report-{branch}-{startDate}_to_{endDate}.xlsx

License

MIT

Author

Salih Kesepara [email protected]

Support

For issues or feature requests, please open an issue on the repository.