# pedepx/omnidex architecture

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

- Interactive diagram: https://gitdiagram.com/pedepx/omnidex
- Repository: https://github.com/pedepx/omnidex

## Overview

Omnidex is a browser-based Ben 10 alien encyclopedia. The documented user journey starts at the Omnitrix, activates it, lets the user browse the 19-alien catalog, and transforms a selected alien to reveal its information; clicking again begins de-transformation. Supporting capabilities include sound and animation effects, individually expandable information sections, keyboard navigation, responsive layout, and reduced-motion support. The README documents behavior but no source excerpts were provided, so relationships below are limited to documented behavior; several features share the JavaScript implementation path.

Main entry points: [`assets/css/style.css`](https://github.com/pedepx/omnidex/blob/main/assets/css/style.css) (Visual effects), [`assets/js/script.js`](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js) (Omnitrix activation), [`index.html`](https://github.com/pedepx/omnidex/blob/main/index.html) (Web interface), [`assets/sounds`](https://github.com/pedepx/omnidex/tree/main/assets/sounds) (Sound effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_app["Web interface<br/>[index.html]"]
  node_omnitrix["Omnitrix activation<br/>[script.js]"]
  node_deactivation["De-transformation<br/>[script.js]"]
end

subgraph group_catalog["Alien catalog"]
  node_navigation["Catalog navigation<br/>[script.js]"]
  node_transformation["Alien transformation<br/>[script.js]"]
  node_alien_info["Alien information<br/>[script.js]"]
  node_expandable_sections["Expandable sections<br/>[script.js]"]
end

subgraph group_presentation["Presentation assets"]
  node_visual_effects["Visual effects<br/>[style.css]"]
  node_responsive_accessibility["Responsive access<br/>[style.css]"]
  node_alien_art["Alien artwork"]
  node_sound_effects["Sound effects"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_visitor -->|"activates"| node_omnitrix
node_visitor -->|"browses"| node_navigation
node_visitor -->|"selects alien"| node_transformation
node_transformation -->|"shows details"| node_alien_info
node_visitor -->|"clicks again"| node_deactivation
node_visitor -->|"opens sections"| node_expandable_sections
node_omnitrix -->|"plays activation"| node_sound_effects
node_deactivation -->|"plays discharge"| node_sound_effects
node_navigation -->|"animates navigation"| node_visual_effects
node_omnitrix -->|"animates activation"| node_visual_effects
node_transformation -->|"changes display"| node_visual_effects
node_deactivation -->|"animates discharge"| node_visual_effects
node_alien_info -.->|"shows artwork"| node_alien_art
node_app -->|"supports access"| node_responsive_accessibility

click node_app "https://github.com/pedepx/omnidex/blob/main/index.html"
click node_omnitrix "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_navigation "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_transformation "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_alien_info "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_deactivation "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_expandable_sections "https://github.com/pedepx/omnidex/blob/main/assets/js/script.js"
click node_visual_effects "https://github.com/pedepx/omnidex/blob/main/assets/css/style.css"
click node_responsive_accessibility "https://github.com/pedepx/omnidex/blob/main/assets/css/style.css"
click node_alien_art "https://github.com/pedepx/omnidex/tree/main/assets/images"
click node_sound_effects "https://github.com/pedepx/omnidex/tree/main/assets/sounds"

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_app,node_omnitrix,node_deactivation toneBlue
class node_navigation,node_transformation,node_alien_info,node_expandable_sections toneAmber
class node_visual_effects,node_responsive_accessibility,node_alien_art,node_sound_effects toneMint
class node_visitor toneIndigo
```

## Components

### User experience

- [Web interface](https://github.com/pedepx/omnidex/blob/main/index.html): `index.html`
- [Omnitrix activation](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`
- [De-transformation](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`

### Alien catalog

- [Catalog navigation](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`
- [Alien transformation](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`
- [Alien information](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`
- [Expandable sections](https://github.com/pedepx/omnidex/blob/main/assets/js/script.js): `assets/js/script.js`

### Presentation assets

- [Visual effects](https://github.com/pedepx/omnidex/blob/main/assets/css/style.css): `assets/css/style.css`
- [Responsive access](https://github.com/pedepx/omnidex/blob/main/assets/css/style.css): `assets/css/style.css`
- [Alien artwork](https://github.com/pedepx/omnidex/tree/main/assets/images): `assets/images`
- [Sound effects](https://github.com/pedepx/omnidex/tree/main/assets/sounds): `assets/sounds`

### Other components

- **Visitor**

## Connections

- Visitor → Web interface: opens (evidence: `README.md`)
- Visitor → Omnitrix activation: activates (evidence: `README.md`)
- Visitor → Catalog navigation: browses (evidence: `README.md`)
- Visitor → Alien transformation: selects alien (evidence: `README.md`)
- Alien transformation → Alien information: shows details (evidence: `README.md`)
- Visitor → De-transformation: clicks again (evidence: `README.md`)
- Visitor → Expandable sections: opens sections (evidence: `README.md`)
- Omnitrix activation → Sound effects: plays activation (evidence: `README.md`)
- De-transformation → Sound effects: plays discharge (evidence: `README.md`)
- Catalog navigation → Visual effects: animates navigation (evidence: `README.md`)
- Omnitrix activation → Visual effects: animates activation (evidence: `README.md`)
- Alien transformation → Visual effects: changes display (evidence: `README.md`)
- De-transformation → Visual effects: animates discharge (evidence: `README.md`)
- Alien information → Alien artwork: shows artwork
- Web interface → Responsive access: supports access (evidence: `README.md`)
