Skip to content

ScriptBloxX/BrainSiftAI-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  BrainSiftAI - Next.js Frontend

BrainSiftAI is an innovative AI-powered platform that transforms educational content into interactive exams and comprehensive summaries. Upload PDFs or text content, and let our advanced AI generate relevant, high-quality exam questions automatically.

๐ŸŒŸ Features

Core Functionality

  • AI-Generated Exams: Upload PDFs or text content and automatically generate relevant exam questions
  • Content Summaries: Get concise, AI-generated summaries to help students review before exams
  • Real-time Exam Taking: Interactive exam interface with timer, progress tracking, and instant feedback
  • Exam Preview & Sharing: Preview exams before publishing and share with students via secure links
  • Public Exam Discovery: Explore community-created exams through the public exam gallery

User Experience

  • Responsive Design: Fully responsive interface that works on desktop, tablet, and mobile
  • Dark/Light Mode: Seamless theme switching with system preference detection
  • Real-time Feedback: Instant results with detailed answer explanations
  • Performance Analytics: Track exam performance with detailed scoring and analytics
  • Content Management: Organize and manage your exams through an intuitive dashboard

Security & Privacy

  • Authentication System: Secure user authentication with JWT tokens
  • Privacy Controls: Choose between public and private exams
  • Data Protection: Industry-standard security measures for user data
  • Role-based Access: Different user roles (user, admin, sadmin) with appropriate permissions

๐Ÿ› ๏ธ Technology Stack

Frontend Framework

  • Next.js 15.2.3 - React framework with App Router
  • React 19.0.0 - Latest React with concurrent features
  • TypeScript 5 - Type-safe development

UI & Styling

  • Tailwind CSS 4 - Utility-first CSS framework
  • Radix UI Components - Accessible, unstyled UI primitives
  • Lucide React - Beautiful icon library
  • Motion - Animation library for smooth interactions
  • shadcn/ui - Modern component library built on Radix UI

State Management & API

  • React Context - Global state management for authentication
  • Axios - HTTP client for API communications
  • React Hot Toast - Elegant toast notifications

๐Ÿ“ Project Structure

BrainSiftAI-Frontend/
โ”œโ”€โ”€ app/                          # Next.js App Router
โ”‚   โ”œโ”€โ”€ about/                    # About page
โ”‚   โ”œโ”€โ”€ blog/                     # Blog section
โ”‚   โ”œโ”€โ”€ contact/                  # Contact page
โ”‚   โ”œโ”€โ”€ create-exam/              # Exam creation interface
โ”‚   โ”œโ”€โ”€ dashboard/                # User dashboard
โ”‚   โ”œโ”€โ”€ exam/[id]/               # Individual exam pages
โ”‚   โ”œโ”€โ”€ exam-preview/[id]/       # Exam preview pages
โ”‚   โ”œโ”€โ”€ explore/                  # Public exam discovery
โ”‚   โ”œโ”€โ”€ features/                 # Features showcase
โ”‚   โ”œโ”€โ”€ help/                     # Help center
โ”‚   โ”œโ”€โ”€ login/                    # Authentication pages
โ”‚   โ”œโ”€โ”€ pricing/                  # Pricing information
โ”‚   โ”œโ”€โ”€ security/                 # Security information
โ”‚   โ”œโ”€โ”€ settings/                 # User settings
โ”‚   โ”œโ”€โ”€ tutorials/                # Tutorial pages
โ”‚   โ””โ”€โ”€ globals.css              # Global styles
โ”œโ”€โ”€ components/                   # Reusable components
โ”‚   โ”œโ”€โ”€ ui/                      # UI component library
โ”‚   โ”œโ”€โ”€ auth-context.tsx         # Authentication context
โ”‚   โ”œโ”€โ”€ navbar.tsx               # Navigation component
โ”‚   โ”œโ”€โ”€ footer.tsx               # Footer component
โ”‚   โ””โ”€โ”€ theme-provider.tsx       # Theme management
โ”œโ”€โ”€ lib/                         # Utility libraries
โ”‚   โ”œโ”€โ”€ axios.ts                 # API configuration
โ”‚   โ””โ”€โ”€ utils.ts                 # Helper functions
โ”œโ”€โ”€ public/                      # Static assets
โ”‚   โ”œโ”€โ”€ bg-home/                 # Background images
โ”‚   โ”œโ”€โ”€ teams/                   # Team member photos
โ”‚   โ””โ”€โ”€ *.svg                    # Icons and logos
โ””โ”€โ”€ Configuration files

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm
  • Modern web browser

Installation

  1. Clone the repository

    git clone https://github.com/ScriptBloxX/BrainSiftAI-Frontend.git
    cd BrainSiftAI-Frontend
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Start the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  4. Open your browser Navigate to http://localhost:3000

Available Scripts

npm run dev          # Start development server with Turbopack
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint

๐ŸŽฏ Key Features Deep Dive

Exam Creation Workflow

  1. Content Upload: Upload PDF files or paste text content
  2. AI Processing: Advanced AI analyzes content and identifies key concepts
  3. Question Generation: AI creates relevant multiple-choice questions
  4. Preview & Customize: Review and modify generated questions
  5. Publish & Share: Make exams public or share private links

Exam Taking Experience

  • Interactive Interface: Clean, distraction-free exam environment
  • Timer System: Configurable time limits with visual countdown
  • Progress Tracking: Real-time progress indicators
  • Instant Results: Immediate scoring with detailed explanations
  • Content Summary: Optional study summaries before exam start

Dashboard Features

  • Exam Management: View, edit, and manage created exams
  • Performance Analytics: Track completion rates and scores
  • Exam History: Review past exam attempts and results
  • Credit System: Monitor remaining AI generation credits

๐ŸŽจ Design System

Theme Support

  • Light and dark mode compatibility
  • System preference detection
  • Smooth theme transitions
  • Consistent color palette across modes

Component Architecture

  • Modular, reusable components
  • Accessible design patterns
  • Responsive layouts
  • Type-safe prop interfaces

Animation & Interactions

  • Smooth page transitions
  • Hover and focus states
  • Loading states and skeletons
  • Interactive background effects

๐Ÿ”’ Security Features

  • JWT Authentication: Secure token-based authentication
  • Role-based Access Control: Different permission levels
  • Data Validation: Client and server-side validation
  • Privacy Controls: Public/private exam settings
  • Secure API Communication: HTTPS and proper headers

๐Ÿ“ฑ Responsive Design

The application is fully responsive and optimized for:

  • Desktop: Full-featured experience with side navigation
  • Tablet: Optimized layout with touch-friendly interfaces
  • Mobile: Streamlined mobile experience with bottom navigation

๐Ÿ”ง API Integration

The frontend integrates with a backend API for:

  • User authentication and management
  • Exam creation and storage
  • AI-powered question generation
  • Performance analytics
  • Content processing

๐ŸŒ Community Features

  • Explore Page: Discover public exams created by the community
  • Tagging System: Organize exams with custom tags
  • Search & Filter: Find relevant exams by content, creator, or difficulty
  • Sharing: Easy sharing via secure links

๐Ÿ”ฎ Future Enhancements

  • Real-time collaborative exam creation
  • Advanced analytics dashboard
  • Mobile app development
  • Integration with LMS platforms
  • Multi-language support
  • Video content processing

๐Ÿค Contributing

We welcome contributions from the community! If you find a bug, have a suggestion, or want to improve the frontend, please open a Pull Request (PR).

How to Contribute

  1. Fork this repository
  2. Create a new branch for your fix or feature
  3. Make your changes and commit them with clear messages
  4. Open a Pull Request describing your changes, the problem solved, and steps to reproduce (if applicable)
  5. Wait for review and feedback from maintainers

Reporting Bugs

  • Please open an Issue or PR with a clear description
  • Include screenshots, error messages, and steps to reproduce
  • Suggest a possible solution if you have one

Code Guidelines

  • Follow the existing code style and conventions
  • Test your changes before submitting
  • Keep PRs focused and concise

Thank you for helping us improve BrainSiftAI!

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •