New
Apps 6,321Makers 6,300This week 13
Promote your app−30%
3views in
the last 30 days

Smart Attendance System

An AI-powered attendance management web app built with React 19, TypeScript

Built with Gemini/Cursor

by v1shal-dev Β· Unclaimed Β· from INIndia Β· added Oct 29, 2026
no ratings0 comments

πŸŽ“ Smart Attendance System

A modern, AI-powered attendance management web app built with React 19, TypeScript & Google Gemini

Capture. Verify. Track. β€” All in one elegant interface.

✨ Features β€’ πŸš€ Quick Start β€’ πŸ› οΈ Tech Stack β€’ πŸ“‚ Project Structure β€’ 🧠 How It Works β€’ πŸ‘¨β€πŸ’» Author


πŸ“– Overview

Smart Attendance System is a sleek, lightweight, and intelligent web application that streamlines the way attendance is recorded and managed. Built with React 19, TypeScript, and powered by Google Gemini AI, it lets students self-register with a live webcam photo, mark their attendance in seconds, and gives administrators a beautiful dashboard to review records β€” all without a heavy backend.

🎯 Perfect for classrooms, workshops, events, small offices, and any setting that needs fast, friendly attendance tracking.


✨ Features

πŸ“Έ Live Webcam Capture Snap student photos directly from the browser using the MediaDevices API.
πŸ€– AI-Powered Image Verification Google Gemini analyzes captured images to confirm a real person is present.
πŸ‘¨β€πŸŽ“ Student Self-Registration One-click registration with name + photo β€” no complex forms.
βœ… One-Tap Attendance Mark presence instantly, with automatic timestamping.
πŸ›‘οΈ Admin Dashboard View all registered students and a full chronological attendance log.
πŸ’Ύ Offline-First Storage All data persists locally via localStorage β€” no server required.
🎨 Modern Dark UI Crafted with Tailwind CSS β€” responsive, smooth, and easy on the eyes.
⚑ Blazing Fast Powered by Vite for near-instant hot reload and lightning-fast builds.

πŸ› οΈ Tech Stack

Layer Technology
Frontend Framework React 19
Language TypeScript 5.8
Build Tool Vite 6
Styling Tailwind CSS
AI / ML Google Gemini API (@google/genai)
Storage Browser localStorage (custom useLocalStorage hook)
Camera Access Web MediaDevices.getUserMedia API

πŸš€ Quick Start

Prerequisites

Installation

# 1. Clone the repository
git clone https://github.com/V1shal-dev/smart-attendance-system.git
cd smart-attendance-system

# 2. Install dependencies
npm install

# 3. Create a .env.local file and add your Gemini API key
echo "GEMINI_API_KEY=your_api_key_here" > .env.local

# 4. Start the development server
npm run dev

🌐 Open http://localhost:3000 β€” and you're live!

Available Scripts

Command Description
npm run dev Start the local dev server with hot reload
npm run build Build an optimized production bundle
npm run preview Preview the production build locally

πŸ“‚ Project Structure

smart-attendance-system/
β”œβ”€β”€ πŸ“„ App.tsx                  # Root component & app state
β”œβ”€β”€ πŸ“„ index.tsx                # React entry point
β”œβ”€β”€ πŸ“„ index.html               # HTML shell + Tailwind CDN
β”œβ”€β”€ πŸ“„ types.ts                 # Shared TypeScript interfaces
β”œβ”€β”€ πŸ“„ vite.config.ts           # Vite configuration
β”‚
β”œβ”€β”€ πŸ“ components/
β”‚   β”œβ”€β”€ Header.tsx              # Top nav + Student/Admin mode switch
β”‚   β”œβ”€β”€ StudentView.tsx         # Registration & attendance form
β”‚   β”œβ”€β”€ AdminView.tsx           # Dashboard with logs
β”‚   β”œβ”€β”€ CameraModal.tsx         # Webcam capture modal
β”‚   └── icons.tsx               # Reusable SVG icon set
β”‚
β”œβ”€β”€ πŸ“ hooks/
β”‚   └── useLocalStorage.ts      # Persistent state hook
β”‚
β”œβ”€β”€ πŸ“ services/
β”‚   └── geminiService.ts        # Google Gemini API integration
β”‚
β”œβ”€β”€ πŸ“„ .env.example             # Example environment variables
β”œβ”€β”€ πŸ“„ package.json
└── πŸ“„ README.md

🧠 How It Works

flowchart LR
    A[πŸ‘€ Student] -->|Opens app| B[Student View]
    B -->|Capture Photo| C[πŸ“Έ Camera Modal]
    C -->|Base64 image| D{πŸ€– Gemini AI<br/>Image Analysis}
    D -->|Person detected| E[βœ… Register Student]
    D -->|No person| F[❌ Retake]
    E -->|Saved to localStorage| G[(πŸ’Ύ Local DB)]
    B -->|Mark Attendance| H[πŸ“ Attendance Record]
    H --> G
    G --> I[πŸ›‘οΈ Admin View]
    I -->|Renders| J[πŸ“Š Dashboard<br/>Students + Logs]

Two Modes β€” One App

  1. πŸ§‘β€πŸŽ“ Student Mode

    • Register with a name + a live webcam photo
    • Mark Attendance by selecting your name from the list
    • Get instant visual feedback (success/error)
  2. πŸ›‘οΈ Admin Mode

    • View all registered students with photos
    • Browse a chronological attendance log with timestamps
    • Clear all data with one click (with confirmation)

πŸ” Environment Variables

Create a .env.local file in the root of the project:

GEMINI_API_KEY=your_google_gemini_api_key_here

πŸ”‘ Get your free API key from Google AI Studio.


πŸ“Έ Screenshots

Add your own screenshots here once deployed!

Student Registration Mark Attendance Admin Dashboard
coming soon coming soon coming soon

🌟 Roadmap

  • 🧠 Face recognition matching (Gemini-powered identity verification)
  • ☁️ Cloud sync with Firebase / Supabase
  • πŸ“Š Attendance analytics & exportable reports (CSV / PDF)
  • πŸ“± Progressive Web App (PWA) support β€” installable & offline
  • 🌐 Multi-class / multi-organization support
  • πŸ”” Email/SMS attendance notifications
  • 🌍 Internationalization (i18n)

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

  1. Fork the project
  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.


πŸ‘¨β€πŸ’» Author

Built with ❀️ by a Full-Stack Engineer β€” Vishal Patil

GitHub LinkedIn Email


⭐ Show Your Support

If you found this project useful, please consider giving it a ⭐ star on GitHub β€” it really helps!

Made with React βš›οΈ, TypeScript πŸ’™, and a sprinkle of Gemini AI ✨

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#attendance Β· #education Β· #react