How does it work, you say? Just add a search server to your config. Of course, you can self host one too. And if you don't do this, it will fall back to local full-text-search of your own SQLite database.

Regrettably, nostr.band currently offers the best experience. But I think with some tweaks we can change that.