Recipes
Drop-in code for common tasks. Each recipe is short, focused, and runnable.
Remember window sizeMinimize to trayLaunch on bootHandle deep linkDetect online/offlineCopy to clipboardDownload with progressRun a shell commandEmbed a sidecarSync with OS dark modeSingle instance + argvConfirm before quit
Persist width/height/position; restore on next launch.
Hide window on close, restore on tray click.
Register autostart with --minimized arg.
React to myapp://… URLs on cold start and duplicate launch.
Periodic connectivity probe — no backend polling.
Text, image (RGBA), HTML.
Stream to disk, render a progress bar.
Safe exec, shell exec, cancel on timeout.
Bundle ffmpeg; resolve its path at runtime.
Read os.isDarkMode(); update on change.
Forward launch args to the primary instance.
Show “unsaved changes” dialog on close.
Last updated on