github-traffic-viewer

Langeage : English | 한국어

github-traffic-viewer

thumbnail

Introduction

A Chrome extension that leverages the GitHub API to fetch and display traffic statistics for repositories, focusing on providing users with valuable insights into views and unique visitors.

Since GitHub’s traffic data is only retained for 2 weeks, this extension prevents data loss by securely storing historical statistics. This allows users to analyze long-term trends and gain deeper insights into their repository’s performance.


Features


Important Notes

🚨 Uninstalling this extension will delete all stored data!


Install

You can download GitHub Traffic Viewer from the Chrome Web Store.


How To Use ?

Get New Traffic Data

  1. After installing the extension, click on the Get New Traffic Data menu.
  2. Enter your GitHub username, access token, and the repository name(s) you want to analyze, then click the Get Traffic Data button.
  3. Once the data is loaded, traffic statistics for the specified repository will be displayed.

Load Storage Traffic Data

  1. Click on the Load Stored Traffic Data menu.
  2. Select the repository you wish to view and click the Load Stored Traffic Data button.
  3. After loading, the saved traffic data for the selected repository will be displayed.

Delete Storage Traffic Data

  1. Click on the Delete Stored Traffic Data menu.
  2. Select the repository you want to delete and click the Delete Stored Traffic Data button.
  3. A confirmation message will appear once the data has been successfully deleted.

Store Traffic Data

  1. Click on the Save Traffic Data menu.
  2. Select the repository name and the file(.xlsx, .xls, .json, .txt).
  3. Once the upload is complete, a confirmation message will appear.

Saved File Data Structure

The structure of the file to be saved must match the downloaded traffic data structure.
(For .json and .txt files, whitespace and indentation do not need to match.)

The data structure is as follows:

JSON

[
  {
    "date": "2024-12-13",
    "unique_visitors": 29,
    "views": 30
  },
  {
    "date": "2024-12-14",
    "unique_visitors": 19,
    "views": 0
  }
]

EXCEL | date | views | unique_visitors | |————|——-|—————–| | 2024-12-13 | 29 | 30 | | 2024-12-14 | 0 | 19 |

TXT

{
   "date": "2024-12-13",
   "unique_visitors": 29,
   "views": 30
}

{
   "date": "2024-12-14",
   "unique_visitors": 19,
   "views": 0
}


How To Generate Access Token?

To use this extension, you need to generate a GitHub Personal Access Token. Follow these steps to create one:

  1. Log in to GitHub

    • Visit github.com and log in with your GitHub credentials.
  2. Navigate to Settings

    • Click on your profile picture in the upper-right corner and select Settings from the dropdown menu.
  3. Access Developer Settings

    • Scroll down the left-hand menu and click on Developer settings.
  4. Create a New Token

    • Under Personal access tokens, select Tokens (classic) and click the Generate new token button.
  5. Configure the Token

    • Provide a note to identify the token (e.g., “GitHub Traffic Viewer”).
    • Set the expiration date for your token, or choose No expiration for unlimited use (note: use this option with caution).
    • Under Select scopes, check the following permissions:
      • repo: Full control of private repositories (if you want to access private repos).
      • read:org: To read organization-level traffic stats (if applicable).
  6. Generate and Save the Token

    • Click Generate token.
    • Copy the generated token and keep it secure. You will not be able to see it again once you leave the page.

⚠️ Note: Keep your access token private and avoid sharing it with others. If your token is compromised, immediately revoke it via GitHub’s Developer Settings and create a new one.


privacy-policy

You can review the full privacy policy on the Privacy Policy page.