# youssef-afella/zigxp architecture

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

- Interactive diagram: https://gitdiagram.com/youssef-afella/zigxp
- Repository: https://github.com/youssef-afella/zigxp

## Overview

zigxp is a small Zig compatibility shim intended to let Zig-built programs run on Windows XP by addressing newer ntdll dependencies. The documented workflow is to include zigxp.zig as an object in an XP-targeted release build, then run the resulting program on XP. Source excerpts were unavailable, so the graph shows only README-documented relationships and does not infer how the shim’s internal files cooperate.

Main entry points: [`zigxp.zig`](https://github.com/youssef-afella/zigxp/blob/main/zigxp.zig) (zigxp shim)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_compat["XP compatibility"]
  node_zigxp["zigxp shim<br/>[zigxp.zig]"]
end

node_developer(("Application developer"))
node_program["Zig application"]
node_xp["Windows XP"]

node_developer -->|"adds to build"| node_zigxp
node_zigxp -->|"links into"| node_program
node_program -->|"runs on"| node_xp

click node_zigxp "https://github.com/youssef-afella/zigxp/blob/main/zigxp.zig"

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_zigxp toneBlue
class node_developer,node_program,node_xp toneIndigo
```

## Components

### XP compatibility

- [zigxp shim](https://github.com/youssef-afella/zigxp/blob/main/zigxp.zig): `zigxp.zig`

### Other components

- **Application developer**
- **Zig application**
- **Windows XP**

## Connections

- Application developer → zigxp shim: adds to build (evidence: `README.md`)
- zigxp shim → Zig application: links into (evidence: `README.md`)
- Zig application → Windows XP: runs on (evidence: `README.md`)
