RepositoryJavaScript
arkaghosh2005

arkaghosh2005/QuickMeet

A real-time MERN Stack Video Conferencing platform built with React and Node.js and features WebRTC peer to peer connections, screen sharing, live chat, and dynamic participant management. The adaptive grid layouts enable the support of multiple simultaneous screen shares.

104sao
0fork
0issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: stun-server

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: express

#2 Repository của tuần

3
TINIX TRENDING·Chủ đề: socket-io

#3 Repository của tuần

QuickMeet : Real-Time Video Conferencing Platform

QuickMeet

React Node.js WebRTC Socket.io Tailwind CSS MongoDB Express Vite Vitest

A fully-featured, responsive video conferencing platform similar to Zoom/Google Meet, built from scratch using modern web technologies with WebRTC peer-to-peer connections.


📋 Table of Contents


✨ Features

🎥 Core Video & Audio

FeatureDescription
Real-time Video CallsUltra-low latency peer-to-peer video using WebRTC with Google STUN + configurable TURN servers
Hardware Release GuaranteeClean media track disposal (track.stop()) on call end, unmount, or tab close — no lingering webcam lights
Screen SharingShare entire screen or specific application windows with track renegotiation
Audio/Video ControlsToggle camera and microphone on/off during calls with instant peer state synchronization
Speaker ToggleMute/unmute all incoming audio from remote participants
Pre-Call SetupPreview video, test microphone, configure display name and AV toggles before joining
Auto Aspect RatioVideo preview automatically adjusts to match webcam native aspect ratio
Connection Status BarVisual indicator for connected, reconnecting, and disconnected states with manual retry

⚙️ In-Call Settings Panel

FeatureDescription
Settings PanelAccessible via the gear icon in the control bar
Camera SelectionSwitch dynamically between available system webcams
Microphone SelectionSwitch dynamically between available microphones
Echo CancellationToggle browser-level acoustic echo cancellation
Auto Gain ControlToggle microphone input gain normalization
Noise SuppressionFilter out background noise from the microphone feed

👤 User Experience & Accessibility

FeatureDescription
Smart Code FormattingAutomatic dash insertion (AAA-BBBB-CCC) while typing or pasting meeting codes/URLs
Enter-Key Quick JoinPress Enter in the meeting code input to join instantly
Dark/Light ThemeSystem and manual dark mode with dark class applied to root `` and persisted in localStorage
User AuthenticationToken-based signup & login with bcrypt password hashing and strong password rules
Guest AccessJoin any meeting instantly as a guest without an account
One-Click Code CopyCopy meeting code or direct pre-call invitation link with toast feedback
Responsive DesignCustom adaptive CSS breakpoints supporting desktop, tablet, and mobile

🎮 Meeting Controls & Layout

FeatureDescription
Host IdentificationDistinct badge for room creator vs participants
Participant PanelReal-time attendee list displaying live microphone, camera, and screen share states
Real-time ChatFloating in-call messaging panel with auto-scroll and unread badge count
Adaptive Grid LayoutDynamic responsive grid accommodating 1 to 8+ participants
Screen Share PriorityScreen shares automatically claim primary layout focus
Participant OverflowDisplays +N more indicator when attendees exceed grid slots

📜 Meeting History

FeatureDescription
History DashboardView past meetings with date, timestamp, and active indicator
Active Room DetectionShows real-time badge if a past meeting is currently in progress
One-Click RejoinDirect rejoin button for active meetings
Meeting DeletionRemove individual meetings from user history
Auto-Cleanup (TTL)MongoDB TTL index automatically cleans entries older than 30 days
Duplicate PreventionRejoining an existing room updates the timestamp instead of duplicating rows

🔒 Security, Reliability & Quality

FeatureDescription
WebSocket XSS SanitizationServer-side sanitization of user names, chat text, and screen share labels
Strong Password PolicyEnforces minimum 8 chars, uppercase, lowercase, numbers, and special characters
DNS ResilienceAutomatic Google Public DNS (8.8.8.8) fallback in Node.js to resolve Atlas SRV lookups on restrictive networks
Bounded MemoryChat messages capped at 500 per room to prevent unbounded server memory growth
Rate LimitingStrict rate limits on authentication endpoints (5 req/15 min) and API (100 req/15 min)
Input ValidationStrict express-validator rules on all authentication and history endpoints
Security HeadersHelmet middleware configured for CSP, HSTS, and X-Frame-Options
Accidental Leave PreventionBrowser back navigation trap, beforeunload tab-close warning, and confirmation dialog
Graceful ShutdownHandles SIGTERM/SIGINT to cleanly close HTTP, WebSockets, and MongoDB connections
Automated TestsUnit & component test suite powered by Vitest and React Testing Library
Linting & FormattingESLint 9 flat configuration and Prettier formatting

🔍 SEO & Web Optimization

FeatureDescription
Per-Page Meta TagsDynamic title, description, and canonical tags via react-helmet-async
Open Graph & Twitter CardsSocial link previews powered by og-image.svg matching brand identity
JSON-LD Structured DataWebApplication and Organization schemas for rich Google search results
Sitemap & Robots.txtsitemap.xml for public pages; robots.txt disallows indexing of private rooms
PWA Manifest & FaviconWeb app manifest with SVG icons and standalone display capability

🛠 Tech Stack

Frontend Technologies

TechnologyVersionPurpose
React19.2.3Declarative UI framework with Hooks
React Router DOM7.17.0Client-side routing and navigation
Vite7.3.5Modern ESM build tool and development server
Tailwind CSS3.3.6Utility-first responsive styling with dark mode
Lucide React0.562.0SVG icon library
Socket.io Client4.8.1Real-time WebSocket signaling
Axios1.17.0HTTP client with authentication interceptors
React Helmet Async3.0.0Per-route SEO metadata management
VitestLatestNext-generation unit test runner
React Testing LibraryLatestComponent testing utilities

Backend Technologies

TechnologyVersionPurpose
Node.js24.x (>= 18)JavaScript runtime environment
Express.js5.2.1HTTP API server framework
Socket.io4.8.2Real-time WebRTC signaling server
MongoDB AtlasCloudCloud document database
Mongoose9.6.3MongoDB Object Data Modeling (ODM)
bcrypt6.0.0Salted password hashing
jsonwebtoken9.0.3Stateless JWT token issuance and verification
helmet8.2.0HTTP security headers middleware
express-validator7.3.2Request payload validation and sanitization
express-rate-limit8.5.2IP-based request throttling
CORS2.8.5Cross-origin resource sharing

🌐 WebRTC Infrastructure (STUN & TURN)

QuickMeet implements standard WebRTC signaling over Socket.io. For NAT traversal, the platform supports both STUN and TURN servers:

                  ┌─────────────────────────────────────────┐
                  │          Signaling (Socket.io)          │
                  │   Offers, Answers & ICE Candidates      │
                  └──────────────────┬──────────────────────┘
                                     │
                 ┌───────────────────┴───────────────────┐
                 ▼                                       ▼
    ┌─────────────────────────┐             ┌─────────────────────────┐
    │     Peer A (Browser)    │◄── P2P ────►│     Peer B (Browser)    │
    └────────────┬────────────┘  Media Flow └────────────┬────────────┘
                 │                                       │
                 ├────────► STUN (Google) ◄──────────────┤ (Direct P2P via STUN)
                 │                                       │
                 └────────► TURN Server   ◄──────────────┘ (Relay for symmetric NATs)
Traversal TypeConfigurationBehavior
STUN (Default)5 Google STUN servers (stun.l.google.com:19302 to stun4)Discovers public IP/port for direct peer-to-peer media paths (~80-85% of users).
TURN (Configured)Configured via VITE_TURN_URL, VITE_TURN_USERNAME, VITE_TURN_CREDENTIALRelays media packets for users behind restrictive firewalls or symmetric NATs.

Need free TURN credentials? You can generate free TURN credentials from metered.ca/tools/openrelay or self-host Coturn.


🏗 System Architecture

┌─────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                    CLIENT (React 19 + Vite 7)                                   │
├─────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                                 │
│  ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌───────────┐  │
│  │   Landing   │ │   Login     │ │   Signup    │ │   Meeting   │ │   Meeting   │ │  PreCall  │  │
│  │    Page     │ │    Page     │ │    Page     │ │   Entry     │ │   History   │ │   Page    │  │
│  └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └─────┬─────┘  │
│         │               │               │               │               │              │        │
│         └───────────────┴───────────────┴───────┬───────┴───────────────┴──────────────┘        │
│                                                 │                                               │
│                                                 ▼                                               │
│  ┌──────────────────────────────────────────────────────────────────────────────────────────┐   │
│  │                              VIDEO CALL PAGE (Main Interface)                            │   │
│  │  ┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ ┌───────────────┐  │   │
│  │  │   Video Grid       │ │   Control Bar      │ │   Settings Panel   │ │  Chat Panel   │  │   │
│  │  │  - Local video     │ │  - Mic toggle      │ │  - Camera select   │ │  - Messages   │  │   │
│  │  │  - Remote videos   │ │  - Video toggle    │ │  - Mic select      │ │  - Real-time  │  │   │
│  │  │  - Screen shares   │ │  - Speaker toggle  │ │  - Echo cancel     │ │  - Floating   │  │   │
│  │  │  - Adaptive grid   │ │  - Screen share    │ │  - Auto gain       │ └───────────────┘  │   │
│  │  │  - Overflow (+N)   │ │  - Chat button     │ │  - Noise suppress  │ ┌───────────────┐  │   │
│  │  └────────────────────┘ │  - Settings button │ └────────────────────┘ │  Participants │  │   │
│  │                         │  - End call        │                        │    Panel      │  │   │
│  │                         └────────────────────┘                        └───────────────┘  │   │
│  └──────────────────────────────────────────────────────────────────────────────────────────┘   │
│                                                                                                 │
│  ┌──────────────────────────────────────────────────────────────────────────────────────────┐   │
│  │                              CONTEXT PROVIDERS (Global State)                            │   │
│  │  ┌─────────────────────────────────────┐  ┌────────────────────────────────────────────┐ │   │
│  │  │           AuthContext               │  │              ThemeContext                  │ │   │
│  │  │  • userData (name, email, token)    │  │  • isDarkMode state                        │ │   │
│  │  │  • login() / signup() / logout()    │  │  • toggleDarkMode()                        │ │   │
│  │  │  • loginAsGuest()                   │  │  • document.documentElement.classList      │ │   │
│  │  │  • Session expiry toast             │  │  • localStorage persistence                │ │   │
│  │  └─────────────────────────────────────┘  └────────────────────────────────────────────┘ │   │
│  └──────────────────────────────────────────────────────────────────────────────────────────┘   │
└────────────────────────────────────┬────────────────────────────────┬───────────────────────────┘
                                     │                                │
                    ┌────────────────┴────────────────┐  ┌────────────┴────────────────┐
                    │        Socket.io Client         │  │      Axios HTTP Client      │
                    │      (Real-time Signaling)      │  │      (REST API Calls)       │
                    └────────────────┬────────────────┘  └────────────┬────────────────┘
                                     │                                │
═══════════════════════════════════════════════════════════════════════════════════════════════════
                                     │           NETWORK              │
═══════════════════════════════════════════════════════════════════════════════════════════════════
                                     │                                │
                    ┌────────────────┴────────────────┐  ┌────────────┴────────────────┐
                    │        Socket.io Server         │  │       Express Router        │
                    │      (Signaling & Events)       │  │      (HTTP Endpoints)       │
                    └────────────────┬────────────────┘  └────────────┬────────────────┘
                                     │                                │
┌────────────────────────────────────┴────────────────────────────────┴───────────────────────────┐
│                              SERVER (Node.js 24 + Express 5)                                    │
├─────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                                 │
│  ┌──────────────────────────────────────────────────────────────────────────────────────────┐   │
│  │                              SOCKET MANAGER (socketManager.js)                           │   │
│  │  • Sanitized inputs (XSS protection)         • Room cleanup timer (1 hour timeout)       │   │
│  │  • Bounded message buffer (500 max/room)     • JWT & Guest handshake authentication      │   │
│  └──────────────────────────────────────────────────────────────────────────────────────────┘   │
│                                                                                                 │
│  ┌──────────────────────────────────────────────────────────────────────────────────────────┐   │
│  │                              USER CONTROLLER (userController.js)                         │   │
│  │  • POST /v1/users/signup (409 on duplicate)  • GET /v1/users/history                     │   │
│  │  • POST /v1/users/login (7-day JWT)          • POST /v1/users/history (upsert)           │   │
│  │  • DELETE /v1/users/history                  • Sanitized generic 500 error responses     │   │
│  └──────────────────────────────────────────────────────────────────────────────────────────┘   │
└────────────────────────────────────────────────────┬────────────────────────────────────────────┘
                                                     │
                                                     ▼ Mongoose ODM
                                      ┌─────────────────────────────┐
                                      │        MongoDB Atlas        │
                                      │  • Users Collection         │
                                      │  • Meetings (30-day TTL)    │
                                      └─────────────────────────────┘

📁 Project Structure

quickmeet/
├── frontend/                          # React Frontend Application
│   ├── public/                        # Static assets
│   │   ├── favicon.svg                # Brand SVG Favicon
│   │   ├── icon-192.svg               # PWA icon (192x192)
│   │   ├── icon-512.svg               # PWA icon (512x512)
│   │   ├── manifest.json              # Web app manifest (PWA)
│   │   ├── og-image.svg               # Open Graph social preview (1200x630)
│   │   ├── robots.txt                 # Search engine crawl rules
│   │   └── sitemap.xml                # XML sitemap for SEO
│   ├── src/
│   │   ├── components/                # Reusable UI Components
│   │   │   ├── __tests__/             # Component tests
│   │   │   │   └── Button.test.jsx    # Button unit tests
│   │   │   ├── Button.jsx             # Accessible button with variants
│   │   │   ├── ChatPanel.jsx          # Floating in-call chat
│   │   │   ├── ConfirmModal.jsx       # Accessible modal dialog
│   │   │   ├── DarkModeToggle.jsx     # Theme switch with keyboard support
│   │   │   ├── Input.jsx              # Form input with validation states
│   │   │   ├── LoadingSpinner.jsx     # Animated CSS spinner
│   │   │   └── SEO.jsx                # Per-route meta tags
│   │   │
│   │   ├── context/                   # Global state providers
│   │   │   ├── AuthContext.jsx        # JWT & guest authentication
│   │   │   └── ThemeContext.jsx       # Dark mode state & HTML class toggle
│   │   │
│   │   ├── pages/                     # Application Routes
│   │   │   ├── __tests__/             # Page logic unit tests
│   │   │   │   └── MeetingCode.test.js# Code generation & formatting tests
│   │   │   ├── LandingPage.jsx        # Landing hero & guest join
│   │   │   ├── LoginPage.jsx          # Login form
│   │   │   ├── SignupPage.jsx         # Registration with password strength
│   │   │   ├── MeetingEntryPage.jsx   # Create/Join with auto-dash formatting
│   │   │   ├── MeetingHistoryPage.jsx # Past meetings list
│   │   │   ├── NotFoundPage.jsx       # Custom 404 page
│   │   │   ├── PreCallPage.jsx        # Hardware preview & setup
│   │   │   └── VideoCallPage.jsx      # Video conferencing interface
│   │   │
│   │   ├── test/                      # Test configuration & setup
│   │   │   └── setup.js               # Test teardown & cleanup
│   │   ├── App.jsx                    # Root routing & route guards
│   │   ├── main.jsx                   # Entry point (HelmetProvider)
│   │   ├── index.css                  # Tailwind styles & reduced motion
│   │   └── opengraph-image.jsx        # OG image SVG generator component
│   │
│   ├── .env                           # Frontend environment variables
│   ├── index.html                     # HTML document template with SEO
│   ├── package.json                   # Dependencies & test scripts
│   ├── tailwind.config.js             # Tailwind CSS configuration
│   ├── vite.config.js                 # Vite build configuration
│   ├── vitest.config.js               # Vitest testing configuration
│   └── vercel.json                    # Vercel deployment rewrites
│
├── backend/                           # Node.js Backend Server
│   ├── src/
│   │   ├── controllers/
│   │   │   ├── socketManager.js       # WebSocket signaling & XSS sanitize
│   │   │   └── userController.js      # Auth & meeting history handlers
│   │   ├── models/
│   │   │   ├── userModel.js           # User Mongoose schema
│   │   │   └── meetingModel.js        # Meeting schema (30-day TTL index)
│   │   ├── routes/
│   │   │   └── users.routes.js        # Express routes & express-validator
│   │   ├── middleware/
│   │   │   └── auth.js                # JWT authentication middleware
│   │   └── app.js                     # Express app & DNS fallback setup
│   │
│   ├── .env                           # Backend environment variables
│   └── package.json                   # Backend dependencies & engines
│
├── eslint.config.js                   # ESLint 9 Flat Config (React + Node)
├── .prettierrc                        # Prettier code formatting rules
├── .prettierignore                    # Prettier ignore paths
├── .gitignore                         # Git ignore definitions
├── LICENSE                            # MIT License
└── README.md                          # Project documentation

🚀 Getting Started

Prerequisites

  • Node.js >= 18.0.0 (Recommended: 24.x)
  • MongoDB Atlas account or a local MongoDB database
  • npm package manager

1. Clone the repository

git clone https://github.com/arkaghosh2005/QuickMeet.git
cd quickmeet

2. Configure Environment Variables

Create and configure your .env files in both directories:

Backend (backend/.env):

PORT=3000
NODE_ENV=development
CLIENT_URL=http://localhost:5173
MONGO_URL=mongodb+srv://<username>:<password>@cluster.mongodb.net/QuickMeet
JWT_SECRET=your_super_secret_key_minimum_64_characters_recommended

Frontend (frontend/.env):

VITE_SERVER_URL=http://localhost:3000
VITE_STUN_URL_1=stun:stun.l.google.com:19302
VITE_STUN_URL_2=stun:stun1.l.google.com:19302
VITE_STUN_URL_3=stun:stun2.l.google.com:19302
VITE_STUN_URL_4=stun:stun3.l.google.com:19302
VITE_STUN_URL_5=stun:stun4.l.google.com:19302

# Optional TURN server for symmetric NAT traversal
VITE_TURN_URL=turn:your-turn-server.com:3478
VITE_TURN_USERNAME=your_username
VITE_TURN_CREDENTIAL=your_credential

3. Install Dependencies & Start Backend

In your first terminal:

cd backend
npm install
npm run dev

The backend starts listening on http://localhost:3000.

4. Install Dependencies & Start Frontend

In your second terminal:

cd frontend
npm install
npm run dev

Open your browser at http://localhost:5173.


🧪 Running Tests

QuickMeet includes automated unit and component tests using Vitest and React Testing Library.

To run the test suite:

# Run tests once in terminal
cd frontend
npm run test:run

# Run tests in interactive watch mode
npm test

⚙️ Environment Variables Reference

Backend (backend/.env)

VariableDescriptionExample
PORTHTTP & WebSocket server port3000
NODE_ENVEnvironment mode (development or production)development
CLIENT_URLAllowed CORS origins (comma-separated for multiple)http://localhost:5173
MONGO_URLMongoDB Atlas or local connection stringmongodb+srv://...
JWT_SECRETSecret key used to sign and verify JWT tokens64+ char random hex

Frontend (frontend/.env)

VariableDescriptionExample
VITE_SERVER_URLBase URL of the backend serverhttp://localhost:3000
VITE_STUN_URL_1–5Google public STUN server endpointsstun:stun.l.google.com:19302
VITE_TURN_URL(Optional) TURN server URIturn:openrelay.metered.ca:80
VITE_TURN_USERNAME(Optional) TURN authentication usernameopenrelayproject
VITE_TURN_CREDENTIAL(Optional) TURN authentication credentialopenrelayproject

📚 API Reference

Authentication Endpoints

POST /v1/users/signup

Registers a new user account with strong password verification.

Request Body:

{
  "name": "Jane Doe",
  "email": "jane@example.com",
  "password": "Password123!"
}

Responses:

  • 201 Created — User registered successfully
  • 400 Bad Request — Validation error (e.g., password does not meet complexity)
  • 409 Conflict — User with this email already exists

POST /v1/users/login

Authenticates a user and returns a 7-day JWT token.

Request Body:

{
  "email": "jane@example.com",
  "password": "Password123!"
}

Responses:

  • 200 OK — Authentication successful:
    {
      "token": "eyJhbGciOiJIUzI1NiIs...",
      "user": {
        "name": "Jane Doe",
        "email": "jane@example.com"
      }
    }
    
  • 401 Unauthorized — Invalid password
  • 404 Not Found — User not found

Meeting History Endpoints

All history endpoints require the Authorization: Bearer <token> header.

GET /v1/users/history

Returns all meetings for the logged-in user with their current active status.

Response: 200 OK

[
  {
    "_id": "64abc123...",
    "user_id": "jane@example.com",
    "meetingCode": "ABC-1234-XYZ",
    "date": "2026-11-01T10:00:00.000Z",
    "isActive": true
  }
]

POST /v1/users/history

Saves or updates a meeting entry in the user's history (upsert).

Request Body:

{
  "meeting_code": "ABC-1234-XYZ"
}

Response: 201 Created


DELETE /v1/users/history

Deletes a specific meeting record from history.

Request Body:

{
  "meeting_id": "64abc123..."
}

Response: 200 OK


Monitoring

GET /health

Uptime health check endpoint for monitoring probes.

Response: 200 OK

{
  "status": "ok",
  "uptime": 3600.42
}

📱 Application Flow

Landing Page (Guest Join / Login / Signup)
         │
         ▼
    Login / Signup
         │
         ▼
  Meeting Entry Page ◄────────────┐
  (Create or Join Meeting)        │
         │                        │
         ├────────────────────────┤
         │                        │
         ▼                        │
    Pre-Call Page         Meeting History Page
  (Preview & Settings)    (View/Rejoin/Delete)
         │
         ▼
    Video Call Page
  (Full Meeting Experience)

💖 Sponsor

If you find QuickMeet helpful and would like to support its continued development, consider sponsoring!

GitHub Sponsors Buy Me A Coffee

Your support helps cover hosting costs, development time, and enables new features. Every contribution is greatly appreciated! ☕✨


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ using React, Node.js and WebRTC by Arka Ghosh

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
twbs/bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

175.1k
Dec 1, 2026
RepositoryJavaScript
Asabeneh/30-Days-Of-JavaScript

30 days of JavaScript programming challenge is a step-by-step guide to learn JavaScript programming language in 30 days. This challenge may take more than 100 days, please just follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

47.0k
Aug 27, 2026
RepositoryC++
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

124.3k
Dec 2, 2026
RepositoryJavaScript
microsoft/Web-Dev-For-Beginners

24 Lessons, 12 Weeks, Get Started as a Web Developer

97.2k
Dec 1, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
Repository
florinpop17/app-ideas

A Collection of application ideas which can be used to improve your coding skills.

98.8k
Oct 11, 2025
RepositoryMDX
thedaviddias/Front-End-Checklist

🗂 The essential checklist for modern web development, for humans and AI agents

74.9k
Oct 31, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryJavaScript
NodeBB/NodeBB

Node.js based forum software built for the modern web

15.3k
Dec 2, 2026