73
GitHub Profile Analyzer is a serverless web app (Cloudflare Worker) that provides deep insights into any GitHub user's activity, achievements, and contribution patterns. It exposes a set of robust API endpoints for badge detection, contribution heatmaps, rate-limit aggregation, and AI-powered analysis, all in a single deployable file (`worker.js`).
Important Highlights
Local Storage Caching: All API responses are cached in the browser's local storage for 1 hour, minimizing redundant requests and improving performance for repeat visits.
Repository Limit: Only the first 100 repositories (sorted by GitHub's default order) are processed for contribution and badge analysis, ensuring fast response times.
Fork Filtering: For forked repositories, only those in which the user has made at least one commit are included in the analysis. This ensures the stats and graphs reflect the user's actual contributions, not just forks with no activity.
Permanent Page URLs: Each analyzed profile can be accessed via a unique, shareable URL, allowing you to revisit or share the analysis page at any time.
Download & Print to PDF: The analysis page can be downloaded or saved as a PDF (using your browser's "Print to PDF" feature) for offline viewing or sharing.
Features (Detailed)
1. GitHub API Rate-Limit Aggregation
Rotates through multiple GitHub API tokens to maximize available requests.
Aggregates and exposes the current rate-limit status for all tokens via a single endpoint.
Ensures high reliability for heavy/automated usage.
2. Contribution Calendar SVG Heatmap
Fetches a user's public contribution data using the GitHub GraphQL API.
Generates a responsive SVG heatmap, visually representing daily contributions with intensity-based coloring.
Output is suitable for direct embedding in dashboards or web UIs.
3. Achievement Badge Detection
Maintains a complete, up-to-date list of all official GitHub achievement badges and their asset URLs.
Uses efficient HTTP HEAD requests to check which badges a user has unlocked (no scraping or login required).
Returns badge status as JSON for easy integration.
4. CORS & Security
All endpoints are CORS-protected, allowing only requests from a configurable frontend origin.
Supports secure deployment and integration with any frontend or automation tool.
5. Built-in Caching
Caches API responses for improved performance and reduced API usage.
Smart cache invalidation ensures up-to-date data without excessive requests.
6. AI-Powered Analysis (Cerebras Llama 4)
Integrates with Cerebras Llama 4 LLM for advanced, contextual analysis of user contribution patterns.
Provides natural language summaries and insights about a user's GitHub activity.
7. Unified API
All features are accessible via a single Cloudflare Worker (`worker.js`).
Simple, RESTful endpoints for frontend, automation, or data analysis use.
This tool offers a comprehensive analysis of GitHub profiles, providing users with valuable insights into their coding activities and achievements. By using advanced AI techniques and efficient data processing, it ensures accurate and meaningful results.
Built with