Skip to content

RaynaManchanda/MindSwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Œ MindSwitch

Domain-Switchable Cognitive Training Chrome Extension with Persistent Behavioral Analytics

MindSwitch is a full-stack Chrome Extension + Flask backend system designed to provide structured cognitive guidance instead of direct solutions.

Unlike traditional AI sidebars that give answers, MindSwitch follows a mentor-style escalation approach to improve problem-solving skills while tracking behavioral dependency metrics.

๐Ÿš€ Features ๐Ÿง  Domain-Switchable Modes

DSA Mode โ€“ Structured algorithmic guidance

Interview Mode โ€“ STAR-based response framework

Study Mode โ€“ Concept extraction and reinforcement

๐Ÿ“ˆ Structured Hint Escalation

Each guidance request provides 3 controlled levels:

Level 1 โ€“ Concept direction

Level 2 โ€“ Pattern insight

Level 3 โ€“ Structured approach

No direct solutions are provided.

๐Ÿ—„ Persistent Analytics (MySQL)

Session-based tracking

Unlock logging

Mode usage tracking

Level 2 vs Level 3 usage distribution

Level 3 dependency percentage calculation

๐Ÿ” Context-Aware Content Extraction

Dynamically injects content script (Manifest V3 compliant)

Extracts page content safely

Applies rule-based pattern detection (e.g., Binary Search, Graph, DP)

๐Ÿ“Š Behavioral Metrics

The system computes:

Total unlocks

Mode distribution

Level usage frequency

Level 3 dependency percentage

This enables quantifying over-reliance on deeper hints.

๐Ÿ— Architecture Chrome Extension (Manifest V3) โ†“ Flask REST API โ†“ MySQL Database โ†“ Analytics Engine

๐Ÿ›  Tech Stack

Frontend: JavaScript (Chrome Extension - MV3)

Backend: Flask (Python)

Database: MySQL

Architecture: REST API-based modular design

๐Ÿ“‚ Project Structure MindSwitch/ โ”‚ โ”œโ”€โ”€ backend/ โ”‚ โ”œโ”€โ”€ app.py โ”‚ โ”œโ”€โ”€ requirements.txt โ”‚ โ”œโ”€โ”€ extension/ โ”‚ โ”œโ”€โ”€ manifest.json โ”‚ โ”œโ”€โ”€ popup.html โ”‚ โ”œโ”€โ”€ popup.js โ”‚ โ”œโ”€โ”€ styles.css โ”‚ โ”œโ”€โ”€ content.js โ”‚ โ””โ”€โ”€ README.md

โš™๏ธ Setup Instructions 1๏ธโƒฃ Backend Setup cd backend python -m venv venv venv\Scripts\activate # Windows pip install -r requirements.txt python app.py

Backend runs on:

http://127.0.0.1:5000

2๏ธโƒฃ Database Setup CREATE DATABASE mindswitch; USE mindswitch;

CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, email VARCHAR(100), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

CREATE TABLE sessions ( id INT AUTO_INCREMENT PRIMARY KEY, user_id INT, mode VARCHAR(50), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

CREATE TABLE unlock_logs ( id INT AUTO_INCREMENT PRIMARY KEY, session_id INT, mode VARCHAR(50), level_unlocked INT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );

3๏ธโƒฃ Chrome Extension Setup

Open chrome://extensions/

Enable Developer Mode

Click Load Unpacked

Select the extension/ folder

๐Ÿ”ฎ Future Enhancements

AI-powered hint engine with strict solution guardrails

Adaptive weakness scoring

Personalized learning recommendations

Interactive analytics dashboard

User authentication system

๐ŸŽฏ Project Objective

MindSwitch aims to:

Encourage structured thinking

Prevent passive solution dependency

Quantify learning behavior

Provide domain-specific cognitive assistance

๐Ÿ“Œ Version

v1.0 โ€“ Rule-Based Cognitive Engine with Persistent Analytics

Future versions will include AI-powered guarded hint generation.

About

Domain-Switchable Cognitive Training Chrome Extension with Persistent Analytics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors