This is a better example of it. Since that script adds a global object instead of exporting.

Reply to this note

Please Login to reply.

Discussion

Redundancy. You can broadcast the html or js code to any relay you want.

In the future, browsers will load the event directly from relays. When that happens the little server I put up won't be needed anymore.

You would download entire websites from your favorite relays.

Check this out. It's so close to being able to import a Nostr URI directly.

Using a colon doesn't work in the alias, only a slash.

Anyway this is making me think instead of trying to build Nostr on top of git, git could be replaced with a Nostr thing.

Imagine shipping new JS libraries into Nostr and every version is immediately available to everyone else. Just update your event ID and boom, a new version of a dependent website is up.