The native alternative to Electron and Tauri

This Go code is this app.

Desktop apps without a browser inside: GPU-rendered, written in plain Go, shipped as one small binary for Linux, macOS, Windows and the web. This is the real source, running here as WebAssembly.

signal/signal/signal.go
// Package signal is Signal studio: a live waveform you shape with sliders,
// in any of ImmyGo's ten themes. It is a package so that other programs
// (the immygo.app demo bundle) can run it; main.go runs it.
package signal
import (
"fmt"
"math"
"time"
"github.com/amken3d/immygo/theme"
"github.com/amken3d/immygo/ui"
)
// Main runs Signal studio in a window. It blocks until the window closes.
func Main() {
build, themeRef := New()
ui.Run("Signal studio", build, ui.Size(960, 600), ui.WithThemeRef(themeRef))
}
// New builds the app. While the signal runs, each frame asks for the
// next; paused, the app draws nothing until you touch it.
func New() (build func() ui.View, themeRef *ui.ThemeRefValue) {
themeRef = ui.NewThemeRef(themes[0].new())
names := make([]string, len(themes))
for i, t := range themes {
names[i] = t.name
}
picker := ui.Dropdown(names...).SetSelected(0).
OnSelect(func(i int, _ string) { themeRef.Set(themes[i].new()) })
freq := ui.Slider(1, 8, 3)
amp := ui.Slider(0.1, 1, 0.8)
pause := ui.Toggle(false)
var t float64 // seconds the signal has run, so pausing freezes it in place
last := time.Now()
build = func() ui.View {
now := time.Now()
if !pause.Value() {
t += now.Sub(last).Seconds()
ui.Invalidate()
}
last = now
f, a := float64(freq.Value()), float64(amp.Value())
status := ui.Badge("live")
if pause.Value() {
status = ui.Badge("paused · drawing nothing").Secondary()
}
return ui.VStack(
ui.HStack(ui.Text("Signal studio").Title(), status, ui.Spacer(), picker).Spacing(12).Center(),
ui.Flex(1, ui.Card(ui.Expanded(
ui.Polyline(600, func(i int) (x, y float32) {
x = float32(i) / 599
return x, float32(0.5 - 0.45*wave(f, a, t, float64(x)))
}).StrokeWidth(2.5),
))),
ui.HStack(label("Frequency"), ui.Flex(1, freq), ui.Text(fmt.Sprintf("%.1f Hz", f)).Width(56)).Spacing(12).Center(),
ui.HStack(label("Amplitude"), ui.Flex(1, amp), ui.Text(fmt.Sprintf("%.0f%%", a*100)).Width(56)).Spacing(12).Center(),
ui.HStack(label("Pause"), pause).Spacing(12).Center(),
).Spacing(16).Padding(24)
}
return build, themeRef
}
// label is a control's name, in a fixed width so the controls line up.
func label(s string) ui.View { return ui.Text(s).Width(88) }
// wave is the signal at x (0 to 1 across the view) after t seconds: a
// tone and its third harmonic, scaled to amp.
func wave(freq, amp, t, x float64) float64 {
return amp * (0.75*math.Sin(2*math.Pi*freq*x-3*t) + 0.25*math.Sin(6*math.Pi*freq*x+5*t))
}
var themes = []struct {
name string
new func() *theme.Theme
}{
{"Catppuccin Mocha", theme.CatppuccinMocha},
{"Catppuccin Latte", theme.CatppuccinLatte},
{"Fluent Dark", theme.FluentDark},
{"Fluent Light", theme.FluentLight},
{"Nord Dark", theme.NordDark},
{"Nord Light", theme.NordLight},
{"Solarized Dark", theme.SolarizedDark},
{"Solarized Light", theme.SolarizedLight},
{"Material Dark", theme.MaterialDark},
{"Material Light", theme.MaterialLight},
}
Signal studio: a still of the demo
Get started
go get github.com/amken3d/immygo

Why ImmyGo

Declarative Go

Describe the screen as plain Go values: stacks, text, buttons, grids. State changes redraw what changed. No code generation, no markup language, no separate UI toolchain.

Fast to build and to run

Rebuilds take seconds with go build. Every shape and glyph is drawn on the GPU, and an idle window draws nothing at all.

Batteries included

Data grids, charts, forms, dialogs, a node-graph canvas, Fluent and Catppuccin themes, and AI helpers, in one small native binary.

76 ms
to first frame
13.4 MB
binary
1–6 s
release build
0.2%
CPU when idle

Measured with the uibench benchmark on an Intel i5-12600KF, Linux.

Instead of Electron or Tauri

  • No browser engine. Nothing to bundle, and no web view that behaves differently on each platform.
  • One language. Your UI is Go, like the rest of your app. No HTML, CSS or JavaScript, and no Rust.
  • Idle means idle. 0.2% CPU when nothing changes; first frame in 76 ms.

Compared with Zed GPUI

GPUI is the Rust framework behind the Zed editor. We wrote the same four-scene app in both and ran them on one machine. Here are the two apps, recorded running the same script: eight live charts, a 100,000-row grid scrolling, 1,200 cells changing every frame, then idle.

Left: ImmyGo (Go). Right: GPUI (Rust). Each app was recorded on its own on an Intel i5-12600KF under Linux/X11; both run at 60 fps, shown here at 30.
ImmyGoGPUI
Frame rate, three animated scenes60 fps60 fps
Startup to first frame76 ms128 ms
Binary size13.4 MB27.6 MB
Release build of the benchmark app1–6 s74–110 s
CPU when idle0.2%0.4%
CPU per frame, dashboard with 8 live charts3.8 ms2.4 ms
CPU per frame, 100,000-row grid scrolling1.6 ms1.1 ms
CPU per frame, 1,200 cells changing9.2 ms4.3 ms
Peak memory207 MB170 MB

ImmyGo starts faster, builds faster and ships a binary half the size. GPUI does less work per frame and uses less memory. Conditions and caveats: Performance.

What you get

Themes. Fluent, Catppuccin and Nord, light and dark, switched at runtime. Or bring your own palette.
Node canvas. A flow-graph editor with typed ports, wires, zoom and widgets inside nodes.

See every example in the gallery →

Quick start

  1. Add ImmyGo to a Go module:
    go get github.com/amken3d/immygo
  2. Write main.go.
  3. Run it:
    go run .

Go 1.26 or later. On Linux, Gio needs the usual X11/Wayland and Vulkan development headers; see Getting started.

main.go
package main
import (
"fmt"
"github.com/amken3d/immygo/ui"
)
func main() {
count := ui.NewState(0)
ui.Run("Counter", func() ui.View {
return ui.Centered(ui.VStack(
ui.Text(fmt.Sprintf("Clicked %d times", count.Get())).Title(),
ui.Button("Click me").OnClick(func() {
count.Update(func(n int) int { return n + 1 })
}),
).Spacing(12).Center())
})
}