Skip to content

About

The technical memory of an electronics workshop — a cross-platform Qt/C++17 desktop app (Windows · Linux · Raspberry Pi) to manage component inventory, stock, locations, projects and documentation.

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

ComponentHub

Read in another language: English (this document) · Français.

Version

Platform C++ Qt Build License

The technical memory of an electronics workshop: inventory of components, modules, tools and consumables; stock and movements; hierarchical locations; attached documentation; projects and their bill of materials.

This is more than a plain inventory: the goal is to find, in one click and for any component, its stock, its physical location, its datasheets and the projects that use it.

ComponentHub - Inventory view

ComponentHub is a Qt / C++17 desktop application, native on Windows, Linux (x86_64) and Raspberry Pi (ARM64). It is the master project, the holder of the workshop's reference database - on reliable storage, free of the ESP32's memory limits. The ESP32 satellite path has been discontinued: ComponentHub is now a self-contained desktop application. The former master/satellite decision is retained in docs/fr/ADR-0001 (FR) as historical context.

Get started in 3 minutes

Never compiled a program before? This is a good place to start - and it is exactly as simple on Linux/Raspberry Pi as on Windows (often faster). Follow the step-by-step guide: docs/fr/GETTING_STARTED.md (FR).

Once the app is running, the beginner's user manual is here: docs/fr/USER_MANUAL.md (FR).

Documentation language. By GitHub convention, the root files (this README, CHANGELOG, ROADMAP, CONTRIBUTING) are in English. The in-depth guides under docs/ are currently written in French only - see docs/en/README.md for an English index with links.

Business core

The business core src/domain/ - entities, services (inventory, projects, documents, import/export), CSV - depends on neither Qt nor Arduino. This layered separation (domain ⟷ storage ⟷ UI) is described in docs/fr/ARCHITECTURE.md (FR) and in CONTRIBUTING.md.

The desktop app stores workshop data in one local SQLite database (componenthub.sqlite) and can back it up in a single .tar archive. CSV imports and exports remain available from the application.

Network supervision & updates

ComponentHub announces its presence on the local network and exposes live metrics (morfBeacon module) so it can be watched from a central dashboard, and checks GitHub for updates (morfUpdate module, from the Help menu). These shared modules are vendored in the project (third_party/morf/) and compiled into the binary - nothing external to install. See docs/fr/SUPERVISION_ET_MAJ.md (FR).

LAN synchronization (offline-first)

ComponentHub can keep the same data across several machines through a lightweight local-network hub, morfSync - no cloud. The local database stays sovereign: the app always works on its local copy; the hub only reconciles copies when reachable. Set the hub address in Settings → Synchronization, then sync automatically at startup, on demand, or when quitting (each toggleable), or disable sync entirely with an explicit local-only mode. All tables sync with referential integrity preserved, deletions propagate, and only changed entities are sent (incremental). Identity is a per-entity UUID since 1.7. See docs/fr/SYNCHRONISATION.md (FR).

Upgrading from ≤ 1.6: identity moved from integer to UUID. Start from a fresh database and re-import your data (Bomist or native CSV).

Overview

Component sheet - everything about a component (general, characteristics, purchase/stock, documents, notes):

Component sheet

In the inventory, hovering over a component shows its first attached photo, without opening the sheet.

Projects - bill of materials (BOM) and computation of missing components:

Projects and BOM

Import / Export - full .tar backup and per-table CSV:

Import / Export

Building (desktop)

Dependencies: CMake ≥ 3.21, a C++17 compiler, Ninja, Qt 6 (Widgets), Qt Linguist tools (lrelease), SQLite 3 and nlohmann-json (used by the synchronization protocol). Detailed, beginner-friendly walkthrough: docs/fr/GETTING_STARTED.md (FR); multi-platform reference: docs/fr/BUILD_DESKTOP.md (FR).

Windows (MSYS2 / MinGW)

cmake --preset mingw
cmake --build --preset mingw
# -> build-mingw/ComponentHub.exe (Qt + MinGW DLLs deployed automatically)

In VS Code, the CMake: Build (MinGW) and ComponentHub: Run tasks (.vscode/tasks.json) do the same in one shortcut.

Linux (x86_64) / Raspberry Pi (ARM64)

cmake --preset linux        # or linux-arm64 on Raspberry Pi
cmake --build --preset linux

Distributable packages

Packaging scripts live in scripts/:

# Windows: self-contained ZIP (exe + DLLs + Qt plugins) and, if Inno Setup 6 is installed,
# the ...-win64-setup.exe installer
powershell -ExecutionPolicy Bypass -File scripts\windows\package-win.ps1

# Linux: Debian package (.deb, linked to the system Qt)
scripts/linux/package-deb.sh

# Linux: self-contained AppImage (bundled Qt)
scripts/linux/package-appimage.sh

# Linux: desktop menu integration (already-built binary)
scripts/linux/install.sh

Artifacts are produced in dist/.

Continuous integration

Two GitHub Actions workflows live in .github/workflows/:

  • ci.yml: on every pull request (and push to main/dev), builds and runs ctest on Ubuntu 24.04 (linux preset), Linux arm64 (linux-arm64) and Windows (mingw, MSYS2 UCRT64). Ubuntu 24.04 ships Qt 6.4.2, the project's minimum, so a green run also proves no newer Qt API crept in. Documentation-only changes skip it and an outdated run is cancelled by a newer commit.
  • packages.yml: on every push to main or a manual run (Actions > Packages > Run workflow), builds the .deb amd64 and arm64 (native builds in Debian Trixie containers, arm64 on GitHub's arm64 runner, with scripts/ci/build-deb-container.sh) and the Windows ZIP and installer (MSYS2 UCRT64, preset mingw). Packages are workflow artifacts kept 14 days; releases are still published by the morfSystem tooling, which takes the packages of the run of the released commit and builds locally only what is missing. arm64 and Windows can be switched off in the manual run form.

Repository layout

ComponentHub/
├── CMakeLists.txt          desktop application (main target)
├── CMakePresets.json       presets: mingw / linux / linux-arm64 / cross
├── cmake/toolchains/       ARM64 cross-compilation toolchain
├── scripts/{windows,linux}/ VS Code build + packaging (zip, deb, AppImage)
├── scripts/ci/             container build script used by the GitHub workflows
├── .github/workflows/      CI (pull requests) and package builds
├── resources/              app.qrc, themes (light/dark), icon (logo.png, app.ico)
├── src/
│   ├── domain/             business core (no Qt/Arduino dependency)
│   ├── ui/                 Qt interface (Theme, Icons, pages, dialogs)
│   ├── storage/            SQLite repositories (desktop)
│   ├── platform/           .tar archive, clock
│   └── main.cpp
├── docs/
│   ├── fr/                 documentation (French, reference language)
│   ├── en/                 English index (points to fr/ for now)
│   └── pictures/           screenshots
├── CONTRIBUTING.md         project philosophy and contribution rules
├── VERSION                 desktop application version
└── LICENSE

Documentation

Document Contents
docs/fr/GETTING_STARTED.md (FR) Clone, install the tools, build and run - step by step, every OS, beginners included
docs/fr/USER_MANUAL.md (FR) Application user manual, to get productive quickly
docs/fr/BUILD_DESKTOP.md (FR) Multi-platform build reference
docs/fr/ARCHITECTURE.md (FR) Layered architecture (domain / storage / UI)
docs/fr/SUPERVISION_ET_MAJ.md (FR) LAN supervision (presence + metrics) and update checking
docs/fr/SYNCHRONISATION.md (FR) LAN synchronization with morfSync (offline-first)
docs/fr/ADR-0001 (FR) Historical record of the former ESP32 satellite path
docs/TRANSLATING.md Add or update a language (no code needed)
CONTRIBUTING.md How to contribute, portability rules
CHANGELOG.md Version history
docs/en/README.md English documentation index

Credits

Desktop internationalization (French and English) and the EUR / USD / GBP currency selector were contributed by Nacho Garcia (@nachogarglez) (pull request #11). Thank you.

License

Distributed under the GPL-3.0-only license.

About

The technical memory of an electronics workshop — a cross-platform Qt/C++17 desktop app (Windows · Linux · Raspberry Pi) to manage component inventory, stock, locations, projects and documentation.

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages