Great write up sir!

I think we can get the best of both on Nostr. Withe the **onNostr** being the important part.

The central repo on GitHub = :110percent: the issue. As soon as you take that of the picture and imagine a Nostr spec on Nostr, there's opportunity to introduce the best of what lexicons bring.

I'm personally leaning towards:

1️⃣ Wikis as the best way to publish specs

2️⃣ App Releases as a potentially more suited place to reference which specs your app is built on

Reply to this note

Please Login to reply.

Discussion

That way I can:

- have my detailed Kind 9 Chat message "lexicon"

- document it in a wiki that doesn't need to be merged necessarily (yet still becomes more valuable, the more it is referenced/zapped/replied/accepted in communities/....)

- reference it transparently at the app-level without having to stipulate in each message what spec is being used (which comes with privacy issues etc...)

How would you do lexicons btw, in a way that's backwards compatible? nostr:npub1hyxredcavc6ruqgsf4wf4hmakpwnvefmzaspl7dja6a2sxlx0q3sxwtqnx

Over there the protocol simply mandates both backwards and forwards compatibility. But often times the thing to is to reference another lexicon, or to create a sub schema.

So let's say in a lexicon called:

com.example.post

I have an author field, and for that field I want to reference the profile definition in another lexicon called com.example.user, I pop in:

"author": {"type": "ref", "ref": "com.example.user#/defs/profile"}

And that references:

"profile": {

"type": "object",

"properties": {

"handle": {"type": "string"},

"displayName": {"type": "string", "maxLength": 256},

"avatar": {"type": "string", "format": "uri", "nullable": true}

}

Then it's all just lego blocks and you can worry about them block by block.

But even if you have a breaking change and you come up with a new lexicon for it, all the other apps using the old lexicon will continue to use it, it can't be deleted, so you've not broken anything on their end.

Lo, they think they're messy :winkwithtongue:

> 2️⃣ App Releases as a potentially more suited place to reference which specs your app is built on

Makes a lot of sense to me. Without that real-world context you can be forced into a kind of lowest-common-denominator-of-possibilities outlook.

True story!

Will pitch the idea to nostr:npub1wf4pufsucer5va8g9p0rj5dnhvfeh6d8w0g6eayaep5dhps6rsgs43dgh9 , but it's not priority now.

Step one = Getting the communities running where we can collab on these NIPs in the first place.

For sure. If you get it up I'm happy to test sending join events with some throwaway nostr:npubs. This here web UI seems like it'd make testing pretty easy for a small test group.

https://nostrtool.com/