Random Chat is a Terminal-themed, real-time web chat app where users can:
- Join or create public chat rooms
- Chat anonymously without signup
- Experience a slick terminal-style UI
- See who's active in real time
- Send and receive messages live via WebSockets
Built with 💚 Next.js App Router + TailwindCSS + native WebSockets
- 🔓 No signup — pick a nickname and go
- 📡 Real-time messaging via WebSockets
- 🧪 Terminal-style hacker UI
- 🏠 Room creation & discovery
- 🔐 Local username persistence
- ⚙️ Deployed + environment-configurable frontend
Layer | Tech |
---|---|
Framework | Next.js (App Router) |
Styling | TailwindCSS |
Real-Time | Native WebSocket API |
Hosting | Vercel or similar |
git clone https://github.com/jztchl/random-chat-frontend.git
cd random-chat-frontend
npm install
Create a .env.local
file in the root and add:
NEXT_PUBLIC_BACKEND_URL_HTTPS=https://your-url
NEXT_PUBLIC_BACKEND_URL_WSS=wss://your-url
🔒 Backend & WebSocket URLs are injected via environment variables for flexibility.
npm run dev
Now open http://localhost:3000 and start chatting.
app/
│
├─ page.tsx # Home - Join/Create rooms
├─ chat/
│ └─ [room]/page.tsx # Dynamic Chat Room UI
│
│
├─ styles/
│ └─ globals.css # Global styles
│
└─ .env.local # Environment variables
This project works seamlessly on Vercel:
- Link your repo on Vercel
- Add the same
.env
variables to the dashboard - Deploy and go live 🌐
Backend API by random-room-chats
Built with ❤️ by jztchl
MIT License — use it, remix it, own it.