MyGo
MyGo is a Go framework for desktop apps that can mix web pages in the OS webview and native GPU-drawn UI, compiling to a small single binary across desktop and mobile platforms.
Visit egoist/mygoOverview
MyGo is a framework for building desktop applications in Go. Each window can show a web page in the operating system's webview or native UI drawn by MyGo on the GPU, and an app or window can mix both. It produces a single Go binary of a few megabytes focused on low memory and CPU use.
Key Features
- Pure Go without cgo, so desktop builds can be produced from any machine.
- Web-fronted windows use the OS webview and a TypeScript client generated from Go code for typed IPC.
- Native UI is written in Go and drawn on the GPU, with layout, widgets, text editing, virtualized lists, SVG icons, animations, and accessibility support.
- The same app can target desktop platforms plus iOS and Android.
- Desktop APIs cover windows, menus, tray, dialogs, notifications, shortcuts, deep links, file associations, media keys, and related integrations.
- Packaging and shipping support includes app bundles, installers, Linux packages, code signing, notarization, and signed auto-updates.
Use Cases
- Build desktop tools in Go and choose native UI, a web frontend, or both in one window.
- Share an app across desktop and mobile with pages in web views and native GPU-drawn UI.
- Ship packaged applications with installers, code signing, notarization, and signed auto-updates.
Getting Started
- For a web-frontend app, use bunx mygo-cli init my-app or npx mygo-cli init my-app, then cd my-app and run bun run dev. For a native UI app, run go run github.com/egoist/mygo/cmd/mygo@latest init -template native my-app, then cd my-app and go tool mygo dev.
Deployment & Requirements
- Go 1.27.3 or newer is required. Web-frontend apps also need Bun, though npm works. Native UI apps need Go alone. MyGo targets macOS, Windows, Linux, iOS, and Android.
Before You Adopt
- License: MIT. Review its terms before using, modifying, or distributing the project.
- The project covers a broad feature set; the source notes that trust should be earned through real apps shipped on it.