A modern, secure chat application built for professional communication using Socket.IO.
In professional meetings or work environments, sharing a personal phone number is often unnecessary or uncomfortable.
PrivateChat solves this problem by enabling real-time communication using email-based authentication instead of phone numbers.
With company-issued emails becoming standard, PrivateChat allows users to connect securely using Google or GitHub OAuth.
- No phone number required
- Email-based authentication (Google & GitHub)
- Real-time messaging
- Secure and scalable architecture
- Built for professional and enterprise use
- Next.js – Frontend & backend framework
- NextAuth.js – Authentication (OAuth handled internally)
- MongoDB – Database
- Socket.IO – Real-time communication
- Tailwind CSS – Styling
git clone https://github.com/25sahilsingh/privatechat.git
cd privatechatCreate a .env file in the root directory:
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-random-secret-string"
GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"
GITHUB_ID="your-github-client-id"
GITHUB_SECRET="your-github-client-secret"
MONGODB_URL="your-mongodb-connection-string"Install dependencies:
npm installStart the development server:
npm run devThis will start:
- Next.js server
- Socket.IO service
- Authentication providers
- Real-time chat
- Message persistence
- Google and GitHub login
- Online user status
- AI-powered unread message summary
- File sharing
- Video calling (WebRTC)
- Enhanced security and encryption
Contributions are welcome.
- Fork the repository
- Create a new branch
- Commit your changes
- Open a pull request
This project is licensed under the MIT License.