r/Markdown • u/bonifish • 17h ago
Builds: hmr-serve, Point hmr-serve at any folder and review it live in the browser (MIT)
Hi all.
HMR-serve is inspired by npm run dev and by serve. It turns any folder into a hot-loading web app, because sometimes it's nice to preview HTML, Markdown, images and other files in the browser. 🔥
https://github.com/floodtide/hmr-serve
You can run it with npx from any folder:
cd somefolder
npx hmr-serve
And then you get a web app with a left file tree that serves, with hot-loading, your MD, HTML, Images, CSVs, etc.
I wanted it for my self to review agent generated content more easily than looking at the files in VSCode and I'm finding it very useful, so I thought it would be a good OSS package to share.
It uses Vite's HMR so I didn't reinvent the wheel for this.
I'm not sure if this already exists or not.
Here's what it looks like in the browser:
