# manna-harbour/miryoku_qmk architecture

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

- Interactive diagram: https://gitdiagram.com/manna-harbour/miryoku_qmk
- Repository: https://github.com/manna-harbour/miryoku_qmk

## Overview

This is the Miryoku QMK development-branch repository: a QMK-based firmware tree for ergonomic keyboard layouts, not a standalone layout application. The principal runtime path is keyboard firmware startup and repeated keyboard-task processing, which turns physical input into keymap/action behavior and host reports; the README identifies Miryoku as the layout but points to a separate readme for its detailed behavior. The tree also contains broad optional peripheral and display support. Source excerpts are limited, so the graph includes only relationships shown by those excerpts, the source index, or the README; it does not infer a complete input-processing pipeline.

Main entry points: [`tmk_core/protocol/host.h`](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/host.h) (Host interface), [`quantum/main.c`](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/main.c) (Firmware main), [`quantum/keyboard.h`](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keyboard.h) (Keyboard task), [`quantum/led.h`](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/led.h) (Host LED state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Keyboard runtime"]
  node_keyboard_loop["Keyboard task<br/>[keyboard.h]"]
  node_keyboard_main["Firmware main<br/>[main.c]"]
  node_keyboard_setup["Keyboard setup<br/>[keyboard.h]"]
end

subgraph group_mapping["Key mapping"]
  node_action["Action handling<br/>[action.h]"]
  node_keymap["Keymap mapping<br/>[keymap.h]"]
  node_quantum_api["Quantum features<br/>[quantum.h]"]
  node_combo["Combo processing<br/>[process_combo.c]"]
end

subgraph group_host["Host protocol"]
  node_host_api["Host interface<br/>[host.h]"]
  node_hid_reports["HID reports<br/>[report.h]"]
  node_usb_backend["USB backend<br/>[lufa.h]"]
  node_bluetooth["Bluetooth support<br/>[bluetooth.h]"]
  node_keyboard_leds["Host LED state<br/>[led.h]"]
end

subgraph group_peripherals["Peripheral support"]
  node_rgb_lighting["RGB lighting<br/>[rgblight.c]"]
  node_led_matrix["LED matrix<br/>[led_matrix.c]"]
  node_display["Painter displays"]
  node_led_controller["Infinity60 LEDs<br/>[led_controller.c]"]
end

node_user(("Keyboard user"))

node_user -.->|"provides input"| node_keyboard_loop
node_keyboard_main -->|"runs repeatedly"| node_keyboard_loop
node_keyboard_main -.->|"initializes"| node_keyboard_setup
node_keymap -->|"includes"| node_action
node_quantum_api -->|"includes when enabled"| node_combo
node_host_api -->|"includes"| node_hid_reports
node_host_api -->|"includes"| node_keyboard_leds
node_usb_backend -->|"includes"| node_host_api
node_led_controller -->|"reads host LEDs"| node_keyboard_leds

click node_keyboard_loop "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keyboard.h"
click node_keyboard_main "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/main.c"
click node_keyboard_setup "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keyboard.h"
click node_action "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/action.h"
click node_keymap "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keymap.h"
click node_quantum_api "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/quantum.h"
click node_combo "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/process_keycode/process_combo.c"
click node_host_api "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/host.h"
click node_hid_reports "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/report.h"
click node_usb_backend "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/lufa/lufa.h"
click node_bluetooth "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/drivers/bluetooth/bluetooth.h"
click node_rgb_lighting "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/rgblight/rgblight.c"
click node_led_matrix "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/led_matrix/led_matrix.c"
click node_display "https://github.com/manna-harbour/miryoku_qmk/tree/miryoku/drivers/painter"
click node_led_controller "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/keyboards/input_club/infinity60/led_controller.c"
click node_keyboard_leds "https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/led.h"

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_keyboard_loop,node_keyboard_main,node_keyboard_setup,node_user toneBlue
class node_action,node_keymap,node_quantum_api,node_combo toneAmber
class node_host_api,node_hid_reports,node_usb_backend,node_bluetooth,node_keyboard_leds toneMint
class node_rgb_lighting,node_led_matrix,node_display,node_led_controller toneRose
```

## Components

### Keyboard runtime

- [Keyboard task](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keyboard.h): `quantum/keyboard.h`
- [Firmware main](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/main.c): `quantum/main.c`
- [Keyboard setup](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keyboard.h): `quantum/keyboard.h`

### Key mapping

- [Action handling](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/action.h): `quantum/action.h`
- [Keymap mapping](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/keymap.h): `quantum/keymap.h`
- [Quantum features](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/quantum.h): `quantum/quantum.h`
- [Combo processing](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/process_keycode/process_combo.c): `quantum/process_keycode/process_combo.c`

### Host protocol

- [Host interface](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/host.h): `tmk_core/protocol/host.h`
- [HID reports](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/report.h): `tmk_core/protocol/report.h`
- [USB backend](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/tmk_core/protocol/lufa/lufa.h): `tmk_core/protocol/lufa/lufa.h`
- [Bluetooth support](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/drivers/bluetooth/bluetooth.h): `drivers/bluetooth/bluetooth.h`
- [Host LED state](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/led.h): `quantum/led.h`

### Peripheral support

- [RGB lighting](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/rgblight/rgblight.c): `quantum/rgblight/rgblight.c`
- [LED matrix](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/quantum/led_matrix/led_matrix.c): `quantum/led_matrix/led_matrix.c`
- [Painter displays](https://github.com/manna-harbour/miryoku_qmk/tree/miryoku/drivers/painter): `drivers/painter`
- [Infinity60 LEDs](https://github.com/manna-harbour/miryoku_qmk/blob/miryoku/keyboards/input_club/infinity60/led_controller.c): `keyboards/input_club/infinity60/led_controller.c`

### Other components

- **Keyboard user**

## Connections

- Keyboard user → Keyboard task: provides input
- Firmware main → Keyboard task: runs repeatedly (evidence: `quantum/main.c`)
- Firmware main → Keyboard setup: initializes (evidence: `quantum/main.c`)
- Keymap mapping → Action handling: includes (evidence: `quantum/keymap.h`)
- Quantum features → Combo processing: includes when enabled (evidence: `quantum/quantum.h`)
- Host interface → HID reports: includes (evidence: `tmk_core/protocol/host.h`)
- Host interface → Host LED state: includes (evidence: `tmk_core/protocol/host.h`)
- USB backend → Host interface: includes (evidence: `tmk_core/protocol/lufa/lufa.h`)
- Infinity60 LEDs → Host LED state: reads host LEDs (evidence: `keyboards/input_club/infinity60/led_controller.c`)
