# sfgfdsd/jishengos architecture

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

- Interactive diagram: https://gitdiagram.com/sfgfdsd/jishengos
- Repository: https://github.com/sfgfdsd/jishengos

## Overview

JISHENG OS is a single-file browser desktop environment. The principal workflow is user interaction with the desktop and its windows to open and manipulate files, with file operations backed by selectable persistent storage; settings and wallpaper personalize the environment. The README documents capabilities and several integrations, but no source excerpts were available, so relationships below are limited to those explicitly described there.

Main entry points: [`index.html`](https://github.com/sfgfdsd/jishengos/blob/main/index.html) (File manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Desktop shell"]
  node_desktop["Desktop<br/>[index.html]"]
  node_windowing["Window manager<br/>[index.html]"]
  node_taskbar["Taskbar<br/>[index.html]"]
end

subgraph group_files["Files and storage"]
  node_file_manager["File manager<br/>[index.html]"]
  node_virtual_fs["JISHENG FS<br/>[index.html]"]
  node_indexeddb[("IndexedDB<br/>[index.html]")]
  node_opfs[("OPFS<br/>[index.html]")]
  node_local_folders["Mounted folders<br/>[index.html]"]
  node_archive["Archive engine<br/>[index.html]"]
end

subgraph group_apps["System apps"]
  node_notepad["Notepad<br/>[index.html]"]
  node_html_editor["HTML editor<br/>[index.html]"]
  node_csv_viewer["CSV viewer<br/>[index.html]"]
  node_image_viewer["Image viewer<br/>[index.html]"]
  node_browser["Built-in browser<br/>[index.html]"]
  node_vm["V86 virtual machine<br/>[index.html]"]
end

subgraph group_settings["Settings and media"]
  node_settings["System settings<br/>[index.html]"]
  node_wallpaper["Wallpaper manager<br/>[index.html]"]
end

subgraph group_integrations["External integrations"]
  node_file_system_api["File System Access API"]
  node_bing["Bing image service"]
  node_app_files["JISHENG-OS-APP files"]
  node_browser_runtime["Browser runtime"]
end

node_user(("User"))

node_user -->|"interacts with"| node_desktop
node_user -->|"uses"| node_taskbar
node_desktop -->|"opens windows"| node_windowing
node_desktop -->|"opens files"| node_file_manager
node_file_manager -->|"browses and edits"| node_virtual_fs
node_virtual_fs -->|"reads and writes"| node_indexeddb
node_virtual_fs -->|"reads and writes"| node_opfs
node_file_manager -->|"browses mounted"| node_local_folders
node_local_folders -->|"uses"| node_file_system_api
node_file_manager -->|"extracts archives"| node_archive
node_file_manager -->|"opens text"| node_notepad
node_file_manager -->|"opens code"| node_html_editor
node_file_manager -->|"opens tables"| node_csv_viewer
node_file_manager -->|"opens images"| node_image_viewer
node_file_manager -->|"opens web files"| node_browser
node_file_manager -->|"opens disk images"| node_vm
node_file_manager -->|"runs app files"| node_app_files
node_app_files -->|"runs in window"| node_windowing
node_html_editor -->|"previews code"| node_browser_runtime
node_browser -->|"renders pages"| node_browser_runtime
node_settings -->|"stores configuration"| node_indexeddb
node_settings -->|"resets storage"| node_opfs
node_settings -->|"configures"| node_wallpaper
node_wallpaper -.->|"loads daily images"| node_bing
node_wallpaper -->|"saves uploaded images"| node_virtual_fs

click node_desktop "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_windowing "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_taskbar "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_file_manager "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_virtual_fs "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_indexeddb "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_opfs "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_local_folders "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_archive "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_notepad "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_html_editor "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_csv_viewer "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_image_viewer "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_browser "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_vm "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_settings "https://github.com/sfgfdsd/jishengos/blob/main/index.html"
click node_wallpaper "https://github.com/sfgfdsd/jishengos/blob/main/index.html"

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_desktop,node_windowing,node_taskbar,node_user toneBlue
class node_file_manager,node_virtual_fs,node_indexeddb,node_opfs,node_local_folders,node_archive toneAmber
class node_notepad,node_html_editor,node_csv_viewer,node_image_viewer,node_browser,node_vm toneMint
class node_settings,node_wallpaper toneRose
class node_file_system_api,node_bing,node_app_files,node_browser_runtime toneIndigo
```

## Components

### Desktop shell

- [Desktop](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Window manager](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Taskbar](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`

### Files and storage

- [File manager](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [JISHENG FS](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [IndexedDB](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [OPFS](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Mounted folders](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Archive engine](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`

### System apps

- [Notepad](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [HTML editor](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [CSV viewer](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Image viewer](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Built-in browser](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [V86 virtual machine](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`

### Settings and media

- [System settings](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`
- [Wallpaper manager](https://github.com/sfgfdsd/jishengos/blob/main/index.html): `index.html`

### External integrations

- **File System Access API**
- **Bing image service**
- **JISHENG-OS-APP files**
- **Browser runtime**

### Other components

- **User**

## Connections

- User → Desktop: interacts with (evidence: `README.md`)
- User → Taskbar: uses (evidence: `README.md`)
- Desktop → Window manager: opens windows (evidence: `README.md`)
- Desktop → File manager: opens files (evidence: `README.md`)
- File manager → JISHENG FS: browses and edits (evidence: `README.md`)
- JISHENG FS → IndexedDB: reads and writes (evidence: `README.md`)
- JISHENG FS → OPFS: reads and writes (evidence: `README.md`)
- File manager → Mounted folders: browses mounted (evidence: `README.md`)
- Mounted folders → File System Access API: uses (evidence: `README.md`)
- File manager → Archive engine: extracts archives (evidence: `README.md`)
- File manager → Notepad: opens text (evidence: `README.md`)
- File manager → HTML editor: opens code (evidence: `README.md`)
- File manager → CSV viewer: opens tables (evidence: `README.md`)
- File manager → Image viewer: opens images (evidence: `README.md`)
- File manager → Built-in browser: opens web files (evidence: `README.md`)
- File manager → V86 virtual machine: opens disk images (evidence: `README.md`)
- File manager → JISHENG-OS-APP files: runs app files (evidence: `README.md`)
- JISHENG-OS-APP files → Window manager: runs in window (evidence: `README.md`)
- HTML editor → Browser runtime: previews code (evidence: `README.md`)
- Built-in browser → Browser runtime: renders pages (evidence: `README.md`)
- System settings → IndexedDB: stores configuration (evidence: `README.md`)
- System settings → OPFS: resets storage (evidence: `README.md`)
- System settings → Wallpaper manager: configures (evidence: `README.md`)
- Wallpaper manager → Bing image service: loads daily images (evidence: `README.md`)
- Wallpaper manager → JISHENG FS: saves uploaded images (evidence: `README.md`)
