I’ve been looking into Briar messenger app but it doesn’t seem to have much documentation.

Being a decentralized app, they say that communication between devices can be done over a wifi lan, bluetooth or over Tor/Internet.

But I still don’t understand how devices find each other.