# falahhilal/cachegraph architecture

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

- Interactive diagram: https://gitdiagram.com/falahhilal/cachegraph
- Repository: https://github.com/falahhilal/cachegraph

## Overview

CacheGraph is currently a small Python fingerprinting library, not yet a full dependency-aware cache engine. Its exposed `fingerprint` function normalizes supported values, serializes them deterministically, and returns a SHA-256 digest. The package initializer re-exports that function. The README describes broader caching goals, but the supplied runtime source does not implement those capabilities; no storage or dependency-tracking components are shown.

Main entry points: [`cachegraph/fingerprint.py`](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py) (Fingerprint), [`cachegraph/__init__.py`](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/__init__.py) (Public API)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Library caller"))
node_public_api["Public API<br/>[__init__.py]"]
node_fingerprint["Fingerprint<br/>[fingerprint.py]"]
node_normalize["Value normalization<br/>[fingerprint.py]"]
node_digest["Canonical digest<br/>[fingerprint.py]"]

node_caller -.->|"calls"| node_public_api
node_public_api -->|"re-exports"| node_fingerprint
node_fingerprint -->|"normalizes"| node_normalize
node_fingerprint -->|"serializes and hashes"| node_digest

click node_public_api "https://github.com/falahhilal/cachegraph/blob/main/cachegraph/__init__.py"
click node_fingerprint "https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py"
click node_normalize "https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py"
click node_digest "https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.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_caller toneIndigo
class node_public_api toneMint
class node_fingerprint,node_normalize,node_digest toneTeal
```

## Components

### Other components

- **Library caller**
- [Public API](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/__init__.py): `cachegraph/__init__.py`
- [Fingerprint](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py): `cachegraph/fingerprint.py`
- [Value normalization](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py): `cachegraph/fingerprint.py`
- [Canonical digest](https://github.com/falahhilal/cachegraph/blob/main/cachegraph/fingerprint.py): `cachegraph/fingerprint.py`

## Connections

- Library caller → Public API: calls
- Public API → Fingerprint: re-exports (evidence: `cachegraph/__init__.py`)
- Fingerprint → Value normalization: normalizes (evidence: `cachegraph/fingerprint.py`)
- Fingerprint → Canonical digest: serializes and hashes (evidence: `cachegraph/fingerprint.py`)
