Featuring advanced video streaming, AI-powered chat, user authentication, and comprehensive anime database integration
- HLS Video Player: Advanced video streaming with HLS.js and Plyr
- Multiple Servers: Support for multiple streaming servers (Sub/Dub)
- Quality Selection: Dynamic quality switching (1080p, 720p, 480p, 360p, Auto)
- CORS Proxy: Built-in proxy system to bypass CORS restrictions
- Episode Caching: MongoDB-based caching for improved performance
- Subtitle Support: Integrated subtitle/caption functionality
- AI Chat Assistant: Groq-powered AI chat for anime recommendations and queries
- Chat History: Persistent conversation history with MongoDB storage
- Smart Recommendations: AI-driven anime suggestions based on user preferences
- Authentication System: JWT-based secure login/registration
- User Profiles: Personalized user profiles with avatar support
- Watch History: Track and resume watching episodes
- Favorites & Watchlist: Save favorite anime and create watchlists
- Progress Tracking: Automatic episode progress tracking
- Responsive Design: Mobile-first design with Tailwind CSS
- Smooth Animations: Framer Motion animations throughout the app
- Dark Theme: Crunchyroll-inspired dark theme design
- Interactive Components: Hover effects, loading states, and transitions
- Toast Notifications: Real-time user feedback system
- Advanced Search: Real-time search with suggestions
- Category Browsing: Browse by genres, categories, and producers
- Trending & Popular: Discover trending and popular anime
- Seasonal Anime: Browse current and upcoming seasonal releases
- Filter System: Advanced filtering options for better discovery
- React 19 - Modern React with latest features
- Vite - Fast build tool and development server
- Redux Toolkit - State management with RTK Query
- React Router v7 - Client-side routing
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
- HLS.js - HTTP Live Streaming support
- Plyr - Modern HTML5 video player
- Axios - HTTP client for API requests
- Node.js - JavaScript runtime
- Express.js - Web application framework
- MongoDB - NoSQL database with Mongoose ODM
- JWT - JSON Web Token authentication
- Groq SDK - AI chat integration
- Bcrypt - Password hashing
- CORS - Cross-origin resource sharing
- HiAnime API - Anime data and streaming links
- Groq AI - AI chat functionality
Anime/
├── Frontend/ # React frontend application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ │ ├── VideoPlayer.jsx # Advanced video player
│ │ │ ├── AiChat.jsx # AI chat interface
│ │ │ ├── Navbar.jsx # Navigation component
│ │ │ ├── AnimeCards.jsx # Anime card components
│ │ │ ├── EpisodeHistory.jsx # Watch history display
│ │ │ └── ...
│ │ ├── pages/ # Page components
│ │ │ ├── Home.jsx # Homepage
│ │ │ ├── Episodes.jsx # Episode player page
│ │ │ ├── Search.jsx # Search functionality
│ │ │ ├── Profile.jsx # User profile
│ │ │ └── ...
│ │ ├── redux/ # State management
│ │ │ ├── apifetch/ # API slice definitions
│ │ │ └── slices/ # Redux slices
│ │ └── assets/ # Static assets
│ ├── public/ # Public assets
│ └── package.json # Frontend dependencies
├── Backend/ # Node.js backend API
│ ├── controllers/ # Route controllers
│ │ ├── fetchDataController.js # Anime data fetching
│ │ ├── authcontroller.js # Authentication
│ │ ├── userAnimeController.js # User anime data
│ │ └── aiChatController.js # AI chat handling
│ ├── models/ # MongoDB schemas
│ │ ├── AnimeData.js # Anime data model
│ │ ├── authModel.js # User model
│ │ ├── StreamLink.js # Stream links model
│ │ ├── EpisodeModel.js # Episode model
│ │ └── ChatMessage.js # Chat message model
│ ├── routes/ # API routes
│ ├── middlewares/ # Custom middleware
│ ├── configs/ # Configuration files
│ └── package.json # Backend dependencies
└── README.md # Project documentation
- Node.js (v16 or higher)
- MongoDB (local or cloud instance)
- npm or yarn
-
Clone the repository
git clone <repository-url> cd Anime
-
Install root dependencies
npm install
-
Setup Backend
cd Backend npm install -
Setup Frontend
cd ../Frontend npm install
Create a .env file in the Backend directory:
# Database
MONGODB_URI=mongodb://localhost:27017/anime-streaming
# JWT
JWT_SECRET=your-super-secret-jwt-key
# External APIs
BACKEND_URL=https://api.hianime.to
SELF_URL=http://localhost:6789
# AI Chat (Groq)
GROQ_API_KEY=your-groq-api-key
# Server
PORT=6789-
Start Backend Server
cd Backend npm run devBackend will run on
http://localhost:6789 -
Start Frontend Development Server
cd Frontend npm run devFrontend will run on
http://localhost:5173
GET /api/anime/getdata- Fetch homepage dataGET /api/anime/category/:name/:page- Browse by categoryGET /api/anime/genre/:name/:page- Browse by genreGET /api/anime/animedata/:id- Get anime detailsGET /api/anime/episodes/:id- Get episode listPOST /api/anime/episodes-server- Get streaming serversPOST /api/anime/episodes-stream-links- Get stream linksGET /api/anime/proxy-stream- Proxy video streams
POST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/auth/verify- Verify JWT token
POST /api/userAnime/add-to-history- Add to watch historyGET /api/userAnime/get-history- Get watch historyPOST /api/userAnime/add-to-favorites- Add to favoritesGET /api/userAnime/get-favorites- Get favorites
POST /api/ai/chat- Send chat messageGET /api/ai/history/:userId- Get chat history
- Built with HLS.js for adaptive streaming
- Plyr integration for modern controls
- Custom quality selector and subtitle support
- CORS proxy for seamless streaming
- Episode progress tracking and auto-resume
- Groq-powered AI assistant
- Context-aware anime recommendations
- Persistent chat history
- Real-time streaming responses
- Smooth page transitions with Framer Motion
- Responsive design for all devices
- Real-time search with debouncing
- Infinite scroll for large datasets
- Toast notifications for user feedback
- MongoDB caching for frequently accessed data
- Lazy loading for images and components
- Debounced search to reduce API calls
- Optimized Redux state management
- Code splitting and bundle optimization
cd Frontend
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLintcd Backend
npm run dev # Start with nodemon
npm start # Start production server- Build the frontend:
npm run build - Deploy the
distfolder to your hosting platform - Configure environment variables
- Set up environment variables
- Deploy the Backend folder
- Ensure MongoDB connection is configured
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature - Commit changes:
git commit -am 'Add new feature' - Push to branch:
git push origin feature/new-feature - Submit a Pull Request
- 🎬 Stream Episodes - Watch your favorite anime with HLS streaming
- 🤖 AI Chat - Ask for anime recommendations
- 🔍 Search - Find anime by name, genre, or category
- 📱 Mobile Experience - Fully responsive on all devices
- 🎯 User Profiles - Create account and track watch history
⭐ If you found Like this project, please give it a star! ⭐







