# edrx/eev architecture

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

- Interactive diagram: https://gitdiagram.com/edrx/eev
- Repository: https://github.com/edrx/eev

## Overview

##### Project Type Analysis
This is an Emacs extension/library project focused on creating executable notes and automation capabilities within Emacs. The project consists of multiple Elisp modules that work together to provide its functionality.

##### Main Components

Core Components:
- User Interface Layer (eev-mode.el, eev-beginner.el)
- Hyperlink System (eev-hlinks.el, eev-tlinks.el, eev-plinks.el)
- Execution Engine (eev-eval.el, eepitch.el)
- Code Management (eev-code.el, eev-load.el)
- Configuration System (eev-env.el)

Support Components:
- Multi-window Management (eev-multiwindow.el)
- Documentation System (eev-readme.el, eev-explain.el)
- Media Handling (eev-audiovideo.el, eev-videolinks.el)

**┌─────────────────────────────────────────┐**
- User Interface               │
- (eev-mode, key bindings, beginners)   │
- ┤
- Core Functionality             │
- (hyperlinks, execution, evaluation)    │
- ┤
- Support Services               │
- (windows, documentation, media)        │
- ┤
- Emacs Core                  │
- ┘

##### Component Relationships

Create distinct sections for:
a) Main Features:
**┌─────────────────┐    ┌─────────────────┐**
- Sexp Hyperlinks│───▶│ Executable Logs │
- ┘    └─────────────────┘
- ▲                      ▲

**┌─────────────────┐    ┌─────────────────┐**
- eepitch Blocks  │    │  Tutorial System│
- ┘    └─────────────────┘

b) Integration Points:
**┌─────────────┐   ┌─────────────┐**
- Emacs     │◀─▶│    Shell    │
- ┘   └─────────────┘
- ▲                ▲

- ▼                ▼
**┌─────────────┐   ┌─────────────┐**
- File System│   │External Progs│
- ┘   └─────────────┘

##### Additional Notes

- Version information (from VERSION file)
- Beginner/expert dual-purpose nature of the system
- Tutorial system's integration points

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and classes
    classDef ui fill:#a8d1f0,stroke:#2c3e50
    classDef core fill:#a8e6cf,stroke:#2c3e50
    classDef support fill:#ffd3b6,stroke:#2c3e50
    classDef emacs fill:#dfe4ea,stroke:#2c3e50
    
    %% Main Layers
    subgraph UserInterface
        UI[User Interface Layer]
        Mode[eev-mode]
        Beginner[Beginner Interface]
    end

    subgraph CoreLayer
        Core[Core Functionality]
        HyperlinkSystem[Hyperlink System]
        ExecEngine[Execution Engine]
        CodeMgmt[Code Management]
        Config[Configuration]
    end

    subgraph SupportLayer
        Support[Support Services]
        Windows[Window Management]
        Docs[Documentation System]
        Media[Media Handler]
    end

    subgraph EmacsCore
        Emacs[Emacs System]
        Shell[Shell Integration]
        FileSystem[File System]
    end

    %% Hyperlink System Components
    subgraph HyperlinkComponents
        HLinks[Hyperlink Core]
        TLinks[Text Links]
        PLinks[Path Links]
        BLinks[Buffer Links]
    end

    %% Relationships
    UI --> Mode
    UI --> Beginner
    Core --> HyperlinkSystem
    Core --> ExecEngine
    Core --> CodeMgmt
    Core --> Config
    
    HyperlinkSystem --> HyperlinkComponents
    HLinks --> TLinks
    HLinks --> PLinks
    HLinks --> BLinks
    
    ExecEngine --> Shell
    CodeMgmt --> FileSystem
    Support --> Windows
    Support --> Docs
    Support --> Media

    %% Click events for component mapping
    click Mode "https://github.com/edrx/eev/blob/UTF-8/eev-mode.el"
    click Beginner "https://github.com/edrx/eev/blob/UTF-8/eev-beginner.el"
    click HLinks "https://github.com/edrx/eev/blob/UTF-8/eev-hlinks.el"
    click TLinks "https://github.com/edrx/eev/blob/UTF-8/eev-tlinks.el"
    click PLinks "https://github.com/edrx/eev/blob/UTF-8/eev-plinks.el"
    click BLinks "https://github.com/edrx/eev/blob/UTF-8/eev-blinks.el"
    click ExecEngine "https://github.com/edrx/eev/blob/UTF-8/eev-eval.el"
    click Shell "https://github.com/edrx/eev/blob/UTF-8/eepitch.el"
    click CodeMgmt "https://github.com/edrx/eev/blob/UTF-8/eev-code.el"
    click Config "https://github.com/edrx/eev/blob/UTF-8/eev-env.el"
    click Windows "https://github.com/edrx/eev/blob/UTF-8/eev-multiwindow.el"
    click Docs "https://github.com/edrx/eev/blob/UTF-8/eev-readme.el"
    click Media "https://github.com/edrx/eev/blob/UTF-8/eev-audiovideo.el"

    %% Legend
    subgraph Legend
        L1[User Interface]:::ui
        L2[Core Components]:::core
        L3[Support Services]:::support
        L4[Emacs Integration]:::emacs
    end

    %% Apply styles
    class UI,Mode,Beginner ui
    class Core,HyperlinkSystem,ExecEngine,CodeMgmt,Config core
    class Support,Windows,Docs,Media support
    class Emacs,Shell,FileSystem emacs
    class HLinks,TLinks,PLinks,BLinks core
```
