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! โญ







