That would be very interesting do share.
Some possible leads. There is a core plugins called save trails which continuously saves changed tiddlers, perhaps you could get it or a version to use a static tiddler template.
There is also a file system plugin for node.
I would think there would be value in saving localy and periodically publishing online.
If you were keen to operate on single file wikis perhaps a HTA file or tiddlydesktop hosted wiki would allow you to trigger local batches or file management.
The recent zip to static plugin may help.
Regards
Tony
Just food for thought.
PUB_FOLDER="public-wiki"
PRIV_FOLDER="zk-wiki"
FILT="[is[system]] [tag[Public]] -[[$:/plugins/tiddlywiki/tiddlyweb]] -[[$:/plugins/tiddlywiki/filesystem]]"
pub_wiki="${PUB_FOLDER:?oops}/wiki"
echo "Exporting public tiddlers..."
rm -rf "$pub_wiki"
"$(npm bin)/tiddlywiki" "$PRIV_FOLDER" --savewikifolder "$pub_wiki" "$FILT"
"last2": [ "--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain", "--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain", "--rendertiddlers","[!is[system]days[-2]]","$:/core/templates/static.tiddler.html","static","text/plain", "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"]