34 Commits
Author SHA1 Message Date
fiatjaf 6855722ba5 make the relay connection timeout configurable. 2026-07-21 20:41:45 -03:00
fiatjaf aac995714b timeout relay connections at 2s. 2026-07-21 18:51:41 -03:00
Yasuhiro Matsumoto c9f7632571 count: don't ignore EnsureRelay errors, relay can be nil and Count would panic. 2026-07-15 14:37:44 +09:00
fiatjaf 0c8e643609 key and auth flags on root command. 2026-06-11 17:49:20 -03:00
fiatjaf 7872c61a4d combineFlags() and authFlags compendium. 2026-06-11 16:23:20 -03:00
Yasuhiro Matsumoto 168a182d50 count: use Pool.AuthRequiredHandler to match other commands. 2026-06-04 10:55:14 +09:00
fiatjaf eae828e03b update to the fact that Pool doesn't use PoolOptions anymore, just modify the global pool directly. 2026-04-19 20:17:00 -03:00
fiatjaf ec1721cfe3 count: support CLOSED and AUTH.
fixes https://github.com/fiatjaf/nak/issues/117
2026-03-25 21:42:11 -03:00
fiatjaf 037e8efcc6 count: support reading filters from stdin like req. 2026-02-12 14:34:24 -03:00
fiatjaf 1b380dea9a count: support the same flags as req.
fixes https://github.com/fiatjaf/nak/issues/103
2026-02-12 14:25:57 -03:00
fiatjaf e0ca768695 also parse npub/nevent/naddr when used as tag values, turn them into their corresponding hex or address format. 2025-11-11 16:32:14 -03:00
fiatjaf bef3739a67 accept npub/nprofile/nevent instead of just hex in flags. 2025-11-11 15:58:53 -03:00
fiatjaf d3975679e4 add labels to subscriptions for easier debugging. 2025-08-14 13:28:15 -03:00
fiatjaf aadcc73906 adapt to since and until not being pointers. 2025-05-08 09:59:03 -03:00
fiatjaf 67e291e80d nak publish 2025-05-06 00:56:49 -03:00
fiatjaf d733a31898 convert to using nostrlib. 2025-04-20 18:11:21 -03:00
fiatjaf 703c186958 much more colors everywhere and everything is prettier. 2025-04-03 14:50:25 -03:00
fiatjaf 9547711e8d nice dynamic UI when connecting to relays, and go much faster concurrently. 2025-04-03 11:42:33 -03:00
fiatjaf 26930d40bc migrate to urfave/cli/v3 again now that they have flags after arguments. 2025-02-16 13:02:04 -03:00
fiatjaf 6e43a6b733 reword NIP-XX to nipXX everywhere. 2025-01-29 19:13:30 -03:00
fiatjaf 7f608588a2 improve count and support hyperloglog aggregation. 2024-12-10 23:28:36 -03:00
fiatjaf fd5cd55f6f replace encoding/json with json-iterator everywhere so we get rid of HTML encoding and maybe be faster. 2024-12-03 00:43:52 -03:00
fiatjaf f425097c5a allow filters with long tags (the 1-char restriction is only a convention, not a rule).
fixes https://github.com/fiatjaf/nak/issues/44
2024-11-26 12:05:40 -03:00
fiatjaf c90e61dbec set .DisableSliceFlagSeparator to true.
fixes nostr:nevent1qqs9qwgwnr2rzguzrgt99hhhyv8e84mcdr4mnk86uvm6ndjvzl4rjxqpzpmhxue69uhkztnwdaejumr0dshsz9mhwden5te0vf5hgcm0d9hx2u3wwdhkx6tpdshszxnhwden5te0vfhhxarj9ekx2cm5w4exjene9ehx2ap0j8u0fj
2024-08-07 11:46:08 -03:00
fiatjaf 928c73513c just move imports around. 2024-07-30 11:43:14 -03:00
fiatjaf 220fe84f1b hardcode our fork of urfave/cli because go is stupid.
fixes https://github.com/fiatjaf/nak/issues/26
2024-07-23 15:23:13 -03:00
fiatjaf dba2ed0b5f update to cli v3. 2024-06-25 22:18:26 -03:00
fiatjaf 14b69f36cf -q to silence stderr, -qq to silence everything. 2024-01-24 22:38:51 -03:00
OHASHI Hideyaandfiatjaf_ 8373da647e Fix tags with values containing = 2023-12-24 09:29:29 -03:00
fiatjaf 8d111e556e count uses all relays again, now correctly. 2023-10-08 15:31:20 -03:00
fiatjaf e4a9b3ccc7 fix count again, it was sending REQs instead of COUNTs to relays. only use the first relay. 2023-10-08 15:05:51 -03:00
fiatjaf 3896ef323b update go-nostr dependency. 2023-10-08 14:47:45 -03:00
fiatjaf c214513304 improve count. 2023-10-08 14:40:46 -03:00
Yasuhiro Matsumotoandfiatjaf_ 6ccca357e2 support NIP-45 COUNT 2023-08-23 12:50:23 -03:00