# creepahh/hyapsillllo architecture

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

- Interactive diagram: https://gitdiagram.com/creepahh/hyapsillllo
- Repository: https://github.com/creepahh/hyapsillllo

## Overview

Hyapsilo Notes is a Chrome extension for editing one persistent note from either a floating page widget or the toolbar popup. The shortcut workflow runs from the browser command listener through the active tab to the content script, which opens or closes the widget. Both editors use local storage; the widget also loads saved text and listens for changes so tabs stay synchronized. The README documents scrolling and restricted Chrome pages; source excerpts do not show manifest wiring or popup markup, so those details are omitted.

Main entry points: [`background.js`](https://github.com/creepahh/hyapsillllo/blob/main/background.js) (Shortcut dispatcher), [`content.js`](https://github.com/creepahh/hyapsillllo/blob/main/content.js) (Page content script), [`popup.js`](https://github.com/creepahh/hyapsillllo/blob/main/popup.js) (Toolbar note editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Shortcut control"]
  node_background["Shortcut dispatcher<br/>[background.js]"]
  node_content["Page content script<br/>[content.js]"]
end

subgraph group_editors["Note editors"]
  node_widget["Floating notes widget<br/>[content.js]"]
  node_popup["Toolbar note editor<br/>[popup.js]"]
end

subgraph group_state["Shared state"]
  node_storage[("Local note storage")]
end

node_user(("User"))
node_chrome["Chrome commands and tabs"]

node_user -->|"presses shortcut"| node_chrome
node_chrome -->|"sends command"| node_background
node_background -->|"queries active tab"| node_chrome
node_background -->|"sends toggle"| node_content
node_content -->|"opens or closes"| node_widget
node_user -->|"opens toolbar popup"| node_popup
node_widget -->|"reads and saves"| node_storage
node_storage -->|"notifies changes"| node_content
node_popup -->|"loads and saves"| node_storage

click node_background "https://github.com/creepahh/hyapsillllo/blob/main/background.js"
click node_content "https://github.com/creepahh/hyapsillllo/blob/main/content.js"
click node_widget "https://github.com/creepahh/hyapsillllo/blob/main/content.js"
click node_popup "https://github.com/creepahh/hyapsillllo/blob/main/popup.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_background,node_content,node_user toneBlue
class node_widget,node_popup toneAmber
class node_storage toneMint
class node_chrome toneIndigo
```

## Components

### Shortcut control

- [Shortcut dispatcher](https://github.com/creepahh/hyapsillllo/blob/main/background.js): `background.js`
- [Page content script](https://github.com/creepahh/hyapsillllo/blob/main/content.js): `content.js`

### Note editors

- [Floating notes widget](https://github.com/creepahh/hyapsillllo/blob/main/content.js): `content.js`
- [Toolbar note editor](https://github.com/creepahh/hyapsillllo/blob/main/popup.js): `popup.js`

### Shared state

- **Local note storage**

### Other components

- **User**
- **Chrome commands and tabs**

## Connections

- User → Chrome commands and tabs: presses shortcut (evidence: `README.md`)
- Chrome commands and tabs → Shortcut dispatcher: sends command (evidence: `background.js`)
- Shortcut dispatcher → Chrome commands and tabs: queries active tab (evidence: `background.js`)
- Shortcut dispatcher → Page content script: sends toggle (evidence: `background.js`)
- Page content script → Floating notes widget: opens or closes (evidence: `content.js`)
- User → Toolbar note editor: opens toolbar popup (evidence: `README.md`)
- Floating notes widget → Local note storage: reads and saves (evidence: `content.js`)
- Local note storage → Page content script: notifies changes (evidence: `content.js`)
- Toolbar note editor → Local note storage: loads and saves (evidence: `popup.js`)
