# dmitmel/dotfiles architecture

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

- Interactive diagram: https://gitdiagram.com/dmitmel/dotfiles
- Repository: https://github.com/dmitmel/dotfiles

## Overview

This repository is a personal dotfiles collection rather than one application: its principal workflow is invoking terminal/editor helpers or site-specific browser scripts to customize a local workflow. Distinct branches generate terminal color themes, render Markdown, provide editor integrations, and supply system and terminal utilities. The graph preserves the indexed core scripts and documented plugin relationships; unsampled integrations are represented only at their supported directory paths, without inferred internal call chains.

Main entry points: [`misc/markdown2htmldoc/main.js`](https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/main.js) (Markdown renderer), [`scripts/dotfiles/welcome/__init__.py`](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/__init__.py) (Welcome display), [`scripts/dotfiles/welcome/system_info.py`](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/system_info.py) (System information), [`scripts/dotfiles/icat.py`](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/icat.py) (Image preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_themes["Color themes"]
  node_color_generator["Theme generator<br/>[main.py]"]
  node_gnome_import["GNOME importer"]
end

subgraph group_terminal["Terminal utilities"]
  node_terminal_utils["Terminal utilities<br/>[terminal_utils.py]"]
  node_image_preview["Image preview<br/>[icat.py]"]
  node_manual_pager["Manual pager<br/>[fancy_man_pager.py]"]
  node_common_utils["Shared script helpers"]
  node_welcome["Welcome display<br/>[__init__.py]"]
  node_system_info["System information<br/>[system_info.py]"]
  node_welcome_colors["Welcome colors<br/>[colors.py]"]
  node_humanize["Value formatting<br/>[humanize.py]"]
  node_other_python["Python utilities"]
end

subgraph group_editors["Editor integrations"]
  node_ranger["Ranger image display<br/>[commands.py]"]
  node_nvim_tools["Neovim helpers"]
  node_prettier_server["Prettier language server<br/>[main.js]"]
end

subgraph group_documents["Document tooling"]
  node_markdown_cli["Markdown renderer<br/>[main.js]"]
  node_syntax_highlighting["Syntax highlighting"]
  node_tasklist["Task-list plugin"]
  node_header_anchors["Heading anchors"]
end

subgraph group_misc["Other integrations"]
  node_browser_scripts["Website userscripts"]
  node_nginx_theme["Autoindex theme"]
  node_crosscode_mod["CrossCode mod"]
end

node_user(("Dotfiles user"))
node_user_terminal(("Terminal"))
node_user_editor(("Editor"))
node_websites(("Websites"))

node_user -.->|"runs"| node_color_generator
node_gnome_import -->|"imports theme logic"| node_color_generator
node_user -.->|"runs"| node_markdown_cli
node_markdown_cli -->|"uses highlighting"| node_syntax_highlighting
node_markdown_cli -->|"registers plugin"| node_tasklist
node_markdown_cli -->|"registers plugin"| node_header_anchors
node_user -.->|"uses formatting"| node_prettier_server
node_manual_pager -->|"uses helpers"| node_common_utils
node_image_preview -->|"uses terminal helpers"| node_terminal_utils
node_welcome -->|"uses terminal helpers"| node_terminal_utils
node_welcome -->|"uses colors"| node_welcome_colors
node_welcome -->|"gets system details"| node_system_info
node_system_info -->|"uses formatting"| node_welcome_colors
node_system_info -->|"formats values"| node_humanize
node_ranger -->|"calls preview helper"| node_image_preview
node_user_terminal -.->|"views"| node_welcome
node_user_editor -.->|"requests formatting"| node_prettier_server
node_websites -.->|"runs scripts"| node_browser_scripts

click node_color_generator "https://github.com/dmitmel/dotfiles/blob/master/colorschemes/main.py"
click node_gnome_import "https://github.com/dmitmel/dotfiles/blob/master/colorschemes/gnome_terminal_import.py"
click node_terminal_utils "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/terminal_utils.py"
click node_image_preview "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/icat.py"
click node_manual_pager "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/fancy_man_pager.py"
click node_common_utils "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/common_script_utils.py"
click node_welcome "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/__init__.py"
click node_system_info "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/system_info.py"
click node_welcome_colors "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/colors.py"
click node_humanize "https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/humanize.py"
click node_other_python "https://github.com/dmitmel/dotfiles/tree/master/scripts/dotfiles"
click node_ranger "https://github.com/dmitmel/dotfiles/blob/master/misc/ranger/commands.py"
click node_nvim_tools "https://github.com/dmitmel/dotfiles/tree/master/nvim"
click node_markdown_cli "https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/main.js"
click node_syntax_highlighting "https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/syntax-highlighting.js"
click node_tasklist "https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/markdown-it-tasklist.js"
click node_header_anchors "https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/markdown-it-header-anchors.js"
click node_prettier_server "https://github.com/dmitmel/dotfiles/blob/master/misc/prettier-language-server/main.js"
click node_browser_scripts "https://github.com/dmitmel/dotfiles/tree/master/misc/userscripts"
click node_nginx_theme "https://github.com/dmitmel/dotfiles/tree/master/misc/nginx-autoindex-theme"
click node_crosscode_mod "https://github.com/dmitmel/dotfiles/tree/master/misc/crosscode-dotfiles-mod"

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_color_generator,node_gnome_import,node_user toneBlue
class node_terminal_utils,node_image_preview,node_manual_pager,node_common_utils,node_welcome,node_system_info,node_welcome_colors,node_humanize,node_other_python toneAmber
class node_ranger,node_nvim_tools,node_prettier_server toneMint
class node_markdown_cli,node_syntax_highlighting,node_tasklist,node_header_anchors toneRose
class node_browser_scripts,node_nginx_theme,node_crosscode_mod,node_user_terminal,node_user_editor,node_websites toneIndigo
```

## Components

### Color themes

- [Theme generator](https://github.com/dmitmel/dotfiles/blob/master/colorschemes/main.py): `colorschemes/main.py`
- [GNOME importer](https://github.com/dmitmel/dotfiles/blob/master/colorschemes/gnome_terminal_import.py): `colorschemes/gnome_terminal_import.py`

### Terminal utilities

- [Terminal utilities](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/terminal_utils.py): `scripts/dotfiles/terminal_utils.py`
- [Image preview](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/icat.py): `scripts/dotfiles/icat.py`
- [Manual pager](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/fancy_man_pager.py): `scripts/dotfiles/fancy_man_pager.py`
- [Shared script helpers](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/common_script_utils.py): `scripts/dotfiles/common_script_utils.py`
- [Welcome display](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/__init__.py): `scripts/dotfiles/welcome/__init__.py`
- [System information](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/system_info.py): `scripts/dotfiles/welcome/system_info.py`
- [Welcome colors](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/colors.py): `scripts/dotfiles/welcome/colors.py`
- [Value formatting](https://github.com/dmitmel/dotfiles/blob/master/scripts/dotfiles/welcome/humanize.py): `scripts/dotfiles/welcome/humanize.py`
- [Python utilities](https://github.com/dmitmel/dotfiles/tree/master/scripts/dotfiles): `scripts/dotfiles`

### Editor integrations

- [Ranger image display](https://github.com/dmitmel/dotfiles/blob/master/misc/ranger/commands.py): `misc/ranger/commands.py`
- [Neovim helpers](https://github.com/dmitmel/dotfiles/tree/master/nvim): `nvim`
- [Prettier language server](https://github.com/dmitmel/dotfiles/blob/master/misc/prettier-language-server/main.js): `misc/prettier-language-server/main.js`

### Document tooling

- [Markdown renderer](https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/main.js): `misc/markdown2htmldoc/main.js`
- [Syntax highlighting](https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/syntax-highlighting.js): `misc/markdown2htmldoc/syntax-highlighting.js`
- [Task-list plugin](https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/markdown-it-tasklist.js): `misc/markdown2htmldoc/markdown-it-tasklist.js`
- [Heading anchors](https://github.com/dmitmel/dotfiles/blob/master/misc/markdown2htmldoc/markdown-it-header-anchors.js): `misc/markdown2htmldoc/markdown-it-header-anchors.js`

### Other integrations

- [Website userscripts](https://github.com/dmitmel/dotfiles/tree/master/misc/userscripts): `misc/userscripts`
- [Autoindex theme](https://github.com/dmitmel/dotfiles/tree/master/misc/nginx-autoindex-theme): `misc/nginx-autoindex-theme`
- [CrossCode mod](https://github.com/dmitmel/dotfiles/tree/master/misc/crosscode-dotfiles-mod): `misc/crosscode-dotfiles-mod`

### Other components

- **Dotfiles user**
- **Terminal**
- **Editor**
- **Websites**

## Connections

- Dotfiles user → Theme generator: runs
- GNOME importer → Theme generator: imports theme logic (evidence: `colorschemes/gnome_terminal_import.py`)
- Dotfiles user → Markdown renderer: runs
- Markdown renderer → Syntax highlighting: uses highlighting (evidence: `misc/markdown2htmldoc/main.js`)
- Markdown renderer → Task-list plugin: registers plugin (evidence: `misc/markdown2htmldoc/main.js`)
- Markdown renderer → Heading anchors: registers plugin (evidence: `misc/markdown2htmldoc/main.js`)
- Dotfiles user → Prettier language server: uses formatting
- Manual pager → Shared script helpers: uses helpers (evidence: `scripts/dotfiles/fancy_man_pager.py`)
- Image preview → Terminal utilities: uses terminal helpers (evidence: `scripts/dotfiles/icat.py`)
- Welcome display → Terminal utilities: uses terminal helpers (evidence: `scripts/dotfiles/welcome/__init__.py`)
- Welcome display → Welcome colors: uses colors (evidence: `scripts/dotfiles/welcome/__init__.py`)
- Welcome display → System information: gets system details (evidence: `scripts/dotfiles/welcome/__init__.py`)
- System information → Welcome colors: uses formatting (evidence: `scripts/dotfiles/welcome/system_info.py`)
- System information → Value formatting: formats values (evidence: `scripts/dotfiles/welcome/system_info.py`)
- Ranger image display → Image preview: calls preview helper (evidence: `misc/ranger/commands.py`)
- Terminal → Welcome display: views
- Editor → Prettier language server: requests formatting
- Websites → Website userscripts: runs scripts
