Realtime Chat Next is a private, ephemeral chat application built with Next.js. It lets users create self-destructing chat rooms with client-side encryption and real-time message delivery.
- Create password-protected rooms with configurable participant limits.
- End-to-end message encryption with keys generated in the browser and shared via the room URL hash.
- Real-time message delivery and room events backed by Upstash Realtime and Redis.
- Automatic room and message cleanup based on the configured time-to-live.
- Optional custom Upstash Redis connection configured from the application UI.
- Next.js 16, React 19, TypeScript, Tailwind CSS
- Elysia API routes
- Upstash Redis and Upstash Realtime
- TanStack Query and Zod
Install dependencies and start the development server:
npm install
npm run devOpen http://localhost:3000 to view the application.
The server uses the default @upstash/redis environment variables:
UPSTASH_REDIS_REST_URLUPSTASH_REDIS_REST_TOKEN
You can also provide a custom Redis URL and token from the "Advanced: Use Custom Database" screen, which stores the values in local storage for the current browser.
npm run dev- start the development servernpm run build- build the production bundlenpm start- run the production servernpm run lint- run ESLint