# bkozan21/calico-keyboard architecture

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

- Interactive diagram: https://gitdiagram.com/bkozan21/calico-keyboard
- Repository: https://github.com/bkozan21/calico-keyboard

## Overview

Calico is a custom wireless split-keyboard project: it combines a ZMK shield configuration with layout, PCB, and case design artifacts. The documented design workflow starts with the Ergogen YAML layout, which describes switch positions and board configuration; Ergogen can produce PCB-related outputs, after which traces are routed. ZMK is the keyboard firmware. The README excerpt is incomplete and no source excerpts were supplied, so links between specific CAD artifacts and firmware settings are omitted unless documented.

Main entry points: [`ergogen_input/calico_ergogen_layout.yaml`](https://github.com/bkozan21/calico-keyboard/blob/main/ergogen_input/calico_ergogen_layout.yaml) (Ergogen layout), [`pcb/ergogen_output.kicad_pcb`](https://github.com/bkozan21/calico-keyboard/blob/main/pcb/ergogen_output.kicad_pcb) (KiCad PCB)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_layout["Layout design"]
  node_ergogen_config["Ergogen layout"]
  node_ergogen["Ergogen"]
end

subgraph group_electronics["PCB design"]
  node_pcb_design["KiCad PCB"]
  node_schematic["PCB schematic"]
  node_gerbers["Gerber fabrication files"]
end

subgraph group_firmware["Keyboard firmware"]
  node_zmk["ZMK firmware"]
  node_shield_config["Shield settings<br/>[calico.conf]"]
  node_shield_keymap["Keymap<br/>[calico.keymap]"]
  node_shield_layouts["Key layout data"]
  node_shield_dtsi["Shield definition<br/>[calico.dtsi]"]
  node_left_overlay["Left board overlay"]
  node_right_overlay["Right board overlay"]
end

subgraph group_case["Case design"]
  node_case_models["Case layer models"]
end

node_designer(("Keyboard designer"))
node_keyboard["Calico keyboard"]

node_designer -->|"designs layout"| node_ergogen_config
node_ergogen_config -->|"provides YAML"| node_ergogen
node_ergogen -->|"generates PCB"| node_pcb_design
node_designer -->|"routes traces"| node_pcb_design
node_designer -->|"makes keyboard"| node_keyboard
node_zmk -->|"runs firmware"| node_keyboard

click node_ergogen_config "https://github.com/bkozan21/calico-keyboard/blob/main/ergogen_input/calico_ergogen_layout.yaml"
click node_pcb_design "https://github.com/bkozan21/calico-keyboard/blob/main/pcb/ergogen_output.kicad_pcb"
click node_schematic "https://github.com/bkozan21/calico-keyboard/blob/main/pcb/ergogen_output.kicad_sch"
click node_gerbers "https://github.com/bkozan21/calico-keyboard/tree/main/pcb/gerber_files/output2"
click node_shield_config "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.conf"
click node_shield_keymap "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.keymap"
click node_shield_layouts "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico-layouts.dtsi"
click node_shield_dtsi "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.dtsi"
click node_left_overlay "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico_left.overlay"
click node_right_overlay "https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico_right.overlay"
click node_case_models "https://github.com/bkozan21/calico-keyboard/tree/main/3d_files"

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_ergogen_config,node_ergogen toneBlue
class node_pcb_design,node_schematic,node_gerbers toneAmber
class node_zmk,node_shield_config,node_shield_keymap,node_shield_layouts,node_shield_dtsi,node_left_overlay,node_right_overlay toneMint
class node_case_models toneRose
class node_designer,node_keyboard toneIndigo
```

## Components

### Layout design

- [Ergogen layout](https://github.com/bkozan21/calico-keyboard/blob/main/ergogen_input/calico_ergogen_layout.yaml): `ergogen_input/calico_ergogen_layout.yaml`
- **Ergogen**

### PCB design

- [KiCad PCB](https://github.com/bkozan21/calico-keyboard/blob/main/pcb/ergogen_output.kicad_pcb): `pcb/ergogen_output.kicad_pcb`
- [PCB schematic](https://github.com/bkozan21/calico-keyboard/blob/main/pcb/ergogen_output.kicad_sch): `pcb/ergogen_output.kicad_sch`
- [Gerber fabrication files](https://github.com/bkozan21/calico-keyboard/tree/main/pcb/gerber_files/output2): `pcb/gerber_files/output2`

### Keyboard firmware

- **ZMK firmware**
- [Shield settings](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.conf): `boards/shields/calico/calico.conf`
- [Keymap](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.keymap): `boards/shields/calico/calico.keymap`
- [Key layout data](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico-layouts.dtsi): `boards/shields/calico/calico-layouts.dtsi`
- [Shield definition](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico.dtsi): `boards/shields/calico/calico.dtsi`
- [Left board overlay](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico_left.overlay): `boards/shields/calico/calico_left.overlay`
- [Right board overlay](https://github.com/bkozan21/calico-keyboard/blob/main/boards/shields/calico/calico_right.overlay): `boards/shields/calico/calico_right.overlay`

### Case design

- [Case layer models](https://github.com/bkozan21/calico-keyboard/tree/main/3d_files): `3d_files`

### Other components

- **Keyboard designer**
- **Calico keyboard**

## Connections

- Keyboard designer → Ergogen layout: designs layout (evidence: `README.md`)
- Ergogen layout → Ergogen: provides YAML (evidence: `README.md`)
- Ergogen → KiCad PCB: generates PCB (evidence: `README.md`)
- Keyboard designer → KiCad PCB: routes traces (evidence: `README.md`)
- Keyboard designer → Calico keyboard: makes keyboard (evidence: `README.md`)
- ZMK firmware → Calico keyboard: runs firmware (evidence: `README.md`)
