All posts
SwiftSwiftUImacOSOpen SourceSide ProjectAI Workflows

Fed up with bloated or paid Markdown viewers, I built my own: native, 9 MB, free and open source, with AI, in one afternoon

The Markdown viewers I kept finding for the Mac were bloated, paywalled or subscription-based, and mediocre. I built MdViewer: a native, read-only Markdown viewer for macOS, 9.1 MB, free and open source. I built it in one afternoon, pairing with Claude Code.

September 24, 20264 min read

I read Markdown all day. READMEs, specs, notes, project docs. And every time I just wanted to open a .md file on my Mac and read it properly rendered, I ended up in the same place: bloated apps, paywalls or subscriptions for something as trivial as showing a formatted text file, and mediocre on top of that. In my opinion, crap.

I wasn't asking for an editor. I wasn't asking for cloud sync or an AI that summarizes my README. I wanted a viewer. One that opens fast, looks good and doesn't bill me every month.

So I built my own: MdViewer. Native, 9.1 MB installed, free and open source. And I built it in one afternoon, pairing with AI.

MdViewer showing a document with the outline in the sidebar and rendered Mermaid diagrams
Outline with scroll-spy on the left, Mermaid diagrams on the right

What it does

It's a read-only Markdown viewer for macOS 15 and later, universal (Apple silicon and Intel). What you get:

MdViewer rendering math formulas with KaTeX
KaTeX, offline, nothing extra to install

How I built it with AI

The whole thing came together in a single afternoon, working with Claude Code. But it wasn't "write a prompt, get an app". The workflow was a lot more structured than that.

First, the AI researched the options and proposed a plan in four phases:

  1. MVP: open a file and render it well.
  2. Reading comfort: outline, live reload and find.
  3. Rich content: PDF, math, diagrams and themes.
  4. macOS integration: Quick Look and the release.

I made the decisions; the AI implemented each phase. For example, for rendering it laid out three different approaches, with their pros and cons, and I picked one. That split works: the AI is great at exploring the solution space, but the product direction needs an owner.

What surprised me most was the verification. At the end of each phase, the AI ran the build, ran the tests and took screenshots of the running app to check that what it said worked actually worked. It even generated the app icon programmatically, with a CoreGraphics script.

Where I still had to step in: some UI interactions had to be tested by hand, because not everything can be validated with a screenshot. And some things don't depend on code at all: the app isn't notarized, because that requires a paid Apple Developer account.

My takeaway is the same as always: AI speeds things up enormously, but deciding what to build and owning the result is still my job.


The technical bit, briefly

The decision I cared about most: WebKit only renders the document. WKWebView draws the Markdown content, and everything else (windows, sidebar, menus, themes) is native SwiftUI. That way the app feels like a Mac app, not a website stuffed into a window.

And one gotcha worth knowing if you ever build a Quick Look extension: inside its sandbox, WKWebView renders blank unless the extension has the com.apple.security.network.client entitlement. Even though all the content is local, WebKit still needs it. Without it, the preview comes out empty.


How to install it

It's not on the Mac App Store: it's distributed through GitHub Releases.

  1. Download the .zip from the v0.1.0 release.
  2. Move MdViewer.app to /Applications.
  3. Since it isn't notarized, remove the quarantine flag from the terminal:
xattr -dr com.apple.quarantine /Applications/MdViewer.app

That's it. Open any .md file, or press Space on one in Finder.


Links

If you're also tired of paying to read a README, give it a try. And if you find a bug or miss something, issues are open.