Tor & IPFS are opposites
Tor Onions are famous for "No JavaScript" since JavaScript can be used to fingerprint your browser and identify you. While most darkweb markets completely avoid JS, many other sites such as WordPress can achieve this same trick. Our team did it a year ago by moving the WooCommerce code to the SERVER side, so the client's browser does NOT have to do it.
IPFS is the opposite. There is no server, and IPFS nodes share copies of static files. The word "static" doesn't mean it doesn't have JavaScript, it means the code is pre-defined and known to the client in advance (so it’s more truly open source). With IPFS, clients are running all code locally.
In summary,
Tor Onions do it all server-side, hide where the server is, and who is connecting to it.
While as IPFS does it all client-side, turns your local PC into a node, which publicly broadcasts you are sharing it (like a torrent).
Both are difficult to do complex apps with, and that's why they both are not that popular. However, it is possible. And as long as it’s possible, there’s hope.