# yuvlian/hsr-proto architecture

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

- Interactive diagram: https://gitdiagram.com/yuvlian/hsr-proto
- Repository: https://github.com/yuvlian/hsr-proto

## Overview

hsr-proto is a small versioned collection of Honkai: Star Rail protocol artifacts, not an application runtime. Its documented purpose is to provide protocol definitions for the current game version; the tree also includes command IDs. No source excerpts explain how these artifacts relate or are consumed, so the graph shows only an engineer accessing each artifact and does not infer runtime behavior.

Main entry points: [`StarRail.proto`](https://github.com/yuvlian/hsr-proto/blob/main/StarRail.proto) (Protocol definitions), [`CmdId.json`](https://github.com/yuvlian/hsr-proto/blob/main/CmdId.json) (Command IDs)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_engineer(("Protocol user"))
node_protocol["Protocol definitions<br/>[StarRail.proto]"]
node_command_ids["Command IDs<br/>[CmdId.json]"]

node_engineer -->|"uses"| node_protocol
node_engineer -->|"uses"| node_command_ids

click node_protocol "https://github.com/yuvlian/hsr-proto/blob/main/StarRail.proto"
click node_command_ids "https://github.com/yuvlian/hsr-proto/blob/main/CmdId.json"

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_engineer toneBlue
class node_protocol,node_command_ids toneTeal
```

## Components

### Other components

- **Protocol user**
- [Protocol definitions](https://github.com/yuvlian/hsr-proto/blob/main/StarRail.proto): `StarRail.proto`
- [Command IDs](https://github.com/yuvlian/hsr-proto/blob/main/CmdId.json): `CmdId.json`

## Connections

- Protocol user → Protocol definitions: uses
- Protocol user → Command IDs: uses
