How raulmoracode/kiboar works
Kiboar is a keyboard brand repository spanning a public website, an online catalogue, a Medusa shop with POS and sales reporting, a KiCad design library, and Kiboar Studio for detecting and flashing boards. The main user paths are browsing the brand or shop catalogue, and using Studio to select a board and firmware artifact before flashing. The README also identifies documentation as a product, but its source tree is not included here. Relationships below are limited to README statements and the shown excerpts or SOURCE INDEX references; unsampled internals are represented at their supported directory level.
Main entry points: components/App.tsx Storefront app · commands.rs Tauri commands · src/App.tsx Studio interface · flash.rs Firmware flashing
Components 30
Brand website
- Web router
web/src/App.tsx - Brand pages
web/src/pages
Shop and POS
- Storefront app
shop/storefront/src/components/App.tsx - Store API client
shop/storefront/src/lib/api.ts - Product catalogue
shop/storefront/src/components/Catalogue.tsx - Product details
shop/storefront/src/components/ProductPage.tsx - Shopping bag
shop/storefront/src/components/Bag.tsx - Bag persistence
shop/storefront/src/lib/bagStorage.ts - Medusa service
shop - Point of sale
shop/pos - Sales register UI
shop/src/admin/routes/sales/page.tsx - Sales report API
shop/src/api/admin/reports/sales/route.ts - Sales mapping
shop/src/lib/sales.ts
Board Studio
- Studio interface
software/app/src/App.tsx - Studio state
software/app/src/store.ts - Tauri commands
software/app/src-tauri/src/commands.rs - Device scanner
software/app/src-tauri/src/scanner.rs - Board registry
software/app/src-tauri/src/registry.rs - Firmware flashing
software/app/src-tauri/src/flash.rs - Device protocol
software/crates/kiboar-device/src/protocol.rs - UF2 artifacts
software/crates/kiboar-flash/src/uf2.rs
KiCad library
- KiCad library
library - KiCad S-expression tools
library/tools/kicad_sexpr.py - Courtyard generation
library/tools/gen_courtyard.py - Library documentation generation
library/tools/gen_docs.py
Shared schemas
- Board definitions
software/packages/core/src/schema/board.ts
Other components
- Visitor
- Shopper
- Studio user
- Product documentation
docs
Connections 27
- Visitor → Web router: browses
README.md - Web router → Brand pages: routes to
web/src/App.tsx - Shopper → Storefront app: browses
README.md - Storefront app → Store API client: loads products
shop/storefront/src/components/App.tsx - Storefront app → Product catalogue: renders
shop/storefront/src/components/App.tsx - Storefront app → Product details: renders
shop/storefront/src/components/App.tsx - Storefront app → Shopping bag: renders
shop/storefront/src/components/App.tsx - Storefront app → Bag persistence: loads and saves
shop/storefront/src/components/App.tsx - Store API client → Medusa service: requests catalogue
shop/storefront/src/lib/api.ts - Point of sale → Medusa service: uses service
README.md - Sales register UI → Sales report API: fetches report
shop/src/admin/routes/sales/page.tsx - Sales report API → Sales mapping: maps orders
shop/src/api/admin/reports/sales/route.ts - Studio user → Studio interface: manages board
README.md - Studio interface → Studio state: dispatches actions
software/app/src/App.tsx - Studio state → Tauri commands: invokes commands
- Tauri commands → Device scanner: dispatches scans
software/app/src-tauri/src/commands.rs - Tauri commands → Board registry: dispatches lookups
software/app/src-tauri/src/commands.rs - Tauri commands → Firmware flashing: dispatches flashing
software/app/src-tauri/src/commands.rs - Firmware flashing → Board registry: uses registry
software/app/src-tauri/src/flash.rs - Studio interface → Board definitions: uses board types
software/app/src/App.tsx - KiCad library → KiCad S-expression tools: includes tooling
README.md - Courtyard generation → KiCad S-expression tools: uses parser
library/tools/gen_courtyard.py - Library documentation generation → KiCad S-expression tools: uses parser
library/tools/gen_docs.py - Visitor → Product documentation: learns to build
README.md - Shopper → Product documentation: learns to build
- Device protocol → Studio interface: supports detection
- UF2 artifacts → Firmware flashing: supports flashing