A project that automatically visualizes your GitHub repository traffic (views) and displays it in the README.
- Automatically collects and visualizes traffic data via GitHub Actions
- Uses Bun and Chart.js to generate traffic trend images
- Automatically updates README with the generated image
- Scheduled daily updates and commits at midnight (UTC)
-
Fork or clone this project to your repository
-
Generate a GitHub Personal Access Token (PAT) (
public_repo
scope ) and save it in Actions Secrets ( name :ACCESS_TOKEN
)traffic-viewer Settings
->Secrets and variables
->Actions
->New Repository Secret
traffic-viewer Settings
->Actions
->General
->Workflow permissions
->Read and write permissions
-
Specify a list of repositories to collect traffic data from workflow environment variables within
watch.txt
-
The workflow runs to generate traffic images and updates the README automatically
You can display the traffic view image anywhere by adding the following GitHub markdown code:
[](https://github.com/{username})
Replace `{username}` with your GitHub username.
- Bun - Fast JavaScript runtime
- Chart.js - Traffic data visualization
- GitHub Actions - Automation and deployment