# sauravhathi/coursera-automation-extension architecture

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

- Interactive diagram: https://gitdiagram.com/sauravhathi/coursera-automation-extension
- Repository: https://github.com/sauravhathi/coursera-automation-extension

## Overview

This Chrome extension lets a learner choose an automation task while viewing a Coursera course, then automates documented course activities and related tools. The README identifies features but does not map them to implementation files or describe their internal calls. Accordingly, feature paths point only to the existing scripts directory, and the graph avoids guessing which script implements or dispatches each capability.

Main entry points: [`dist/scripts/popup.js`](https://github.com/sauravhathi/coursera-automation-extension/blob/master/dist/scripts/popup.js) (Task selection), [`dist/scripts`](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts) (Course completion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Extension interaction"]
  node_extension["Task selection<br/>[popup.js]"]
end

subgraph group_coursework["Coursework automation"]
  node_course_completion["Course completion"]
  node_lectures["Lectures"]
  node_reading["Reading materials"]
  node_plugins_discussions["Plugins and discussions"]
  node_quiz["Quiz automation"]
end

subgraph group_utilities["Course utilities"]
  node_shareable_link["Shareable link"]
  node_skip_video["Skip Video+"]
  node_course_backup["Course backup"]
  node_browser_lock["Browser locking"]
end

node_learner(("Learner"))
node_coursera["Coursera course"]

node_learner -->|"opens course"| node_coursera
node_learner -->|"chooses task"| node_extension
node_extension -->|"starts automation"| node_course_completion

click node_extension "https://github.com/sauravhathi/coursera-automation-extension/blob/master/dist/scripts/popup.js"
click node_course_completion "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_lectures "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_reading "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_plugins_discussions "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_quiz "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_shareable_link "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_skip_video "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_course_backup "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"
click node_browser_lock "https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts"

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_extension toneBlue
class node_course_completion,node_lectures,node_reading,node_plugins_discussions,node_quiz toneAmber
class node_shareable_link,node_skip_video,node_course_backup,node_browser_lock toneMint
class node_learner,node_coursera toneIndigo
```

## Components

### Extension interaction

- [Task selection](https://github.com/sauravhathi/coursera-automation-extension/blob/master/dist/scripts/popup.js): `dist/scripts/popup.js`

### Coursework automation

- [Course completion](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Lectures](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Reading materials](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Plugins and discussions](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Quiz automation](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`

### Course utilities

- [Shareable link](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Skip Video+](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Course backup](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`
- [Browser locking](https://github.com/sauravhathi/coursera-automation-extension/tree/master/dist/scripts): `dist/scripts`

### Other components

- **Learner**
- **Coursera course**

## Connections

- Learner → Coursera course: opens course (evidence: `README.md`)
- Learner → Task selection: chooses task (evidence: `README.md`)
- Task selection → Course completion: starts automation (evidence: `README.md`)
