Giter Site home page Giter Site logo

Discoverability about nostr HOT 7 CLOSED

nostr-protocol avatar nostr-protocol commented on August 20, 2024
Discoverability

from nostr.

Comments (7)

ShalokShalom avatar ShalokShalom commented on August 20, 2024 1

You could mention that somewhere in the docs :D

from nostr.

fiatjaf avatar fiatjaf commented on August 20, 2024

What do you mean by discoverability?

from nostr.

ShalokShalom avatar ShalokShalom commented on August 20, 2024

How to discover channels, people etc

from nostr.

eskema avatar eskema commented on August 20, 2024

you query for some events? in what context are you asking this question?

from nostr.

fiatjaf avatar fiatjaf commented on August 20, 2024

The way I have in mind is that you would just follow people you know or public people and from there you will see others from replies and reposts and interactions of all sorts. Relay addresses will come along with these interactions such that your client should be able to follow and find them easily.

There are of course many other problems and also other solutions, but they can all be implemented simultaneously without being hardcoded in the protocol.

from nostr.

ShalokShalom avatar ShalokShalom commented on August 20, 2024

So there is no part of the protocol who takes care of that

You could mention that in the Readme

from nostr.

eskema avatar eskema commented on August 20, 2024

in technical terms, you can just open a subscription with a relay asking for some events:
['REQ', 'discover', {kinds:[1], limit:50}]
upon receiving this request, the relay will send you the last 50 events of kind-1 it received. from there you can see posts and their corresponding pubkeys. you can also request a certain topic, etc.. now this only works if you're in control of the requests beeing made. If you're asking from a user POV on a random client, then it will depend on what that particular client implemented...
if you want to discover channels, then you can just ask for them: ['REQ', 'discover', {kinds:[40], limit:100}]

from nostr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.