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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ghextractor

v0.9.9

Published

Universal CLI tool to extract GitHub data (PRs, commits, issues, releases) into Markdown/JSON

Readme

GitHub Extractor CLI (ghextractor)

npm version npm downloads

A cross-platform CLI and GUI tool to extract GitHub data (PRs, commits, issues, releases) into Markdown/JSON/PDF formats.

What is it?

GitHub Extractor is a comprehensive tool that extracts and analyzes GitHub repository data including:

  • Data Extraction: Pull Requests, Issues, Commits, Branches, and Release notes
  • Multiple Interfaces:
    • CLI (Command Line Interface) for automation and scripting
    • GUI (Graphical User Interface) with Electron for interactive use
  • Export Formats: Markdown, JSON, and PDF (with charts and visualizations)
  • Analytics: Automatic report generation with metrics, trends, and recommendations
  • Batch Processing: Export multiple repositories simultaneously
  • Smart Mode: Incremental exports fetch only new/updated items (80-95% faster)

Why use it?

  • Two Interfaces: Choose between CLI for automation or GUI for interactive use
  • Comprehensive Exports: Markdown, JSON, and PDF with charts and visualizations
  • Intelligence: Automatic analytics generation with trends, predictions, and insights
  • Efficiency: Incremental exports (80-95% faster) - only fetch new/updated items
  • Scalability: Batch process dozens of repositories in a single command
  • Universal Access: Works with your repositories, collaborators, or any public repository
  • Consistency: Reports adapt to export scope - complete for backups, accurate for filtered exports

How to use it?

Install and run:

# Install GitHub CLI (if not already installed)
# Visit https://cli.github.com/ for installation instructions

# Install ghextractor
npm install -g ghextractor

# Authenticate with GitHub (if not already authenticated)
gh auth login

# Run the interactive tool
ghextractor

You'll see an interactive menu:

🚀 GitHub Extractor

Choose your interface:
  1) CLI - Command Line Interface (original)
  2) GUI - Graphical User Interface (with filters)
  q) Quit

Your choice (1/2/q):

Direct Access

Launch CLI directly:

ghextractor --cli
# or use any CLI arguments
ghextractor --help
ghextractor --version

Launch GUI directly:

ghextractor --gui

GUI Features

The GUI mode includes:

  • 📅 Date Filters: Last week, last month, custom range, or all time
  • 👤 User Filters: Filter by specific contributors
  • 📦 Multi-Export: Select multiple data types at once
  • 📊 Progress Tracking: Real-time export progress
  • 🎨 Modern UI: Beautiful, user-friendly interface

Example Use Case: Your PM asks "What did Daniel do last week?"

  1. Run ghextractor --gui
  2. Select repository
  3. Choose "Last Week" + "Daniel" from filters
  4. Export PRs, Commits, Issues
  5. Get instant report!

Development

# Clone and install dependencies
git clone https://github.com/LeSoviet/GithubCLIExtractor.git
cd GithubCLIExtractor
npm install

# Development scripts
npm run dev          # Run CLI in development mode
npm run dev:gui      # Run GUI in development mode (with hot-reload)
npm run build        # Build CLI for production
npm run build:gui    # Build GUI for production
npm run test         # Run tests
npm run test:coverage # Run tests with coverage

Status

Production Ready - All core features implemented and tested:

  • GitHub CLI integration and authentication
  • Complete data extraction (PRs, Issues, Commits, Branches, Releases)
  • Incremental exports (80-95% faster)
  • Multiple export formats (Markdown, JSON)
  • Batch processing for multiple repositories
  • Automatic analytics generation with offline mode
  • Auto update notifications
  • Cross-platform support

Latest (v0.9.3):

  • ✅ Full Electron GUI with dark/light theme support
  • ✅ Custom cross-platform titlebar with window controls
  • ✅ Theme-aware UI components (scrollbar, buttons, menus)
  • ✅ Enhanced export limits (PRs/Issues: 1000, Commits: 500)
  • ✅ Data completeness validation for consistent reports
  • ✅ PDF export with proper Unicode handling
  • ✅ Auto-build and launch - no manual setup needed
  • ✅ Verified on Windows, macOS, and Linux (Nobara/Fedora)
  • ✅ 206 tests passing with comprehensive coverage
  • ✅ Production-ready with full documentation

Planned Enhancements:

  • Performance benchmarking and optimization
  • Advanced security scanning integration
  • Custom report templates and theming
  • Real-time collaboration features

License

MIT © Daniel Khadour https://github.com/LeSoviet

Support