# aryan681/taskreset architecture

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

- Interactive diagram: https://gitdiagram.com/aryan681/taskreset
- Repository: https://github.com/aryan681/taskreset

## Overview

A small scheduled automation that finds the configured Daily Goal container in Notion, traverses its child blocks, and unchecks completed to-dos without updating other block types. The runtime is implemented in one script, so its internal stages share that source path. The README documents the daily GitHub Actions schedule; the workflow file itself was not sampled, so the trigger relationship is documented rather than verified in workflow source.

Main entry points: [`reset.js`](https://github.com/aryan681/taskreset/blob/main/reset.js) (Block traversal)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_actions(("GitHub Actions"))
node_runner["Reset runner<br/>[reset.js]"]
node_traversal["Block traversal<br/>[reset.js]"]
node_todo_reset["Completed todo reset<br/>[reset.js]"]
node_notion["Notion API"]

node_actions -->|"schedules"| node_runner
node_runner -->|"calls"| node_traversal
node_traversal -->|"lists children"| node_notion
node_traversal -->|"visits todos"| node_todo_reset
node_todo_reset -->|"updates checked todos"| node_notion

click node_runner "https://github.com/aryan681/taskreset/blob/main/reset.js"
click node_traversal "https://github.com/aryan681/taskreset/blob/main/reset.js"
click node_todo_reset "https://github.com/aryan681/taskreset/blob/main/reset.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_actions toneIndigo
class node_runner,node_traversal,node_todo_reset toneTeal
class node_notion toneMint
```

## Components

### Other components

- **GitHub Actions**
- [Reset runner](https://github.com/aryan681/taskreset/blob/main/reset.js): `reset.js`
- [Block traversal](https://github.com/aryan681/taskreset/blob/main/reset.js): `reset.js`
- [Completed todo reset](https://github.com/aryan681/taskreset/blob/main/reset.js): `reset.js`
- **Notion API**

## Connections

- GitHub Actions → Reset runner: schedules (evidence: `readme.md`)
- Reset runner → Block traversal: calls (evidence: `reset.js`)
- Block traversal → Notion API: lists children (evidence: `reset.js`)
- Block traversal → Completed todo reset: visits todos (evidence: `reset.js`)
- Completed todo reset → Notion API: updates checked todos (evidence: `reset.js`)
