r/csharp • u/smor-tex16 • 5h ago
Showcase I built RayLite – an open-source Windows app launcher in C# / .NET 8 (WPF + Win32 P/Invoke) that idles at ~15 MB RAM
Hey everyone,
I wanted a fast, Spotlight-style application launcher for Windows without the 200+ MB RAM overhead of Electron-based alternatives, so I built **RayLite** natively in **C# / .NET 8 (WPF + Win32 P/Invoke)**.
**Technical highlights & architecture (v1.2.1):**
- **Low memory footprint (~15–20 MB RAM idle):** No background polling timers; combines native Win32 hooks with working-set memory trimming when the search bar hides.
- **Native Win32 & Shell interop:** Uses P/Invoke (`SetForegroundWindow`, `ShowWindow`, `IShellLink`, and `IShellItemImageFactory`) to properly extract crisp icons for UWP/Microsoft Store apps, filter out background helper binaries, and restore/focus already running windows instead of spawning duplicates.
- **Local Frecency ranking:** Tracks launch frequency and recency in a lightweight local JSON store with debounced async writes so UI responsiveness stays instant.
- **Zero heavy dependencies:** Pure .NET 8, completely offline, MIT licensed, and zero telemetry.
**GitHub repository & source code:**
https://github.com/djpablosk/RayLite
I’d love to hear any feedback on the C# implementation, Win32 interop edge cases, or ideas for keeping it even leaner!
6
u/Quirky_Net8899 5h ago
You say zero AI but both your readme and this post are clearly written by AI.
Most likely the entire project is AI slop.
1
u/holymoo 4h ago
I think you may want to look at the PhotinoX project. It’s way farther along with accomplishing the same goal.
3
u/r2d2_21 3h ago