# wxhzhwxhzh/saossion_code_helper_online architecture

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

- Interactive diagram: https://gitdiagram.com/wxhzhwxhzh/saossion_code_helper_online
- Repository: https://github.com/wxhzhwxhzh/saossion_code_helper_online

## Overview

##### Project type and purpose
- This is a browser‑based, multi‑page static web application (“骚神库代码生成助手在线版”) written in HTML/CSS/JavaScript.
- It provides several “modules” or feature‑pages (e.g., coffee, hook, jiaoxue, jinjie, teach, vip, websocket) each delivering a slice of the code‑generation or demonstration functionality.
- A minimal Python script (test.py) acts as an HTTP/WebSocket server for local testing.

##### File structure
- Top‑level assets:
- index.html / index_old.html – entry points
- css/, fonts/, img/ – shared static resources
- js/ – application logic and JSON payloads (inject.js, main.js, loadLinks.js, plus img_url_list.json)
- json/ – standalone data files (download_links.json, links.json)
- .vscode – IDE settings (ignore in architecture)
- test.py – lightweight Python HTTP/WebSocket server
- Feature folders:
- coffee/, hook/, jiaoxue/, jinjie/, teach/, vip/, websocket/
Each contains its own HTML/CSS/JS subset, representing an independent module or demo page.

##### Extract insights from the README
- High‑level description only: “Code generation assistant, online version.”

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client Side
    subgraph "Client Side"
        direction TB
        subgraph "Entry Points"
            direction TB
            IE["index.html"]:::client
            IO["index_old.html"]:::client
        end
        subgraph "Feature Modules"
            direction TB
            COF["coffee Module"]:::client
            HOOK["hook Module"]:::client
            JX["jiaoxue Module"]:::client
            JJ["jinjie Module"]:::client
            TEACH["teach Module"]:::client
            VIP["vip Module"]:::client
            WS["websocket Module"]:::client
        end
        subgraph "Shared Assets"
            direction TB
            CSS["css/"]:::client
            FONTS["fonts/"]:::client
            IMGS["img/"]:::client
            JSLOGIC["Shared JS Logic & Data"]:::client
        end
    end

    %% Data Store
    JSONDS["JSON Data Store\n(json/links.json\ndownload_links.json)"]:::datastore

    %% Server Side
    subgraph "Server Side"
        direction TB
        HTTP["Static Asset Server\n(test.py HTTP)"]:::server
        WS_SRV["WebSocket Server\n(test.py WS)"]:::server
    end

    %% Connections
    IE -->|HTTP GET| HTTP
    IO -->|HTTP GET| HTTP
    HTTP -->|Serves HTML/CSS/JS/IMG/JSON| CSS
    HTTP --> CSS
    HTTP --> FONTS
    HTTP --> IMGS
    HTTP --> JSLOGIC

    COF -->|HTTP GET| HTTP
    HOOK -->|HTTP GET| HTTP
    JX -->|HTTP GET| HTTP
    JJ -->|HTTP GET| HTTP
    TEACH -->|HTTP GET| HTTP
    VIP -->|HTTP GET| HTTP
    WS -->|HTTP GET| HTTP

    COF --> CSS
    HOOK --> CSS
    JX --> CSS
    JJ --> CSS
    TEACH --> CSS
    VIP --> CSS
    WS --> CSS

    COF --> FONTS
    HOOK --> FONTS
    JX --> FONTS
    JJ --> FONTS
    TEACH --> FONTS
    VIP --> FONTS
    WS --> FONTS

    COF --> IMGS
    HOOK --> IMGS
    JX --> IMGS
    JJ --> IMGS
    TEACH --> IMGS
    VIP --> IMGS
    WS --> IMGS

    COF --> JSLOGIC
    HOOK --> JSLOGIC
    JX --> JSLOGIC
    JJ --> JSLOGIC
    TEACH --> JSLOGIC
    VIP --> JSLOGIC
    WS --> JSLOGIC

    COF -->|Fetch JSON| JSONDS
    HOOK -->|Fetch JSON| JSONDS
    JX -->|Fetch JSON| JSONDS
    JJ -->|Fetch JSON| JSONDS
    TEACH -->|Fetch JSON| JSONDS
    VIP -->|Fetch JSON| JSONDS

    WS -->|Fetch JSON| JSONDS
    WS -->|WebSocket| WS_SRV
    WS_SRV <-->|WebSocket| WS

    %% Click Events - Entry Points
    click IE "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/index.html"
    click IO "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/index_old.html"
    %% Shared CSS Assets
    click CSS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/tree/main/css/"
    click CSS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/css/button2.css"
    click CSS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/css/code_helper.css"
    click CSS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/css/popup2.css"
    %% Shared Fonts and Images
    click FONTS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/tree/main/fonts/"
    click IMGS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/tree/main/img/"
    %% Shared JS Logic & Data
    click JSLOGIC "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/js/main.js"
    click JSLOGIC "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/js/inject.js"
    click JSLOGIC "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/js/loadLinks.js"
    click JSLOGIC "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/js/div_show_switch.js"
    click JSLOGIC "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/js/img_url_list.json"
    %% JSON Data Store
    click JSONDS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/json/links.json"
    click JSONDS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/json/download_links.json"
    %% Modules
    click COF "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/coffee/index.html"
    click HOOK "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/hook/index.html"
    click HOOK "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/hook/main.js"
    click JX "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/jiaoxue/index.html"
    click JX "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/jiaoxue/jiaoxue.css"
    click JX "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/jiaoxue/jiaoxue.js"
    click JX "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/jiaoxue/code.js"
    click JJ "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/jinjie/index.html"
    click JJ "https://github.com/wxhzhwxhzh/saossion_code_helper_online/tree/main/jinjie/img/"
    click TEACH "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/teach/index.html"
    click TEACH "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/teach/styles.css"
    click TEACH "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/teach/main.js"
    click TEACH "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/teach/code_cache.js"
    click TEACH "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/teach/测试.html"
    click VIP "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/vip/index.html"
    click VIP "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/vip/css/bootstrap.css"
    click VIP "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/vip/css/style.css"
    click VIP "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/vip/playtv.js"
    click WS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/websocket/index.html"
    click WS "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/websocket/styles.css"
    %% Server
    click HTTP "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/test.py"
    click WS_SRV "https://github.com/wxhzhwxhzh/saossion_code_helper_online/blob/main/test.py"

    %% Styles
    classDef client fill:#D0E8FF,stroke:#0366d6,stroke-width:1px
    classDef server fill:#DFFFD0,stroke:#28a745,stroke-width:1px
    classDef datastore fill:#FFE4B3,stroke:#e08e0b,stroke-width:1px
```
