Cross-Platform Architecture
XerahS is built on a strict "Core / Platform" separation model, ensuring that the business logic remains purely cross-platform while leveraging native capabilities on each OS.
The XerahS.Core and XerahS.Common libraries contain 100% of the application logic but have zero dependencies on Windows Forms, WPF, or any OS-specific APIs. They communicate with the OS exclusively through abstract interfaces defined in XerahS.Platform.Abstractions.
Specific projects (XerahS.Platform.Windows, .Linux, .MacOS) implement these interfaces using native APIs (Win32/WinRT, X11/Wayland/DBus, Cocoa/ScreenCaptureKit) and are injected at runtime.
On Windows, XerahS utilizes a hybrid of modern WinRT APIs (for high-performance capture) and traditional Win32 (for low-level window management). It fully supports Windows 10 and 11, including dark mode integration and toast notifications.
The Linux implementation favors modern standards while maintaining broad compatibility:
XerahS wraps native macOS frameworks to provide a seamless experience: