๐ Sarthi.AI
Sharti.ai is a voice-enabled AI classroom coaching assistant that provides real-time, contextual pedagogical guidance to teachers during live instruction.
Visit the Live Website :- https://sarthi-ai-companion.vercel.app/
๐ Table of Contents
- Overview
- Key Features
- Features in Detail
- Tech Stack
- Getting Started
- Installation
- Configuration
- Usage
- Project Structure
- Multi-Language Support
- Contributing
- License
๐ง Overview
Sarthi.AI is an intelligent teaching assistant designed to support educators, especially those working in government schools and low-resource environments. Built with cutting-edge AI technology, Sarthi.AI automates lesson planning, generates educational content, manages classrooms, and provides just-in-time support when teachers need it most.
Why Sarthi.AI?
- ๐ค AI-Powered: Leverages Google Gemini AI for intelligent content generation
- ๐ Multi-Language: Supports 5 languages (English, Hindi, Marathi, Bengali, Tamil)
- ๐ฑ Offline-Friendly: Works in low-connectivity environments
- ๐ฏ Just-in-Time Support: Get help when you need it, not just during training
- ๐ฅ Classroom Management: Organize students, share materials, track progress
- ๐ Data-Driven: Track grades and student performance with analytics
โจ Key Features
- ๐ AI Lesson Planner - Generate comprehensive weekly lesson plans in seconds
- ๐ฅ Classrooms - Create and manage virtual classrooms with join codes
- ๐ Grades Management - Upload, track, and analyze student performance
- ๐ Differentiated Worksheets - Generate worksheets for multiple grade levels from a single source
- ๐จ Visual Aids Generator - Create simple diagrams and visual content for teaching
- ๐ง Knowledge Base - Instant explanations with analogies in multiple languages
- ๐ Local Content - Culturally relevant stories and examples
- ๐ฏ Teacher Companion - Real-time coaching and support during classes
๐ฏ Features in Detail
1. Lesson Planner
Generate AI-powered weekly lesson plans with objectives and activities.
The Lesson Planner feature helps teachers create comprehensive, structured lesson plans in seconds. Simply select your subject, topic, grade level, and language, and Sarthi.AI generates a complete weekly plan with learning objectives, activities, and assessment strategies.
Key Capabilities:
- Generate weekly lesson plans instantly
- Customize by subject, topic, grade, and language
- Includes learning objectives and activities
- Share plans with students via classrooms
- Save and reuse plans for future classes
How it Works:
- Select subject, topic, grade level, and language
- Add optional details or specific requirements
- Click "Generate" and receive a complete lesson plan
- Review, edit if needed, and share with your classroom
2. Classrooms
Create and manage virtual classrooms. Share updates, worksheets, and files. Students join with a code.
Classrooms function like Google Classroom, allowing teachers to create virtual learning spaces where they can share materials, post announcements, distribute worksheets, and manage student interactions.
Key Capabilities:
- Create multiple classrooms (Grade + Section)
- Generate unique join codes for students
- Post messages, worksheets, lesson plans, files, and images
- View classroom feed with all updates
- Manage members (teachers and students)
- Real-time updates and notifications
How it Works:
- Create a new classroom with grade and section
- Get a unique join code
- Share the code with students
- Post materials, announcements, and assignments
- Students can view and access shared content
3. Grades
Upload student grades (Excel/CSV) and track class performance with analytics.
The Grades feature simplifies grade management by allowing teachers to upload grade files and automatically track student performance. View class statistics, individual student progress, and generate reports.
Key Capabilities:
- Upload grades via Excel or CSV files
- Automatic data parsing and organization
- View class performance statistics
- Track individual student progress over time
- Export data for reporting
- Visual charts and analytics
How it Works:
- Prepare your grades file (Excel/CSV format)
- Upload the file through the interface
- System automatically parses and organizes data
- View class performance dashboard
- Track individual student progress
- Export data when needed
4. Differentiated Worksheets
Upload a textbook page photo โ Get worksheets for different grade levels.
This powerful feature allows teachers to create differentiated worksheets for multiple grade levels from a single source. Perfect for mixed-ability classrooms where students need content adapted to their level.
Key Capabilities:
- Upload textbook pages via photo or file
- Generate worksheets for multiple grade levels simultaneously
- AI adapts content complexity automatically
- Download as PDF
- Share directly to classrooms
- Customize instructions and requirements
How it Works:
- Upload a textbook page (drag & drop or click to upload)
- Enter target grade levels (e.g.,
3, 4, 5) - Add optional instructions or requirements
- Click "Generate Worksheets"
- Review generated worksheets for each grade
- Download as PDF or share to a classroom
5. Visual Aids
Describe a concept โ Get a simple diagram you can replicate on the board.
Visual Aids Generator helps teachers create simple, clear diagrams and visual content that can be easily replicated on a blackboard or whiteboard. Perfect for explaining complex concepts visually.
Key Capabilities:
- Generate diagrams from text descriptions
- Choose from different visual styles
- Simple line drawings perfect for board replication
- Download or save visual aids
- Share with students via classrooms
How it Works:
- Type a description of the concept (e.g., "water cycle with evaporation, condensation, rain")
- Choose visual style preference
- Click "Generate"
- Receive a clear, simple diagram
- Use it as a reference to draw on the board
6. Knowledge Base
Ask any question โ Get simple, accurate explanations with analogies.
The Knowledge Base is an AI-powered Q&A system that provides clear, simple explanations to any educational question. Perfect for both teachers who need quick clarifications and students who want to learn independently.
Key Capabilities:
- Ask questions in natural language
- Get explanations with analogies and examples
- Support for 5 languages
- Simple, student-friendly language
- Instant responses
- Save frequently asked questions
How it Works:
- Type a student-style question (e.g., "Why is the sky blue?")
- Select your preferred language
- Click "Explain"
- Receive a clear, accurate answer with analogies
- Share explanations with students if needed
7. Local Content
Request culturally relevant stories, examples, or explanations in your language.
Local Content Generator creates culturally relevant educational content that resonates with students' local context. Generate stories, examples, and explanations that use local references, making learning more relatable and engaging.
Key Capabilities:
- Generate culturally relevant content
- Support for 5 languages
- Local examples and references
- Stories tailored to regional context
- Customizable content requests
- Share with students
How it Works:
- Type a request (e.g., "a short story about a farmer and the seasons for Grade 4")
- Choose your language
- Click "Generate"
- Receive hyper-local content with local examples
- Use in lessons or share with students
8. Teacher Companion
Just-in-time coaching when a class goes off track.
Teacher Companion is the core feature that provides real-time support to teachers during live classes. When things don't go as planned, teachers can get instant, actionable advice to get back on track.
Three Modes:
a) Sunita-style Scenarios
Select from predefined scenarios based on class level, subject, and problem type. Get instant, structured guidance.
- Select: Class (3โ5), Subject (Math/Hindi/EVS), Problem type
- Get: Headline, quick plan, 4โ6 just-in-time steps, grouping ideas, activity tweak, follow-up
b) Text Snapshot
Describe your situation in a paragraph and get personalized advice.
- Describe the situation in detail
- Get: Strategy, grouping tips, activity tweak, follow-up checklist
c) Image Snapshot
Upload a photo of your board or class and get visual analysis with recommendations.
- Upload a photo of the board or classroom
- Add optional context (text or voice input)
- Get: Summary, engagement score, focus areas, grouping suggestions, strategies, activity tweak
Special Features:
- Recent guidance - Last 20 responses cached for offline use
- Confidence meter - Rate each response (Confident, Neutral, Still confused)
- Voice input - Speak the context instead of typing
- Offline support - Access recent guidance without internet
๐ ๏ธ Tech Stack
Frontend
- Framework: Next.js 16 with App Router
- UI Library: React 19
- Language: TypeScript 5
- Styling: Tailwind CSS + ShadCN UI
- State Management: React Hooks + Context API
Backend & Services
- Authentication: Firebase Auth
- Database: Cloud Firestore
- Storage: Firebase Storage
- Hosting: Firebase Hosting (optional)
AI & Machine Learning
- AI Framework: Genkit
- AI Model: Google Gemini 2.5 Flash
- AI Integration: @genkit-ai/googleai
Additional Libraries
- i18n: react-i18next (5 languages support)
- Forms: react-hook-form + zod validation
- Charts: Recharts
- PDF Generation: jsPDF + html2canvas
- File Processing: xlsx for Excel/CSV handling
๐ Getting Started
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 18+ and npm (or yarn/pnpm)
- Firebase account (free tier works)
- Google AI Studio account (for Gemini API key - free tier available)
Installation
Clone the repository
git clone https://github.com/deepakm0003/Sarthi.AI.git cd Sarthi.AIInstall dependencies
npm installSet up environment variables
Create a .env.local file in the root directory:
# Firebase Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-sender-id
NEXT_PUBLIC_FIREBASE_APP_ID=your-app-id
# Google Gemini API Key
GEMINI_API_KEY=your-gemini-api-key
- Configure Firebase
- Create a new Firebase project at Firebase Console
- Enable Email/Password authentication
- Create a Firestore database (start in test mode)
- Enable Storage
- Copy your Firebase config to
.env.local
- Get Gemini API Key
- Visit Google AI Studio
- Create an API key
- Add it to
.env.localasGEMINI_API_KEY
Run the development server
npm run devOpen your browser
http://localhost:3000
Configuration
For detailed setup instructions, see SETUP.md
๐ Usage
For Teachers
- Sign up or log in to your account
- Create a profile with your role (teacher)
- Access features from the sidebar:
- Create lesson plans
- Set up classrooms
- Upload and track grades
- Generate worksheets and visual aids
- Use Teacher Companion for real-time support
For Students
- Sign up or log in to your account
- Create a profile with your role (student)
- Join a classroom using the join code from your teacher
- Access features:
- View classroom feed and materials
- Check your grades
- Use Knowledge Base for questions
- Request Local Content
๐ Project Structure
Sarthi.AI/
โโโ src/
โ โโโ app/ # Next.js App Router pages
โ โ โโโ (features)/ # Feature pages (protected routes)
โ โ โ โโโ classrooms/ # Classroom management
โ โ โ โโโ grades/ # Grade tracking
โ โ โ โโโ lesson-planner/# Lesson planning
โ โ โ โโโ worksheets/ # Worksheet generation
โ โ โ โโโ visual-aids/ # Visual aids generator
โ โ โ โโโ knowledge-base/# Q&A system
โ โ โ โโโ local-content/ # Local content generator
โ โ โ โโโ teacher-companion/ # Real-time support
โ โ โโโ admin/ # Admin dashboard
โ โ โโโ login/ # Authentication pages
โ โ โโโ signup/
โ โโโ components/ # React components
โ โ โโโ ui/ # ShadCN UI components
โ โ โโโ ... # Feature-specific components
โ โโโ ai/ # AI flows and Genkit setup
โ โ โโโ flows/ # Individual AI features
โ โโโ hooks/ # Custom React hooks
โ โโโ lib/ # Utilities and configurations
โ โโโ locales/ # i18n translation files
โโโ public/ # Static assets
โโโ docs/ # Documentation
โโโ ... # Configuration files
๐ Multi-Language Support
Sarthi.AI supports 5 languages:
- ๐ฌ๐ง English
- ๐ฎ๐ณ Hindi (เคนเคฟเคเคฆเฅ)
- ๐ฎ๐ณ Marathi (เคฎเคฐเคพเค เฅ)
- ๐ง๐ฉ Bengali (เฆฌเฆพเฆเฆฒเฆพ)
- ๐ฎ๐ณ Tamil (เฎคเฎฎเฎฟเฎดเฏ)
Switch languages from the sidebar. All AI-generated content (lesson plans, worksheets, explanations) will be generated in the selected language.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Built for ShikshaLokam's Innovation for Education Equity Hackathon
- Theme 1: Lack of on-the-go, need-based support to teachers
- Inspired by teachers in government schools who need just-in-time support
๐ Contact & Support
- Issues: GitHub Issues
**Built with โค๏ธ for teachers and students in government schools across India.** โญ Star this repo if you find it useful!Built With
- css
- javascript
- powershell
- typescript

Log in or sign up for Devpost to join the conversation.