# darwinsurya/rick-morty architecture

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

- Interactive diagram: https://gitdiagram.com/darwinsurya/rick-morty
- Repository: https://github.com/darwinsurya/rick-morty

## Overview

Rick-OS C-137 is a browser-based, fan-themed multiverse dashboard. A user opens the app, navigates its dashboard sections, explores dimensions, characters, notes and map data, and can trigger a warp or uncover Easter eggs. App owns the dashboard state and renders the major views; seeded content comes from mock data. The README also documents browser-saved egg discoveries and lab-note export. Relationships for unsampled views are included only where the README or source index supports them; the detailed wiring of those views was not inspected.

Main entry points: [`src/App.tsx`](https://github.com/darwinsurya/rick-morty/blob/main/src/App.tsx) (Dashboard state), [`src/utils/audio.ts`](https://github.com/darwinsurya/rick-morty/blob/main/src/utils/audio.ts) (Sound and speech), [`src/components/Characters.tsx`](https://github.com/darwinsurya/rick-morty/blob/main/src/components/Characters.tsx) (Character dossiers), [`src/components/LabNotes.tsx`](https://github.com/darwinsurya/rick-morty/blob/main/src/components/LabNotes.tsx) (Lab notes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Dashboard state<br/>[App.tsx]"]
  node_header["Navigation header<br/>[Header.tsx]"]
  node_footer["Action footer<br/>[Footer.tsx]"]
  node_settings["Settings modal<br/>[SettingsModal.tsx]"]
  node_info["Info modal<br/>[InfoModal.tsx]"]
  node_sidebar["Sidebar<br/>[Sidebar.tsx]"]
  node_background["Galactic backdrop"]
end

subgraph group_exploration["Multiverse exploration"]
  node_portal["Portal hub<br/>[PortalHub.tsx]"]
  node_fluid["Fluid monitor"]
  node_jump["Warp sequence<br/>[JumpModal.tsx]"]
  node_map["Multiverse map<br/>[MultiverseMap.tsx]"]
end

subgraph group_lab["Lab and dossiers"]
  node_characters["Character dossiers<br/>[Characters.tsx]"]
  node_notes["Lab notes<br/>[LabNotes.tsx]"]
  node_data["Seed data<br/>[mockData.ts]"]
end

subgraph group_secrets["Secrets and effects"]
  node_memory["Memory frames<br/>[MemoryFrames.tsx]"]
  node_flashback["Diane flashback<br/>[DianeFlashback.tsx]"]
  node_toast["Egg notification<br/>[EasterEggToast.tsx]"]
  node_catalog["Egg catalog"]
  node_telemetry["Telemetry overlay"]
  node_audio["Sound and speech<br/>[audio.ts]"]
  node_egglogic["Egg detection<br/>[easterEggs.ts]"]
end

node_user(("User"))
node_browser[("Browser storage")]

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"initializes from"| node_data
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_settings
node_app -->|"renders"| node_info
node_app -->|"renders"| node_portal
node_app -->|"renders"| node_characters
node_app -->|"renders"| node_notes
node_app -->|"renders"| node_map
node_app -->|"shows during warp"| node_jump
node_app -->|"renders"| node_flashback
node_app -->|"renders"| node_toast
node_app -->|"renders"| node_catalog
node_app -->|"renders"| node_telemetry
node_portal -->|"renders"| node_fluid
node_jump -->|"renders"| node_memory
node_characters -.->|"plays effects"| node_audio
node_notes -->|"plays effects"| node_audio
node_header -->|"plays effects"| node_audio
node_footer -.->|"plays effects"| node_audio
node_settings -->|"plays effects"| node_audio
node_characters -.->|"uses dossier data"| node_data
node_map -.->|"uses dimension data"| node_data
node_notes -.->|"exports JSON"| node_browser
node_app -.->|"saves discoveries"| node_browser
node_user -.->|"enters secrets"| node_egglogic
node_egglogic -.->|"notifies discovery"| node_toast
node_background -.->|"decorates dashboard"| node_app

click node_entry "https://github.com/darwinsurya/rick-morty/blob/main/src/main.tsx"
click node_app "https://github.com/darwinsurya/rick-morty/blob/main/src/App.tsx"
click node_header "https://github.com/darwinsurya/rick-morty/blob/main/src/components/Header.tsx"
click node_footer "https://github.com/darwinsurya/rick-morty/blob/main/src/components/Footer.tsx"
click node_settings "https://github.com/darwinsurya/rick-morty/blob/main/src/components/SettingsModal.tsx"
click node_info "https://github.com/darwinsurya/rick-morty/blob/main/src/components/InfoModal.tsx"
click node_sidebar "https://github.com/darwinsurya/rick-morty/blob/main/src/components/Sidebar.tsx"
click node_background "https://github.com/darwinsurya/rick-morty/blob/main/src/components/GalacticBackground.tsx"
click node_portal "https://github.com/darwinsurya/rick-morty/blob/main/src/components/PortalHub.tsx"
click node_fluid "https://github.com/darwinsurya/rick-morty/blob/main/src/components/PortalFluidMonitor.tsx"
click node_jump "https://github.com/darwinsurya/rick-morty/blob/main/src/components/JumpModal.tsx"
click node_map "https://github.com/darwinsurya/rick-morty/blob/main/src/components/MultiverseMap.tsx"
click node_characters "https://github.com/darwinsurya/rick-morty/blob/main/src/components/Characters.tsx"
click node_notes "https://github.com/darwinsurya/rick-morty/blob/main/src/components/LabNotes.tsx"
click node_data "https://github.com/darwinsurya/rick-morty/blob/main/src/data/mockData.ts"
click node_memory "https://github.com/darwinsurya/rick-morty/blob/main/src/components/MemoryFrames.tsx"
click node_flashback "https://github.com/darwinsurya/rick-morty/blob/main/src/components/DianeFlashback.tsx"
click node_toast "https://github.com/darwinsurya/rick-morty/blob/main/src/components/EasterEggToast.tsx"
click node_catalog "https://github.com/darwinsurya/rick-morty/blob/main/src/components/EggCatalogModal.tsx"
click node_telemetry "https://github.com/darwinsurya/rick-morty/blob/main/src/components/TelemetryOverlay.tsx"
click node_audio "https://github.com/darwinsurya/rick-morty/blob/main/src/utils/audio.ts"
click node_egglogic "https://github.com/darwinsurya/rick-morty/blob/main/src/utils/easterEggs.ts"

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_entry,node_app,node_header,node_footer,node_settings,node_info,node_sidebar,node_background,node_user toneBlue
class node_portal,node_fluid,node_jump,node_map,node_browser toneAmber
class node_characters,node_notes,node_data toneMint
class node_memory,node_flashback,node_toast,node_catalog,node_telemetry,node_audio,node_egglogic toneRose
```

## Components

### Dashboard shell

- [React entry](https://github.com/darwinsurya/rick-morty/blob/main/src/main.tsx): `src/main.tsx`
- [Dashboard state](https://github.com/darwinsurya/rick-morty/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation header](https://github.com/darwinsurya/rick-morty/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Action footer](https://github.com/darwinsurya/rick-morty/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Settings modal](https://github.com/darwinsurya/rick-morty/blob/main/src/components/SettingsModal.tsx): `src/components/SettingsModal.tsx`
- [Info modal](https://github.com/darwinsurya/rick-morty/blob/main/src/components/InfoModal.tsx): `src/components/InfoModal.tsx`
- [Sidebar](https://github.com/darwinsurya/rick-morty/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Galactic backdrop](https://github.com/darwinsurya/rick-morty/blob/main/src/components/GalacticBackground.tsx): `src/components/GalacticBackground.tsx`

### Multiverse exploration

- [Portal hub](https://github.com/darwinsurya/rick-morty/blob/main/src/components/PortalHub.tsx): `src/components/PortalHub.tsx`
- [Fluid monitor](https://github.com/darwinsurya/rick-morty/blob/main/src/components/PortalFluidMonitor.tsx): `src/components/PortalFluidMonitor.tsx`
- [Warp sequence](https://github.com/darwinsurya/rick-morty/blob/main/src/components/JumpModal.tsx): `src/components/JumpModal.tsx`
- [Multiverse map](https://github.com/darwinsurya/rick-morty/blob/main/src/components/MultiverseMap.tsx): `src/components/MultiverseMap.tsx`

### Lab and dossiers

- [Character dossiers](https://github.com/darwinsurya/rick-morty/blob/main/src/components/Characters.tsx): `src/components/Characters.tsx`
- [Lab notes](https://github.com/darwinsurya/rick-morty/blob/main/src/components/LabNotes.tsx): `src/components/LabNotes.tsx`
- [Seed data](https://github.com/darwinsurya/rick-morty/blob/main/src/data/mockData.ts): `src/data/mockData.ts`

### Secrets and effects

- [Memory frames](https://github.com/darwinsurya/rick-morty/blob/main/src/components/MemoryFrames.tsx): `src/components/MemoryFrames.tsx`
- [Diane flashback](https://github.com/darwinsurya/rick-morty/blob/main/src/components/DianeFlashback.tsx): `src/components/DianeFlashback.tsx`
- [Egg notification](https://github.com/darwinsurya/rick-morty/blob/main/src/components/EasterEggToast.tsx): `src/components/EasterEggToast.tsx`
- [Egg catalog](https://github.com/darwinsurya/rick-morty/blob/main/src/components/EggCatalogModal.tsx): `src/components/EggCatalogModal.tsx`
- [Telemetry overlay](https://github.com/darwinsurya/rick-morty/blob/main/src/components/TelemetryOverlay.tsx): `src/components/TelemetryOverlay.tsx`
- [Sound and speech](https://github.com/darwinsurya/rick-morty/blob/main/src/utils/audio.ts): `src/utils/audio.ts`
- [Egg detection](https://github.com/darwinsurya/rick-morty/blob/main/src/utils/easterEggs.ts): `src/utils/easterEggs.ts`

### Other components

- **User**
- **Browser storage**

## Connections

- User → React entry: opens (evidence: `src/main.tsx`)
- React entry → Dashboard state: renders (evidence: `src/main.tsx`)
- Dashboard state → Seed data: initializes from (evidence: `src/App.tsx`)
- Dashboard state → Navigation header: renders (evidence: `src/App.tsx`)
- Dashboard state → Action footer: renders (evidence: `src/App.tsx`)
- Dashboard state → Settings modal: renders (evidence: `src/App.tsx`)
- Dashboard state → Info modal: renders (evidence: `src/App.tsx`)
- Dashboard state → Portal hub: renders (evidence: `src/App.tsx`)
- Dashboard state → Character dossiers: renders (evidence: `src/App.tsx`)
- Dashboard state → Lab notes: renders (evidence: `src/App.tsx`)
- Dashboard state → Multiverse map: renders (evidence: `src/App.tsx`)
- Dashboard state → Warp sequence: shows during warp (evidence: `src/App.tsx`)
- Dashboard state → Diane flashback: renders (evidence: `src/App.tsx`)
- Dashboard state → Egg notification: renders (evidence: `src/App.tsx`)
- Dashboard state → Egg catalog: renders (evidence: `src/App.tsx`)
- Dashboard state → Telemetry overlay: renders (evidence: `src/App.tsx`)
- Portal hub → Fluid monitor: renders (evidence: `src/components/PortalHub.tsx`)
- Warp sequence → Memory frames: renders (evidence: `src/components/JumpModal.tsx`)
- Character dossiers → Sound and speech: plays effects (evidence: `src/components/Characters.tsx`)
- Lab notes → Sound and speech: plays effects (evidence: `src/components/LabNotes.tsx`)
- Navigation header → Sound and speech: plays effects (evidence: `src/components/Header.tsx`)
- Action footer → Sound and speech: plays effects (evidence: `src/components/Footer.tsx`)
- Settings modal → Sound and speech: plays effects (evidence: `src/components/SettingsModal.tsx`)
- Character dossiers → Seed data: uses dossier data
- Multiverse map → Seed data: uses dimension data
- Lab notes → Browser storage: exports JSON (evidence: `README.md`)
- Dashboard state → Browser storage: saves discoveries (evidence: `README.md`)
- User → Egg detection: enters secrets (evidence: `README.md`)
- Egg detection → Egg notification: notifies discovery
- Galactic backdrop → Dashboard state: decorates dashboard (evidence: `src/App.tsx`)
