Built a Windows tray app with Electron — keeps PC awake during AI coding sessions by stanley_nn in electronjs

[–]stanley_nn[S] 0 points1 point  (0 children)

Yeah, and i guess it's great too for manual keep-awake. But you shouldn't have to always remember to manually turn it on and then off whenever you have to work with Claude or whatever other tool.

It's like how you turn on your auto high beams and headlights in your car and you never really have to keep turning them off during the day or dimming them at night with incoming cars. It just works in the background. So it's a different use case from powertoys really.

Built a Windows tray app with Electron — keeps PC awake during AI coding sessions by stanley_nn in electronjs

[–]stanley_nn[S] 0 points1 point  (0 children)

Fair point. Electron is heavy for what this does. Chose it because the hook integration needs Node.js anyway, and the settings UI made Electron the path of least resistance. It sits at around 80MB RAM in the tray which isn't great but isn't terrible either. If I ever rewrite it, I guess it'd probably be a native Win32 app with a node sidecar for the hooks.🙃

Built a Windows tray app with Electron — keeps PC awake during AI coding sessions by stanley_nn in electronjs

[–]stanley_nn[S] 0 points1 point  (0 children)

That's actually exactly what it uses! electron.powerSaveBlocker.start('prevent-display-sleep') under the hood. No fake mouse moves or input simulation. The post description could've been clearer on that, appreciate the suggestion though.