Bolt prompt

Real-Time Chat Application

WebSocket-powered chat with rooms, message history, online status indicators, and typing indicators.

Build a real-time chat application called {{app_name}}.

## Chat Type: {{chat_type}}
## Max rooms: {{max_rooms}}

### Tech Stack
- Frontend: React + Tailwind CSS
- Backend: Node.js + Express + Socket.io
- Database: MongoDB or PostgreSQL for message history
- Auth: JWT tokens

### Chat Rooms
Create and join chat rooms.
Public rooms: visible to all, join freely.
Private rooms: invite-only, join by code.
Direct messages: one-on-one conversations.
Room list sidebar with unread count badges.

### Messages
Send text messages.
Markdown formatting support (bold, italic, code blocks).
Image sharing (upload to storage).
Emoji reactions on messages.
Reply to a specific message (threaded reply).
Edit and delete own messages.

### Online Presence
Online / Away / Offline status.
"{{user}} is typing..." indicator.
Member list with real-time online status.
Last seen timestamps for offline users.

### Notifications
Unread message count badge on room list.
Browser notification permission request.
Desktop notification for mentions (@username).
Notification sound (optional, muted by default).

### Message History
Load last 50 messages on room join.
Infinite scroll to load older messages.
Message search within a room.
Jump to specific date.

### Moderation
Room admins can: kick, ban, mute users.
Message reporting.
Banned users list management.

Fill in: {{app_name}}, {{chat_type}}, {{max_rooms}}, {{user}}. In Loopy you fill these in a form and copy the finished prompt in one click.