v0.2026.19Built on MyGo

Small components.
Real possibilities.

Onevra is a Go component library for native desktop apps. Themed controls, window shells, icons, charts and chat, all drawn by MyGo without a web view.

$go get github.com/oneo-me/onevra/source@v0.2026.19

Overview — Onevra

Loading the live example…

Not a screenshot: this window is Go, compiled to WebAssembly and drawn by MyGo in your browser. Click around.

Write Go. Get a desktop app.

Builders run every frame and read your application's state. There is no markup, no bridge and no JavaScript.

todo.go
import (
	"fmt"

	"github.com/egoist/mygo/ui"
	"github.com/oneo-me/onevra/source/components"
)

type todo struct {
	title string
	done  bool
}

type todoList struct {
	draft string
	items []todo
}

func (l *todoList) View(c *ui.Context) {
	ui.Column(c).Width(340).Gap(12).Children(func() {
		ui.Row(c).FillWidth().Gap(8).Children(func() {
			input := components.TextBox(c, &l.draft, components.TextBoxOptions{}).
				Placeholder("Add a task").Label("New task").Grow(1)
			add := components.Button(c, "Add", components.ButtonPrimary)
			if (input.Submitted() || add.Clicked()) && l.draft != "" {
				l.items = append(l.items, todo{title: l.draft})
				l.draft = ""
			}
		})
		left := 0
		for i := range l.items {
			ui.Box(c).Key(i).Children(func() {
				components.Checkbox(c, &l.items[i].done, l.items[i].title)
			})
			if !l.items[i].done {
				left++
			}
		}
		components.Text(c, fmt.Sprintf("%d of %d left", left, len(l.items))).
			TextColor(c.Theme().TextMuted)
	})
}

todo.go — running

Loading the live example…

  • State lives in your own values, passed by pointer.
  • Controls report clicks and edits as they happen.
  • The same code runs on macOS, Windows and Linux.

Everything an application window needs

Controls that refine MyGo's, components it does not have, and the shells that hold them.

Themed controls

Buttons, inputs, selects, sliders, tabs, tables and dialogs that share one consistent look in light and dark.

Window shells

Plain and sidebar windows with native window controls, a header for actions and resizable navigation.

Charts and diagrams

Bar, line, area and donut charts, relationship graphs, treemaps and flow diagrams over data you own.

Conversation interfaces

Message turns, tool activity, folded summaries and a glass composer for chat-based applications.

Lucide icons

More than 1,800 Lucide icons as named Go accessors, parsed on first use and tinted by the surrounding text.

Tested without a window

Drive any view headlessly with MyGo's tester: click, type and check results in an ordinary go test.

At home on the desktop

In a real window, Onevra keeps the platform's window controls and system font, with glass where the system has it. The Gallery shows every component this way.

The Onevra Gallery on macOS, with its sidebar and welcome page

Build your first window

Install the module, copy the quick start and run it with go run.