# r41ngee/d3ck architecture

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

- Interactive diagram: https://gitdiagram.com/r41ngee/d3ck
- Repository: https://github.com/r41ngee/d3ck

## Overview

This is a small Rust library defining process metadata and audio-control abstractions, not a complete audio-control application. Its public API models processes, devices, sessions, volume and mute state, and provider/control traits; no concrete platform backend or end-user workflow is implemented in the sampled source. The Windows crate is empty. Edges show only visible imports and re-exports.

Main entry points: [`crates/d3ck-core/src/audio.rs`](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/audio.rs) (Audio API), [`crates/d3ck-core/src/lib.rs`](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/lib.rs) (Process API), [`crates/d3ck-core/src/error.rs`](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/error.rs) (Volume Error)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_process_api["Process API<br/>[lib.rs]"]
node_audio_api["Audio API<br/>[audio.rs]"]
node_volume_error["Volume Error<br/>[error.rs]"]

node_process_api -->|"re-exports"| node_audio_api
node_audio_api -->|"uses process IDs"| node_process_api
node_audio_api -->|"returns errors"| node_volume_error

click node_process_api "https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/lib.rs"
click node_audio_api "https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/audio.rs"
click node_volume_error "https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/error.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_process_api,node_audio_api toneMint
class node_volume_error toneTeal
```

## Components

### Other components

- [Process API](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/lib.rs): `crates/d3ck-core/src/lib.rs`
- [Audio API](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/audio.rs): `crates/d3ck-core/src/audio.rs`
- [Volume Error](https://github.com/r41ngee/d3ck/blob/main/crates/d3ck-core/src/error.rs): `crates/d3ck-core/src/error.rs`

## Connections

- Process API → Audio API: re-exports (evidence: `crates/d3ck-core/src/lib.rs`)
- Audio API → Process API: uses process IDs (evidence: `crates/d3ck-core/src/audio.rs`)
- Audio API → Volume Error: returns errors (evidence: `crates/d3ck-core/src/audio.rs`)
