From f7e213deb644656b8b281a245044388c2332e65f Mon Sep 17 00:00:00 2001 From: artur Date: Fri, 5 Jul 2024 10:41:40 +0200 Subject: [PATCH] Add nip512 nostr sites kind 30512 --- 512.md | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 512.md diff --git a/512.md b/512.md new file mode 100644 index 00000000..bcb02087 --- /dev/null +++ b/512.md @@ -0,0 +1,173 @@ +Nostr Sites +=========== + +This NIP describes a way to render a selection of Nostr events on a website. + +A web page that is part of the Nostr Site must include `nostr:site` meta tag: +``` + +``` + +The `site` event, referenced by `naddr` from `nostr:site` meta tag, is a parameterized replaceable event of kind `30512`. The `content` field MAY contain a rich description of the site in markdown syntax (NIP-23), all tags are optional (except `d`). + +Tags: +``` +{ + "tags":[ + // absolute url of the nostr site root, may include /path/, must not include query string, must end with / + ["r", "https://site.com/"], + ["name", ""], + ["title", ""], + ["summary", ""], + ["image", ""], + + // contributors, if omitted - event's author is the single site contributor + ["p", ""], + + // filters for fetching published events + + // - single-letter tag + ["include", "", ""], + // list of included event kinds + ["kind", "30023"], + // override contributors' outbox relays to fetch content + ["relay", ""], + + // event id and package hash of the extensions (themes, plugin) + ["x", "", "", "", ""], + + // renderer engine, preferably reverse-domain notation, should match theme engine and plugin engine, i.e. `pro.npub.v1` + ["z", ""], + + // meta tags for website rendering, seo, social, navigation + ["icon", ""], + ["logo", "
"], + ["color", "<#hex - accent color, PWA theme_color>"], + ["lang", ""], + ["meta_title", ""], + ["meta_description", ""], + ["og_title", ""], + ["og_description", ""], + ["og_image", ""], + ["twitter_image", ""], + ["twitter_title", ""], + ["twitter_description", ""], + + // primary navigation, one tag per link + ["nav", "", "