# carlie-stack/unpacker architecture

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

- Interactive diagram: https://gitdiagram.com/carlie-stack/unpacker
- Repository: https://github.com/carlie-stack/unpacker

## Overview

Unpacker is a small Python library for fetching Lua text, extracting and validating supported Luarmor URLs, and saving text to disk. These are separate exported capabilities; the excerpts show no orchestrator connecting them into a single workflow. The graph captures only the fetch and file-write interactions visible in source.

Main entry points: [`extractor/interceptor.py`](https://github.com/carlie-stack/unpacker/blob/main/extractor/interceptor.py) (Fetch URL), [`extractor/io_utils.py`](https://github.com/carlie-stack/unpacker/blob/main/extractor/io_utils.py) (Save text)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_fetch["Fetch URL<br/>[interceptor.py]"]
node_parse["Parse Lua URLs<br/>[parser.py]"]
node_save["Save text<br/>[io_utils.py]"]
node_http["Luarmor HTTP"]
node_filesystem["Filesystem"]

node_fetch -->|"fetches text"| node_http
node_save -->|"writes file"| node_filesystem

click node_fetch "https://github.com/carlie-stack/unpacker/blob/main/extractor/interceptor.py"
click node_parse "https://github.com/carlie-stack/unpacker/blob/main/extractor/parser.py"
click node_save "https://github.com/carlie-stack/unpacker/blob/main/extractor/io_utils.py"

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_fetch,node_parse,node_save toneTeal
class node_http,node_filesystem toneIndigo
```

## Components

### Other components

- [Fetch URL](https://github.com/carlie-stack/unpacker/blob/main/extractor/interceptor.py): `extractor/interceptor.py`
- [Parse Lua URLs](https://github.com/carlie-stack/unpacker/blob/main/extractor/parser.py): `extractor/parser.py`
- [Save text](https://github.com/carlie-stack/unpacker/blob/main/extractor/io_utils.py): `extractor/io_utils.py`
- **Luarmor HTTP**
- **Filesystem**

## Connections

- Fetch URL → Luarmor HTTP: fetches text (evidence: `extractor/interceptor.py`)
- Save text → Filesystem: writes file (evidence: `extractor/io_utils.py`)
