How can one go about writing a pen pal app on Nostr? Basically the only missing piece that hasn’t been done before is the ability to search for profiles based on a “looking for” field.

It could be used to make a language exchange app, for example. Just need custom profile data and to be able to query that

Reply to this note

Please Login to reply.

Discussion

nostr:npub12262qa4uhw7u8gdwlgmntqtv7aye8vdcmvszkqwgs0zchel6mz7s6cgrkj could noswhere be used to find profiles with certain strings in a custom tag “languagesKnown” / “languagesLearning”?

nostr:npub1zuuajd7u3sx8xu92yav9jwxpr839cs0kc3q6t56vd5u9q033xmhsk6c2uc do you think an NDK filter could ever support this? Or is it basically up to the relay to enable the functionality?

Yeah. A filter could support it but the only tags that relays index are the single letter tags so your suggestion wouldn’t work.

Another option would be to create an interests list like nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft has suggested a few times and then you could have a special app that tried to pair users based on the contents of those lists.

Would either require some special relay tweaks or a database though.

I suppose that one could also do this organically. Like get a trend going where people post hashtags in a post like: “#KnowPortuguese #KnowSpanish #LearningEnglish #LearningGerman”

Then if I want to find a Spanish speaker that wants to learn English, I can search for the presence of both “#KnowSpanish” and “#LearningEnglish” in a post