Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

egoist/mygo

Developer Tools

Build desktop and mobile apps in Go with GPU-drawn native UI or an embedded web frontend.

This project ships 1 agent skillsSkill list and install →
6,909
457
Go
MIT
2 months old

What it is

MyGo is a Go framework for building desktop apps whose windows show either an embedded web page or a native UI drawn by the framework itself on the GPU. A single app, or even a single window, can mix both. Web content runs in the webview the OS already provides (WKWebView, WebKitGTK, WebView2), while native views are written in Go with the ui package and avoid HTML, JavaScript and the webview entirely.

The framework targets low memory and CPU use and compiles to a single Go binary of a few megabytes. It is pure Go with no cgo, so you can cross-build for every desktop platform from any machine. The same app can also target iOS and Android. It includes typed IPC for web frontends (bind Go services, stream values, send typed events, and generate a TypeScript client from Go code), a Go UI toolkit with flexbox/grid layout, widgets, editable text with input methods, virtualized lists, SVG icons, animations, screen-reader support, and window-free view tests, plus desktop APIs for windows, menus, tray, dialogs, notifications, global shortcuts, deep links, file associations, recent documents, Now Playing/media keys, accent colors and accessibility settings. Packaging support covers app bundles, DMGs, Windows installers, Debian/RPM packages, Arch PKGBUILDs, a Linux install script, code signing, notarization, and signed auto-updates with delta updates.

It suits Go developers who want a small, native-feeling desktop app without a JavaScript runtime, and teams that prefer a web frontend but still want Go on the backend side of the window.

Getting started

For an app with a web frontend you need Go 1.27.3+ (download) and Bun (install):

bunx mygo-cli init my-app      # or: npx mygo-cli init my-app
cd my-app
bun run dev

A native-UI app needs only Go:

go run github.com/egoist/mygo/cmd/mygo@latest init -template native my-app
cd my-app
go tool mygo dev

The README's web example shows how a bound Go service is called from a generated TypeScript client:

type Greeter struct{}

// Greet returns a greeting.
func (Greeter) Greet(name string) string { return "Hello, " + name }

func main() {
	mygo.Bind(Greeter{})
	mygo.App.WhenReady(func() {
		mygo.NewWindow(mygo.WindowOptions{Title: "Hello", URL: "/"})
	})
	if err := mygo.App.Run(); err != nil {
		log.Fatal(err)
	}
}
import { Greeter } from "./mygo"; // generated

document.body.textContent = await Greeter.greet("Ada");

For the native variant, a window's content is a Go function of app state rendered with ui widgets. Start with the framework documentation and the project site mygo.run for further material.

Constraints

  • Go 1.27.3 or newer is required; the web-frontend workflow additionally requires Bun.
  • Building for iOS, Android and the App Store/Google Play involves platform toolchains and signing that the README does not spell out in detail.
  • Packaging and distribution features (installers, notarization, signed auto-updates) have per-platform prerequisites such as signing certificates that must be set up separately.
  • Licensed under MIT.

HotRepo's take

The repository appeared on the Go daily list on 2026-11-26 with 6,906 stars and 457 forks, having gained 52 stars that day and reaching position 12 on that language board. That single snapshot shows a large existing audience and a modest same-day gain; there is no recorded best rank on the all-language GitHub daily board and no usable time series here, so the data does not support a claim about a trend. The project's differentiator is the combination of GPU-drawn native UI and an OS webview in one Go binary, with typed IPC and packaging included — a scope worth weighing against the newness of the framework when evaluating maintenance expectations.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. lobehub/lobe-mygoA Go UI kit that brings Lobe UI components and design tokens to native desktop apps built with MyGo.Go104
  2. egoist/mygo-musicA native Go desktop music player for local files, with JavaScript plugins adding streaming catalogs and accounts.Go147
  3. egoist/mygo-cloudmusicA Go-based third-party NetEase Cloud Music desktop client that was taken offline after a takedown request.829
  4. tauri-apps/tauriBuild cross-platform desktop and mobile apps from a web frontend with a Rust backend and the system webview.Rust112,357
  5. wailsapp/wailsWraps Go backends and web frontends into one desktop binary, for Go developers avoiding an embedded server.Go36,690