I finally decided to use Noflo, it is a very old JS project like tiddlywiki, battle tested, no much external dependency, and is MIT licensed.
And workflow can call AI in Free Local AI that works totally offline and privately, on TidGi - the first bi-link note taking app powered by tw in next release


