# shofiqul5/document architecture

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

- Interactive diagram: https://gitdiagram.com/shofiqul5/document
- Repository: https://github.com/shofiqul5/document

## Overview

Document is a static-hosted directory of small tools and projects. The main workflow is a visitor searching or browsing the home-page cards, opening a folder page, then using that tool. The README describes manifest-backed listings, nested-folder navigation, and a server-directory fallback. The sampled code also shows an offline-capable authenticator, a browser-based chat app with local persistence, and a gallery that fetches images from GitHub. Other tool pages are represented from the tree; their internal behavior was not sampled, so their connections are limited to the documented navigation flow.

Main entry points: [`index.html`](https://github.com/shofiqul5/document/blob/main/index.html) (Home listing), [`Encryption/index.html`](https://github.com/shofiqul5/document/blob/main/Encryption/index.html) (Encryption listing), [`Just Communicate/script.js`](https://github.com/shofiqul5/document/blob/main/Just%20Communicate/script.js) (Chat and messaging), [`Gallery/script.js`](https://github.com/shofiqul5/document/blob/main/Gallery/script.js) (Gallery loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Directory portal"]
  node_home["Home listing<br/>[index.html]"]
  node_manifest["Root manifest<br/>[files.json]"]
  node_encryption_list["Encryption listing<br/>[index.html]"]
end

subgraph group_auth["Authentication tool"]
  node_auth_page["Authenticator<br/>[index.html]"]
  node_auth_logic["TOTP and vault<br/>[app.js]"]
  node_auth_cache["Offline cache<br/>[sw.js]"]
end

subgraph group_chat["Communication tool"]
  node_chat_page["Chat interface<br/>[index.html]"]
  node_chat_logic["Chat and messaging<br/>[script.js]"]
  node_chat_cache["Offline cache<br/>[sw.js]"]
  node_chat_store[("Local chat store<br/>[script.js]")]
end

subgraph group_media["Media tool"]
  node_gallery_page["Gallery<br/>[index.html]"]
  node_gallery_logic["Gallery loader<br/>[script.js]"]
end

subgraph group_other["Other tools"]
  node_admission["Admission class<br/>[index.html]"]
  node_routine["HSC Routine<br/>[index.html]"]
  node_gpa["HSC GPA calculator<br/>[index.html]"]
  node_practical["HSC practical<br/>[index.html]"]
  node_qr["QR generator<br/>[index.html]"]
  node_telegram["Telegram controller<br/>[index.html]"]
  node_encrypt_any["Any-file encryption<br/>[index.html]"]
  node_encrypt_text["Text encryption<br/>[index.html]"]
end

node_visitor(("Visitor"))
node_github["GitHub API and image host"]
node_sample_images["Sample image host"]

node_visitor -->|"opens"| node_home
node_home -->|"reads listing"| node_manifest
node_home -->|"opens folder"| node_encryption_list
node_home -->|"opens folder"| node_auth_page
node_home -->|"opens folder"| node_chat_page
node_home -->|"opens folder"| node_gallery_page
node_home -->|"opens folder"| node_admission
node_home -->|"opens folder"| node_routine
node_home -->|"opens folder"| node_gpa
node_home -->|"opens folder"| node_practical
node_home -->|"opens folder"| node_qr
node_home -->|"opens folder"| node_telegram
node_encryption_list -->|"opens folder"| node_encrypt_any
node_encryption_list -->|"opens folder"| node_encrypt_text
node_auth_page -.->|"loads"| node_auth_logic
node_auth_logic -.->|"uses offline cache"| node_auth_cache
node_chat_page -.->|"loads"| node_chat_logic
node_chat_logic -->|"reads and writes"| node_chat_store
node_chat_logic -.->|"uses offline cache"| node_chat_cache
node_gallery_page -.->|"loads"| node_gallery_logic
node_gallery_logic -->|"fetches images"| node_github
node_gallery_logic -->|"loads fallback"| node_sample_images

click node_home "https://github.com/shofiqul5/document/blob/main/index.html"
click node_manifest "https://github.com/shofiqul5/document/blob/main/files.json"
click node_encryption_list "https://github.com/shofiqul5/document/blob/main/Encryption/index.html"
click node_auth_page "https://github.com/shofiqul5/document/blob/main/Authenticator/index.html"
click node_auth_logic "https://github.com/shofiqul5/document/blob/main/Authenticator/app.js"
click node_auth_cache "https://github.com/shofiqul5/document/blob/main/Authenticator/sw.js"
click node_chat_page "https://github.com/shofiqul5/document/blob/main/Just%20Communicate/index.html"
click node_chat_logic "https://github.com/shofiqul5/document/blob/main/Just%20Communicate/script.js"
click node_chat_cache "https://github.com/shofiqul5/document/blob/main/Just%20Communicate/sw.js"
click node_chat_store "https://github.com/shofiqul5/document/blob/main/Just%20Communicate/script.js"
click node_gallery_page "https://github.com/shofiqul5/document/blob/main/Gallery/index.html"
click node_gallery_logic "https://github.com/shofiqul5/document/blob/main/Gallery/script.js"
click node_admission "https://github.com/shofiqul5/document/blob/main/Admission%20class/index.html"
click node_routine "https://github.com/shofiqul5/document/blob/main/HSC%20Routine%202026/index.html"
click node_gpa "https://github.com/shofiqul5/document/blob/main/Hsc%20GPA%20Calculator/index.html"
click node_practical "https://github.com/shofiqul5/document/blob/main/Practical%20for%20HSC/index.html"
click node_qr "https://github.com/shofiqul5/document/blob/main/QR%20code%20generator/index.html"
click node_telegram "https://github.com/shofiqul5/document/blob/main/Telegram%20bot%20controller/index.html"
click node_encrypt_any "https://github.com/shofiqul5/document/blob/main/Encryption/Any%20file/index.html"
click node_encrypt_text "https://github.com/shofiqul5/document/blob/main/Encryption/Only%20text/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_home,node_manifest,node_encryption_list toneBlue
class node_auth_page,node_auth_logic,node_auth_cache toneAmber
class node_chat_page,node_chat_logic,node_chat_cache,node_chat_store,node_github toneMint
class node_gallery_page,node_gallery_logic toneRose
class node_admission,node_routine,node_gpa,node_practical,node_qr,node_telegram,node_encrypt_any,node_encrypt_text,node_visitor,node_sample_images toneIndigo
```

## Components

### Directory portal

- [Home listing](https://github.com/shofiqul5/document/blob/main/index.html): `index.html`
- [Root manifest](https://github.com/shofiqul5/document/blob/main/files.json): `files.json`
- [Encryption listing](https://github.com/shofiqul5/document/blob/main/Encryption/index.html): `Encryption/index.html`

### Authentication tool

- [Authenticator](https://github.com/shofiqul5/document/blob/main/Authenticator/index.html): `Authenticator/index.html`
- [TOTP and vault](https://github.com/shofiqul5/document/blob/main/Authenticator/app.js): `Authenticator/app.js`
- [Offline cache](https://github.com/shofiqul5/document/blob/main/Authenticator/sw.js): `Authenticator/sw.js`

### Communication tool

- [Chat interface](https://github.com/shofiqul5/document/blob/main/Just%20Communicate/index.html): `Just Communicate/index.html`
- [Chat and messaging](https://github.com/shofiqul5/document/blob/main/Just%20Communicate/script.js): `Just Communicate/script.js`
- [Offline cache](https://github.com/shofiqul5/document/blob/main/Just%20Communicate/sw.js): `Just Communicate/sw.js`
- [Local chat store](https://github.com/shofiqul5/document/blob/main/Just%20Communicate/script.js): `Just Communicate/script.js`

### Media tool

- [Gallery](https://github.com/shofiqul5/document/blob/main/Gallery/index.html): `Gallery/index.html`
- [Gallery loader](https://github.com/shofiqul5/document/blob/main/Gallery/script.js): `Gallery/script.js`

### Other tools

- [Admission class](https://github.com/shofiqul5/document/blob/main/Admission%20class/index.html): `Admission class/index.html`
- [HSC Routine](https://github.com/shofiqul5/document/blob/main/HSC%20Routine%202026/index.html): `HSC Routine 2026/index.html`
- [HSC GPA calculator](https://github.com/shofiqul5/document/blob/main/Hsc%20GPA%20Calculator/index.html): `Hsc GPA Calculator/index.html`
- [HSC practical](https://github.com/shofiqul5/document/blob/main/Practical%20for%20HSC/index.html): `Practical for HSC/index.html`
- [QR generator](https://github.com/shofiqul5/document/blob/main/QR%20code%20generator/index.html): `QR code generator/index.html`
- [Telegram controller](https://github.com/shofiqul5/document/blob/main/Telegram%20bot%20controller/index.html): `Telegram bot controller/index.html`
- [Any-file encryption](https://github.com/shofiqul5/document/blob/main/Encryption/Any%20file/index.html): `Encryption/Any file/index.html`
- [Text encryption](https://github.com/shofiqul5/document/blob/main/Encryption/Only%20text/index.html): `Encryption/Only text/index.html`

### Other components

- **Visitor**
- **GitHub API and image host**
- **Sample image host**

## Connections

- Visitor → Home listing: opens (evidence: `README.md`)
- Home listing → Root manifest: reads listing (evidence: `README.md`)
- Home listing → Encryption listing: opens folder (evidence: `README.md`)
- Home listing → Authenticator: opens folder (evidence: `README.md`)
- Home listing → Chat interface: opens folder (evidence: `README.md`)
- Home listing → Gallery: opens folder (evidence: `README.md`)
- Home listing → Admission class: opens folder (evidence: `README.md`)
- Home listing → HSC Routine: opens folder (evidence: `README.md`)
- Home listing → HSC GPA calculator: opens folder (evidence: `README.md`)
- Home listing → HSC practical: opens folder (evidence: `README.md`)
- Home listing → QR generator: opens folder (evidence: `README.md`)
- Home listing → Telegram controller: opens folder (evidence: `README.md`)
- Encryption listing → Any-file encryption: opens folder (evidence: `README.md`)
- Encryption listing → Text encryption: opens folder (evidence: `README.md`)
- Authenticator → TOTP and vault: loads
- TOTP and vault → Offline cache: uses offline cache
- Chat interface → Chat and messaging: loads
- Chat and messaging → Local chat store: reads and writes (evidence: `Just Communicate/script.js`)
- Chat and messaging → Offline cache: uses offline cache
- Gallery → Gallery loader: loads
- Gallery loader → GitHub API and image host: fetches images (evidence: `Gallery/script.js`)
- Gallery loader → Sample image host: loads fallback (evidence: `Gallery/script.js`)
