{"id":49395445,"url":"https://github.com/rahul-s-bhatt/ai-analysis-for-leetcode","last_synced_at":"2026-04-28T15:47:57.040Z","repository":{"id":276628770,"uuid":"929767723","full_name":"rahul-s-bhatt/ai-analysis-for-leetcode","owner":"rahul-s-bhatt","description":"The repository \"ai-analysis-for-leetcode\" is a project that utilizes AI to analyze LeetCode profile. It is primarily written in Python, with some HTML and Dockerfile components.","archived":false,"fork":false,"pushed_at":"2025-12-15T09:16:32.000Z","size":223,"stargazers_count":3,"open_issues_count":9,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-28T15:47:55.733Z","etag":null,"topics":["ai","docker","leetcode","ml","python","software-engineering"],"latest_commit_sha":null,"homepage":"https://ai-analysis-for-leetcode.onrender.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahul-s-bhatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T11:00:48.000Z","updated_at":"2025-08-21T12:36:19.000Z","dependencies_parsed_at":"2025-02-09T14:32:59.460Z","dependency_job_id":"175e581e-65c1-4078-89e3-35b6b7e6e33d","html_url":"https://github.com/rahul-s-bhatt/ai-analysis-for-leetcode","commit_stats":null,"previous_names":["rahul-s-bhatt/ai-analysis-for-leetcode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahul-s-bhatt/ai-analysis-for-leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-s-bhatt%2Fai-analysis-for-leetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-s-bhatt%2Fai-analysis-for-leetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-s-bhatt%2Fai-analysis-for-leetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-s-bhatt%2Fai-analysis-for-leetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahul-s-bhatt","download_url":"https://codeload.github.com/rahul-s-bhatt/ai-analysis-for-leetcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-s-bhatt%2Fai-analysis-for-leetcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32387923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","docker","leetcode","ml","python","software-engineering"],"created_at":"2026-04-28T15:47:56.345Z","updated_at":"2026-04-28T15:47:57.035Z","avatar_url":"https://github.com/rahul-s-bhatt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode Analysis System\n\nAn advanced analytics tool that provides deep insights into your LeetCode profile, helping you understand your coding patterns, track progress, and optimize your learning path.\n\n[![Security Scan](https://github.com/yourusername/ai-analysis-for-leetcode/actions/workflows/security.yml/badge.svg)](https://github.com/yourusername/ai-analysis-for-leetcode/actions/workflows/security.yml)\n[![Dependency Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/yourusername/ai-analysis-for-leetcode/pulls?q=is%3Apr+author%3Aapp%2Fdependabot)\n[![Security Policy](https://img.shields.io/badge/security-policy-brightgreen.svg)](SECURITY.md)\n\n## Architecture Overview\n\nThe system is built with a modern, scalable architecture:\n\n- Flask-based REST API with async support\n- Redis caching layer\n- Prometheus metrics and Grafana dashboards\n- Kubernetes deployment with high availability\n- Automated CI/CD pipeline\n\n## Prerequisites\n\n- Docker\n- Kubernetes cluster (v1.21+)\n- kubectl\n- GitHub account (for CI/CD)\n\n## Local Development\n\n1. Set up the virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n2. Run the application:\n```bash\npython -m flask --app api.app run --debug\n```\n\n## Docker Build\n\nBuild the container:\n```bash\ndocker build -t leetcode-analysis-api .\n```\n\nRun locally:\n```bash\ndocker run -p 8080:8080 leetcode-analysis-api\n```\n\n## Kubernetes Deployment\n\n1. Create the namespace:\n```bash\nkubectl apply -f k8s/base/namespace.yaml\n```\n\n2. Deploy Redis:\n```bash\nkubectl apply -f k8s/base/redis-deployment.yaml\n```\n\n3. Deploy the API:\n```bash\nkubectl apply -f k8s/base/api-deployment.yaml\n```\n\n4. Deploy monitoring:\n```bash\nkubectl apply -f k8s/monitoring/prometheus.yaml\nkubectl apply -f k8s/monitoring/grafana.yaml\n```\n\n## Monitoring\n\nAccess monitoring dashboards:\n\n- Prometheus: `http://localhost:9090` (after port-forward)\n- Grafana: `http://localhost:3000` (after port-forward)\n\nDefault Grafana credentials:\n- Username: admin\n- Password: admin123\n\n## CI/CD Pipeline\n\nThe system uses GitHub Actions for:\n- Automated testing\n- Security scanning\n- Container building\n- Kubernetes deployment\n\nPipeline workflow is defined in `.github/workflows/main.yml`\n\n## Security\n\nSecurity measures implemented:\n- Container security scanning\n- Dependency vulnerability checks\n- RBAC for Kubernetes resources\n- Network policies\n- Regular security updates\n\n## Health Checks\n\nThe API provides health check endpoints:\n- `/health` - Basic application health\n- `/metrics` - Prometheus metrics\n\n## API Documentation\n\n### Endpoints\n\n#### GET /api/analysis/{username}\nGet analysis for a specific LeetCode user.\n\nResponse:\n```json\n{\n    \"analysis\": {\n        \"coding_patterns\": {...},\n        \"skill_assessment\": {...},\n        \"recommendations\": {...}\n    }\n}\n```\n\n#### POST /\nWeb interface for user analysis.\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a new Pull Request\n\nPlease review our [Security Policy](SECURITY.md) before contributing.\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-s-bhatt%2Fai-analysis-for-leetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul-s-bhatt%2Fai-analysis-for-leetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-s-bhatt%2Fai-analysis-for-leetcode/lists"}