Skip to content

jayanand05/StreamChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ StreamChain β€” Live Streaming Platform

StreamChain is a Twitch-like live streaming platform featuring real-time video streaming, chat, viewer tracking, follow system, and NFT-based achievements.

Built using MERN + WebSockets + RTMP + Blockchain, this project explores real-time systems, Web3 integration, and scalable backend architecture.


πŸš€ Features

  • πŸ”΄ Live video streaming via RTMP + HLS
  • πŸ’¬ Real-time chat using Socket.IO
  • πŸ‘₯ Viewer count tracking
  • ⭐ Follow / Unfollow streamers
  • πŸ–ΌοΈ Custom stream thumbnails
  • πŸ§‘β€πŸ’» Profile management (avatar, bio, phone)
  • πŸ… NFT achievements (First Viewer, OG Supporter, Super Fan)
  • πŸ” JWT-based authentication
  • 🦊 MetaMask wallet connection
  • βš™οΈ Stream creation dashboard

πŸ“ Project Structure

streamchain/
β”œβ”€β”€ client/        # React frontend (Vite + Tailwind)
β”œβ”€β”€ server/        # Express backend + RTMP + WebSockets
β”œβ”€β”€ contracts/     # Foundry smart contracts (NFT badges)
β”œβ”€β”€ README.md
└── .gitignore

βš™οΈ Setup Instructions

1️⃣ Clone the Repository

git clone https://github.com/YOUR_USERNAME/streamchain.git
cd streamchain

2️⃣ Backend Setup

cd server
npm install

Create a .env file inside server/:

PORT=8000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret

Start the backend server:

npm start

3️⃣ RTMP + HLS Server In another terminal (inside server/):

node rtmp-server.js

This starts: β€’ RTMP server on port 1935 β€’ HLS server on port 8001

4️⃣ Frontend Setup

cd client
npm install
npm run dev

Frontend will run at:

http://localhost:5173

5️⃣ Smart Contracts (NFT Badges)

cd contracts
forge install
forge build

πŸŽ₯ Streaming with OBS

β€’	Server URL: rtmp://localhost:1935/live
β€’	Stream Key: (generated per stream)
β€’	HLS Playback: http://localhost:8001/live/{streamKey}/index.m3u8

About

A live-streaming platform with real-time chat, viewer rewards, and NFT-based achievements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published