This is an automatic translation of the Spanish original and may contain errors.
One of my problems when building the site is that the things I only do once in a blue moon slip my mind. And finding my way around the maze of building this site with Publish is no exception. So I set out to make a desktop app to handle it.
And since, once you have an idea, things just come on their own, what was meant to be a Markdown editor with a preview ended up creating new apps in seven languages and publishing the site.
The problem
Publish has no admin panel. The site is a folder full of Markdown files and a Swift program that turns them into HTML. It is exactly what I wanted, but to write a simple post I have to remember:
- Which fields go in the header of each kind of page (
kind,translationKey,tags…). They are typed by hand and nothing warns me if I get one wrong: akind: potsrenders the page as something else, without batting an eye. - That every page exists in seven languages, paired up by that translation key.
- That an app’s page is 21 files (the page, support and privacy, times seven languages), and that publishing it means removing the draft flag from all of them without missing one.
- The exact command to preview the site locally, and the one to publish it.
Every time I came back to the site after a few weeks, it was time to reread the README.
WebEdit
WebEdit is a Mac app with three columns: on the left, the site’s content by language; in the middle, the text and its preview; and on the right, the page’s header as a form.

- The preview is the site. It uses the same stylesheet and the same Markdown parser as Publish, so what I see while writing is what gets published, in light and dark mode.
- Translations at a glance. A second view groups pages by their translation key and flags in orange the ones that are not in all seven languages.
- Creating without templates from memory. One command creates a new post in the languages I pick, and another creates an app’s 21 files in one go, with each language’s file names and titles. It shows the list first and never overwrites anything that already exists.
- Draft in every language. One button turns a whole app, or a post with all its translations, into a draft, or publishes it.
- Images. I drag an image into the text: it asks for the alt text, shrinks it if it is huge, offers to turn a heavy PNG into a JPEG, copies it to its folder and writes the link.
- Warnings. If a page has a
kindthat does not exist or repeats a translation key, a triangle shows up in the sidebar. - Preview and publish. One button builds the site with the drafts and opens it in a window, and another publishes it. Before publishing, it warns if there are unsaved changes or changes not yet committed to git.
What mattered to me
More than the features, three decisions about how it treats my files:
- It does not touch what I do not ask it to. Opening a file and saving it unchanged does not move a single byte. I checked it with all 99 files of the site.
- It saves when I say so. With
⌘S, with⌥⌘Sfor everything, or when quitting the app. Switching files writes nothing to disk, but it remembers what I had typed in each one. - It knows nothing about my site. The languages, page kinds, fields and templates live in a file,
webedit.json, at the root of the site. In theory, by changing that file it works for any site built with Publish.
How it is built
SwiftUI for macOS 27, with SwiftUI’s new WebView for the preview, Swift 6.4 with strict concurrency and no Combine. The project is generated with XcodeGen and the tests use Swift Testing.
What is missing
- Highlighting Markdown as I type. I tried it with SwiftUI’s
TextEditorand took it out: it broke undo, swallowed accents and made typing sluggish. The right way is to drop down to AppKit, and that is for another day. - A preview that follows the cursor. If I edit a part of the text the preview is not showing, I do not see the change until I go looking for it.
For now it does what I needed: I open the app, write and publish, without having to remember anything.