GitAsk turns any GitHub repository into something you can have a conversation with. Connect a repo and GitAsk loads and indexes its source code, generating vector embeddings of every file. You can then ask natural-language questions — "How does authentication work?", "Where is the payment logic?" — and get accurate answers backed by citations to the exact files involved.
It also keeps an AI-summarized log of recent commits, so you can catch up on what changed at a glance.
- 🔗 Connect any GitHub repo — public or private (via access token)
- 🧠 AI codebase Q&A — ask questions, get answers grounded in the real source
- 📑 Code references — every answer cites the files it was built from
- 📜 Commit summaries — recent commits explained in plain English
- 👥 Team projects — invite teammates into a shared project
- 💳 Credit-based billing — usage tracked and billed through Stripe
- 🔐 Authentication — secure sessions powered by better-auth
- ⚡ Background indexing — repo processing runs as Inngest jobs
- You connect a GitHub repository.
- LangChain loads the repo's files; an Inngest job splits and embeds them.
- Embeddings are stored in PostgreSQL (
pgvector) for semantic search. - When you ask a question, the most relevant files are retrieved.
- Google Gemini generates an answer, streamed back with code references.
| Layer | Technologies |
|---|---|
| Framework | Next.js (App Router), React, TypeScript |
| API | tRPC, TanStack Query |
| Database | PostgreSQL + pgvector, Prisma ORM |
| AI | Google Gemini, Vercel AI SDK, LangChain |
| Jobs | Inngest |
| Auth | better-auth |
| Payments | Stripe |
| UI | Tailwind CSS, Radix UI, shadcn/ui, Lucide |
- Node.js 18+ and npm
- A PostgreSQL database with the
pgvectorextension - API keys for: Google Gemini, GitHub, Stripe, Inngest
# 1. Clone the repository
git clone https://github.com/Keshavkumar04/gitask.git
cd gitask
# 2. Install dependencies
npm install
# 3. Set up environment variables (see below)
cp .env.example .env
# 4. Apply the database schema
npx prisma migrate dev
# 5. Start the dev server
npm run devOpen http://localhost:3000 in your browser.
Create a .env file in the project root. The app expects credentials for the services below (confirm exact key names against the source):
DATABASE_URL="postgresql://..."
# Google Gemini
GEMINI_API_KEY=""
# GitHub access (for loading repositories)
GITHUB_TOKEN=""
# better-auth
BETTER_AUTH_SECRET=""
BETTER_AUTH_URL="http://localhost:3000"
# Stripe
STRIPE_SECRET_KEY=""
STRIPE_WEBHOOK_SECRET=""
# Inngest
INNGEST_EVENT_KEY=""
INNGEST_SIGNING_KEY=""| Command | Description |
|---|---|
npm run dev |
Start the development server |
npm run build |
Generate the Prisma client and build for production |
npm run start |
Run the production build |
npm run lint |
Lint the codebase |
gitask/
├── app/ # Next.js routes (App Router)
│ ├── (protected)/ # Authenticated pages: dashboard, qa, billing, create
│ └── api/ # Route handlers: auth, trpc, inngest, stripe webhook
├── components/ # UI components (incl. shadcn/ui)
├── lib/ # Gemini, GitHub, Inngest, Stripe, Prisma helpers
├── server/ # tRPC routers
└── prisma/ # Database schema & migrations
Built with 💜 by Keshav Kumar