# jeremygamer13/a90 architecture

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

- Interactive diagram: https://gitdiagram.com/jeremygamer13/a90
- Repository: https://github.com/jeremygamer13/a90

## Overview

A90 is a Windows Electron desktop app that presents a setup screen, monitors user input, and may trigger an A-90 scare—and optionally close a selected running process—during play. The main process creates the window and handles IPC for process discovery, saved exclusions, and process termination; the preload script implements the UI and interaction behavior. The README warns that window-closing behavior can cause data loss. The excerpts do not show every UI or attack detail, so links are limited to documented or visible relationships.

Main entry points: [`index.js`](https://github.com/jeremygamer13/a90/blob/master/index.js) (Electron main), [`preload.js`](https://github.com/jeremygamer13/a90/blob/master/preload.js) (Setup and controls), [`assets`](https://github.com/jeremygamer13/a90/tree/master/assets) (Images and audio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop app"]
  node_main["Electron main<br/>[index.js]"]
  node_window["App window<br/>[index.js]"]
  node_ui["Setup and controls<br/>[preload.js]"]
end

subgraph group_play["Play behavior"]
  node_input["Input monitor<br/>[preload.js]"]
  node_attack["A-90 attack<br/>[preload.js]"]
  node_rush["Rush scare<br/>[preload.js]"]
  node_ambush["Ambush scare<br/>[preload.js]"]
end

subgraph group_processes["Process controls"]
  node_config[("Saved exclusions<br/>[index.js]")]
  node_processui["Process selection<br/>[preload.js]"]
  node_processlist["Active processes<br/>[index.js]"]
  node_filter["Exclusion filtering<br/>[index.js]"]
  node_terminator["Process termination<br/>[index.js]"]
end

subgraph group_media["Scare media"]
  node_media["Images and audio"]
end

node_user(("User"))
node_os["Windows processes"]

node_user -->|"opens and uses"| node_window
node_main -->|"creates and loads"| node_window
node_window -->|"loads preload"| node_ui
node_ui -->|"invokes IPC"| node_main
node_main -->|"reads and updates"| node_config
node_ui -->|"starts monitoring"| node_input
node_input -->|"observes input"| node_os
node_attack -->|"plays and displays"| node_media
node_rush -->|"plays and displays"| node_media
node_ambush -->|"displays scare"| node_media
node_ui -->|"triggers easter egg"| node_rush
node_ui -.-> node_ambush
node_ui -->|"configures exclusions"| node_processui
node_processui -->|"requests process data"| node_main
node_main -->|"queries processes"| node_processlist
node_main -->|"filters saved exclusions"| node_filter
node_filter -->|"reads exclusions"| node_config
node_attack -->|"requests termination"| node_main
node_main -->|"selects and kills"| node_terminator
node_terminator -->|"runs taskkill"| node_os

click node_main "https://github.com/jeremygamer13/a90/blob/master/index.js"
click node_window "https://github.com/jeremygamer13/a90/blob/master/index.js"
click node_ui "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_config "https://github.com/jeremygamer13/a90/blob/master/index.js"
click node_input "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_attack "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_rush "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_ambush "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_media "https://github.com/jeremygamer13/a90/tree/master/assets"
click node_processui "https://github.com/jeremygamer13/a90/blob/master/preload.js"
click node_processlist "https://github.com/jeremygamer13/a90/blob/master/index.js"
click node_filter "https://github.com/jeremygamer13/a90/blob/master/index.js"
click node_terminator "https://github.com/jeremygamer13/a90/blob/master/index.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_main,node_window,node_ui,node_user toneBlue
class node_input,node_attack,node_rush,node_ambush toneAmber
class node_config,node_processui,node_processlist,node_filter,node_terminator toneMint
class node_media toneRose
class node_os toneIndigo
```

## Components

### Desktop app

- [Electron main](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`
- [App window](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`
- [Setup and controls](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`

### Play behavior

- [Input monitor](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`
- [A-90 attack](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`
- [Rush scare](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`
- [Ambush scare](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`

### Process controls

- [Saved exclusions](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`
- [Process selection](https://github.com/jeremygamer13/a90/blob/master/preload.js): `preload.js`
- [Active processes](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`
- [Exclusion filtering](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`
- [Process termination](https://github.com/jeremygamer13/a90/blob/master/index.js): `index.js`

### Scare media

- [Images and audio](https://github.com/jeremygamer13/a90/tree/master/assets): `assets`

### Other components

- **User**
- **Windows processes**

## Connections

- User → App window: opens and uses (evidence: `README.md`)
- Electron main → App window: creates and loads (evidence: `index.js`)
- App window → Setup and controls: loads preload (evidence: `index.js`)
- Setup and controls → Electron main: invokes IPC (evidence: `preload.js`)
- Electron main → Saved exclusions: reads and updates (evidence: `index.js`)
- Setup and controls → Input monitor: starts monitoring (evidence: `preload.js`)
- Input monitor → Windows processes: observes input (evidence: `preload.js`)
- A-90 attack → Images and audio: plays and displays (evidence: `preload.js`)
- Rush scare → Images and audio: plays and displays (evidence: `preload.js`)
- Ambush scare → Images and audio: displays scare (evidence: `preload.js`)
- Setup and controls → Rush scare: triggers easter egg (evidence: `preload.js`)
- Setup and controls → Ambush scare (evidence: `preload.js`)
- Setup and controls → Process selection: configures exclusions (evidence: `preload.js`)
- Process selection → Electron main: requests process data (evidence: `preload.js`)
- Electron main → Active processes: queries processes (evidence: `index.js`)
- Electron main → Exclusion filtering: filters saved exclusions (evidence: `index.js`)
- Exclusion filtering → Saved exclusions: reads exclusions (evidence: `index.js`)
- A-90 attack → Electron main: requests termination (evidence: `preload.js`)
- Electron main → Process termination: selects and kills (evidence: `index.js`)
- Process termination → Windows processes: runs taskkill (evidence: `index.js`)
