# enguard-ai/awesome-ai-guardrails architecture

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

- Interactive diagram: https://gitdiagram.com/enguard-ai/awesome-ai-guardrails
- Repository: https://github.com/enguard-ai/awesome-ai-guardrails

## Overview

This repository is a curated catalog of AI guardrail models, organized by task and category. The user-facing result is the generated README catalog; a small utility module also exposes model lookups. The README describes the catalog’s guardrail domains, while source excerpts show the generator’s inputs and output. The lookup utility refers to a root-level models.json path that is not present in the supplied tree, so its connection to the listed data file is not asserted.

Main entry points: [`scripts/create_readme.py`](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/create_readme.py) (README generator), [`readme.md`](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/readme.md) (Guardrail catalog), [`scripts/models.json`](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/models.json) (Model records), [`scripts/categories.json`](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/categories.json) (Category definitions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Guardrail Catalog"]
  node_readme["Guardrail catalog<br/>[readme.md]"]
  node_models["Model records<br/>[models.json]"]
  node_categories["Category definitions<br/>[categories.json]"]
end

subgraph group_generation["README Generation"]
  node_template["README template<br/>[readme_template.md]"]
  node_generator["README generator<br/>[create_readme.py]"]
end

subgraph group_lookup["Model Lookup"]
  node_lookups["Task and category lookups<br/>[utils.py]"]
end

node_user(("Catalog reader"))

node_user -->|"browses"| node_readme
node_generator -->|"loads"| node_models
node_generator -->|"loads"| node_categories
node_generator -->|"reads"| node_template
node_generator -->|"writes"| node_readme

click node_readme "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/readme.md"
click node_models "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/models.json"
click node_categories "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/categories.json"
click node_template "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/readme_template.md"
click node_generator "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/create_readme.py"
click node_lookups "https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/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_readme,node_models,node_categories toneBlue
class node_template,node_generator toneAmber
class node_lookups toneMint
class node_user toneIndigo
```

## Components

### Guardrail Catalog

- [Guardrail catalog](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/readme.md): `readme.md`
- [Model records](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/models.json): `scripts/models.json`
- [Category definitions](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/categories.json): `scripts/categories.json`

### README Generation

- [README template](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/readme_template.md): `scripts/readme_template.md`
- [README generator](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/create_readme.py): `scripts/create_readme.py`

### Model Lookup

- [Task and category lookups](https://github.com/enguard-ai/awesome-ai-guardrails/blob/main/scripts/utils.py): `scripts/utils.py`

### Other components

- **Catalog reader**

## Connections

- Catalog reader → Guardrail catalog: browses (evidence: `readme.md`)
- README generator → Model records: loads (evidence: `scripts/create_readme.py`)
- README generator → Category definitions: loads (evidence: `scripts/create_readme.py`)
- README generator → README template: reads (evidence: `scripts/create_readme.py`)
- README generator → Guardrail catalog: writes (evidence: `scripts/create_readme.py`)
