# protonuorecall/xeno-source-code architecture

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

- Interactive diagram: https://gitdiagram.com/protonuorecall/xeno-source-code
- Repository: https://github.com/protonuorecall/xeno-source-code

## Overview

There is no README or demonstrated application-level wiring. The sampled sources show independent request handlers, channel workers, and native utility code; the tree alone does not establish a shared product workflow. The graph captures only behaviors visible in the excerpts, so it does not infer connections among these modules.

Main entry points: [`drivers/usb/modules/setup_48.rs`](https://github.com/protonuorecall/xeno-source-code/blob/main/drivers/usb/modules/setup_48.rs) (Async handlers), [`handlers/cache.go`](https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/cache.go) (Cache workers), [`handlers/helpers.go`](https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/helpers.go) (Helper workers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_rust_handlers["Async handlers<br/>[setup_48.rs]"]
end

subgraph group_workers["Channel workers"]
  node_cache_workers["Cache workers<br/>[cache.go]"]
  node_helper_workers["Helper workers<br/>[helpers.go]"]
end

subgraph group_native["Native utilities"]
  node_native_handler["Native compute<br/>[handler.c]"]
  node_renderer_init["Renderer compute<br/>[init_17.c]"]
  node_cache_api["Cache API utilities<br/>[api.c]"]
  node_middleware_native["Middleware utilities<br/>[middleware_14.c]"]
end

node_requester(("Request caller"))
node_worker_input(("Channel producer"))
node_stdout(("Standard output"))

node_requester -->|"sends request"| node_rust_handlers
node_rust_handlers -->|"returns length"| node_requester
node_worker_input -->|"sends values"| node_cache_workers
node_worker_input -->|"sends values"| node_helper_workers
node_cache_workers -->|"prints results"| node_stdout
node_helper_workers -->|"prints results"| node_stdout

click node_rust_handlers "https://github.com/protonuorecall/xeno-source-code/blob/main/drivers/usb/modules/setup_48.rs"
click node_cache_workers "https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/cache.go"
click node_helper_workers "https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/helpers.go"
click node_native_handler "https://github.com/protonuorecall/xeno-source-code/blob/main/lib/x64/utils/handler.c"
click node_renderer_init "https://github.com/protonuorecall/xeno-source-code/blob/main/src/renderer/lib/x64/init_17.c"
click node_cache_api "https://github.com/protonuorecall/xeno-source-code/blob/main/modules/cache/src/renderer/api.c"
click node_middleware_native "https://github.com/protonuorecall/xeno-source-code/blob/main/utils/middleware_14.c"

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_rust_handlers toneBlue
class node_cache_workers,node_helper_workers toneAmber
class node_native_handler,node_renderer_init,node_cache_api,node_middleware_native,node_requester toneMint
class node_worker_input,node_stdout toneIndigo
```

## Components

### Request handling

- [Async handlers](https://github.com/protonuorecall/xeno-source-code/blob/main/drivers/usb/modules/setup_48.rs): `drivers/usb/modules/setup_48.rs`

### Channel workers

- [Cache workers](https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/cache.go): `handlers/cache.go`
- [Helper workers](https://github.com/protonuorecall/xeno-source-code/blob/main/handlers/helpers.go): `handlers/helpers.go`

### Native utilities

- [Native compute](https://github.com/protonuorecall/xeno-source-code/blob/main/lib/x64/utils/handler.c): `lib/x64/utils/handler.c`
- [Renderer compute](https://github.com/protonuorecall/xeno-source-code/blob/main/src/renderer/lib/x64/init_17.c): `src/renderer/lib/x64/init_17.c`
- [Cache API utilities](https://github.com/protonuorecall/xeno-source-code/blob/main/modules/cache/src/renderer/api.c): `modules/cache/src/renderer/api.c`
- [Middleware utilities](https://github.com/protonuorecall/xeno-source-code/blob/main/utils/middleware_14.c): `utils/middleware_14.c`

### Other components

- **Request caller**
- **Channel producer**
- **Standard output**

## Connections

- Request caller → Async handlers: sends request
- Async handlers → Request caller: returns length
- Channel producer → Cache workers: sends values
- Channel producer → Helper workers: sends values
- Cache workers → Standard output: prints results
- Helper workers → Standard output: prints results
