Nessesary Lists in NOSTR.

Nessesary Lists.

lists

Standard lists use normal replaceable events, meaning users may only have a single list of each kind.

Relay List Metadata

PROFILE

Where a user publishes to and where they expect mentions.

Defines a replaceable event using kind:10002 to advertise relays where the user generally writes to and relays where the user generally reads mentions.

The event MUST include a list of r tags with relay URLs as value and an optional read or write marker. If the marker is omitted, the relay is both read and write.

kind:10002 (https://github.com/nostr-protocol/nips/blob/master/65.md)

{
  "id": "4fdeb05d3b71f74ff757fc70cf1197fcd6b55a73b2d767c24c26d81116734aca",
  "pubkey": "c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe",
  "created_at": 1753600192,
  "kind": 10002,
  "tags": [
    [
      "r",
      "wss://nos.lol"
    ],
    [
      "r",
      "wss://de.purplerelay.com"
    ],
    [
      "r",
      "wss://lightningrelay.com"
    ],
    [
      "r",
      "wss://nostr.mom"
    ],
    [
      "r",
      "wss://nostr.self-determined.de"
    ],
    [
      "r",
      "wss://relay.nostr.net"
    ],
    [
      "r",
      "wss://relay.varke.eu"
    ],
    [
      "r",
      "wss://communities.nos.social/"
    ],
    [
      "r",
      "wss://at.nostrworks.com/",
      "write"
    ]
  ],
  "content": "",
  "sig": "593ed0cfd613c30fbda0791fecb078f7a43e466b4343b07e033926d2c965bb73caddc05d6f6f66dbee71218bd45aaa4f3b5c70fdf04dfeefa9946c180bdd32a2"
}

interrests

PROFILE

Topics a user may be interested in and pointers “t” (hashtags) and “a” (kind:30015 interest set)

{
  "id": "96daebee9f886f5dbe9bab1581c0540443a8c54b897f48710de89dfda8c7832b",
  "pubkey": "c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe",
  "created_at": 1737656765,
  "kind": 10015,
  "tags": [
    [
      "t",
      "acid communism"
    ],
    [
      "t",
      "capitalist realism"
    ],
    [
      "t",
      "Freedom Tech"
    ],
    [
      "t",
      "Philosophy"
    ],
    [
      "t",
      "Bitcoin"
    ]
  ],
  "content": "",
  "sig": "5eee84ede9723321e4a5ff0a289faedfa9ed73b6d47b945788ac1faac3244adc464b2b146d2791c80b94cb1b39169694a76510fe4a445e7f884d125082ef6c33"
}

pin list

PROFILE

kind 10001 pin list

events the user intends to showcase in their profile page

Relay feeds (10012)

sets

Sets are lists with well-defined meaning that can enhance the functionality and the UI of clients that rely on them. Unlike standard lists, users are expected to have more than one set of each kind, therefore each of them must be assigned a different “d” identifier.

Aside from their main identifier, the “d” tag, sets can optionally have a “title”, an “image” and a “description” tags that can be used to enhance their UI.

Starter packs

Kind: 39089

a named set of profiles to be shared around with the goal of being followed together

Moderated Communities (Reddit Style)

https://github.com/nostr-protocol/nips/blob/master/72.md

Define Group:

{
  "id": "9d572fd6b6f5b1a091248f0bcd3a5978379e34ffc607a9e97b6669bade1003cc",
  "pubkey": "c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe",
  "created_at": 1701623002,
  "kind": 34550,
  "tags": [
    [
      "d",
      "radikalTrivial"
    ],
    [
      "description",
      "Wie kann unsere Gesellschaft aufgebaut und strukturiert sein, sodass sie unseren Kindern eine gute Gesellschaft und Gemeinschaft bietet?\nAusgangspunkt jeden politischen Handelns wird so die Frage nach der Zweckhaftigkeit für unsere Kinder."
    ],
    [
      "image",
      "![image](https://cdn.satellite.earth/b5ff53398507feabcc10fa867d9e0649f529fc4dd729e525647be3b4cfa8ad70.png)"
    ],
    [
      "rank_mode",
      "votes"
    ],
    [
      "rank_batch",
      "20"
    ],
    [
      "p",
      "c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe",
      "",
      "moderator"
    ]
  ],
  "content": "",
  "sig": "be12a9bf6a74c43fe89ff84e919ed27ccbbbe800beeb3821ec1f4d4290fcaf4786fe280e60d299f3f0e79ba8b951da8fc11275486de212c794592cf17f0c94b8"
}

Gruppen zugehörigkeit:

{
  "id": "e3f7656a41e18aae34e0aa6881e3e377d81276a082a3c43dc739c84f99c371c5",
  "pubkey": "c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe",
  "created_at": 1702743641,
  "kind": 10004,
  "tags": [
    [
      "a",
      "34550:c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe:radikalTrivial"
    ],
    [
      "a",
      "34550:c8cf63be8536349cf4ed936897b7d586ddfbe3390f0bd3df7f7a80fb86691cfe:mitLeeremHerzen"
    ]
  ],
  "content": "",
  "sig": "6f7e0806f92923aec7a78d467ebfb53d804e1a9be0ab04f62b63e2943d670d1dbe5e8a30c36ea788888b46fdcd6aae57b041bc4fbdf3ea79604ec3fbdd2c5c40"
}

back:


No comments yet.