This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
GitHub Contributor Analytics Generator for tracking, analyzing, and visualizing GitHub repository contributions. Features include:
- Daily, weekly, and monthly reports on repository activity
- Contributor profile pages with metrics and visualizations
- Activity tracking for PRs, issues, and commits
- Scoring system for ranking contributors
- AI-powered activity summaries
- Frontend: Next.js 15, React, TypeScript, Tailwind CSS, shadcn/ui
- Data Processing: TypeScript pipeline with SQLite/Drizzle ORM
- Legacy Scripts: Python for data processing and AI summaries
- Automation: GitHub Actions for scheduled reports
bun run dev
- Start development serverbun run build
- Build production sitebun run check
- Run linter and type checksbun run lint
- Run ESLint onlybunx tsc --noEmit
- Run TypeScript checksbun run serve
- Serve built sitebun run db:generate
- Generate database schemabun run db:migrate
- Run database migrationsbun run db:studio
- Launch Drizzle studiobun run pipeline
- Run data processing pipelinebun run pipeline ingest
- Ingest GitHub databun run pipeline process
- Process and analyze data
- Next.js 15 app router with TypeScript and Tailwind CSS
- Import order: React, libraries, local components (@/components), utils
- Component names: PascalCase, file names: kebab-case
- Use TypeScript for all files with strict typing
- Use React hooks and functional components
- Strict error handling with TypeScript's strict mode
- Use shadcn/ui component library and Lucide icons
- SQLite database with Drizzle ORM
- Follow modern Next.js patterns with server components where appropriate
config/
- Configuration files including pipeline settingssrc/lib/data/
- Database schema and data processing logicsrc/lib/
- Utility and helper functionssrc/components/
- React components for the web interfacecli/
- TypeScript pipeline CLI codedrizzle/
- Database migration files