$ show SamsidParty/TopNotify
TopNotify is a Windows application that allows users to customize how notifications appear and behave on their desktop. The system consists of a background daemon service that intercepts Windows notifications and modifies their presentation based on user preferences, combined with a system tray-accessible GUI built with React/Vite for configuration. The architecture cleanly separates concerns: the daemon handles notification interception and modification using Windows APIs, while the GUI provides user configuration. Communication between components occurs via mailslots for IPC and a shared JSON settings file. The application employs an interceptor pattern where different aspects of notification handling (positioning, sound, text-to-speech) are implemented as pluggable components. Key technical highlights include native C++ code for enumerating Windows notification windows, sophisticated DPI-aware multi-monitor positioning logic, and a clean plugin architecture for notification interceptors. The application is packaged as an MSIX installer with support for both x64 and ARM64 architectures.
The LLM identified 4 files worth highlighting for reuse:
A utility for retrieving command line arguments from other Windows processes by reading process memory through native APIs. Demonstrates advanced Windows internals knowledge with safe handle management and memory reading techniques. Completely isolated from TopNotify-specific logic, making it reusable in any .NET application needing to inspect other processes.
Encapsulates complex Windows display management functionality including multi-monitor enumeration, DPI scaling calculations, and resolution handling. Provides clean abstractions for getting real/scaled resolutions and monitor information. The component solves the common problem of DPI-aware window positioning in multi-monitor environments and could be extracted with minimal modification to remove the TopNotify.Common.Settings dependency.
Defines the base interceptor class and plugin architecture used throughout the notification daemon. Demonstrates clean separation of concerns with well-defined extension points (OnNotification, Update, Reflow, etc.). The pattern allows for easy addition of new notification handling capabilities without modifying core logic, making it a reusable design for any event-driven system requiring pluggable components.
Discovers installed Windows applications through multiple strategies including MSIX package detection via PowerShell and file system path checking. Shows clever use of PowerShell to query installed Store apps and robust handling of different discovery mechanisms. Completely self-contained with no TopNotify-specific dependencies, making it reusable in any .NET Windows application that needs to detect installed software.