# souvik082003/neobypass architecture

> Architecture diagram of the GitHub repository souvik082003/neobypass, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/souvik082003/neobypass
- Repository: https://github.com/souvik082003/neobypass

## Overview

NeoExamShield is a Chrome extension targeting the Iamneo exam portal. Its principal flow begins when a student uses exam-page features: the content script injects page-level exam behavior, while background handlers process messages and AI requests; results can be copied or inserted into the editor. Separate branches provide coding assistance, paste/copy overrides, stealth and tab/screen-share restriction handling, and popup API settings. The README documents capabilities beyond sampled code; those branches are represented where the tree supports them, with uncertain wiring omitted.

Main entry points: [`contentScript.js`](https://github.com/souvik082003/neobypass/blob/main/contentScript.js) (Portal content script), [`worker.js`](https://github.com/souvik082003/neobypass/blob/main/worker.js) (Extension worker), [`devtools.js`](https://github.com/souvik082003/neobypass/blob/main/devtools.js) (Exam-page detector), [`data/inject/chatbot.js`](https://github.com/souvik082003/neobypass/blob/main/data/inject/chatbot.js) (AI assistant)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Extension entrypoints"]
  node_content["Portal content script<br/>[contentScript.js]"]
  node_devtools["Exam-page detector<br/>[devtools.js]"]
end

subgraph group_exam["Exam assistance"]
  node_chatbot["AI assistant<br/>[chatbot.js]"]
  node_question["Question and answer tools<br/>[content.js]"]
  node_examcode["Exam editor integration<br/>[exam.js]"]
  node_copy["Smart code copy<br/>[copyOverride.js]"]
  node_paste["Custom paste and typing<br/>[customPaste.js]"]
  node_rightclick["Context menu helper<br/>[rightclickmenu.js]"]
end

subgraph group_evasion["Restriction handling"]
  node_pagebridge["Page visibility bridge<br/>[main.js]"]
  node_screenshare["Screen-share handling<br/>[screenshare.js]"]
  node_antidebug["Anti-debug handling<br/>[anti-anti-debug.js]"]
  node_mock["Extension detection interceptor<br/>[mock_code.js]"]
end

subgraph group_services["Background services"]
  node_background["Extension worker<br/>[worker.js]"]
  node_storage[("Extension local storage")]
end

subgraph group_settings["User settings"]
  node_popup["API configuration<br/>[popup.js]"]
  node_popupview["Settings interface<br/>[popup.html]"]
end

node_student(("Student"))
node_ai["AI provider"]
node_examportal["Iamneo exam portal"]

node_student -->|"uses"| node_examportal
node_examportal -.->|"loads on page"| node_content
node_content -->|"injects"| node_mock
node_content -->|"injects"| node_examcode
node_content -.->|"exam-page setup"| node_devtools
node_devtools -->|"injects"| node_antidebug
node_student -.->|"asks questions"| node_chatbot
node_chatbot -.->|"requests AI"| node_background
node_background -.->|"sends prompts"| node_ai
node_student -.->|"requests assistance"| node_question
node_question -->|"dispatches insertion"| node_examcode
node_student -.->|"copies code"| node_copy
node_student -->|"pastes or types"| node_paste
node_student -.->|"uses menu"| node_rightclick
node_student -.->|"starts screen share"| node_screenshare
node_student -.->|"takes exam"| node_pagebridge
node_popupview -.->|"hosts settings"| node_popup
node_student -.->|"configures provider"| node_popupview
node_popup -->|"reads and writes"| node_storage
node_background -->|"reads settings"| node_storage
node_background -.->|"routes messages"| node_content

click node_content "https://github.com/souvik082003/neobypass/blob/main/contentScript.js"
click node_devtools "https://github.com/souvik082003/neobypass/blob/main/devtools.js"
click node_background "https://github.com/souvik082003/neobypass/blob/main/worker.js"
click node_chatbot "https://github.com/souvik082003/neobypass/blob/main/data/inject/chatbot.js"
click node_question "https://github.com/souvik082003/neobypass/blob/main/data/inject/content.js"
click node_examcode "https://github.com/souvik082003/neobypass/blob/main/data/inject/exam.js"
click node_copy "https://github.com/souvik082003/neobypass/blob/main/data/inject/copyOverride.js"
click node_paste "https://github.com/souvik082003/neobypass/blob/main/data/inject/customPaste.js"
click node_rightclick "https://github.com/souvik082003/neobypass/blob/main/data/inject/rightclickmenu.js"
click node_pagebridge "https://github.com/souvik082003/neobypass/blob/main/data/inject/main.js"
click node_screenshare "https://github.com/souvik082003/neobypass/blob/main/data/inject/screenshare.js"
click node_antidebug "https://github.com/souvik082003/neobypass/blob/main/data/inject/anti-anti-debug.js"
click node_mock "https://github.com/souvik082003/neobypass/blob/main/data/inject/mock_code.js"
click node_popup "https://github.com/souvik082003/neobypass/blob/main/popup.js"
click node_popupview "https://github.com/souvik082003/neobypass/blob/main/popup.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_content,node_devtools toneBlue
class node_chatbot,node_question,node_examcode,node_copy,node_paste,node_rightclick toneAmber
class node_pagebridge,node_screenshare,node_antidebug,node_mock toneMint
class node_background,node_storage toneRose
class node_popup,node_popupview,node_student,node_ai,node_examportal toneIndigo
```

## Components

### Extension entrypoints

- [Portal content script](https://github.com/souvik082003/neobypass/blob/main/contentScript.js): `contentScript.js`
- [Exam-page detector](https://github.com/souvik082003/neobypass/blob/main/devtools.js): `devtools.js`

### Exam assistance

- [AI assistant](https://github.com/souvik082003/neobypass/blob/main/data/inject/chatbot.js): `data/inject/chatbot.js`
- [Question and answer tools](https://github.com/souvik082003/neobypass/blob/main/data/inject/content.js): `data/inject/content.js`
- [Exam editor integration](https://github.com/souvik082003/neobypass/blob/main/data/inject/exam.js): `data/inject/exam.js`
- [Smart code copy](https://github.com/souvik082003/neobypass/blob/main/data/inject/copyOverride.js): `data/inject/copyOverride.js`
- [Custom paste and typing](https://github.com/souvik082003/neobypass/blob/main/data/inject/customPaste.js): `data/inject/customPaste.js`
- [Context menu helper](https://github.com/souvik082003/neobypass/blob/main/data/inject/rightclickmenu.js): `data/inject/rightclickmenu.js`

### Restriction handling

- [Page visibility bridge](https://github.com/souvik082003/neobypass/blob/main/data/inject/main.js): `data/inject/main.js`
- [Screen-share handling](https://github.com/souvik082003/neobypass/blob/main/data/inject/screenshare.js): `data/inject/screenshare.js`
- [Anti-debug handling](https://github.com/souvik082003/neobypass/blob/main/data/inject/anti-anti-debug.js): `data/inject/anti-anti-debug.js`
- [Extension detection interceptor](https://github.com/souvik082003/neobypass/blob/main/data/inject/mock_code.js): `data/inject/mock_code.js`

### Background services

- [Extension worker](https://github.com/souvik082003/neobypass/blob/main/worker.js): `worker.js`
- **Extension local storage**

### User settings

- [API configuration](https://github.com/souvik082003/neobypass/blob/main/popup.js): `popup.js`
- [Settings interface](https://github.com/souvik082003/neobypass/blob/main/popup.html): `popup.html`

### Other components

- **Student**
- **AI provider**
- **Iamneo exam portal**

## Connections

- Student → Iamneo exam portal: uses (evidence: `README.md`)
- Iamneo exam portal → Portal content script: loads on page
- Portal content script → Extension detection interceptor: injects (evidence: `contentScript.js`)
- Portal content script → Exam editor integration: injects (evidence: `contentScript.js`)
- Portal content script → Exam-page detector: exam-page setup
- Exam-page detector → Anti-debug handling: injects (evidence: `devtools.js`)
- Student → AI assistant: asks questions
- AI assistant → Extension worker: requests AI
- Extension worker → AI provider: sends prompts
- Student → Question and answer tools: requests assistance
- Question and answer tools → Exam editor integration: dispatches insertion (evidence: `data/inject/content.js`)
- Student → Smart code copy: copies code
- Student → Custom paste and typing: pastes or types (evidence: `data/inject/customPaste.js`)
- Student → Context menu helper: uses menu
- Student → Screen-share handling: starts screen share
- Student → Page visibility bridge: takes exam
- Settings interface → API configuration: hosts settings
- Student → Settings interface: configures provider (evidence: `README.md`)
- API configuration → Extension local storage: reads and writes (evidence: `popup.js`)
- Extension worker → Extension local storage: reads settings (evidence: `worker.js`)
- Extension worker → Portal content script: routes messages
