NIP-C4 - Nostr Apps (aka napps or nsites v3)#2274
NIP-C4 - Nostr Apps (aka napps or nsites v3)#2274arthurfranca wants to merge 2 commits intonostr-protocol:masterfrom
Conversation
|
TL;DR: Static website without nip-07 support: publish just a bundle event Both cases: Files uploaded to user's Blossom servers |
|
Looks great! I had the same thought process as you, being I actually started a thorium fork that aimed to natively resolve napps with a similiar thought process as 44b, preceded by a proof of concept (which was going to be napp.run) that almost panned out. Look up the whois on Is there any way that the 1.5 year old "Static Websites" NIP and ecosystem could adopt your encoding solution for subdomains (the missing piece in nsite), and then NIP-C4 defines the app marketplace discoverability event and other criterion for napps? The differences between event Out of curiosity, why did you find it necessary to define mime-types? Interoperability here is implicit and basically guaranteed if the right compromises are made in the right places. |
|
I didn't read the actual NIP yet, but the idea is very good. |
|
@dskvr Although the initial intent was to interop, after reading your reply I thought that maybe NIP-07 support or lack of it could dictate what spec to use. It could avoid upload tools wrongly publishing app listing events for classic websites. Not sure though.
Mime-types can help in some situations, e.g a png file saved as favicon.ico is auto supported by browsers while favicon.png isn't. Knowing the mime-type we can send the right content-type header. |
|
I would also like to see interoperability between this and nsites. it seems that a napp event could define the nostr app metadata and then point to a site manifest from nsite for the actual map of files also I like the use of base32 for the pubkey encoding, I think I might steal it for the nsite nip to make named sites work with wildcard certs :) |
|
@arthurfranca It would be quite awkward we didn't try, the static website events proposed last night are functionally the same as the nsite specification that been in development since September of 2024, or am I missing something? With some interop, you could kind of get the best of both worlds and there would be an easy path to napps. There are and will probably always be NIP-07 enabled nsites, the distinguishing factor for users is likely if they need release channels and app store listings. Maybe they deploy prototypes to nsites and promote them to napps. Or maybe they are minimalists. It seems clear to me that the core proposition of napps is to define an implementation of static websites resolved over nostr, not really the static websites themselves. |
|
@dskvr @hzrd149 regarding #1538 I suppose I could update my code to use Like, it would be great if you could use the bundle event for#1538 PR and then on this napps PR I could simplify it to point to your PR and then define just app specific extensions like the listing events etc. What do you think? Also, I have some questions regarding #1538:
|
|
@arthurfranca I think the difference is that we have been working in the open for 1.5 years, and you have presented something great, but at the same time are suggesting for us to completely pivot everything over to your spec. That's not really interoperability, that's hostile takeover.
Some comments on the static website section of the NIP; Everything else looks great.
The only really breaking difference is the Entirely possible that I am missing something. |
This is the spec I'm using at the 44billion.net (beta) platform.
Now that it's based on Blossom, it is essentially
nsitewith an extra event for showing these apps on "app marketplaces" aka app stores.As
nsiteis about to transition to a new structure with a new event kind (as seen on #1538 comments), I thought it would be ideal to reuse the same event kind I'm using for app bundle so that we can interoperate.One important difference is that this spec makes it possible for an author to have many apps under his pubkey instead of creating a key for each app/site.
@dskvr @hzrd149 @alexgleason @fiatjaf
Saw this note and rushed to write this down so nsites and napps can become one, after all they are really just static websites.