# adhil-a-k/searcade-login architecture

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

- Interactive diagram: https://gitdiagram.com/adhil-a-k/searcade-login
- Repository: https://github.com/adhil-a-k/searcade-login

## Overview

This repository is a scheduled Seacade account-renewal script. Its main workflow reads batched credentials, automates Seacade’s email/password SSO and server-console visit, then logs out; Telegram alerts are optional. The README also documents workflow scheduling and a timestamp commit to keep scheduled Actions active. Source excerpts are partial, so the graph omits unshown internal calls and workflow wiring beyond documented behavior.

Main entry points: [`login.py`](https://github.com/adhil-a-k/searcade-login/blob/main/login.py) (Login runner), [`.github/workflows/main.yml`](https://github.com/adhil-a-k/searcade-login/blob/main/.github/workflows/main.yml) (Scheduled workflow), [`time.txt`](https://github.com/adhil-a-k/searcade-login/blob/main/time.txt) (Activity timestamp)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Scheduled automation"]
  node_workflow["Scheduled workflow<br/>[main.yml]"]
  node_runner["Login runner<br/>[login.py]"]
  node_time_marker["Activity timestamp<br/>[time.txt]"]
end

subgraph group_login["Account renewal"]
  node_account_config["Account parsing<br/>[login.py]"]
  node_browser_setup["Display setup<br/>[login.py]"]
  node_sso_flow["SSO and console flow<br/>[login.py]"]
  node_diagnostics["Screenshots and HTML<br/>[login.py]"]
end

subgraph group_integrations["External services"]
  node_telegram["Telegram notifications<br/>[login.py]"]
  node_seacade["Seacade"]
  node_userveria["Userveria SSO"]
end

node_actions(("GitHub Actions"))

node_actions -->|"schedules"| node_workflow
node_workflow -->|"runs"| node_runner
node_workflow -->|"updates and commits"| node_time_marker
node_runner -->|"parses accounts"| node_account_config
node_runner -->|"starts display"| node_browser_setup
node_runner -->|"renews accounts"| node_sso_flow
node_sso_flow -->|"visits console"| node_seacade
node_sso_flow -->|"authenticates through"| node_userveria
node_sso_flow -->|"captures failures"| node_diagnostics
node_runner -.->|"sends optional alerts"| node_telegram

click node_workflow "https://github.com/adhil-a-k/searcade-login/blob/main/.github/workflows/main.yml"
click node_runner "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_account_config "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_browser_setup "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_sso_flow "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_diagnostics "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_telegram "https://github.com/adhil-a-k/searcade-login/blob/main/login.py"
click node_time_marker "https://github.com/adhil-a-k/searcade-login/blob/main/time.txt"

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_workflow,node_runner,node_time_marker toneBlue
class node_account_config,node_browser_setup,node_sso_flow,node_diagnostics toneAmber
class node_telegram,node_seacade,node_userveria toneMint
class node_actions toneIndigo
```

## Components

### Scheduled automation

- [Scheduled workflow](https://github.com/adhil-a-k/searcade-login/blob/main/.github/workflows/main.yml): `.github/workflows/main.yml`
- [Login runner](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`
- [Activity timestamp](https://github.com/adhil-a-k/searcade-login/blob/main/time.txt): `time.txt`

### Account renewal

- [Account parsing](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`
- [Display setup](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`
- [SSO and console flow](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`
- [Screenshots and HTML](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`

### External services

- [Telegram notifications](https://github.com/adhil-a-k/searcade-login/blob/main/login.py): `login.py`
- **Seacade**
- **Userveria SSO**

### Other components

- **GitHub Actions**

## Connections

- GitHub Actions → Scheduled workflow: schedules (evidence: `README.md`)
- Scheduled workflow → Login runner: runs (evidence: `README.md`)
- Scheduled workflow → Activity timestamp: updates and commits (evidence: `README.md`)
- Login runner → Account parsing: parses accounts (evidence: `login.py`)
- Login runner → Display setup: starts display (evidence: `login.py`)
- Login runner → SSO and console flow: renews accounts (evidence: `login.py`)
- SSO and console flow → Seacade: visits console (evidence: `README.md`)
- SSO and console flow → Userveria SSO: authenticates through (evidence: `README.md`)
- SSO and console flow → Screenshots and HTML: captures failures (evidence: `README.md`)
- Login runner → Telegram notifications: sends optional alerts (evidence: `README.md`)
