29 Commits

Author SHA1 Message Date
Kay
65383d6d65 making it a little better, so compiler wont complain. 2025-01-28 15:26:38 -03:00
fiatjaf
1a03178d83 test expiration. 2025-01-13 17:02:15 -03:00
fiatjaf
d27f582a0b nip-40 expiration manager. 2025-01-13 08:06:13 -03:00
fiatjaf
e1de0432fe fix @staab's mess. 2024-12-31 22:15:15 -03:00
Jon Staab
5b9b89543f Get service url when handling auth rather than mutating the relay, allow user to override service url via env var 2024-12-31 22:10:13 -03:00
fiatjaf
abbe61d128 use ReplaceEvent when available. 2024-12-08 00:50:29 -03:00
fiatjaf
e9999feec0 turns out we need to bump a version because of annoying hex nips. 2024-12-07 07:58:20 -03:00
fiatjaf
6275f52134 support hyperloglog handlers on COUNT. 2024-12-07 00:26:22 -03:00
fiatjaf
1dc12e5d2e support negentropy. 2024-10-26 23:41:39 -03:00
fiatjaf
5f0f9eec99 .PreventBroadcast slice of functions for controlling what events get broadcasted and to whom.
addresses https://t.me/nip29_temp/303
2024-07-31 10:34:53 -03:00
fiatjaf
a63dc829df routing. 2024-07-30 12:53:27 -03:00
fiatjaf
535f4c90e0 split nip11 handler into its own file and implement nip86 (relay management api). 2024-07-08 15:42:42 -03:00
fiatjaf
0004c041e0 nip11: signal support for auth always. 2024-07-07 23:38:27 -03:00
fiatjaf
f8afb51ee9 ratelimits. 2024-05-12 20:37:00 -03:00
fiatjaf
e174dd6a95
support 1, 11 and 70 on NIP-11 list. 2024-02-13 12:24:06 -03:00
fiatjaf
f450c26d84
update go-nostr and xsync. 2024-01-10 16:27:50 -03:00
fiatjaf
8842ec2edd
OnEphemeralEvent() 2024-01-10 16:24:35 -03:00
fiatjaf
e876415677
remove unused .OnAuth() and update README example. 2023-12-28 09:17:06 -03:00
fiatjaf
3ec0020baa
add OnDisconnect() handlers. 2023-12-09 09:00:11 -03:00
fiatjaf
35e801379a
make NIP-42 actually work, with inferred ServiceURL if that's not manually set. 2023-12-06 15:03:53 -03:00
fiatjaf
22da06b629
new flow for auth based on "auth-required: " rejection messages. 2023-12-06 12:14:58 -03:00
fiatjaf
90697ad3d3
OverwriteRelayInformation 2023-11-27 00:54:45 -03:00
fiatjaf
8c8a435a0b
ensure supported_nips is always a list, even if empty. 2023-11-23 19:37:01 -03:00
fiatjaf
8fd6436ac8
rework nip11 support to be more transparent. 2023-11-18 10:35:08 -03:00
fiatjaf
b277dae743
fix RejectFilters application, support overwriting filters and add some filter plugin helpers. 2023-11-07 16:08:56 -03:00
fiatjaf
c0848182c4
OverwriteResponseEvent for optionally modifying events before sending them to client. 2023-11-04 17:39:28 -03:00
fiatjaf
d19b8f8895
support icon url. 2023-11-02 21:24:19 -03:00
fiatjaf
bbe186494e
replace mutex-guarded maps with xsync/v2 maps. 2023-10-03 08:32:07 -03:00
fiatjaf
8968982b9a
relayer, second attempt, now much better. 2023-08-10 14:32:11 -03:00