Static Nostr blog #1085
Replies: 4 comments
-
yep, Hostr can host HTML, JS and CSS inside the Nostr relay and publish those. Then the client-side JS can connect to relays and download the Post. It's Nostr Inception. See NIP: #811 Demo: https://h.hostr.cc/p/2d417bce8c10883803bc427703e3c4c024465c88e7063ed68f9dfeecf56911ac/d/hostr-lp |
Beta Was this translation helpful? Give feedback.
-
Done it, works flawlessly. |
Beta Was this translation helpful? Give feedback.
-
https://fiatjaf.com/ is an HTML site and also a Nostr relay that serves its own articles to whoever asks. |
Beta Was this translation helpful? Give feedback.
-
@dtonon You did it. 👏 https://github.com/dtonon/oracolo |
Beta Was this translation helpful? Give feedback.
-
Build tools like Next.js or Gatsby should make it possible to build a static blog website without any client-side JS, that pulls NIP-23 posts by a single author from relays at build time and then generates a page for each of them, complete with a nice blog index with thumbnails etc.
You could also publish posts at build time by taking all the Markdown files in a directory, using their filename as the
d
, and then republishing all of them.Maybe the first part isn't needed, just the second part. Either scenario could be interesting.
Most importantly, the end-user should not have to connect to any relays from their browser directly. The point of this is to increase exposure and enable commenting, similar to having an RSS feed. I'm not sure anyone has done this yet. Future WordPress competitor?
Beta Was this translation helpful? Give feedback.
All reactions