nostr-protocol / nips

Nostr Implementation Possibilities
2.39k stars 582 forks source link

Update 11.md with banner, and icon fields #1555

Closed alltheseas closed 2 weeks ago

alltheseas commented 3 weeks ago

Added banner relay metadata field.

If nostr relay management is not to be relegated to PhD or protocol developers only, an effort should be made by relay owners to communicate with non-dev non-technical nostr end users. A banner is a visual representation of the relay. It should aim to visually communicate the brand of the relay.

staab commented 3 weeks ago

We should also add icon, which I've seen in practice.

jb55 commented 3 weeks ago

We should also add icon, which I've seen in practice.

wait, that's not there already!? yes we should.

alltheseas commented 3 weeks ago

Here is an issue I wrote up last year on icons: https://github.com/nostr-protocol/nostr/issues/128

Let me add to the PR.

alltheseas commented 3 weeks ago

Added icon field and icon field description.

staab commented 3 weeks ago

I think we're thinking of different things with icon. I don't think there's any point in providing an .ico format, which in my understanding is sort of a legacy format exclusively for use in windows application icons and website favicons. Since relays aren't applications, and their role as websites is orthogonal to nip 11, I think .ico is irrelevant. The icon should be png or maybe svg in most cases, and at least 48x48, but probably closer to 256x256 (IOW, profile picture size).

alltheseas commented 3 weeks ago

I dont have a strong view on the best format for icons. However, my understanding is that the relays that have favicons today use ICO format. This is in my recollection since Damus iOS added relay icons last year. @ericholguin do you know if some/all of these relays use ICO format?

image 247

If ICOs are the de facto standard, do you prefer to change it, or keep as is?

staab commented 3 weeks ago

nostrelites.org - jpg cyberspace.nostr1.com - png relay.proxymana.net - png bitcoiner.social - ico relay.0xchat.com - jpg yabu.me - png nostr.wine -jpg

I think just keeping it to "image" is descriptive enough. ICO will usually work fine, but it doesn't make sense to recommend them. PNG (or webp even) is best for small images like this.

alltheseas commented 3 weeks ago

Sounds good, removed ICO format reference

fiatjaf commented 3 weeks ago

I thought we had icon already.

EDIT: yes, we do. It's there at the end, but that is a horrible place, better delete it from there and move it to the beginning.

alltheseas commented 3 weeks ago

I thought we had icon already.

EDIT: yes, we do. It's there at the end, but that is a horrible place, better delete it from there and move it to the beginning.

@fiatjaf I moved the previous icon example link, deduplicated, and merged with the newly added icon section higher up in the doc.

alltheseas commented 2 weeks ago

How many more nostrati approvals are required?

Anything else need to be done?