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

export-my-github

v1.0.4

Published

Export your data from Github - Easy as cake!

Readme

export-my-github

A CLI tool for exporting your data on Github to your local hard drive.

Motivation

According to GDPR Art. 20 a company has to give you access to the personal data it has stored about you in a structured, commonly used and machine-readable format where the processing is carried out by automated means. In my opinion, Github fails at this miserably! You have to curl your way to their apis to get all the data you want. They call it "Data Portability tools" - what a cheek!

Once again, it seems we have to clear out the :unicorn: :hankey:. Let's cry power!

You might ask:

But why not file a case against Github and wait until they have fixed this?

Because we need this - now!

Install

$ npm i export-my-github -g

Or, if you just want to use it once:

$ npx export-my-github

Prerequisites

  1. Node >= 8
  2. Create a personal access token with read access for your Github account on the following entities:
  • [x] repo
    • [x] repo:status
    • [x] repo_deployment
    • [x] public_repo
    • [x] repo:invite
  • [x] user
    • [x] read:user
    • [x] user:email
    • [x] user:follow

Usage

$ export-my-github

or

$ emg

After execution you will first be asked for your username and personal access token (PAT) (see Prerequisites).

:warning: Do not give your PAT to a software or website you don't trust! Otherwise it gains the right to do anything you have granted the PAT to do. This tool is open source, so you can always check the trustworthiness of this tool for yourself.

After your username and PAT have been validated, you can choose which data you want to export. Currently the following data can be exported:

  • [x] Your repositories
  • [x] The repositories you are starring
  • [x] The people, who you follow
  • [x] The people, who are following you

Your exported data will be archived in a gzip folder named myExportedGithub.tar.gz in the same directory where you have executed export-my-github.

License

GNU GPLv3