building...
cmd
by Dayniel L. Martínez
Next.js Pusher TypeScript Real-Time

QuickChat: Real-time Chat with Next.js and Pusher

April 5, 2026

Building a Real-Time Chat Application

QuickChat is a real-time chat application built with Next.js 16 and Pusher Channels. It features instant messaging, reactions, typing indicators, and light/dark themes.

Key Features

  • Real-time messaging with WebSockets (Pusher)
  • User presence system with join/leave notifications
  • Emoji reactions (❤️, 😂, 😮, 😢, 👍, 🔥)
  • Message replies with preview
  • Typing indicator (WhatsApp-style)
  • Light and dark mode with persistence

Tech Stack

  • Frontend: Next.js 16, React, TypeScript
  • Styling: Tailwind CSS
  • Real-Time: Pusher Channels
  • Font: Geist Sans/Mono

Getting Started

# Install dependencies
npm install

# Create .env.local with Pusher credentials
PUSHER_APP_ID=your_app_id
PUSHER_KEY=your_key
PUSHER_SECRET=your_secret
PUSHER_CLUSTER=your_cluster
NEXT_PUBLIC_PUSHER_KEY=your_key
NEXT_PUBLIC_PUSHER_CLUSTER=your_cluster

# Run development server
npm run dev

Conclusion

QuickChat demonstrates how easy it is to build real-time applications with Next.js and Pusher. The project is open source and available on GitHub.