goastro: A Visual Editor for Astro Markdown and MDX
goastro lets you edit Astro Markdown and MDX in your browser, review changes before saving, and keep embedded components intact during visual edits.
After I moved my sites from WordPress to Astro, fixing a typo meant finding the post in Git and opening it in a code editor. I knew where to look. For the people I build sites for, that was a lot of setup to change a sentence.
I built goastro so they could write in a familiar editor with formatting buttons and spell check. They can review the lines they changed before saving, while goastro keeps the post’s MDX components in place.
Try the live demo
Click the paragraph, change a few words, then click Review & save.
Live demo · try it yourself
- Click and type
- Review & save
- See the change
/ bakery-blog / choosing-flour.mdx How we choose flour
✎ Edit this sample paragraph, then click Review & save.
We test a lot of flour. Most of it is fine.
🔒 Component · <Callout type="tip"> stays exactly as written
Preview shows the saved file, as your Astro dev server renders it.
How we choose flour
We test a lot of flour. Most of it is fine.
Tip · Use the same recipe when comparing two flours.
In the review, look for the line you edited and the confirmation that the <Callout> component is unchanged. To try the same workflow on your own files, see how to install goastro.

What goastro does
goastro is a local editor for the content of an Astro site. You run one command in your project folder, and a browser tab opens with your posts:
- Visual editing. Bold looks bold. Headings look like headings. Prose shows no Markdown syntax. Switch to Source when you want it.
- Frontmatter as a form. Edit titles, descriptions, dates, tags and image paths in fields detected from your posts. The description field counts its characters, which helps with meta descriptions. Astro still handles collection schema validation.
- A diff before every save. You see exactly which lines change, and every save makes a backup first.
- Live preview. See the saved post rendered by your Astro dev server.
- Focus mode and dark mode. For the times you just want to write.

goastro runs on your computer and saves directly to your project files. It has no cloud service and no telemetry, so your content stays on your machine. You publish through your usual Git or deploy workflow.
A developer installs goastro once. After that, editors only work in the browser. They never need to open a terminal or a code editor.
How goastro protects MDX components
An MDX post mixes prose with imports, components, expressions and HTML. goastro checks each block before making it visually editable. A block that changes meaning when converted to the editor and back stays protected as source.
- goastro splits the file into top-level blocks. Paragraphs, headings, lists and quotes are candidates for visual editing.
- Each block must survive a round trip. goastro converts a block to the editor and back. If the result is not the same syntax tree as the original, the block is marked as protected.
- Protected blocks are shown as locked source. Components, imports, HTML, tables and code blocks appear in a grey box with a lock. You can still edit their source on purpose, but you can’t damage them by accident.
- goastro checks the whole file before saving. It compares the old and new file. If a protected block was removed or changed, or the new file doesn’t parse, it warns you, and you have to confirm on purpose. If the file changed on disk after you opened it, the save is refused.
- Unchanged blocks are copied byte for byte. When you save, only the blocks you edited are rewritten. Everything else comes straight from the original file.
Inline MDX stays put, too. A <Badge /> or {year} inside a sentence shows up as a small chip, and the text around it stays editable. The MDX safety guide has the full rules.


That review step is the part I rely on most. A one-sentence edit shows up as a one-line diff, with the new words highlighted. A green note confirms that every component is still intact. I never have to wonder what the editor did to the rest of the file.
How it fits into my workflow
I run goastro from my project folder, like code . for VS Code. It also works from a subfolder like src/content. If goastro is already running, the command opens another tab.
From anywhere else, goastro my-blog finds the project by name in my project folders. Outside a project, goastro opens the current folder if it has Markdown files. If not, it opens a home page with my recent projects and every Astro project it finds.

Dev servers that clean up after themselves
Preview was the feature that needed the most care. Showing the real Astro page means running npm run dev, and I didn’t want to end up with five forgotten dev servers eating memory in the background.
So goastro manages the dev servers it starts:
- It starts one only when you click Start dev server in Preview, on a free port.
- If you already have a dev server running, it uses yours and never touches it.
- It stops its dev servers when you stop goastro, switch projects, or leave Preview unused for 30 minutes by default. You can change that time in settings.
- Each dev server runs in its own process group, so stopping it also stops Astro’s child processes.
- If goastro is killed hard, the next start reads its record of the dev servers it started and stops the leftovers.
When I’m done for the day, goastro stop shuts down the editor and anything it started.
Focus mode for actual writing
Most edits are small: a typo, a better sentence, an updated date. But sometimes I write a whole section in the editor. Focus mode hides the file list and the metadata and leaves a centred column of text in a serif font. Esc brings everything back. It works in light and dark mode.

Built in about two days with Claude Code
I built goastro with Claude Code over roughly two days. The first version was the core: the block splitter, the round-trip check, the frontmatter form and the diff review. That part needed tests more than anything else. So most of the time went into using real posts from my own sites as test fixtures: MDX with components, raw HTML tables, code blocks, CRLF line endings and files exported from WordPress.
The workflow features came later, after I used it for a while: the goastro command, automatic dev servers with cleanup, a home page with project settings, and the visual design. The highlighter on “go” in the logo is the same highlighter that marks your changes in the review.
It is not the first small tool I have built this way. I wrote about building a custom hiring dashboard with AI in an hour, and about what my Claude Code usage report showed about how I work.
It works beyond Astro, too
goastro is built for Astro first. It detects content collections, frontmatter fields and preview URLs automatically. But any folder of .md or .mdx files opens too, for example a Docusaurus docs/ folder or a Hugo content/ folder. You check the folders once in settings, and editing, protection, diffs and backups work the same. The guide to other Markdown folders shows the setup.
What goastro does not do yet
goastro is a young tool, and some things stay in source on purpose:
- Tables are edited as source. GFM and HTML tables are protected blocks.
- Component props are not form fields. You change
<ProductPick name="…" />attributes in source. - Schema rules are not checked. goastro does not read your content config, so a wrong value can still fail your Astro build.
- Images are paths only. goastro does not upload or copy image files.
- Native Windows is not tested. Use WSL on Windows.
Frequently asked questions
Is goastro free?
Yes. goastro is open source under the MIT license. It has no account, no paid plan and no usage limit.
Does goastro upload my content anywhere?
No. goastro runs on your computer and edits the files in your project folder. It sends no data anywhere.
Does it work with my Astro theme?
It works with Astro sites that keep content in Markdown or MDX files, including content collections. goastro detects your content folders, frontmatter fields and page addresses.
Do I need to know Markdown?
No. You edit headings, links, lists and images like in a word processor. The Source view is there when you want to see the Markdown.
How to install goastro
goastro is free and open source under the MIT license. It requires Node.js 22.18 or later and runs on macOS, Linux, and Windows through WSL. Open a terminal in your Astro project folder and choose one of these options.
Try it once
Launch the editor for this session.
npx @goastro/goastroInstall it globally
Add the goastro command to your shell.
npm install -g @goastro/goastro goastro
- goastro installation guide for setup instructions
- goastro on npm for the package and release history
- goastro on GitHub for the source code and MIT license
- GitHub Discussions for questions and feedback
For the background on these sites, see how I moved my blog from WordPress to Astro and how I audited 600 posts after a migration.
Kashif Aziz · Custom Internal Tools
Need a better editing workflow for your Astro site?
I build custom content tools so your team can update the site without editing Markdown or changing how you deploy.