Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

nip11: "virtual_paths" #1201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

nip11: "virtual_paths" #1201

wants to merge 1 commit into from

Conversation

fiatjaf
Copy link
Member

@fiatjaf fiatjaf commented Apr 25, 2024

#1198 (comment)

This is just a stupid starting point just to get something concrete, please change it before merging @mikedilger @v0l @staab @nostrband

@staab
Copy link
Member

staab commented Apr 25, 2024

I like it, do we have numbers on how many paths are spurious vs legitimately virtual? Mike was saying there were lots of paths pointing to the same relay, but I can't think of why. Examples would be useful.

@fiatjaf
Copy link
Member Author

fiatjaf commented Apr 25, 2024

As far as I know filter.nostr.wine has paths for each pubkey and relay.nostr.band has paths for nip32-labeled content.

I'm working on a relay with the sole purpose of having virtual relays of multiple types with a shared database. I was thinking of putting these in subdomains, but maybe paths are better.

@staab
Copy link
Member

staab commented Apr 25, 2024

As far as I know filter.nostr.wine has paths for each pubkey and relay.nostr.band has paths for nip32-labeled content.

I know about those, I'm more wondering what an example of a path/qp that doesn't indicate a virtual relay would be.

@v0l
Copy link
Member

v0l commented Apr 25, 2024

lgtm

@jb55
Copy link
Contributor

jb55 commented Apr 26, 2024

nice, this is useful

```

- `is`: this is `true` when the current path queried is a virtual path.
- `canonical`: this is the path that should be used when the client doesn't care about the virtual.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this for moving domains also

Comment on lines +73 to +76
{"path": "/jp", "description": "only stuff in Japanese"},
{"path": "/it", "description": "only stuff in Italian"},
{"path": "/fr", "description": "whatever"},
{"path": "/pt", "description": "blergh"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if I want to connect to multiple virtual relays at once? I feel like we need a way to handle multiplexing on relays eventually...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants