# garcias/classroom-automation architecture

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

- Interactive diagram: https://gitdiagram.com/garcias/classroom-automation
- Repository: https://github.com/garcias/classroom-automation

## Overview

classroom-automation is a Google Apps Script project that uses a container-bound spreadsheet as its user interface for common Google Classroom tasks. The principal workflow is to refresh course data, select a course and assignment in the sheet, then refresh its submissions; users can also batch-create assignments or merge submitted Google Docs. The graph preserves the separate comment-collection script and spreadsheet utility. Some app.js sections were not sampled, so capability links documented in the README are cited there; no unshown internal call sequence is inferred.

Main entry points: [`app.js`](https://github.com/garcias/classroom-automation/blob/main/app.js) (Classroom actions), [`collect-comments.js`](https://github.com/garcias/classroom-automation/blob/main/collect-comments.js) (Comment collector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Classroom workflow"]
  node_app["Classroom actions<br/>[app.js]"]
  node_course["Course listing<br/>[app.js]"]
  node_assignment["Assignment listing<br/>[app.js]"]
  node_submission["Submission listing<br/>[app.js]"]
  node_batch["Batch assignment<br/>[app.js]"]
end

subgraph group_data["Spreadsheet data"]
  node_sheettable["Sheet table handling<br/>[app.js]"]
  node_sheetutility["Range transforms<br/>[sheet-utility.js]"]
end

subgraph group_documents["Document tools"]
  node_merge["Submission merger<br/>[app.js]"]
  node_comments["Comment collector"]
end

node_teacher(("Teacher"))
node_spreadsheet[("Classroom spreadsheet")]
node_classroom["Google Classroom"]
node_docs["Google Docs"]

node_teacher -->|"selects tasks"| node_spreadsheet
node_spreadsheet -->|"invokes actions"| node_app
node_app -->|"refreshes"| node_course
node_app -->|"refreshes"| node_assignment
node_app -->|"refreshes"| node_submission
node_app -->|"creates assignments"| node_batch
node_course -->|"lists courses"| node_classroom
node_submission -->|"fetches submissions"| node_classroom
node_app -->|"updates sheets"| node_sheettable
node_sheettable -->|"reads and writes"| node_spreadsheet
node_app -->|"merges submissions"| node_merge
node_merge -->|"creates and copies"| node_docs
node_comments -->|"reads comments"| node_docs

click node_app "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_course "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_assignment "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_submission "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_batch "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_sheettable "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_sheetutility "https://github.com/garcias/classroom-automation/blob/main/sheet-utility.js"
click node_merge "https://github.com/garcias/classroom-automation/blob/main/app.js"
click node_comments "https://github.com/garcias/classroom-automation/blob/main/collect-comments.js"

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_app,node_course,node_assignment,node_submission,node_batch toneBlue
class node_sheettable,node_sheetutility,node_spreadsheet toneAmber
class node_merge,node_comments toneMint
class node_teacher,node_classroom,node_docs toneIndigo
```

## Components

### Classroom workflow

- [Classroom actions](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Course listing](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Assignment listing](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Submission listing](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Batch assignment](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`

### Spreadsheet data

- [Sheet table handling](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Range transforms](https://github.com/garcias/classroom-automation/blob/main/sheet-utility.js): `sheet-utility.js`

### Document tools

- [Submission merger](https://github.com/garcias/classroom-automation/blob/main/app.js): `app.js`
- [Comment collector](https://github.com/garcias/classroom-automation/blob/main/collect-comments.js): `collect-comments.js`

### Other components

- **Teacher**
- **Classroom spreadsheet**
- **Google Classroom**
- **Google Docs**

## Connections

- Teacher → Classroom spreadsheet: selects tasks (evidence: `README.md`)
- Classroom spreadsheet → Classroom actions: invokes actions (evidence: `README.md`)
- Classroom actions → Course listing: refreshes (evidence: `README.md`)
- Classroom actions → Assignment listing: refreshes (evidence: `README.md`)
- Classroom actions → Submission listing: refreshes (evidence: `README.md`)
- Classroom actions → Batch assignment: creates assignments (evidence: `README.md`)
- Course listing → Google Classroom: lists courses (evidence: `app.js`)
- Submission listing → Google Classroom: fetches submissions (evidence: `app.js`)
- Classroom actions → Sheet table handling: updates sheets (evidence: `README.md`)
- Sheet table handling → Classroom spreadsheet: reads and writes (evidence: `app.js`)
- Classroom actions → Submission merger: merges submissions (evidence: `README.md`)
- Submission merger → Google Docs: creates and copies (evidence: `app.js`)
- Comment collector → Google Docs: reads comments (evidence: `collect-comments.js`)
