# amxnesh/skynet architecture

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

- Interactive diagram: https://gitdiagram.com/amxnesh/skynet
- Repository: https://github.com/amxnesh/skynet

## Overview

Review-message is a small password-gated message site. The shown script checks a hard-coded password, sends a notification through EmailJS on success, then redirects to the message page; a failed check alerts the user. The HTML and CSS are present in the tree but were not sampled, so their specific UI content and wiring are uncertain.

Main entry points: [`script.js`](https://github.com/amxnesh/skynet/blob/main/script.js) (Password check), [`message.html`](https://github.com/amxnesh/skynet/blob/main/message.html) (Message page)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Visitor"))
node_entry["Password page<br/>[index.html]"]
node_check["Password check<br/>[script.js]"]
node_message["Message page<br/>[message.html]"]
node_styles["Site styles<br/>[style.css]"]
node_emailjs["EmailJS"]

node_check -->|"sends notification"| node_emailjs
node_check -->|"redirects to"| node_message

click node_entry "https://github.com/amxnesh/skynet/blob/main/index.html"
click node_check "https://github.com/amxnesh/skynet/blob/main/script.js"
click node_message "https://github.com/amxnesh/skynet/blob/main/message.html"
click node_styles "https://github.com/amxnesh/skynet/blob/main/style.css"

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_user,node_emailjs toneIndigo
class node_entry,node_check,node_message,node_styles toneTeal
```

## Components

### Other components

- **Visitor**
- [Password page](https://github.com/amxnesh/skynet/blob/main/index.html): `index.html`
- [Password check](https://github.com/amxnesh/skynet/blob/main/script.js): `script.js`
- [Message page](https://github.com/amxnesh/skynet/blob/main/message.html): `message.html`
- [Site styles](https://github.com/amxnesh/skynet/blob/main/style.css): `style.css`
- **EmailJS**

## Connections

- Password check → EmailJS: sends notification (evidence: `script.js`)
- Password check → Message page: redirects to (evidence: `script.js`)
