I think this was the intent of https://github.com/nostr-protocol/nips/blob/master/39.md, which pseudozach (npub1xhe…56yf) started implementing on https://nostr.directory, but the idea was to make a decentralized nostr.directory, I think.
We should still be able to improve the NIP and get it actually running though.