# lilianbhr/oxstore architecture

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

- Interactive diagram: https://gitdiagram.com/lilianbhr/oxstore
- Repository: https://github.com/lilianbhr/oxstore

## Overview

OxStore is described as a TCP key-value database server with a text protocol and WAL persistence, but the sampled runtime does not implement that workflow yet: `main` only prints a greeting. The implemented capability is command parsing and response formatting in `src/protocol.rs`. No TCP, storage, or WAL subsystem is present in the tree, so those documented capabilities are not represented as runtime components. The protocol’s relationship to the greeting entry point is not evidenced.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_protocol["Text protocol"]
  node_commands["Command parser<br/>[protocol.rs]"]
  node_answers["Response formatter<br/>[protocol.rs]"]
end

subgraph group_runtime["Application runtime"]
  node_entry["Greeting entry<br/>[main.rs]"]
end

node_client(("Client"))

click node_entry "https://github.com/lilianbhr/oxstore/blob/main/src/main.rs"
click node_commands "https://github.com/lilianbhr/oxstore/blob/main/src/protocol.rs"
click node_answers "https://github.com/lilianbhr/oxstore/blob/main/src/protocol.rs"

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_commands,node_answers,node_client toneBlue
class node_entry toneAmber
```

## Components

### Text protocol

- [Command parser](https://github.com/lilianbhr/oxstore/blob/main/src/protocol.rs): `src/protocol.rs`
- [Response formatter](https://github.com/lilianbhr/oxstore/blob/main/src/protocol.rs): `src/protocol.rs`

### Application runtime

- [Greeting entry](https://github.com/lilianbhr/oxstore/blob/main/src/main.rs): `src/main.rs`

### Other components

- **Client**
