- Does peer-star-app init its own js ipfs daemon?
Yes, it runs its own js ipfs daemon, but it only uses a subset of the features. Some features that are in go-ipfs, like DHT and IPNS, are still experimental or not fully implemented yet in js-ipfs, and aren't used by peer-star-app.
- I could see that peer-star-app use circuit relay. Is it intended to connect to a better peer(ipfs node) to get better connectivity and performance?
I think that's the idea. I haven't tried using that myself yet.
I'm most familiar with how peer-pad is using peer-star-app ... right now, it's using a standalone websocket 'rendezvous' server (libp2p/js-libp2p-websocket-star-rendezvous) that all the peers connect to. That's a little more centralized than we'd like ... there are some ideas to build some of the core "rendezvous" protocols into ipfs itself. We also want to support transports such as webrtc that will take advantage of true peer-to-peer connections where the are available.