# brunokiafuka/hooked architecture

> Architecture diagram of the GitHub repository brunokiafuka/hooked, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/brunokiafuka/hooked
- Repository: https://github.com/brunokiafuka/hooked

## Overview

##### Main Components Identification

a) Extension Host (VS Code)
b) Core Extension Logic
c) Hook Analysis Engine
e) Webview Display
f) Clipboard Integration

##### Component Relationships

- Entry Point (extension.ts) at the top level
- Core Logic (core.ts) as the central coordinator
- Implementation Layer (impl folder)
- Utility Services (utils folder)
- Configuration Layer (config folder)

##### Specific Implementation Details

Technical aspects:

**[VS Code Extension Host]**

- ▼
**[Extension Entry Point]**

- ▼
**[Core Logic] ←→ [Configuration]**

- → [Hook Analysis Engine]

- ▼

- ▼
- → [Webview Display]

- → [Clipboard Service]

##### Technical Stack Indicators

Symbols or labels for:
- TypeScript implementation
- VS Code API usage
- React hooks context

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph VSCode[VS Code Extension Host]
        EP[Extension Entry Point]
        Core[Core Logic]
        
        subgraph Implementation[Implementation Layer]
            HA[Hook Analysis Engine]
            MG[Mermaid Generator]
        end
        
        subgraph Utils[Utility Services]
            WV[Webview Display]
            CS[Clipboard Service]
            FEV[File Extension Validator]
            HPV[Hook Path Validator]
        end
        
        subgraph Config[Configuration Layer]
            CF[Configuration Constants]
        end
    end
    
    EP --> Core
    Core --> HA
    Core --> MG
    Core --> WV
    Core --> CS
    Core <--> CF
    
    HA --> MG
    MG --> WV
    
    Core --> FEV
    Core --> HPV
    
    classDef vscode fill:#4a9eff,stroke:#333,stroke-width:2px
    classDef core fill:#2ecc71,stroke:#333,stroke-width:2px
    classDef impl fill:#f1c40f,stroke:#333,stroke-width:2px
    classDef utils fill:#95a5a6,stroke:#333,stroke-width:2px
    classDef config fill:#e74c3c,stroke:#333,stroke-width:2px
    
    class EP,VSCode vscode
    class Core core
    class HA,MG impl
    class WV,CS,FEV,HPV utils
    class CF config
    
    click EP "https://github.com/brunokiafuka/hooked/blob/main/src/extension.ts"
    click Core "https://github.com/brunokiafuka/hooked/blob/main/src/core.ts"
    click HA "https://github.com/brunokiafuka/hooked/blob/main/src/impl/visitImports.ts"
    click MG "https://github.com/brunokiafuka/hooked/blob/main/src/impl/genMermaid.ts"
    click WV "https://github.com/brunokiafuka/hooked/blob/main/src/utils/getWebviewContent.ts"
    click CF "https://github.com/brunokiafuka/hooked/blob/main/src/config/constants.ts"
    click FEV "https://github.com/brunokiafuka/hooked/blob/main/src/utils/isSupportedFileExtension.ts"
    click HPV "https://github.com/brunokiafuka/hooked/blob/main/src/utils/assertHookPath.ts"
```
