# satoshiinu2/lilliftboard architecture

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

- Interactive diagram: https://gitdiagram.com/satoshiinu2/lilliftboard
- Repository: https://github.com/satoshiinu2/lilliftboard

## Overview

LilLiftBoard is an iOS keyboard tweak with a companion Settings pane. Its primary workflow hooks keyboard layout, applies configurable portrait-only padding, then optionally renders dock buttons that execute actions on the current text input. Settings provide lift and dock configuration, action selection/editing, and a scratch field. The README documents preference notifications and the major safeguards, integrations, and button capabilities; source excerpts are headers rather than implementations, so several internal call links remain unverified.

Main entry points: [`Sources/Tweak.xm`](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Tweak.xm) (Keyboard Lift Hook), [`lilliftboardprefs/LLBPrefsRootListController.m`](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBPrefsRootListController.m) (Settings Pane), [`lilliftboardprefs/LLBDockButtonsController.m`](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBDockButtonsController.m) (Button Manager), [`Sources/Prefs.m`](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Prefs.m) (Runtime Preferences)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Keyboard Runtime"]
  node_lift["Keyboard Lift Hook<br/>[Tweak.xm]"]
end

subgraph group_dock["Dock Actions"]
  node_catalog["Action Catalog<br/>[LLBActionCatalog.m]"]
  node_bar["Dock Bar<br/>[DockBar.m]"]
  node_actions["Action Executor<br/>[Actions.m]"]
end

subgraph group_preferences["Preference State"]
  node_prefs["Runtime Preferences<br/>[Prefs.m]"]
  node_store[("Dock Preference Store<br/>[LLBDockStore.m]")]
end

subgraph group_settings["Settings UI"]
  node_settings["Settings Pane"]
  node_buttons["Button Manager"]
  node_detail["Button Editor"]
  node_picker["Action Picker"]
  node_testcell["Scratch Text Field<br/>[LLBTestTextCell.m]"]
end

node_user(("User"))
node_keyboard["UIKit Keyboard"]
node_input["Text Input"]

node_keyboard -->|"invokes hook"| node_lift
node_lift -->|"adds padding"| node_keyboard
node_lift -.->|"reads settings"| node_prefs
node_lift -.->|"syncs buttons"| node_bar
node_prefs -.->|"loads preferences"| node_store
node_store -->|"notifies changes"| node_prefs
node_bar -.->|"dispatches actions"| node_actions
node_actions -->|"acts on input"| node_input
node_bar -.->|"uses action catalog"| node_catalog
node_user -->|"configures tweak"| node_settings
node_settings -->|"changes lift settings"| node_prefs
node_settings -->|"opens dock settings"| node_buttons
node_buttons -->|"saves button groups"| node_store
node_buttons -->|"adds actions"| node_picker
node_buttons -->|"edits buttons"| node_detail
node_settings -->|"hosts scratch field"| node_testcell
node_picker -.->|"offers actions"| node_catalog

click node_settings "https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBPrefsRootListController.m"
click node_lift "https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Tweak.xm"
click node_prefs "https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Prefs.m"
click node_store "https://github.com/satoshiinu2/lilliftboard/blob/main/Shared/LLBDockStore.m"
click node_catalog "https://github.com/satoshiinu2/lilliftboard/blob/main/Shared/LLBActionCatalog.m"
click node_bar "https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/DockBar.m"
click node_actions "https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Actions.m"
click node_buttons "https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBDockButtonsController.m"
click node_detail "https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBDockButtonDetailController.m"
click node_picker "https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBActionPickerController.m"
click node_testcell "https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBTestTextCell.m"

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_lift,node_user toneBlue
class node_catalog,node_bar,node_actions toneAmber
class node_prefs,node_store toneMint
class node_settings,node_buttons,node_detail,node_picker,node_testcell toneRose
class node_keyboard,node_input toneIndigo
```

## Components

### Keyboard Runtime

- [Keyboard Lift Hook](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Tweak.xm): `Sources/Tweak.xm`

### Dock Actions

- [Action Catalog](https://github.com/satoshiinu2/lilliftboard/blob/main/Shared/LLBActionCatalog.m): `Shared/LLBActionCatalog.m`
- [Dock Bar](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/DockBar.m): `Sources/DockBar.m`
- [Action Executor](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Actions.m): `Sources/Actions.m`

### Preference State

- [Runtime Preferences](https://github.com/satoshiinu2/lilliftboard/blob/main/Sources/Prefs.m): `Sources/Prefs.m`
- [Dock Preference Store](https://github.com/satoshiinu2/lilliftboard/blob/main/Shared/LLBDockStore.m): `Shared/LLBDockStore.m`

### Settings UI

- [Settings Pane](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBPrefsRootListController.m): `lilliftboardprefs/LLBPrefsRootListController.m`
- [Button Manager](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBDockButtonsController.m): `lilliftboardprefs/LLBDockButtonsController.m`
- [Button Editor](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBDockButtonDetailController.m): `lilliftboardprefs/LLBDockButtonDetailController.m`
- [Action Picker](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBActionPickerController.m): `lilliftboardprefs/LLBActionPickerController.m`
- [Scratch Text Field](https://github.com/satoshiinu2/lilliftboard/blob/main/lilliftboardprefs/LLBTestTextCell.m): `lilliftboardprefs/LLBTestTextCell.m`

### Other components

- **User**
- **UIKit Keyboard**
- **Text Input**

## Connections

- UIKit Keyboard → Keyboard Lift Hook: invokes hook (evidence: `README.md`)
- Keyboard Lift Hook → UIKit Keyboard: adds padding (evidence: `README.md`)
- Keyboard Lift Hook → Runtime Preferences: reads settings
- Keyboard Lift Hook → Dock Bar: syncs buttons
- Runtime Preferences → Dock Preference Store: loads preferences
- Dock Preference Store → Runtime Preferences: notifies changes (evidence: `README.md`)
- Dock Bar → Action Executor: dispatches actions
- Action Executor → Text Input: acts on input (evidence: `README.md`)
- Dock Bar → Action Catalog: uses action catalog
- User → Settings Pane: configures tweak (evidence: `README.md`)
- Settings Pane → Runtime Preferences: changes lift settings (evidence: `README.md`)
- Settings Pane → Button Manager: opens dock settings (evidence: `README.md`)
- Button Manager → Dock Preference Store: saves button groups (evidence: `README.md`)
- Button Manager → Action Picker: adds actions (evidence: `README.md`)
- Button Manager → Button Editor: edits buttons (evidence: `README.md`)
- Settings Pane → Scratch Text Field: hosts scratch field (evidence: `README.md`)
- Action Picker → Action Catalog: offers actions
