A text editor.
Not an IDE.

Zag is an extremely opinionated text editor for quick edits and simple writing. It opens as fast as possible and gets out of your way just as fast.

Version 0.1.0Free and open sourcemacOS 15+Apple Silicon

Zag in the Paper theme, with editor.zig and an essay open side by sideZag in the Ink theme, with editor.zig and an essay open side by side
Fun fact: this screenshot’s PNG file is 1,035,646 bytes. The entire Zag app is 477,646 bytes.Fun fact: this screenshot’s PNG file is 1,063,860 bytes. The entire Zag app is 477,646 bytes.

The whole program is this square.

Every byte of Zag’s executable, 436,560 of them, one pixel each.

Half size: each pixel shown is four bytes.

0x00000CFFAEDFE0C0000010000000002000000|................|

Now the others, at the same scale.

Visual Studio Code ×2,187

Measured 2026-11-12 to 2026-11-15. On disk: every file inside the app bundle.
EditorVersionDownloadOn diskTimes Zag
Zag0.1.0367 KB478 KB×1
TextEdit1.21Built in1.8 MB×4
TextMate2.0.2318.0 MB38.8 MB×81
CotEditor7.1.326.8 MB130.6 MB×274
Sublime TextBuild 421553.3 MB146.4 MB×306
Zed1.28.188.7 MB185.9 MB×389
Visual Studio Code1.146.0388.2 MB1,044.7 MB×2,187

Not included.

Obviously, that isn’t an entirely fair comparison. Most sites list every nifty feature they have. Here’s what Zag leaves out, on purpose.

If you need any of these, Zag isn’t the editor for you.

  1. Plugin system
  2. Extension marketplace
  3. Autocomplete
  4. Language servers
  5. Linting
  6. Snippets
  7. AI assistant
  8. Debugger
  9. Build system
  10. Integrated terminal
  11. Git panel
  12. Updater
  13. Telemetry

An obsessive attention to performance, down to the millisecond.

Every action in Zag is tuned to be as fast as it can be. Anything that makes one slower is a priority-zero bug.

Launch
204ms

24.5 framesone cell, one frame

05101520
From launch to the first drawn window, with five files open.
Keystroke
0.25ms

3% of one frameone frame, 8.33 ms

0 ms12345678
To type one character mid-file and draw it, in CPU time on the main thread.
Scroll
0.27ms

3% of one frameone frame, 8.33 ms

0 ms12345678
To take one trackpad scroll and draw it, in CPU time on the main thread.

Medians of 12 launches, 2,400 keystrokes and 4,800 scroll events. M5 Max MacBook Pro, 120 Hz display, 2026-11-13.

What 436,560 bytes do include.

Themes

Theme
Zag in the Paper theme, with editor.zig and an essay open side by side
Zag in the Ayu Light theme, with editor.zig and an essay open side by side
Zag in the One Light theme, with editor.zig and an essay open side by side
Zag in the Ink theme, with editor.zig and an essay open side by side
Zag in the Ayu Dark theme, with editor.zig and an essay open side by side
Zag in the One Dark theme, with editor.zig and an essay open side by side
Zag in the Black theme, with editor.zig and an essay open side by side
Theme
Zag in the Paper theme, with editor.zig and an essay open side by side
Zag in the Ayu Light theme, with editor.zig and an essay open side by side
Zag in the One Light theme, with editor.zig and an essay open side by side
Zag in the Ink theme, with editor.zig and an essay open side by side
Zag in the Ayu Dark theme, with editor.zig and an essay open side by side
Zag in the One Dark theme, with editor.zig and an essay open side by side
Zag in the Black theme, with editor.zig and an essay open side by side

Editing

  • Splits and draggable tabs
  • A folder sidebar
  • Quick Open and a command palette
  • Find and replace, Go to Line
  • Syntax colors for about 25 languages
  • Typewriter Scrolling
  • Format JSON
  • Safe saves, drafts and session restore

Markdown

Markdown view
Markdown source in Zag's Paper theme, showing colored headings, lists, a code fence, and table syntax in notes.mdMarkdown source in Zag's Ink theme, showing colored headings, lists, a code fence, and table syntax in notes.md
The same notes.md in Zag's Markdown Preview: a title and headings, bullet and numbered lists, an italic quote, a code line, and an aligned tableThe same notes.md in Zag's Markdown Preview: a title and headings, bullet and numbered lists, an italic quote, a code line, and an aligned table

Focus modes

One file. Every option.

Every option in Zag is a line in config.toml with a note that says what it takes, so you or an agent can set up all of Zag by editing one file. Save it and every window changes at once, with no restart.

config.toml~ › .config › zag
# Zag settings. Save this file and every window picks up the change.

# A font's PostScript name, like Menlo-Regular, or system for SF Mono.
font = "system"
size = 14
# Line height, as a multiple of the size.
line-height = 1.75
# Wrap long lines at the window's edge: true or false.
wrap = true
# Close brackets and quotes as you type them: true or false.
pairs = true
# Fade text outside the caret's range: off, line, sentence or paragraph.
focus = "off"
# Keep the caret's row in the middle as you type: true or false.
typewriter = false
# Number the lines beside the text: true or false.
line-numbers = true
# Hide the window's chrome and center an 80-column grey page: true or false.
zen = false
savedLn 17, Col 20

Download all of it.

Download for Mac358 KiB
Floppy disk, 1,474,560 bytesDMG, 366,969 bytes
Did you know you could fit 4 copies of Zag on a floppy disk and still have space to spare?

366,969 bytes358 KiB

Zag-0.1.0-arm64.dmg

Version
0.1.0
License
MIT
Requires
macOS 15+
Runs on
Apple Silicon
SHA-256309498d1e9ed954d09671824d01fa1291c40bd01f425ebdefebc8fb8c5ede8b3