# jirutka/sloci-image architecture

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

- Interactive diagram: https://gitdiagram.com/jirutka/sloci-image
- Repository: https://github.com/jirutka/sloci-image

## Overview

sloci-image is a small POSIX-shell CLI that packs a root filesystem into a single-layer OCI image. The available documentation describes only this end-to-end behavior; without source excerpts, internal packaging stages and specific input/output mechanics cannot be mapped reliably.

Main entry points: [`sloci-image`](https://github.com/jirutka/sloci-image/blob/master/sloci-image) (Image packer)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("CLI user"))
node_packer["Image packer"]
node_image["Single-layer OCI image"]

node_user -->|"runs"| node_packer
node_packer -->|"packs rootfs"| node_image

click node_packer "https://github.com/jirutka/sloci-image/blob/master/sloci-image"

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_user toneBlue
class node_packer toneTeal
class node_image toneIndigo
```

## Components

### Other components

- **CLI user**
- [Image packer](https://github.com/jirutka/sloci-image/blob/master/sloci-image): `sloci-image`
- **Single-layer OCI image**

## Connections

- CLI user → Image packer: runs (evidence: `README.adoc`)
- Image packer → Single-layer OCI image: packs rootfs (evidence: `README.adoc`)
