It's cool, but I don't think it's actually a good idea to build a SSG. I think if it's a tool to collect your long-form content and adding another SSG tags to it, like Hugo or zola etc it will be great. Because there is a community support and a lot of themes out there.
Just released nostr-static v0.1 🚀
A static site generator for long-form Nostr content. Download events by IDs and generate beautiful HTML pages.
Features:
- Multiple relay support
- Dark/light theme
- GitHub Pages ready
Check it out: https://github.com/dhalsim/nostr-static
Demo: https://blog.nostrize.me
Discussion
What do you mean by adding another SSG tags to it? I'm using events' tags
In Hugo and Zola it called "Front matter". Where you add the title, description, date, etc., for each page.
I'm also using front matter for publishing NIP-23 content. If someone else implements that in a proper tool, maybe we can use the same keys:
https://nostr.kosmos.org/@raucao/2025-04-24-markdown-to-nostr
My flow is you publish the article using existing tools like yakihonne or habla. Then you just add the naddr to the nostr-static config and run the tool. Yakihonne puts the summary, title, image to the tags. So i don't think i need an front matter
I was actually wondering why you don't just configure an npub and maybe a tag for filtering if necesaary.
Just adding the naddr manually is a 10 seconds job, but building a tool for ordering and selecting takes a lot of time. If you don't write a lot of articles, my tool makes sense
Hmm. In my implementation, I just do a single query to fetch articles for an npub, and then order them by `published_at`. It's very simple and works pretty well.
Ah you mean support a proper SSG instead of creating a new one. That can be a new project idea. For this one, I just needed a quick and dirty solution.