Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CodaCipher/gamma-node

Repository files navigation

Gamma Node icon

GAMMA NODE

Brightness dimmer and blue light filter for Windows.

~5MB native binary · zero lag · GPU-native color control


Gamma Node interface

Windows Tauri 2 Rust MIT license

Features

  • Brightness dimming — transparent overlay per-monitor, independent of Windows brightness
  • Color temperature — real GPU gamma ramp shift via SetDeviceGammaRamp, works in fullscreen games
  • System tray — close to tray, left-click toggle, right-click context menu
  • Global hotkeys — toggle, brightness, and temperature control from any application
  • Presets — Off, Read, Focus, Night, Dim
  • Schedule — sunset/sunrise auto-transition using the NOAA solar algorithm

Keyboard Shortcuts

Shortcut Action
Ctrl+Alt+B Toggle filter on/off
Ctrl+Alt+Up / Ctrl+Alt+Down Brightness ±5%
Ctrl+Alt+Left / Ctrl+Alt+Right Temperature ±200K

Presets

Preset Brightness Temperature
Off 100% 6500K
Read 70% 4500K
Focus 90% 5500K
Night 30% 2700K
Dim 5% 500K

Tech Stack

  • Backend: Rust (Tauri 2) + raw Win32 FFI for gamma ramp control
  • Frontend: SvelteKit + Svelte 5 + TailwindCSS 4 + shadcn-svelte
  • Typography: Geist + Geist Mono

Architecture

gamma-node (single Rust process)
├── Control Window    Svelte UI, tray-hidden on close
├── Overlay Windows   per-monitor, transparent, click-through
├── Gamma Ramp        Win32 GDI, real GPU output shift
├── System Tray       toggle, presets, quit
├── Global Hotkeys    brightness, temperature, toggle
└── Scheduler         tokio task, sunset/sunrise (NOAA)

Hybrid rendering model:

  • Brightness → overlay opacity, works everywhere
  • Color temperature → SetDeviceGammaRamp, real GPU shift that survives fullscreen exclusive

Development

cd gamma-node
npm install
npm run tauri dev

Build

npm run tauri build

Output:

src-tauri/target/release/bundle/nsis/gamma-node_*_x64-setup.exe

License

MIT © CodaCipher