egoist/mygo

▲ 82 stars today★ 7,023⑂ 460

Develop desktop apps with native UI or web frontend in Go

About egoist/mygo

egoist/mygo is an open-source project on GitHub, mainly written in Go. Develop desktop apps with native UI or web frontend in Go It currently holds 7,023 stars and 460 forks with 190 open issues, and was last pushed on 2026-11-27 (repository created 2026-09-26).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #45 with 82 new stars today.

GitHub Repository Details

Repository egoist/mygo · default branch main · size 169370 KB · watchers 18 · source: GitHub REST API and repository README

README

https://github.com/egoist/mygo/blob/HEAD/MyGo!!!!!

Desktop apps in Go, with native UI or a web frontend.

Sponsored by:

https://github.com/egoist/mygo/blob/HEAD/OpenUptime: open-source uptime monitoring and status pages

Become a sponsor

---

Each MyGo window shows one of two kinds of interface, and one app, or one window, can mix them:

WebKitGTK on Linux, WebView2 on Windows. Build the frontend with any web tools; it calls your Go code through a TypeScript client generated from it. drawn by MyGo itself on the GPU: no HTML, no JavaScript and no webview, so the window opens at once and takes little memory.

Either way, an app is a single Go binary of a few megabytes, focused on low memory and CPU use.

views and native UI on their GPUs, with live reload on a simulator, an emulator or a device, and builds for the App Store and Google Play. and send typed events; the TypeScript client is generated from your Go code. editing with input methods, virtualized lists, SVG icons, animations, screen reader support, and views you test without a window; Liquid Glass on every platform with the glass plugin; web pages inside native UI, under the menus and dialogs it shows over them. global shortcuts, deep links, file associations, recent documents, Now Playing and the media keys, the system accent color and accessibility settings, watching files, and more. and RPM packages, PKGBUILDs for Arch Linux and a Linux install script, code signing, notarization, and signed auto-updates with delta updates and an update window in the manner of Sparkle.

A window with a web page, whose frontend calls Go:

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");

A window with native UI, whose view is a Go function of the app's state:

type counter struct{ n int }

func (s *counter) view(c *ui.Context) { ui.Column(c).Fill().Center().Gap(12).Children(func() { ui.Text(c, fmt.Sprint(s.n)).FontSize(40).Bold() if ui.PrimaryButton(c, "Increment").Clicked() { s.n++ } }) }

func main() { s := &counter{} mygo.App.WhenReady(func() { mygo.NewWindow(mygo.WindowOptions{ Title: "Counter", Content: ui.View(s.view), }) }) if err := mygo.App.Run(); err != nil { log.Fatal(err) } }

Getting started

With Go 1.27.3+ and Bun, create an app with a web frontend:

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

An app of native UI needs Go alone:

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

Read the documentation.

License

MIT

GitHub Stars & Activity

7,023Stars
460Forks
190Open issues
GoLanguage

GitHub Popularity

GitHub stars7,023
Forks460
Open issues190
Primary languageGo
LicenseMIT
Stars gained today82
Created2026-09-26
Last pushed2026-11-27

Trending History

Daily boardrank #45 · ▲ 82 stars
Monthly boardrank #71 · ▲ 3,304 stars

Related GitHub Projects

1

multica-ai / multica

Go★ 58,950⑂ 7,763▲ 175 stars
→
2

vxcontrol / pentagi

Go★ 35,585⑂ 5,804▲ 128 stars
→
3

gastownhall / beads

Go★ 29,342⑂ 1,977▲ 33 stars
→
4

opensandbox-group / OpenSandbox

Go★ 18,125⑂ 1,772▲ 39 stars
→
5

getarcaneapp / arcane

Go★ 10,801⑂ 568▲ 28 stars
→
6

agent-substrate / substrate

Go★ 8,736⑂ 978▲ 32 stars
→
7

Tencent / LoopForge

Go★ 6,231⑂ 887▲ 149 stars
→
8

datazip-inc / olake-go

Go★ 2,566⑂ 375▲ 34 stars
→

More Trending Repositories