2026
MacPeripheralHub
A native macOS app that inventories connected peripherals and helps manage audio devices and user profiles. A background mechanism maintains selected system audio devices, while the interface brings together device checks, settings and quick actions from the menu bar.
Project roles
Technologies and tools
- Built a native macOS 13+ application (version 1.0.0) with Manual Control, Devices, Profiles and Settings sections. Implemented audio-device management, inspection of system peripherals and saved configurations for different workflows.
- Implemented an inventory for displays, microphones, audio outputs and interfaces, cameras, keyboards, mice, trackpads, USB and HID devices, Bluetooth devices, hubs, docks and devices with incomplete identification. Displayed available names, categories, manufacturers, models, serial numbers, transport and connection state; added resolution, refresh rate and main-display status for displays and channels, sample rate and system role for audio devices. Added search, refresh, category collapse and an offline-device filter. Implemented stable identity matching to merge device data from different system interfaces.
- Added manual selection of the system audio input, audio output and system-sound output, plus a preferred camera. Accounted for the macOS limitation that apps can set default audio devices but cannot switch the system camera for all applications; stored the chosen camera as a preference and added a preview.
- Implemented device profiles with create, edit, delete and activate actions. Configured each profile to store the selected audio input, audio output, system output, preferred camera and expected peripherals, and added a per-profile toggle for audio-device enforcement. Kept manual selection in Manual Control without overwriting saved profiles.
- Built a background mechanism that preserves selected default audio devices. The C-core watcher listens for CoreAudio events, compares current system devices with the selected configuration and restores supported audio inputs and outputs. Added debounce and retries, handling for temporarily missing devices, and inventory refreshes after connection changes, computer wake, app activation or display-configuration changes.
- Added device checks on the Devices screen: playback of the macOS Glass system sound through the selected output, including mono mode; live microphone monitoring with per-channel level meters and mono mode; and a separate camera preview window for checking framing, focus and exposure. Settings shows camera and microphone permission status and can request access or open the relevant Privacy Settings pane. Denied camera access should not prevent the rest of the inventory from loading.
- Created a native AppKit interface with app state managed through Combine. Configured the main window to hide the app from the Dock while keeping it available in the menu bar. Added the active mode and current audio devices to the status menu, along with quick device or profile selection, inventory refresh, window reopening and quit actions. Implemented light, dark and system appearance options and launch at login through ServiceManagement.
- Separated the Swift/AppKit shell from a C17 core and implemented Objective-C adapters for AVFoundation and IOBluetooth. Connected the UI to inventory, device models, selections, profiles and restoration decisions through a C bridge. Implemented local SQLite storage with schema migration for profiles, known devices, aliases and active selection in Application Support. Kept the main workflow offline, without recording or transmitting audio and video.
- Added C smoke and integration tests plus fixtures for inventory, profile and selection storage, restoring defaults after device changes and reconnecting missing devices. Prepared Xcode Debug and Release builds and scripts to run, stop, test and package the app. The release workflow produces `MacPeripheralHub.app`, a ZIP archive and a SHA-256 file for integrity checks; documentation covers installation, all four sections, architecture, macOS limitations and privacy.
- Prepared Russian and English documentation with screenshots, architecture diagrams and a video demonstration. The project was presented as a Harvard CS50x 2026 final project. Some scenarios depend on specific hardware and need checking on the corresponding Mac; macOS itself does not support setting a preferred camera as the global system camera.

