A React-based dashboard for tracking GitHub Copilot adoption metrics for enterprises.
🔗 Live Demo: https://frankburmo.github.io/github-copilot-adoption-dashboard/
This application provides a clean, simple interface for viewing GitHub Copilot usage metrics via the GitHub API. Users can input their GitHub token and enterprise name to fetch and display adoption metrics.
- Token-based Authentication: Secure input for GitHub personal access tokens
- Enterprise Metrics: Fetch metrics for any GitHub enterprise
- Clean Dashboard: Simple, readable display of key metrics including:
- Total seats (estimated)
- Active users
- Engaged users
- Engagement rate
- Historical Visualization: Interactive line chart showing engagement trends over time
- Detailed Breakdown: Comprehensive table showing:
- Usage by programming language and editor
- Code suggestions and acceptance counts
- Acceptance rates percentage
- Active users per language/editor combination
The easiest way to use this dashboard is through the live demo at: https://frankburmo.github.io/github-copilot-adoption-dashboard/
-
Clone the repository:
git clone https://github.com/FrankBurmo/github-copilot-adoption-dashboard.git cd github-copilot-adoption-dashboard
-
Install dependencies:
npm install
-
Start the development server:
npm start
The application will open in your browser at
http://localhost:5173
.
To build the application for production:
npm run build
The built files will be in the dist
folder.
-
GitHub Token: Enter your GitHub personal access token. The token needs the following permissions:
copilot
scope for accessing Copilot metrics- Enterprise member access if the enterprise is private
-
Enterprise: Enter the GitHub enterprise name
-
Get Metrics: Click the "Get Metrics" button to fetch and display the live metrics
This application uses the GitHub Copilot Metrics API. You have to enable this setting in your admin panel for your enterprise:
Documentation:
- Endpoint:
https://api.github.com/enterprises/{enterprise}/copilot/metrics
- Documentation: https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28
- API Version: 2022-11-28
npm start
- Runs the app in development mode (same asnpm run dev
)npm run dev
- Runs the app in development mode with Vitenpm test
- Launches the test runner in watch modenpm run test:run
- Runs tests oncenpm run test:ui
- Launches the test UInpm run build
- Builds the app for productionnpm run preview
- Preview the production build locallynpm run lint
- Run ESLint to check code quality
This application is automatically deployed to GitHub Pages whenever changes are pushed to the main branch. The deployment is handled by GitHub Actions and the live version is available at:
https://frankburmo.github.io/github-copilot-adoption-dashboard/
The application is configured for GitHub Pages deployment with:
- Vite base path set to
/github-copilot-adoption-dashboard/
- GitHub Actions workflow that builds and deploys the app
- No server-side components required (client-side only)
- React 19 with TypeScript
- Vite for build tooling and development server
- Chart.js with react-chartjs-2 for data visualization
- CSS for styling
- GitHub REST API for data fetching
- Vitest for testing
- GitHub tokens are handled securely and never stored
- All API calls are made directly from the browser to GitHub
- No backend server required
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.