Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

NIP-83: JavaScript Registry #1112

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

Conversation

alexgleason
Copy link
Member

JavaScript is unique in that you can import source code directly by URL. This NIP makes it possible to publish JavaScript code to Nostr and then use it within web browsers and Deno using an HTTP gateway.

Inspiration: #742 #811 denoland/deno#22779

Read here


## Immutability

Source code events are considered immutable, and should NOT be deleted by supported clients or relays in response to kind `5` deletion requests.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree about immutability, but not being able to delete it seems a bit overkill 😅

@vitorpamplona
Copy link
Collaborator

I don't think relays should have the responsibility of serving content via HTTP. It's just not what they are designed for.

@AsaiToshiya
Copy link
Collaborator

In the future, I think it would be useful to include tags such as name and version which correspond to fields in jsr.json, and also by doing so can be distinguished from kind: 5394 in NIP-106.

@fiatjaf
Copy link
Member

fiatjaf commented Mar 13, 2024

Yes, I agree this is out of scope.

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

Successfully merging this pull request may close these issues.

4 participants