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

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

nostr:npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6 nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z why would you want to do this though
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.