An open API service indexing awesome lists of open source software.

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.

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

image

## 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/)