{"id":50020590,"url":"https://github.com/amaan-ur-raheman/codehorse","last_synced_at":"2026-05-20T07:48:32.627Z","repository":{"id":334269458,"uuid":"1118288647","full_name":"amaan-ur-raheman/codehorse","owner":"amaan-ur-raheman","description":"Code Horse is an intelligent AI-powered code review assistant that automates the analysis of pull requests. By integrating with GitHub and utilizing   Retrieval-Augmented Generation (RAG) with Pinecone and Gemini, it provides context-aware, deep architectural feedback to maintain high code quality and streamline developer workflows.","archived":false,"fork":false,"pushed_at":"2026-01-24T05:09:04.000Z","size":4324,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-24T08:57:57.395Z","etag":null,"topics":["ai","automation","code-review","full-stack","nextjs","pinecone","prisma","rag","typescript"],"latest_commit_sha":null,"homepage":"https://codehorse.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amaan-ur-raheman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T14:32:55.000Z","updated_at":"2026-01-24T04:27:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/amaan-ur-raheman/codehorse","commit_stats":null,"previous_names":["amaan-ur-raheman/codehorse"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/amaan-ur-raheman/codehorse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaan-ur-raheman%2Fcodehorse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaan-ur-raheman%2Fcodehorse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaan-ur-raheman%2Fcodehorse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaan-ur-raheman%2Fcodehorse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaan-ur-raheman","download_url":"https://codeload.github.com/amaan-ur-raheman/codehorse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaan-ur-raheman%2Fcodehorse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33250508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"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","automation","code-review","full-stack","nextjs","pinecone","prisma","rag","typescript"],"created_at":"2026-05-20T07:48:30.924Z","updated_at":"2026-05-20T07:48:32.622Z","avatar_url":"https://github.com/amaan-ur-raheman.png","language":"TypeScript","funding_links":["https://polar.sh/"],"categories":[],"sub_categories":[],"readme":"# Code Horse 🐴\n\n[![Live Demo](https://img.shields.io/badge/Live-Demo-brightgreen?style=for-the-badge)](https://codehorse.vercel.app)\n\n![Code Horse Poster](./public/codehorse-poster.png)\n\n**Code Horse** is an intelligent, AI-powered code review assistant designed to streamline your development workflow. By connecting directly with your GitHub repositories, Code Horse automatically analyzes pull requests, providing instant, context-aware feedback to help maintain code quality and catch issues early.\n\n## 🚀 Key Features\n\n*   **🤖 AI-Powered Code Reviews:** Leverages advanced LLMs (via Vercel AI SDK) to provide deep, meaningful code analysis on every PR.\n*   **🧠 RAG Context Awareness:** Utilizes Pinecone and Retrieval-Augmented Generation (RAG) to understand the full context of your codebase, not just the diff.\n*   **🔗 Seamless GitHub Integration:** Connects easily with your GitHub account to import repositories and monitor pull requests automatically.\n*   **📊 Interactive Dashboard:** A comprehensive overview of your repositories, review history, and coding activity.\n*   **💳 Subscription Management:** Integrated with **Polar.sh** for seamless subscription handling and usage limits.\n*   **⚡ Real-time Updates:** Powered by Inngest for reliable background job processing and event handling.\n\n## 🛠️ Tech Stack\n\n*   **Framework:** [Next.js 16](https://nextjs.org/) (App Router)\n*   **Language:** [TypeScript](https://www.typescriptlang.org/)\n*   **Styling:** [Tailwind CSS v4](https://tailwindcss.com/)\n*   **UI Components:** [Radix UI](https://www.radix-ui.com/), [Lucide React](https://lucide.dev/), [Shadcn UI](https://ui.shadcn.com/)\n*   **Database:** [PostgreSQL](https://www.postgresql.org/) (via [Prisma ORM](https://www.prisma.io/))\n*   **Authentication:** [Better Auth](https://better-auth.com/)\n*   **AI \u0026 Vector:** [Vercel AI SDK](https://sdk.vercel.ai/), [Pinecone](https://www.pinecone.io/)\n*   **Background Jobs:** [Inngest](https://www.inngest.com/)\n*   **Payments:** [Polar.sh](https://polar.sh/)\n*   **State Management:** [TanStack Query](https://tanstack.com/query/latest)\n\n\u003e For a deeper dive into the system architecture and data flow, check out [ARCHITECTURE.md](./ARCHITECTURE.md).\n\n## 📸 Screenshots\n\n### Dashboard\nOverview of your coding activity and review status.\n![Dashboard Page](./public/dashboard-page.png)\n\n### Repositories\nManage your connected GitHub repositories.\n![Repository Page](./public/repository-page.png)\n\n### Reviews\nDetailed AI-generated feedback on your pull requests.\n![Reviews Page](./public/reviews-page.png)\n\n### Settings\nConfigure your preferences and account details.\n![Settings Page](./public/settings-page.png)\n\n### Subscriptions\nManage your plan and usage limits.\n![Subscription Page](./public/subscription-page.png)\n\n## 🏁 Getting Started\n\n### Prerequisites\n\n*   Node.js (v18+)\n*   pnpm, npm, or bun\n*   PostgreSQL database\n*   GitHub OAuth App credentials\n*   Pinecone API Key\n*   Google AI API Key (Gemini)\n\n### Installation\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/amaan-ur-raheman/codehorse.git\n    cd code-horse\n    ```\n\n2.  **Install dependencies:**\n    ```bash\n    npm install\n    # or\n    pnpm install\n    # or\n    bun install\n    ```\n\n3.  **Set up Environment Variables:**\n    Create a `.env` file in the root directory and add the following variables:\n\n    ```env\n    # Database\n    DATABASE_URL=\"postgresql://user:password@localhost:5432/code_horse?schema=public\"\n\n    # Authentication (Better Auth)\n    BETTER_AUTH_SECRET=\"your_secret_key\"\n    BETTER_AUTH_URL=\"http://localhost:3000\"\n\n    # GitHub OAuth\n    GITHUB_CLIENT_ID=\"your_github_client_id\"\n    GITHUB_CLIENT_SECRET=\"your_github_client_secret\"\n\n    # AI (Google Gemini)\n    GOOGLE_GENERATIVE_AI_API_KEY=\"your_google_api_key\"\n\n    # Vector DB (Pinecone)\n    PINECONE_API_KEY=\"your_pinecone_api_key\"\n\n    # Background Jobs (Inngest)\n    INNGEST_EVENT_KEY=\"your_inngest_event_key\"\n    INNGEST_SIGNING_KEY=\"your_inngest_signing_key\"\n\n    # Payments (Polar.sh)\n    POLAR_ACCESS_TOKEN=\"your_polar_access_token\"\n    ```\n\n4.  **Database Setup:**\n    Run the Prisma migrations to set up your database schema.\n    ```bash\n    npx prisma generate\n    npx prisma migrate dev\n    ```\n\n5.  **Run the Development Server:**\n    ```bash\n    npm run dev\n    # or\n    pnpm dev\n    # or\n    bun dev\n    ```\n\n    Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n6.  **Run Inngest Dev Server:**\n    In a separate terminal, run Inngest to handle background jobs.\n    ```bash\n    npx inngest-cli@latest dev\n    ```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1.  Fork the project\n2.  Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3.  Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4.  Push to the branch (`git push origin feature/AmazingFeature`)\n5.  Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaan-ur-raheman%2Fcodehorse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaan-ur-raheman%2Fcodehorse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaan-ur-raheman%2Fcodehorse/lists"}