An Anonymous Chat Room Power By Livekit livekit And Next.js
ENGLISH | 中文
You can try an online demo right now at https://chat.cwy666.eu.org/, This demo uses the free service of livekit cloud as the backend and will stop automatically when the quota runs out.
- Easy to deploy, You can use the free service of livekit cloud directly, without using your own server
- Voice chat in room
- Text chat in room, can send text or emoji
- More custom emoji support
- More message types, including images, videos
- Browser-based speaker, microphone, screen recording(Perfectly support Chrome, Edge, does not support speaker recording on safari)
- Latency calculate--Current implementation is very simple
- Room password setting 🚩
- Multiple entry points on the front side (polling a set of available apikeys) to improve reliability
- Optimized for mobile - works | good | excellent
(🚩means indicate the current ongoing)
Clone the repo and install dependencies:
git clone git@github.com:velor2012/anonymous-chat-room.git
cd anonymous-chat-room
yarn install
Create a new LiveKit project at http://cloud.livekit.io. Then create a new key in your project settings.
Modify next.config.js and replace LIVEKIT_API_KEY, LIVEKIT_API_SECRET, LIVEKIT_WS_URL and if you need to simply test your delay, you can add a PING_URL otherwise keep it empty:
⚠️ the website for PING needs to add a header to handle HEAD cross-domain requests
Then run the development server:
npm run dev
You can test it by opening http://localhost:3000 in a browser.
This is a nextjs app, which you can deploy by following these steps
- fork the shoe repository
- modify next.config.js
- import directly to vercel
this repository is built on the top of
thanks for their heart of open source.