The command-line app is effectively eternal as long as it's mirrored and the runtime interface doesn't change. Can we count on this link to still be there when we need it?
Do you know how long most "Show HN" links still work after a year or two?
You can just fork/clone/whatever it, it's right there.
Ok, great. If it goes down now one has to host it or remember to start it via the command-line. So we're back to square one...
It's literally a webpage with some javascript, so if you save it along with the asset files, you can just open the page in browser from your filesystem, no need to specially host it or start anything.
But yes, I agree running a command like qrencode from terminal is easier in the long run.
Saving a webpage and expecting your browser to render this the same way in a few years is only possible if you are saving the browser version with it.
The command line tool will have a longer life
You could just use google to find the same thing in a few years. The project is so simple I could replicate it and have it hosted in a few hours.
"so simple" ... "in a few hours"
The project is so simple that it would be easier to rewrite it from scratch in that time frame. But the qrencode CLI allows to just avoid that.
Does that work for node.js apps?
The only downside IMO is that you are entering your wifi details in to an untrusted website.