blob: b22ac10b7d8347e8066ae778ff2737147bceef1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/- feed
|%
++ shim-url 'http://localhost:8888/shim'
+$ state state-0
+$ state-0
$: %0
:: nostr config
relays=(set @t)
events=(list event) :: let's limit it to 100
keys=(set keys)
:: feeds
own=feed:feed
following=(map @ux [profile=user-meta =feed:feed])
follow-graph=(map @ux (set follow))
:: TODO global feed somehow?
==
+$ follow [pubkey=@ux name=@t relay=(unit @t)]
+$ keys [pub=@ priv=@]
++ default ^- state-0 =/ s *state-0 s(relays (silt ~['wss://relay.damus.io' 'wss://nos.lol']))
:: NOSTR structs
::
+$ event
$: id=@ux :: 32bytes
pubkey=@ux :: 32bytes
created-at=@ud :: seconds
kind=@ud
tags=(list tag)
content=@t
sig=@ux :: 64bytes
==
+$ tag
$: key=@t
value=@t
rest=(list @t)
==
+$ user-meta :: NIP-1
(map @t @t)
:: $: name=@t
:: about=@t
:: pic=@t
:: ==
--
|