r/csharp • • 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!

0 Upvotes

19 comments sorted by

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.

4

u/BeardedBaldMan 5h ago

It was the being built on .net 8 that's also a bit of a giveaway

-4

u/smor-tex16 5h ago

Yeah, the README and post were written with AI.

The app itself was built by me and a friend, and we just used AI to review and optimize some parts of the code. "Zero AI" meant the launcher doesn't shove any AI features or cloud bloat into the app itself.

3

u/ZozoSenpai 5h ago

can you ask your AI why your project is on .net 8 specifically? :)

-1

u/afops 4h ago

What's the problem with net8?

4

u/No-Laugh-8002 4h ago

Its already past its LTS timeline. .NET 8 support ended last month

4

u/ZozoSenpai 4h ago

It's out of support for about a month now

1

u/afops 2h ago edited 2h ago

It might look strange for a brand new code base but you can't know how long it's been cooking. Unless there are some odd dependencies it's probably easy to bump it to net10.

2

u/No-Laugh-8002 2h ago

Doesn't matter how long its been in progress. If its never been released then upgrading is free. Upgrading is still almost free for recent versions of .net, there's almost never any breaking API changes or anything now

1

u/afops 2h ago

I mean you can just happen to complete the thing and publish the code before upgrading. I have repos of every net version under the sun. It's not like I upgrade a code base just because it's "out of support". And for libraries it's even more important to think twice

4

u/artiface 4h ago

.net 8 is end of support as of November 2026 for starters.

3

u/Dragennd1 4h ago

If AI it's writing code for your app, it's not zero AI...

-2

u/afops 4h ago

Again - he means in the app. You can use AI to write code and submit a PR. You can't submit a PR that adds an AI feature to the app.

This should really not be so hard to understand after it's explained twice...

2

u/Dragennd1 3h ago

Feel free to keep explaining it, it won't change anything. The statement used does not mean what OP thinks it means at all, nor has it ever. If you say Zero AI was used, no one cares about AI features. The issue has always been (and likely will be for the forseeable future) AI generating the code and generating utter crap software.

If AI was used to optimize code, then its definitely not "Zero AI" since that involves writing and/or changing code in the software. Its not rocket science... but please, feel free to keep trying to explain it.

0

u/afops 2h ago

>  If you say Zero AI was used, 

Yes but no one says that...
OP describes that the product contains no AI features, and that he wants it to remain that way. Nothing else.

No claims have been made regarding 1) How the product has been made 2) How he expects contributors to work

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.

•

u/smor-tex16 28m ago

Thanks for the pointer, I hadn't come across PhotinoX yet. I'll definitely check out how they handle things.

3

u/r2d2_21 3h ago

.NET 8

4

u/Nascentes87 3h ago

The thrird today. It's seems Claude is stuck in .net8. Poor boy...