# alexmyczko/fnt architecture

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

- Interactive diagram: https://gitdiagram.com/alexmyczko/fnt
- Repository: https://github.com/alexmyczko/fnt

## Overview

fnt is a command-line font manager for Linux and macOS. The documented workflow refreshes its font information, searches available fonts, previews a match, installs it, and lists installed font files. Its advertised catalog sources are Debian sid and Google Fonts; previewing uses chafa and screenshots.debian.net. The tree and README are the only evidence provided, so internal command dispatch and data-handling relationships cannot be verified from source excerpts.

Main entry points: [`fnt`](https://github.com/alexmyczko/fnt/blob/main/fnt) (fnt commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command line"]
  node_command_cli["fnt commands"]
end

subgraph group_catalogs["Font catalogs"]
  node_update["Catalog update"]
  node_debian[("Debian sid")]
  node_google_fonts[("Google Fonts")]
  node_info["Catalog info"]
  node_search["Font search"]
end

subgraph group_font_ops["Font operations"]
  node_preview["Font preview"]
  node_chafa["chafa"]
  node_screenshots["Debian screenshots"]
  node_install["Font install"]
  node_installed_fonts[("Installed fonts")]
  node_list["Installed font list"]
end

node_user(("User"))

node_user -->|"runs commands"| node_command_cli
node_command_cli -->|"update command"| node_update
node_command_cli -->|"info command"| node_info
node_command_cli -->|"search command"| node_search
node_command_cli -->|"preview command"| node_preview
node_command_cli -->|"install command"| node_install
node_command_cli -->|"list command"| node_list
node_update -.->|"refreshes from"| node_debian
node_update -.->|"refreshes from"| node_google_fonts
node_preview -.->|"uses"| node_chafa
node_preview -.->|"uses"| node_screenshots
node_install -.->|"installs fonts"| node_installed_fonts
node_list -.->|"lists fonts"| node_installed_fonts

click node_command_cli "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_update "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_info "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_search "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_preview "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_install "https://github.com/alexmyczko/fnt/blob/main/fnt"
click node_list "https://github.com/alexmyczko/fnt/blob/main/fnt"

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_command_cli,node_user toneBlue
class node_update,node_debian,node_google_fonts,node_info,node_search toneAmber
class node_preview,node_chafa,node_screenshots,node_install,node_installed_fonts,node_list toneMint
```

## Components

### Command line

- [fnt commands](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`

### Font catalogs

- [Catalog update](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`
- **Debian sid**
- **Google Fonts**
- [Catalog info](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`
- [Font search](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`

### Font operations

- [Font preview](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`
- **chafa**
- **Debian screenshots**
- [Font install](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`
- **Installed fonts**
- [Installed font list](https://github.com/alexmyczko/fnt/blob/main/fnt): `fnt`

### Other components

- **User**

## Connections

- User → fnt commands: runs commands (evidence: `README.md`)
- fnt commands → Catalog update: update command (evidence: `README.md`)
- fnt commands → Catalog info: info command (evidence: `README.md`)
- fnt commands → Font search: search command (evidence: `README.md`)
- fnt commands → Font preview: preview command (evidence: `README.md`)
- fnt commands → Font install: install command (evidence: `README.md`)
- fnt commands → Installed font list: list command (evidence: `README.md`)
- Catalog update → Debian sid: refreshes from
- Catalog update → Google Fonts: refreshes from
- Font preview → chafa: uses
- Font preview → Debian screenshots: uses
- Font install → Installed fonts: installs fonts
- Installed font list → Installed fonts: lists fonts
