A real-time live streaming platform like TikTok built with NestJS, Next.js, WebRTC, and mediasoup. This project includes both the frontend and backend for a complete low-latency broadcasting system.
. ├── client-live/ # Frontend built with Next.js
└── live-service/ # Backend built with NestJS and mediasoup
- 🎥 Real-time audio/video broadcasting with WebRTC
- ⚙️ mediasoup-powered SFU for scalable stream distribution
- 🌐 Frontend built with modern Next.js (React, SSR support)
- 🧱 Backend with NestJS: modular, testable, and robust
- 🔐 Basic media security features like echo cancellation, noise suppression
- 📡 Socket-based signaling layer
git clone https://github.com/kenjiding/kenji-live.git
cd kenji-livecd live-service
npm install
npm run start:devcd client-live
npm install
npm run devThen open: http://localhost:4000, and click right-top corner "start broadcasting" to start Live
| Layer | Technology |
|---|---|
| Frontend | Next.js, React |
| Backend | NestJS, mediasoup |
| Signaling | WebSocket (socket.io or native WS) |
| Media | WebRTC |
| Language | TypeScript |
- Mediasoup requires proper
workerconfig and may need access to UDP/TCP ports. - HTTPS or localhost is required for WebRTC APIs to work.
- Ideal for LAN testing or self-hosted streaming.
Add screenshots or GIFs showing the live streaming interface and connection process.
MIT