Docs / Reference

Local editor

For a plain HTML site with no build step, the local editor opens the folder on your computer and writes every save straight into the files. It can replace photos too.

Start it

npx github:jefvandegraaf/edit-static local ./my-site

Then open http://127.0.0.1:8450/. It only listens on your own computer.

OptionWhat it does
--port 8450Use another port
--commitCommit each save, with any photos it uploaded, to the folder's git repo
--pushCommit and push each save, so a host that deploys from the repo publishes it

Photos

Click any image to replace it or describe it.

What gets written

Only the inside of each element you changed. Indentation, comments, class names and line endings everywhere else stay byte for byte, so your git history shows exactly what changed.