# byrantech/laptop architecture

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

- Interactive diagram: https://gitdiagram.com/byrantech/laptop
- Repository: https://github.com/byrantech/laptop

## Overview

anyon_e is an open-source laptop project: its repository combines hardware designs, embedded-controller firmware, and a project website. The main runtime workflow shown in source is the embedded controller periodically checking charger and battery-monitor state, updating charging behavior, and displaying battery status. The README documents the laptop’s major hardware capabilities; detailed board-level wiring is not established by the sampled excerpts, so the graph treats those as product subsystems rather than inventing signal paths.

Main entry points: [`ec/src/main.cpp`](https://github.com/byrantech/laptop/blob/main/ec/src/main.cpp) (Embedded controller), [`ec/lib/LTC2943/LTC2943.cpp`](https://github.com/byrantech/laptop/blob/main/ec/lib/LTC2943/LTC2943.cpp) (LTC2943 driver), [`website/src/components/Blog.tsx`](https://github.com/byrantech/laptop/blob/main/website/src/components/Blog.tsx) (Blog tag filtering), [`website/src/consts.ts`](https://github.com/byrantech/laptop/blob/main/website/src/consts.ts) (Site and progress pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_compute["Compute and I/O"]
  node_motherboard["RK3588 motherboard"]
  node_embedded_controller["Embedded controller<br/>[main.cpp]"]
  node_usb_io["USB connectivity<br/>[USBC0.kicad_sch]"]
  node_display["4K AMOLED display"]
end

subgraph group_power["Powertrain"]
  node_battery["Li-ion battery pack"]
  node_charger_driver["BQ25713 register map<br/>[BQ25713.h]"]
  node_battery_monitor["LTC2943 driver<br/>[LTC2943.cpp]"]
  node_battery_api["LTC2943 interface<br/>[LTC2943.h]"]
  node_battery_state[("Charge state storage<br/>[main.cpp]")]
end

subgraph group_peripherals["Peripherals and chassis"]
  node_keyboard["Wireless keyboard"]
  node_trackpad["Multi-touch trackpad"]
  node_audio["Audio hardware"]
  node_haptics["Haptic hardware"]
  node_chassis["CNC chassis"]
end

subgraph group_web["Project website"]
  node_site_pages["Site and progress pages<br/>[consts.ts]"]
  node_blog_filter["Blog tag filtering<br/>[Blog.tsx]"]
  node_post_card["Post cards<br/>[ArrowCard.tsx]"]
  node_external_links["External-link handling<br/>[targetBlank.ts]"]
end

node_owner(("Laptop user"))
node_site_reader(("Website visitor"))

node_embedded_controller -->|"reads and converts"| node_battery_monitor
node_battery_monitor -->|"implements"| node_battery_api
node_embedded_controller -->|"uses register definitions"| node_charger_driver
node_embedded_controller -->|"persists charge reading"| node_battery_state
node_site_reader -.->|"views"| node_site_pages
node_site_reader -.->|"filters posts"| node_blog_filter
node_blog_filter -->|"renders"| node_post_card
node_external_links -->|"processes Markdown links"| node_site_pages

click node_motherboard "https://github.com/byrantech/laptop/tree/main/motherboard"
click node_embedded_controller "https://github.com/byrantech/laptop/blob/main/ec/src/main.cpp"
click node_usb_io "https://github.com/byrantech/laptop/blob/main/motherboard/USBC0.kicad_sch"
click node_display "https://github.com/byrantech/laptop/tree/main/display"
click node_battery "https://github.com/byrantech/laptop/tree/main/batteries"
click node_charger_driver "https://github.com/byrantech/laptop/blob/main/ec/lib/BQ25713/BQ25713.h"
click node_battery_monitor "https://github.com/byrantech/laptop/blob/main/ec/lib/LTC2943/LTC2943.cpp"
click node_battery_api "https://github.com/byrantech/laptop/blob/main/ec/lib/LTC2943/LTC2943.h"
click node_battery_state "https://github.com/byrantech/laptop/blob/main/ec/src/main.cpp"
click node_keyboard "https://github.com/byrantech/laptop/tree/main/keyboard"
click node_trackpad "https://github.com/byrantech/laptop/tree/main/trackpad"
click node_audio "https://github.com/byrantech/laptop/tree/main/audio"
click node_haptics "https://github.com/byrantech/laptop/tree/main/haptic"
click node_chassis "https://github.com/byrantech/laptop/tree/main/chassis"
click node_site_pages "https://github.com/byrantech/laptop/blob/main/website/src/consts.ts"
click node_blog_filter "https://github.com/byrantech/laptop/blob/main/website/src/components/Blog.tsx"
click node_post_card "https://github.com/byrantech/laptop/blob/main/website/src/components/ArrowCard.tsx"
click node_external_links "https://github.com/byrantech/laptop/blob/main/website/src/plugins/targetBlank.ts"

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_motherboard,node_embedded_controller,node_usb_io,node_display,node_owner toneBlue
class node_battery,node_charger_driver,node_battery_monitor,node_battery_api,node_battery_state toneAmber
class node_keyboard,node_trackpad,node_audio,node_haptics,node_chassis toneMint
class node_site_pages,node_blog_filter,node_post_card,node_external_links toneRose
class node_site_reader toneIndigo
```

## Components

### Compute and I/O

- [RK3588 motherboard](https://github.com/byrantech/laptop/tree/main/motherboard): `motherboard`
- [Embedded controller](https://github.com/byrantech/laptop/blob/main/ec/src/main.cpp): `ec/src/main.cpp`
- [USB connectivity](https://github.com/byrantech/laptop/blob/main/motherboard/USBC0.kicad_sch): `motherboard/USBC0.kicad_sch`
- [4K AMOLED display](https://github.com/byrantech/laptop/tree/main/display): `display`

### Powertrain

- [Li-ion battery pack](https://github.com/byrantech/laptop/tree/main/batteries): `batteries`
- [BQ25713 register map](https://github.com/byrantech/laptop/blob/main/ec/lib/BQ25713/BQ25713.h): `ec/lib/BQ25713/BQ25713.h`
- [LTC2943 driver](https://github.com/byrantech/laptop/blob/main/ec/lib/LTC2943/LTC2943.cpp): `ec/lib/LTC2943/LTC2943.cpp`
- [LTC2943 interface](https://github.com/byrantech/laptop/blob/main/ec/lib/LTC2943/LTC2943.h): `ec/lib/LTC2943/LTC2943.h`
- [Charge state storage](https://github.com/byrantech/laptop/blob/main/ec/src/main.cpp): `ec/src/main.cpp`

### Peripherals and chassis

- [Wireless keyboard](https://github.com/byrantech/laptop/tree/main/keyboard): `keyboard`
- [Multi-touch trackpad](https://github.com/byrantech/laptop/tree/main/trackpad): `trackpad`
- [Audio hardware](https://github.com/byrantech/laptop/tree/main/audio): `audio`
- [Haptic hardware](https://github.com/byrantech/laptop/tree/main/haptic): `haptic`
- [CNC chassis](https://github.com/byrantech/laptop/tree/main/chassis): `chassis`

### Project website

- [Site and progress pages](https://github.com/byrantech/laptop/blob/main/website/src/consts.ts): `website/src/consts.ts`
- [Blog tag filtering](https://github.com/byrantech/laptop/blob/main/website/src/components/Blog.tsx): `website/src/components/Blog.tsx`
- [Post cards](https://github.com/byrantech/laptop/blob/main/website/src/components/ArrowCard.tsx): `website/src/components/ArrowCard.tsx`
- [External-link handling](https://github.com/byrantech/laptop/blob/main/website/src/plugins/targetBlank.ts): `website/src/plugins/targetBlank.ts`

### Other components

- **Laptop user**
- **Website visitor**

## Connections

- Embedded controller → LTC2943 driver: reads and converts (evidence: `ec/src/main.cpp`)
- LTC2943 driver → LTC2943 interface: implements (evidence: `ec/lib/LTC2943/LTC2943.cpp`)
- Embedded controller → BQ25713 register map: uses register definitions (evidence: `ec/src/main.cpp`)
- Embedded controller → Charge state storage: persists charge reading (evidence: `ec/src/main.cpp`)
- Website visitor → Site and progress pages: views
- Website visitor → Blog tag filtering: filters posts
- Blog tag filtering → Post cards: renders (evidence: `website/src/components/Blog.tsx`)
- External-link handling → Site and progress pages: processes Markdown links
