π Live Demo β Click "Launch Demo" for instant access, no signup required.
Collabrix is a full-stack collaborative coding platform built for technical interview preparation. Multiple users can join a shared coding room and code together in real-time, while an AI interviewer guides them through DSA problems β just like a real placement interview.
Built for: CS/Engineering students preparing for product company placements at Google, Microsoft, Amazon, and Flipkart.
- Monaco Editor (same as VS Code) with live multi-cursor support
- Cursor tracking with user names and colors
- Presence indicators showing who is online
- Sub-50ms sync latency powered by Liveblocks CRDT
- Powered by Groq API (Llama 3.1) β extremely fast responses
- Choose between Mock Interview or Practice Mode
- AI asks DSA problems, gives hints, and evaluates solutions
- Remembers conversation context throughout the session
- Tailors difficulty based on your target company
- Supports 10+ programming languages via JDoodle API
- Output displayed in real-time below the editor
JavaScript β’ TypeScript β’ Python β’ Java β’ C++ β’ C
Go β’ Rust β’ Kotlin β’ Swift β’ PHP β’ Ruby
- Video Calling with Jitsi Meet integration
- No external app needed β runs inside the browser
- Live notification when a collaborator starts a call
- Secure sign-up/sign-in powered by Clerk
- Google social login supported
- Free: 3 rooms/month, 2 participants, 8 languages
- Pro (βΉ299/month): Unlimited rooms, video calling, session recordings, AI Interviewer
- Payments via Razorpay β UPI, cards, net banking supported
| Layer | Technology |
|---|---|
| Framework | Next.js 16, React 18, TypeScript |
| Styling | Tailwind CSS, shadcn/ui |
| Code Editor | Monaco Editor |
| Real-Time Sync | Liveblocks (CRDT, <50ms latency) |
| AI | Groq API β Llama 3.1 8B Instant |
| Video Calling | Jitsi Meet SDK |
| Authentication | Clerk |
| Database | PostgreSQL + Prisma ORM |
| Payments | Razorpay |
| Code Execution | JDoodle API |
| Deployment | Vercel |
| Feature | Free | Pro |
|---|---|---|
| Rooms per month | 3 | Unlimited |
| Participants per room | 2 | 5 |
| Programming languages | 8 | 10+ |
| Code execution | β | β |
| AI Interviewer | β | β |
| Video calling | β | β |
| Session recordings | β | β |
| Price | βΉ0/month | βΉ299/month |
collabrix/
βββ app/
β βββ (auth)/ # Sign in / Sign up pages
β βββ (dashboard)/ # Dashboard page
β βββ api/
β β βββ ai/ # Groq AI chatbot endpoint
β β βββ execute/ # Code execution endpoint
β β βββ liveblocks-auth/ # Liveblocks auth endpoint
β β βββ payment/ # Razorpay create-order + verify
β β βββ rooms/ # Room CRUD API
β β βββ solved/ # Solved problems tracking
β β βββ video-room/ # Jitsi video room API
β βββ demo/ # Demo mode (no auth required)
β βββ room/[roomId]/ # Individual room page
βββ components/
β βββ dashboard/ # Dashboard UI components
β βββ editor/
β β βββ AIChat.tsx # AI Interviewer chatbot
β β βββ CollaborativeEditor.tsx
β β βββ LiveCursors.tsx
β β βββ Output.tsx
β β βββ RoomClient.tsx
β β βββ Toolbar.tsx
β β βββ VideoCall.tsx
β βββ landing/ # Landing page sections
βββ lib/
β βββ db.ts # Prisma client
β βββ plans.ts # Free/Pro plan limits
βββ prisma/
β βββ schema.prisma # Database schema
βββ liveblocks.config.ts # Liveblocks types config
- Node.js 18+
- PostgreSQL database (Neon or Supabase free tier works)
- Accounts on: Clerk, Liveblocks, Groq, Razorpay, JDoodle
git clone https://github.com/yashikabhalla/collabrix.git
cd collabrix
npm installCreate a .env.local file in the root:
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
CLERK_SECRET_KEY=sk_test_...
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard
# Database
DATABASE_URL=postgresql://...
# Liveblocks
LIVEBLOCKS_SECRET_KEY=sk_...
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=pk_...
# Groq AI
GROQ_API_KEY=gsk_...
# Razorpay Payments
RAZORPAY_KEY_ID=rzp_test_...
RAZORPAY_KEY_SECRET=...
NEXT_PUBLIC_RAZORPAY_KEY_ID=rzp_test_...
# JDoodle Code Execution
JDOODLE_CLIENT_ID=...
JDOODLE_CLIENT_SECRET=...npx prisma db push
npx prisma generatenpm run devOpen http://localhost:3000 π
User creates or joins a room
β
βΌ
Real-Time Editor (Liveblocks)
cursors Β· presence Β· sync <50ms
β
βΌ
Code Execution (JDoodle)
10+ languages Β· output below editor
β
βΌ
AI Interviewer (Groq)
mock interview Β· hints Β· evaluation
β
βΌ
Video Call (Jitsi) β Pro only
face-to-face mock interview
| Decision | Reason |
|---|---|
| Liveblocks | Production CRDT sync, <50ms latency, no rebuild needed |
| Groq | Free tier, <200ms response time, Llama 3.1 quality |
| Jitsi | Open-source, browser-native, no external app required |
| Clerk | Handles JWT + OAuth out of the box β saves weeks |
| Razorpay | Indian market standard, supports UPI + cards |
| Monaco Editor | Same editor as VS Code β familiar to all developers |
π Live Demo Β Β·Β