# remyc0des/canvas-ticker architecture

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

- Interactive diagram: https://gitdiagram.com/remyc0des/canvas-ticker
- Repository: https://github.com/remyc0des/canvas-ticker

## Overview

This small script syncs Canvas to-do assignments into TickTick: it fetches assignments, checks existing TickTick tasks, filters duplicates, and posts new tasks. The workflow and API calls are visible in main.py; the empty README provides no additional capability or wiring evidence.

Main entry points: [`main.py`](https://github.com/remyc0des/canvas-ticker/blob/main/main.py) (Build task payloads)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_script["Script entry<br/>[main.py]"]
node_todos["Fetch assignments<br/>[main.py]"]
node_payload["Build task payloads<br/>[main.py]"]
node_check["Check existing tasks<br/>[main.py]"]
node_canvas["Canvas API"]
node_ticktick["TickTick API"]

node_script -->|"runs"| node_payload
node_payload -->|"calls"| node_todos
node_payload -->|"calls"| node_check
node_todos -->|"fetches todos"| node_canvas
node_todos -->|"fetches courses"| node_canvas
node_check -->|"reads tasks"| node_ticktick
node_payload -->|"posts tasks"| node_ticktick

click node_script "https://github.com/remyc0des/canvas-ticker/blob/main/main.py"
click node_todos "https://github.com/remyc0des/canvas-ticker/blob/main/main.py"
click node_payload "https://github.com/remyc0des/canvas-ticker/blob/main/main.py"
click node_check "https://github.com/remyc0des/canvas-ticker/blob/main/main.py"

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_script,node_todos toneTeal
class node_payload,node_check toneRose
class node_canvas,node_ticktick toneMint
```

## Components

### Other components

- [Script entry](https://github.com/remyc0des/canvas-ticker/blob/main/main.py): `main.py`
- [Fetch assignments](https://github.com/remyc0des/canvas-ticker/blob/main/main.py): `main.py`
- [Build task payloads](https://github.com/remyc0des/canvas-ticker/blob/main/main.py): `main.py`
- [Check existing tasks](https://github.com/remyc0des/canvas-ticker/blob/main/main.py): `main.py`
- **Canvas API**
- **TickTick API**

## Connections

- Script entry → Build task payloads: runs (evidence: `main.py`)
- Build task payloads → Fetch assignments: calls (evidence: `main.py`)
- Build task payloads → Check existing tasks: calls (evidence: `main.py`)
- Fetch assignments → Canvas API: fetches todos (evidence: `main.py`)
- Fetch assignments → Canvas API: fetches courses (evidence: `main.py`)
- Check existing tasks → TickTick API: reads tasks (evidence: `main.py`)
- Build task payloads → TickTick API: posts tasks (evidence: `main.py`)
