YaanAI is an innovative learning platform that transforms PDF documents into interactive learning experiences through games, videos, and mind maps.
- PDF Processing: Upload and analyze PDF documents
- Interactive Games:
- Crossword Puzzles: Generated from PDF content
- Hangman: Words extracted from uploaded documents
- Mind Map: Create visual connections between concepts
- Video Learning: Automatically fetches relevant educational videos
- Real-time Chat Interface: Get instant assistance and explanations
- Node.js (v18 or higher)
- npm or yarn
- A modern web browser
-
Clone the repository:
git clone https://github.com/yourusername/yaanAI.git
-
Install dependencies:
cd yaanAI npm install -
Set up environment variables: Create a
.env.localfile in the root directory and add:NEXT_PUBLIC_HUGGINGFACE_API_KEY = your_api_key_here NEXT_PUBLIC_YOUTUBE_API_KEY = your_api_key_here NEXT_PUBLIC_GEMINI_API_KEY = your_api_key_here
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser
- Handles PDF file uploads
- Extracts text content
- Detects topics for video recommendations
- Generates crossword puzzles from PDF content
- Interactive puzzle interface
- Provides hints and answers
- Extracts keywords from PDF
- Classic hangman game implementation
- Educational word guessing
- Create nodes with custom text
- Drag and drop interface
- Visual learning tool
- Fetches relevant educational videos
- Uses YouTube Data API
- Topic-based video recommendations
- Frontend Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- PDF Processing: PDF.js
- AI Integration: gemini, Hugging Face API
- Video Integration: YouTube Data API
- Use TypeScript for type safety
- Follow React best practices
- Implement responsive design
- Use client components when necessary
This project is licensed under the MIT License - see the LICENSE.md file for details