MergeStats is a GitHub Pull Request analytics tool that helps you track and visualize your PR statistics across repositories.
- View PR statistics for your repositories
- Filter by month and year
- See top repositories by PR count
- View merged vs. closed PR statistics
- Detailed PR list with status and timestamps
- Node.js (v14+)
- npm
- Clone the repository
git clone https://github.com/yourusername/MergeStats.git
cd MergeStats- Install backend dependencies
npm install- Create .env file in the root directory
touch .envCreate a GitHub personal access token (classic):
-
Go to GitHub → Settings → Developer settings
-
Click on Personal Access Tokens → Tokens (classic)
-
Click Generate new token (classic)
-
Add a name and expiration date
-
No scopes are required for public repo access
-
Click Generate token
-
Copy the token and add it to your .env file:
GITHUB_TOKEN=your_token_hereOpen a new terminal
cd mergestats-uiInstall frontend dependencies
npm installIn the root directory
npm startThe server will run on http://localhost:3000
In the mergestats-ui directory
npm run dev The frontend will run on http://localhost:5173 (or another port if 5173 is in use)
- Enter a GitHub username
- Select the year and month
- Click "Generate Statistics"
- View the PR statistics and visualizations
- Backend: Node.js with Express
- Frontend: React with TypeScript and Tailwind CSS
- Charts: Chart.js
- API: GitHub REST API


