迷い · Native code editor

Small app.
Full workbench.

Mayoi is a small, fast code editor written in Go. It draws a native UI on the GPU with MyGo. No webview, no Electron. The packaged app is about 18 MB.

Download Mayoi
  • macOS 13+
  • Linux
  • Windows
  • MIT license
Interactive preview Edits stay in this browser
mayoi · ~/projects/hello GPU UI
main main.go Ln 1, Col 1 UTF-8 Go Mayoi

Press ⌘P or Ctrl P inside the preview. Type wrap, hit Enter, then edit either column. The other follows.

~18 MBpackaged app
Go + MyGonative GPU rendering
0webviews or Electron
MITopen source

Why so small

A code editor,
not a browser.

Most editors ship a web runtime. Mayoi renders its interface on the GPU through MyGo, so the app stays close to the metal and out of your way.

Read the architecture notes

Native pixels, no web stack

Go drives the UI. MyGo draws it on the GPU. There is no DOM to hydrate and no browser engine to carry around.

GoMyGoGPUpixels

The working day, built in

Tabs, split columns, fuzzy open, project search, Git, and a Ghostty-based terminal. Remote SSH on macOS and Linux.

  • Git graph + blame
  • Find in files
  • Port forwarding

Vim, properly

Normal, insert, and visual modes. Motions, operators, text objects, counts, registers, macros, and . to repeat.

VISUALdi"change inside quotes

Leaves it where you left it

Autosave, per-tab undo, and windows that reopen with their columns, tabs, and carets. Settings sync through GitHub or Google.

Previews beside the source

Markdown, SVG, and Mermaid render next to the code. Mermaid blocks become diagrams. LaTeX becomes formulas.

Tour

See the real thing.

These are screenshots from Mayoi itself, not mockups.

Two columns of Go source in Mayoi
Split the editor side by side and drag tabs between columns.

Install

Put it on your machine.

Signed and notarized on macOS. A shell command on Linux. Installers for Windows. Or build it from source.

Get the latest release

Mayoi checks for updates automatically.

Homebrew · macOS 13+
brew tap --custom-remote sorrycc/mayoi https://github.com/sorrycc/Mayoi.git
brew trust sorrycc/mayoi
brew install --cask mayoi

Recent Homebrew needs brew trust once. Older Homebrew can skip that line.

Or download the DMG
Prefer source? go run ./cmd/mayoi ~/some/project Build instructions