๐ŸŽ“ 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

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:

  1. Select subject, topic, grade level, and language
  2. Add optional details or specific requirements
  3. Click "Generate" and receive a complete lesson plan
  4. Review, edit if needed, and share with your classroom
![Lesson Planner Feature](./docs/images/lesson-planner.png) *Add your Lesson Planner screenshot here*

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:

  1. Create a new classroom with grade and section
  2. Get a unique join code
  3. Share the code with students
  4. Post materials, announcements, and assignments
  5. Students can view and access shared content
![Classrooms Feature](./docs/images/classrooms.png) *Add your Classrooms screenshot here*

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:

  1. Prepare your grades file (Excel/CSV format)
  2. Upload the file through the interface
  3. System automatically parses and organizes data
  4. View class performance dashboard
  5. Track individual student progress
  6. Export data when needed
![Grades Feature](./docs/images/grades.png) *Add your Grades screenshot here*

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:

  1. Upload a textbook page (drag & drop or click to upload)
  2. Enter target grade levels (e.g., 3, 4, 5)
  3. Add optional instructions or requirements
  4. Click "Generate Worksheets"
  5. Review generated worksheets for each grade
  6. Download as PDF or share to a classroom
![Differentiated Worksheets Feature](./docs/images/worksheets.png) *Add your Differentiated Worksheets screenshot here*

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:

  1. Type a description of the concept (e.g., "water cycle with evaporation, condensation, rain")
  2. Choose visual style preference
  3. Click "Generate"
  4. Receive a clear, simple diagram
  5. Use it as a reference to draw on the board
![Visual Aids Feature](./docs/images/visual-aids.png) *Add your Visual Aids screenshot here*

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:

  1. Type a student-style question (e.g., "Why is the sky blue?")
  2. Select your preferred language
  3. Click "Explain"
  4. Receive a clear, accurate answer with analogies
  5. Share explanations with students if needed
![Knowledge Base Feature](./docs/images/knowledge-base.png) *Add your Knowledge Base screenshot here*

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:

  1. Type a request (e.g., "a short story about a farmer and the seasons for Grade 4")
  2. Choose your language
  3. Click "Generate"
  4. Receive hyper-local content with local examples
  5. Use in lessons or share with students
![Local Content Feature](./docs/images/local-content.png) *Add your Local Content screenshot here*

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
![Teacher Companion Feature](./docs/images/teacher-companion.png) *Add your Teacher Companion screenshot here*

๐Ÿ› ๏ธ Tech Stack

Frontend

Backend & Services

AI & Machine Learning

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

  1. Clone the repository

    git clone https://github.com/deepakm0003/Sarthi.AI.git
    cd Sarthi.AI
    
  2. Install dependencies

    npm install
    
  3. Set 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
  1. 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
  1. Get Gemini API Key
  • Visit Google AI Studio
  • Create an API key
  • Add it to .env.local as GEMINI_API_KEY
  1. Run the development server

    npm run dev
    
  2. Open your browser

    http://localhost:3000
    

Configuration

For detailed setup instructions, see SETUP.md


๐Ÿ“– Usage

For Teachers

  1. Sign up or log in to your account
  2. Create a profile with your role (teacher)
  3. 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

  1. Sign up or log in to your account
  2. Create a profile with your role (student)
  3. Join a classroom using the join code from your teacher
  4. 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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

Share this project:

Updates