AI-powered engineering reports for leadership. Generate comprehensive summaries of merged pull requests across your GitHub organization using Claude AI.
- Organization-wide PR Analysis: Fetch merged PRs from multiple repositories in a GitHub organization
- Date Range Filtering: Select specific time periods for your reports
- AI-Powered Summaries: Claude generates executive summaries categorizing changes by type
- Streaming Responses: Watch the AI summary generate in real-time
- Export Options: Download reports as Markdown or copy to clipboard
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- GitHub API: @octokit/rest
- AI: Anthropic Claude API
- Node.js 18+
- GitHub Personal Access Token with
repoandread:orgscopes - Anthropic API Key
- Clone the repository:
git clone https://github.com/lucasbrunialti/github-ai-stats.git
cd github-ai-stats- Install dependencies:
npm install- Create environment file:
cp .env.example .env.local- Configure your environment variables in
.env.local:
GITHUB_TOKEN=ghp_your_github_token
ANTHROPIC_API_KEY=sk-ant-your_anthropic_key- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Enter a GitHub organization or username
- Select the repositories you want to analyze
- Choose the date range for merged PRs
- Click "Fetch Pull Requests" to retrieve the data
- Review the list of PRs found
- Click "Generate AI Summary" to create the report
- Download or copy the generated report
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/orgs/[org]/repos |
List repositories for an organization |
POST |
/api/prs |
Fetch merged PRs for selected repositories |
POST |
/api/summary |
Generate AI summary of PRs |
src/
├── app/
│ ├── api/
│ │ ├── orgs/[org]/repos/ # Organization repos endpoint
│ │ ├── prs/ # Pull requests endpoint
│ │ └── summary/ # AI summary endpoint
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx # Main application page
├── components/
│ ├── DateRangePicker.tsx
│ ├── LoadingState.tsx
│ ├── OrgInput.tsx
│ ├── PRList.tsx
│ ├── RepoSelector.tsx
│ └── SummaryReport.tsx
├── lib/
│ └── utils.ts
├── services/
│ ├── claude.ts # Claude AI integration
│ └── github.ts # GitHub API integration
└── types/
└── index.ts
MIT