A modern, real-time messaging app.
Live Demo β
Raabta means connection β and that's exactly what it does. Chat instantly with anyone, share media, record voice notes, and make the space your own with accent themes, wallpapers, and dark mode.
| Real-time messaging | Instant delivery via Socket.io |
| Voice notes | Record and send audio right from the composer |
| Media sharing | Images and videos uploaded through ImageKit |
| Theme presets | 11 accent colors β Sky, Lavender, Mint, and more |
| Dark mode | Automatic light/dark with manual toggle |
| Wallpaper picker | 13 chat backdrops to personalize your space |
| Authentication | Powered by Clerk β Google, GitHub, email, and more |
| Online presence | Live online/offline indicators |
| Sound effects | Optional keyboard click sounds |
| Responsive | Works on desktop and mobile |
| Frontend | React 19, Vite 8, Tailwind CSS v4, HeroUI 3, Zustand 5 |
| Backend | Express 5, Mongoose 9, Socket.io 4 |
| Auth | Clerk (React SDK + Express SDK) |
| Media | ImageKit |
| Database | MongoDB |
| Icons | Lucide React |
| Deployment | Docker (3-stage monolith), Render |
git clone https://github.com/yourusername/raabta.git
cd raabtacd backend
cp .env.example .env # or create .env from scratchEdit backend/.env with your keys:
PORT=3000
MONGO_URI=mongodb+srv://<user>:<pass>@cluster.mongodb.net/raabta
CLERK_PUBLISHABLE_KEY=pk_live_...
CLERK_SECRET_KEY=sk_live_...
CLERK_WEBHOOK_SIGNING_SECRET=whsec_...
IMAGEKIT_PRIVATE_KEY=private_...
FRONTEND_URL=http://localhost:5173
NODE_ENV=developmentnpm install
npm run devThe API starts at http://localhost:3000.
Open a second terminal:
cd frontendCreate frontend/.env:
VITE_CLERK_PUBLISHABLE_KEY=pk_live_...
MODE=developmentnpm install
npm run devOpen http://localhost:5173 β you're in.
docker build \
--build-arg VITE_CLERK_PUBLISHABLE_KEY=$VITE_CLERK_PUBLISHABLE_KEY \
-t raabta .
docker run -p 3001:3001 \
-e MONGO_URI=$MONGO_URI \
-e CLERK_SECRET_KEY=$CLERK_SECRET_KEY \
-e CLERK_PUBLISHABLE_KEY=$CLERK_PUBLISHABLE_KEY \
-e CLERK_WEBHOOK_SIGNING_SECRET=$CLERK_WEBHOOK_SIGNING_SECRET \
-e IMAGEKIT_PRIVATE_KEY=$IMAGEKIT_PRIVATE_KEY \
-e FRONTEND_URL=$FRONTEND_URL \
raabta| Variable | Required | Default | Description |
|---|---|---|---|
PORT |
No | 3000 |
Server port |
MONGO_URI |
Yes | β | MongoDB connection string |
CLERK_PUBLISHABLE_KEY |
Yes | β | Clerk publishable key |
CLERK_SECRET_KEY |
Yes | β | Clerk secret key |
CLERK_WEBHOOK_SIGNING_SECRET |
Yes | β | Clerk webhook secret |
IMAGEKIT_PRIVATE_KEY |
Yes | β | ImageKit private key |
FRONTEND_URL |
No | http://localhost:5173 |
CORS origin |
NODE_ENV |
No | β | development or production |
| Variable | Required | Description |
|---|---|---|
VITE_CLERK_PUBLISHABLE_KEY |
Yes | Clerk publishable key (same as backend) |
MODE |
No | development or production |
raabta/
βββ backend/
β βββ src/
β β βββ controllers/ # Route handlers
β β βββ lib/ # DB, socket, ImageKit, cron
β β βββ middleware/ # Auth guard, file upload
β β βββ models/ # Mongoose schemas
β β βββ routes/ # Express routers
β β βββ webhooks/ # Clerk webhook handler
β β βββ index.js # Entry point
β βββ package.json
βββ frontend/
β βββ public/ # Static assets
β βββ src/
β β βββ components/ # React UI components
β β β βββ auth/ # Auth page pieces
β β β βββ chat/ # Chat interface pieces
β β βββ context/ # Theme & wallpaper providers
β β βββ data/ # Theme presets & wallpaper definitions
β β βββ hooks/ # Custom React hooks
β β βββ lib/ # Axios, ImageKit client, utilities
β β βββ pages/ # AuthPage, ChatPage
β β βββ store/ # Zustand stores
β β βββ styles/ # CSS theme presets
β β βββ App.jsx
β β βββ main.jsx
β β βββ index.css
β βββ package.json
βββ docs/
β βββ app_screenshot.png
βββ Dockerfile # 3-stage monolith build
βββ README.md
| Script | Command | Description |
|---|---|---|
dev |
node --watch src/index.js |
Dev server with auto-restart |
start |
node src/index.js |
Production start |
build |
cp -R src dist |
Bundle for deployment |
| Script | Command | Description |
|---|---|---|
dev |
vite |
Dev server with HMR |
build |
vite build |
Production build |
preview |
vite preview |
Preview production build |
lint |
oxlint |
Run linter |
The app ships as a single Docker container. The Dockerfile uses a 3-stage build:
- frontend-build β builds the Vite SPA
- backend-build β prepares the Express source
- runner β minimal runtime with production dependencies + both artifacts
Express serves the SPA's static files from ./public in production. Designed for Render or any container platform.
Raabta (Ψ±Ψ§Ψ¨Ψ·Ϋ) is an Urdu word meaning connection or relationship.

