do-hugo-smart
A Hugo markdown editor in a single binary — Hugo and Git bundled in, nothing else to install.
do-hugo-smart opens a Hugo site in your browser as a three-pane editor: a file tree on the left, a markdown editor in the middle, and a live preview served by a real Hugo dev server on the right. It is a local, single-user authoring tool for people who write Hugo sites and want to see their changes render as they type, then commit the result straight to Git. Hugo and Git are bundled into the one binary, so a bare machine needs nothing else installed.
Features
Editing and files
- Three-pane browser UI: collapsible, VSCode-style file tree, a CodeMirror 6 markdown editor, and a live preview pane.
- Markdown editing with
Ctrl+S/Cmd+Ssave and a lost-update guard (etagIf-Match) that detects a concurrent on-disk change. - File-tree operations with git status markers: create, rename and delete files and folders.
Live preview
- Live preview from a real running Hugo dev server with livereload: saving a file rebuilds the site and navigates the preview to the changed page.
Opening and creating sites
- Wizard mode when no site is open: create a new site (scaffold, optional theme cloned from a git URL, optional git init), open an existing site, or clone a site repository from a URL — all with the embedded git.
Version control
- Local Git: status, stage and commit selected files, diff, log, and branch list / create / switch.
- Remote Git over HTTPS (token) or SSH (agent or key file); for an unknown SSH
host the editor shows the key fingerprint and, once confirmed, remembers it in
its own store without ever writing your
~/.ssh/known_hostsor the system file. Credentials are asked per operation and kept in memory only.
Security and isolation
- Local-only and isolated by design: binds
127.0.0.1on a free port, guards the API with a per-session CSRF token and a Host-header check, sandboxes file access to the open site directory, and runs the preview in a sandboxed cross-origin iframe so previewed site content cannot reach the editor.
Single-binary packaging
- Single self-contained binary per platform — the embedded Hugo (standard edition) runs as a supervised child process and Git is provided by go-git; no external hugo, git or node is required (pure Go, CGO disabled, Linux + Windows).
Roadmap
- No formal product roadmap is documented yet. The requirements spec
(
docs/spec/) explicitly places the following out of scope for v1 (deferred, not committed): multi-user / collaboration, hosting or deploying the built site, a plugin system, editing non-markdown content types, Hugo Extended (SCSS/Sass) support, and in-app merge/rebase conflict resolution. - Open v1-completion items tracked in the spec: a recorded real-Windows smoke test before the Windows promise is made, and surfacing a clear error when a theme silently requires Hugo Extended instead of showing a blank preview.