Skip to content

Beta#36

Merged
codershubinc merged 3 commits intomainfrom
beta
Feb 6, 2026
Merged

Beta#36
codershubinc merged 3 commits intomainfrom
beta

Conversation

@codershubinc
Copy link
Owner

This pull request introduces a significant refactor and enhancement of the system information APIs, focusing on modularizing system info endpoints, improving Linux player provider logic, and adding detailed hardware information gathering. The most notable changes include the restructuring of system API routes, the addition of new hardware info modules (CPU, RAM, disk, GPU, host), and improvements to player control logic for Linux. There are also dependency updates and a minor change to the default development server port.

System API Refactor and Modularization:

  • The system info API endpoints in internal/api/router.go are now routed through a new system.SetupRoutes() method, removing direct imports and route registrations for individual system modules. This centralizes and simplifies system route management. [1] [2] [3]
  • A new API handler, GetSystemInfoApi, is introduced for unified system info retrieval.

New Hardware Information Modules:

Linux Player Provider Improvements:

  • The Linux player provider (internal/player/provider_linux.go) now dynamically selects the active MPRIS player via findActivePlayer instead of hardcoding Spotify, improving compatibility with multiple media players. [1] [2] [3] [4] [5] [6] [7] [8]

Dependency Updates:

  • Updated and added several dependencies in go.mod, including github.com/godbus/dbus/v5, github.com/shirou/gopsutil/v3, and indirect dependencies for system/hardware info gathering.

Miscellaneous:

  • Changed the default development server port from 8765 to 8766 in cmd/server/main.go.

These changes collectively enhance the modularity, maintainability, and hardware awareness of the system, while also improving developer experience and compatibility.


References:

- Changed default port from 8765 to 8766 in main.go.
- Consolidated system-related API routes into a dedicated system package.
- Moved system info handling to a new system/info package, including CPU, RAM, GPU, and Disk usage functionalities.
- Removed unused system-related imports and functions from router.go.
- Added new API endpoint for retrieving system information.
- Implemented disk usage retrieval in a separate disk package.
- Updated usage handling to utilize new CPU, RAM, and GPU info retrieval methods.
- Removed redundant code and improved structure for better maintainability.
@codershubinc codershubinc merged commit 3712d29 into main Feb 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant