nips icon indicating copy to clipboard operation
nips copied to clipboard

Extension in NIP-C0

Open Aspie96 opened this issue 1 month ago • 2 comments

NIP-C0 kind:1337 code snippets have an extension tag which repeats the extension already included in the name tag (if present).

I'm not exactly sure about the use case for it (it's not to find the programming language because that has a separate tag), but I'm writing to ask whether the intention is for it to be case-sensitive or whether it should be written in lowercase.

Files can have uppercase extensions and usually file extensions have the same meaning regardless, so it would make sense to me if the extension had to be normalized to lowercase (in the extension tag, leaving casing unchanged in the name tag), but I'm not sure about this one because I don't know what the intended use case is.

Aspie96 avatar Dec 06 '25 04:12 Aspie96

To be honest this entire NIP is kinda useless.

fiatjaf avatar Dec 06 '25 10:12 fiatjaf

I strongly disagree.

Code snippets are one of the most obvious applications of Nostr. They are plain text notes, they are a form of self expression, they are a form of literature and they benefit from censorship resistance like anything else.

Aspie96 avatar Dec 10 '25 00:12 Aspie96