Skip to content

HiteshShonak/StreamWire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ StreamWire

React 19 Node.js Express 5 MongoDB Tailwind CSS v4 Redux Toolkit Vite 7 Cloudinary Groq AI JWT MIT License

Connect. Shield. Stream.
A next-generation social platform combining authenticated discourse, anonymous expression, and immersive video streaming.


StreamWire is a full-stack social media application exploring the intersection of identity and anonymity. It features three distinct content experiences β€” Wire (Public), Shadows (Anonymous), and Cinema (Video) β€” powered by a MERN stack with AI integrations and privacy-first design.


🌟 Key Features

πŸ“’ The Wire (Public Feed)

  • Authenticated Discourse: Social feed where identity is front and center
  • Rich Posts: Text, image attachments, and integrated voting polls
  • Trend Score Algorithm: Smart sorting based on recency, engagement, and unique views
  • Stealth Toggle: Dynamically mask or reveal identity on any post
  • Optimistic UI: Instant like/comment feedback with server rollback on failure

πŸ‘» Shadows (Anonymous Feed)

  • True Anonymity: Post and comment without revealing identity
  • Kill Switch: Instantly cloak your entire profile and content history
  • AuthLock: Browse freely as a guest β€” authentication only required for interactions
  • Stealth Comments: Participate in public threads anonymously

🎬 Cinema (Video Streaming)

  • Custom Video Player: Speed controls, Picture-in-Picture, theater mode, keyboard shortcuts
  • AI-Powered (Groq):
    • Auto-transcription via Whisper
    • AI-generated descriptions and SEO tags
    • On-demand video summarization
    • Conversational Q&A about video content
  • Engagement: Like, subscribe, pin comments, and "Watch Later" library
  • Compression: Server-side FFmpeg two-pass compression for optimized storage
  • Personalized "For You" Feed: Built from watch history + selected tag preferences

🧠 Smart Features

  • Optimistic UI: Instant feedback on likes and comments, with rollback on failure
  • Multi-Device Sessions: Up to 5 concurrent logins with JWT refresh token rotation
  • View Deduplication: TTL-based unique view tracking (1 view per user per 12 hours)
  • Trending Page: Cross-platform trending across Cinema, Wire, and Shadows
  • Channel Pages: Full creator profiles with public/private mode and identity cloaking
  • Creator Studio: Dashboard with analytics, video/wire management, and stealth post tracking

πŸ› οΈ Technology Stack

Frontend

Layer Technology
Core React 19, Vite 7
State Redux Toolkit (Auth) + TanStack React Query (Server State)
Styling Tailwind CSS v4 + Framer Motion
HTTP Axios with auto JWT refresh + request queueing
Forms React Hook Form
Routing React Router v7
Icons Lucide React

Backend

Layer Technology
Runtime Node.js (ES Modules), Express 5
Database MongoDB + Mongoose 9 (Aggregation Pipelines)
Auth JWT (HTTP-Only Cookies) + bcrypt
Validation Zod schemas
Security Helmet, express-rate-limit, CORS
Media Cloudinary + Fluent-FFmpeg
AI Groq SDK (Whisper + Llama 3.3)
Email Nodemailer (Gmail App Passwords)
Scheduling node-cron (daily trend score updates)
Logging Morgan

πŸ“‚ Project Structure

StreamWire/
β”œβ”€β”€ Backend/                           # Node.js + Express API
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app.js                         # Express config + health check
β”‚   β”‚   β”œβ”€β”€ index.js                       # Server startup + graceful shutdown
β”‚   β”‚   β”œβ”€β”€ controllers/                   # 11 request handlers
β”‚   β”‚   β”œβ”€β”€ models/                        # 13 Mongoose schemas
β”‚   β”‚   β”œβ”€β”€ routes/                        # 10 route modules (/api/v1/*)
β”‚   β”‚   β”œβ”€β”€ middlewares/                   # Auth, Multer, Zod validation, rate limiters
β”‚   β”‚   β”œβ”€β”€ validations/                   # 8 Zod schema files
β”‚   β”‚   β”œβ”€β”€ utils/                         # 12 utilities (AI, FFmpeg, Cloudinary, etc.)
β”‚   β”‚   β”œβ”€β”€ services/                      # JWT + Video AI services
β”‚   β”‚   β”œβ”€β”€ cron/                          # Trend score cron job
β”‚   β”‚   └── db/                            # MongoDB connection
β”‚   β”œβ”€β”€ .env.example
β”‚   └── package.json
β”‚
β”œβ”€β”€ Frontend/                          # React 19 + Vite Client
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ pages/                         # 25 route-level pages
β”‚   β”‚   β”œβ”€β”€ Components/                    # Reusable UI (26 components, 7 subdirs)
β”‚   β”‚   β”œβ”€β”€ api/                           # Axios instance + 10 service modules
β”‚   β”‚   β”œβ”€β”€ store/                         # Redux store + auth slice
β”‚   β”‚   β”œβ”€β”€ utils/                         # Formatters + image compressor
β”‚   β”‚   └── assets/                        # Static images
β”‚   β”œβ”€β”€ public/                            # sitemap.xml, robots.txt
β”‚   └── package.json
β”‚
β”œβ”€β”€ screenshots/                       # App screenshots
β”œβ”€β”€ README.md                          # This file
└── LICENSE                            # MIT License

πŸš€ Getting Started

Prerequisites

  • Node.js v18+
  • MongoDB (local or Atlas)
  • Cloudinary account
  • Groq API key
  • Gmail with App Password (for emails)
  • FFmpeg installed system-wide

Installation

  1. Clone the repository

    git clone https://github.com/HiteshShonak/StreamWire.git
    cd StreamWire
  2. Backend Setup

    cd Backend
    npm install
    cp .env.example .env    # Fill in your credentials
    npm run dev
  3. Frontend Setup

    cd Frontend
    npm install
    npm run dev
  4. Access the app at http://localhost:5173
    API health check: http://localhost:8000/api/v1/health


πŸ›‘οΈ Security Features

Feature Implementation
HTTP Security Headers Helmet middleware
Rate Limiting Granular per-route-group limiters
Authentication JWT in HTTP-Only cookies with refresh token rotation
Session Management 5-device limit with FIFO eviction + reuse detection
Input Validation Zod schemas on all mutation endpoints
Password Storage bcrypt with salt rounds
Identity Privacy Configurable stealth mode + identity cloaking
View Anti-Spam TTL-indexed deduplication (1 view / 12hr / user)
Auto Token Refresh Axios interceptor with request queueing during refresh

πŸ“Έ Screenshots

🏠 Home
Home
πŸ›¬ Landing Page
Landing Page
⚑ The Wire β€” Public Feed
Wire Feed
πŸ‘» The Shadows β€” Anonymous Feed
Shadows Feed
🎬 Cinema β€” Video Discovery
Cinema Feed
▢️ Video Player
Video Player
πŸ€– AI Features β€” Summarization & Q&A
AI Features
πŸ“Š Creator Studio β€” Dashboard
Dashboard
πŸ”₯ Trending β€” Cross-Platform
Trending
πŸ‘€ Channel Page
Channel Page
πŸ” Login
Login
πŸ“ Register
Register
🎨 Customize / Onboarding
Customize
βš™οΈ Settings
Settings

πŸ—ΊοΈ Pages Overview

Page Route Description
Landing / Marketing landing page with AI feature demos
Wire Feed /wire Authenticated public social feed
Shadows Feed /shadows Anonymous posting feed
Cinema Feed /cinema Video discovery with hero + category filters
Video Player /watch/:id Full-featured custom video player + AI
Dashboard /dashboard Creator Studio with stats, content, & stealth
Trending /trending Cross-platform trending content
Channel /channel/:username Creator profiles with subscriber management
Build Feed /build-feed Customize "For You" video preferences
History /history Personal watch history
Saved /saved Watch Later + Saved Playlists
Following /following Subscription management
Settings /settings Account & privacy settings
Customize /customize Profile wizard (avatar, cover, bio, colors)
Kill Switch /kill-switch Toggle identity cloaking globally
About /about Platform feature showcase
Contact /contact Contact the team
Login /login Authentication gateway
Register /register Account initialization + OTP verification
Forgot Password /forgot-password Password recovery flow

🀝 Contribution

This is a portfolio project demonstrating advanced full-stack capabilities. Feedback and contributions are welcome!


πŸ“ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


© 2026 StreamWire. Built with ❀️ by Hitesh Sharma.

About

A high-performance video streaming architecture built with the MERN stack. Features advanced MongoDB aggregation pipelines, AI-driven content analysis, and a hybrid social-video feed system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages