Skip to content

v0.14.12 · pre-1.0

Go in. Pixels out.

A desktop UI framework in pure Go: React-style hooks, Tailwind v4 classes, no cgo and no webview. It draws every pixel itself, so the same program renders to a window, to a PNG and to text.

Linux and Windows today · macOS planned · BSD 3-Clause

$ CGO_ENABLED=0 go install github.com/kuronosu/tela/cmd/tela@latest$ tela new myapp$ cd myapp$ CGO_ENABLED=0 go run .

Go 1.27+. Needs a Wayland or X11 session on Linux. go install puts tela in $(go env GOPATH)/bin.

Or let your agent do it.

Read https://telaui.dev/llms.txt and build a Tela app: a notes list with a search field and a dark mode switch. Run tela snapshot after each change and fix what looks off.

Claude Code can also see and click the screen:claude mcp add tela -- tela mcp ./myapp
examples/counter/main.go29 lines
package main

import (
	"github.com/kuronosu/tela"
	. "github.com/kuronosu/tela/h"
)

func Counter() tela.Node { return tela.C(counter) }

func counter() tela.Node {
	count, setCount := tela.UseState(0)

	return Div(Class("flex items-center justify-center h-full bg-stone-200"),
		Div(Class("flex flex-col items-center gap-6 w-80 p-10 rounded-2xl",
			"bg-stone-50 border border-stone-300 shadow-xl text-stone-800"),
			Span(Class("text-sm font-medium tracking-widest text-stone-500"), Text("COUNT")),
			H1(Class("text-8xl font-bold tracking-tight tabular-nums"), Textf("%d", count)),
			Button(Class("w-full py-3 rounded-xl bg-stone-800 text-stone-100 font-medium",
				"hover:bg-stone-700 active:scale-95 transition"),
				OnClick(func() { setCount.Update(func(n int) int { return n + 1 }) }),
				Text("Increment"),
			),
		),
	)
}

func main() {
	tela.Main(tela.App{Title: "Demo", Width: 800, Height: 600, Root: Counter()})
}
Demo
The counter rendered by Tela: a card with the label COUNT, a large 0 and a dark Increment button on a stone background.
Rendered by Tela itself. Chromium draws the same markup to equal pixels, glyph antialiasing aside.

01 · What it looks like

The code on the left draws the pixels on the right.

Five small programs, each rendered by tela snapshot from exactly the source shown.

kit has styled, accessible components in shadcn’s look. Restyle them with recipes.

main.go31 lines
package main

import (
	"github.com/kuronosu/tela"
	. "github.com/kuronosu/tela/h"
	"github.com/kuronosu/tela/kit"
)

var theme = kit.Theme()

var App = tela.App{
	Title: "Settings", Width: 480, Height: 380,
	Theme: &theme, RootClass: "bg-muted text-foreground",
	Root: Div(Class("flex h-full items-center justify-center"),
		kit.Card{
			Class:       "w-96",
			Title:       Text("Notifications"),
			Description: Text("Choose what Tela tells you."),
			Action:      kit.Badge{Variant: kit.Secondary, Children: Text("Pro")},
			Children: Div(Class("flex flex-col gap-4"),
				kit.Field{Label: "Email",
					Children: kit.Input{Type: "email", Placeholder: "you@example.com"}},
				Div(Class("flex items-center justify-between text-sm"),
					Text("Weekly digest"),
					kit.Switch{DefaultChecked: true, AriaLabel: "Weekly digest"}),
			),
			Footer: kit.Button{Class: "w-full", Children: Text("Save changes")},
		}),
}

func main() { tela.Main(App) }
Components
A card titled Notifications with a Pro badge, an Email field, a Weekly digest switch that is on and a Save changes button.A card titled Notifications with a Pro badge, an Email field, a Weekly digest switch that is on and a Save changes button.
Rendered by Tela itself: tela snapshot --scale 2 --dark ./components

02 · The loop

Every screen is also a PNG and a text tree.

So you, your AI agent and your CI can all run the same loop from a terminal.

write→tela snapshot→look→tela inspect→fix↺

terminal
$ tela snapshot --size 400x380 --scale 2 -o counter.png ./examples/counter
counter.png, the rendered counter

counter.png

800×760 px, drawn by Tela, headless

Render. The same tree your window shows also renders to a PNG file, with no display server needed. Look at the pixels, or hand them to someone who will.

03 · Real apps

One binary, one window, every pixel yours.

The example apps in examples/, drawn by Tela.

examples/dashboardrendered by Tela
A dashboard drawn by Tela: revenue chart, KPIs, an orders table and an activity feed.A dashboard drawn by Tela: revenue chart, KPIs, an orders table and an activity feed.
A notes app drawn by Tela: folders, a note list and an editor.
A chat app drawn by Tela: conversations, message bubbles and an input.
A music player drawn by Tela: album art, a seek slider and a track list.
The kit component gallery drawn by Tela, on its Introduction page.The kit component gallery drawn by Tela, on its Introduction page.

04 · Compared

Where Tela stands, honestly.

Against Fyne, Gio, Wails and Electron. Tela is pre-1.0, so some cells say no or planned.

FeatureTelaFyneGioWailsElectron
How the UI is writtenGo: components and hooks, Tailwind class stringsGo: widget objects in containersGo: immediate-mode layout codeHTML, CSS, JS frontend; Go backendHTML, CSS, JS; Node.js main process
Builds without cgo or a C toolchainYesPure Go, CGO_ENABLED=0 on every platformNoC compiler on every platform (MSYS2 on Windows)Partialcgo on Linux and macOS; none on WindowsPartialcgo on Linux and macOS; none on WindowsYesPrebuilt binaries; native Node modules need compiling
Draws without a web engineYesOwn rasterizer, no webviewYesNo web runtime, no JavaScriptYesOwn GPU vector rendererNoSystem webview: WebView2, WebKit, WebKitGTKNoBundles Chromium and Node.js
Tailwind classesYesNatively: Tailwind v4 class strings in GoNoStyled through a Go theme interfaceNoStyled through Go theme structs (material)YesVia the web frontend; community Tailwind templatesYesVia the web frontend
React-style components and hooksYesNatively: function/struct components, UseState, UseEffectNoRetained widgets, updated by setters or data bindingNoImmediate mode: UI redrawn from program stateYesVia React in the webview (official template)YesVia React in the renderer (Forge guide)
Renders headless to images for testsYestela snapshot, telatest goldens; no display neededYestest.AssertRendersToImage with the software painterYesgpu/headless Screenshot; needs a GPU APINoNo pixel capture; e2e guide uses PlaywrightPartialOffscreen rendering to bitmaps; CI needs a display (Xvfb)
Built-in tooling for AI agentsYestela mcp server; tela inspect aria snapshotNoNone found in docs or repoNoNone found in docs or repoYesBuilt-in MCP server (experimental, mcp build tag)NoNone official; third-party MCP servers exist
LinuxYesWayland and X11YesX11; Wayland picked by default since 2.8YesWayland and X11YesGTK4 and WebKitGTK 6.0Yesx64 and arm64 binaries
WindowsYesWin32 through syscall, no cgoYesNeeds a MinGW toolchainYesNo C compiler neededYesNeeds the WebView2 runtimeYesWindows 10 and up
macOSPlannedNext phase: Cocoa without cgoYesNeeds Xcode command line toolsYesNeeds XcodeYesIntel and Apple SiliconYesVentura and up
Mobile (iOS, Android)NoDeferred, not scheduledYesiOS and AndroidYesiOS and AndroidPartialiOS and Android, experimentalNoDesktop only
WebNoDeferred, not scheduledYesWebAssembly; docs list file dialog gapsPartialWebAssembly, marked experimentalPartialServer build serves it to browsers; no native APIsNoDesktop only
Screen reader support todayPlannedPlanned: AT-SPI, UI Automation, NSAccessibilityPartialExperimental opt-in tag; macOS, Windows, mobile, not LinuxPartialio/semantic; only Android (TalkBack) implements itUnknownNot documented; depends on the system webviewYesChromium accessibility; e.g. JAWS, VoiceOver
Stable 1.0+ releaseNoPre-1.0; the API may still breakYesv2.8.2Nov0.10.3, pre-1.0; minor versions may break APIYesv3.0.0 (Oct 26, 2026); mobile not yet stableYesv45.2.1
LicenseBSD 3-ClauseBSD 3-ClauseMIT or UnlicenseMITMIT

    As of 2026-10-31. Pre-1.0 and written by the Tela project: check the sources, and tell us what is out of date.

    05 · Start the loop

    Install the command, render the counter.

    $ CGO_ENABLED=0 go install github.com/kuronosu/tela/cmd/tela@latest

    Read https://telaui.dev/llms.txt and build a Tela app that …

    v0.14.12pre-1.0: the API may still changeLinux and Windows, macOS plannedBSD 3-Clause