Skip to content

Latest commit

ย 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฌ Zline

Private by Design. Secure by Default.

A modern real-time messaging platform built with Next.js, WebRTC, Socket.IO and MongoDB.


Live Demo Version Status License


GitHub stars GitHub forks GitHub issues GitHub last commit GitHub repo size GitHub top language



โœจ Overview

Zline is a production-ready end-to-end encrypted messaging platform focused on privacy, security and real-time communication.

Built to explore modern distributed application development, Zline combines secure authentication, encrypted messaging, WebRTC calling, scalable socket communication and production deployment into one complete application.

Rather than cloning an existing messenger, the goal was to understand how real communication platforms are engineered.


๐Ÿ“ธ Preview


๐ŸŽฅ Demo


๐Ÿš€ Features

Authentication Communication Security
โœ… Email Login โœ… Real-time Chat โœ… End-to-End Encryption
โœ… Google OAuth โœ… Voice Calls โœ… JWT Authentication
โœ… Session Management โœ… Video Calls โœ… HMAC Socket Auth
โœ… Protected Routes โœ… Group Calls โœ… NoSQL Protection
โœ… Account Recovery โœ… Voice Messages โœ… IDOR Protection
โœ… Delete Account โœ… Search Messages โœ… Rate Limiting
โœ… Pin Messages โœ… Secure Headers
โœ… Star Messages โœ… CORS Protection
โœ… Push Notifications โœ… Authorization Checks

๐Ÿ— Architecture

Browser
     โ”‚
     โ–ผ
 Next.js Application
     โ”‚
 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 โ”‚               โ”‚
Auth.js      Socket.IO
 โ”‚               โ”‚
 โ”‚           WebRTC
 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ–ผ
 MongoDB Atlas
        โ”‚
        โ–ผ
 Render Socket Server

๐Ÿ’ป Tech Stack

Frontend

Next.js React TypeScript Tailwind CSS


Backend

Node.js MongoDB Socket.IO Auth.js JWT


Deployment

Vercel Render


๐Ÿ›ก Security

Security was treated as infrastructure, not as a feature.

  • ๐Ÿ” End-to-End Encryption
  • ๐Ÿ” JWT Authentication
  • ๐Ÿ” Google OAuth
  • ๐Ÿ” HMAC Socket Authentication
  • ๐Ÿ›ก Authorization Validation
  • ๐Ÿ›ก NoSQL Injection Protection
  • ๐Ÿ›ก IDOR Protection
  • ๐Ÿ›ก Rate Limiting
  • ๐Ÿ›ก Secure Headers
  • ๐Ÿ›ก Input Validation
  • ๐Ÿ›ก CORS Protection

๐Ÿ“‚ Project Structure

app/
components/
hooks/
lib/
models/
public/
socket-server/
types/
utils/

โš™ Environment Variables

MONGODB_URI=

AUTH_SECRET=

AUTH_GOOGLE_ID=

AUTH_GOOGLE_SECRET=

NEXT_PUBLIC_SOCKET_URL=

NEXT_PUBLIC_APP_URL=

๐Ÿš€ Getting Started

git clone https://github.com/YOUR_USERNAME/zline.git

cd zline

npm install

npm run dev

๐Ÿ“ˆ Roadmap

โœ… Version 1.0

  • Authentication
  • Google OAuth
  • Secure Messaging
  • Voice & Video Calls
  • Group Calls
  • Push Notifications
  • Production Deployment
  • Security Hardening

๐Ÿ”ฎ Future

  • Desktop Client

  • Mobile App

  • Friend System

  • Shared Media

  • Message Scheduling


๐Ÿค Contributing

Contributions, ideas and improvements are welcome.

Please open an Issue first before submitting major changes.


๐Ÿ“œ License

This project is licensed under the MIT License.


๐Ÿ™ Acknowledgements

Special thanks to the open-source community and the maintainers of:

  • Next.js
  • React
  • MongoDB
  • Socket.IO
  • WebRTC
  • Tailwind CSS
  • Auth.js
  • Vercel
  • Render

Without their work, projects like this would be significantly harder to build.


๐Ÿ’ฌ Zline v1.0

Private by Design. Secure by Default.

"Some projects are built to impress.

Others are built to teach.

*Zline was built to do both."

โญ If you found this project interesting, consider giving it a star.


Built with curiosity, persistence, and an unreasonable amount of debugging.

About

Zline is a real-time chat application built with modern web technologies that enables instant messaging, media sharing, and seamless communication through a fast, responsive interface. The project is currently **in progress** and is being developed with features like real-time messaging and WebRTC support.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages