https://github.com/sameershahh/yt-toxicity-analyzer
A web app that analyzes YouTube comments for toxicity using a Django API and a Next.js dashboard.
https://github.com/sameershahh/yt-toxicity-analyzer
django full-stack machine-learning nextjs rest-api
Last synced: 2 months ago
JSON representation
A web app that analyzes YouTube comments for toxicity using a Django API and a Next.js dashboard.
- Host: GitHub
- URL: https://github.com/sameershahh/yt-toxicity-analyzer
- Owner: Sameershahh
- Created: 2025-10-30T16:28:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-30T16:42:53.000Z (8 months ago)
- Last Synced: 2025-10-30T18:30:48.288Z (8 months ago)
- Topics: django, full-stack, machine-learning, nextjs, rest-api
- Language: TypeScript
- Homepage:
- Size: 435 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YouTube Toxicity Analyzer
A full-stack web application that analyzes YouTube comment toxicity using Machine Learning.
Built with **Django REST Framework** (backend), **Next.js 16** (frontend), and **scikit-learn** (ML model).
---
## Features
- Analyze toxicity of YouTube comments (real-time)
- ML-based toxicity detection (trained using scikit-learn)
- REST API with Django backend
- Modern Next.js frontend (React + Tailwind)
- Cross-Origin Resource Sharing (CORS) configured
---
## Screenshot

## Tech Stack
**Backend:**
- Django 5.2.7
- Django REST Framework
- psycopg2-binary (PostgreSQL)
- scikit-learn, pandas, numpy
- Gunicorn (for production)
- Railway (deployment)
**Frontend:**
- Next.js 16
- Tailwind CSS
- Axios (API calls)
- TypeScript
---
## Setup Instructions
### Backend (Django)
```bash
cd backend
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
```
### Frontend (Next.js)
```bash
cd frontend
npm install
npm run de
```
## Environment Variables
### Backend (Django)
```bash
SECRET_KEY=your_secret_key
DEBUG=False
YOUTUBE_API_KEY=your_youtube_key
ALLOWED_HOSTS=*
```
### Frontend (Next.js)
```bash
NEXT_PUBLIC_API_URL=https://your-backend-url.up.railway.app
```
## License
This project is open-source and available under the MIT License
## Author
**Sameer Shah** — AI & Full-Stack Developer
[Portfolio](https://sameershah-portfolio.vercel.app/)