Commit Graph

56 Commits

Author SHA1 Message Date
fiatjaf
6ee0d090e3 khatru: deploy docs to netlify. 2025-10-20 18:37:21 -03:00
fiatjaf
8cf120c08f khatru: update docs again, now it seems to be mostly up to date. 2025-10-20 18:22:08 -03:00
fiatjaf
d85bb8aa1b khatru: fix for panics when expiration manager is nil. 2025-10-14 01:52:10 +00:00
fiatjaf
afa5e5bc0e khatru: fix test for expiration manager, skip it unless code is manually adjusted for the test. 2025-10-01 12:22:01 -03:00
fiatjaf
46f28203ed khatru: expiration manager takes query and delete methods, which are given automatically by .UseEventstore() 2025-10-01 12:08:08 -03:00
fiatjaf
8957144c77 khatru: expiration manager is only started automatically when .UseEventstore() is called. 2025-10-01 11:57:32 -03:00
fiatjaf
79f1a9c636 fix sqlite mention. 2025-09-23 19:02:09 -03:00
fiatjaf
8b8693f4bf other useless quibbles. 2025-09-23 12:29:55 -03:00
fiatjaf
04e095eb1b "a" deletions split only 3.
see https://github.com/fiatjaf/khatru/pull/60
2025-09-22 16:46:38 -03:00
fiatjaf
805003b39b khatru: fix policy that requires nostr-prefix references. 2025-09-15 08:27:29 -03:00
fiatjaf
e8456dab70 khatru/policies: RejectUnprefixedNostrReferences 2025-09-10 10:40:06 -03:00
fiatjaf
9933bb7865 khatru: fix multi-user auth stupid bug. 2025-09-06 23:26:55 -03:00
fiatjaf
fd53d7309f khatru: support multi-user auth. 2025-09-06 10:11:31 -03:00
Anthony Accioly
8750197ea7 khatru/blossom: blossom ext updates.
see https://github.com/fiatjaf/khatru/pull/59
2025-09-05 11:18:51 -03:00
fiatjaf
5f8b069f5d khatru: nip86 "u" tag checking normalization fix. 2025-09-05 11:06:17 -03:00
fiatjaf
0770f217a5 khatru: prevent large indexable tags doesn't make any sense anymore as we don't index tags verbatim, only hashes. 2025-09-04 10:13:08 -03:00
fiatjaf
aec2dc318d actually it's better if nip11 pubkey is a pointer. 2025-09-04 00:35:46 -03:00
fiatjaf
cd398b94b5 get rid of badger everywhere, including as an sdk/hints backend. 2025-09-04 00:35:17 -03:00
fiatjaf
a09429236e khatru: disable ratelimit for local ipv6 too. 2025-09-03 21:32:17 -03:00
fiatjaf
d036b2f8d5 khatru: fix nip86 method field names. 2025-08-29 22:42:36 -03:00
fiatjaf
7ac9e6290b khatru: replace useless ApplySaneDefaults() with a set of pluggable "strict" defaults. 2025-08-28 17:18:22 -03:00
fiatjaf
926ed0830a khatru: don't ratelimit localhost connections. 2025-08-25 07:32:05 -03:00
fiatjaf
6bda63de17 eventstore: delete badger, it's too buggy. 2025-08-04 15:16:25 -03:00
fiatjaf
88096fbd84 khatru: allow disabling expiration manager. 2025-07-28 22:06:12 -03:00
fiatjaf
24060da1dd khatru: better error on nip86 "u" tag mismatch. 2025-07-28 09:35:22 -03:00
fiatjaf
68b0caf2ab khatru: improve ephemeral ok message when handled internally. 2025-07-19 11:51:44 -03:00
fiatjaf
33838a4801 khatru: optional ChallengePrefix. 2025-07-17 16:46:44 -03:00
fiatjaf
840e2846ed khatru: fix eose waitgroup count for multiple filters. 2025-07-15 13:14:59 -03:00
fiatjaf
7289da9c72 improve/refactor websocket connections hoping this will fix the undetected disconnections we're seeing.
this commit also remove all the sonic envelope parsing and reintroduces filters in REQ as a slice instead of as a singleton.

why? well, the sonic stuff wasn't really that fast, it was a little bit but only got fast enough once I introduced unsafe conversions between []byte and string and did weird unsafe reuse of []byte in order to save the values of tags, which would definitely cause issues in the future if the caller wasn't aware of it (and even if they were, like myself).

and the filters stuff is because we abandoned the idea of changing NIP-01 to only accept one filter per REQ.
2025-07-10 22:58:37 -03:00
fiatjaf
027d016d97 khatru: the accioly blossom redirect patch, reworked. 2025-06-10 16:43:30 -03:00
fiatjaf
50a753504d khatru: hodlbod's nip86 fixes. 2025-06-10 16:43:30 -03:00
fiatjaf
96125dd6f0 khatru: SendNotice() util. 2025-06-08 07:15:02 -03:00
fiatjaf
7a1292b58b handle files declared as .apk as .apk. 2025-06-03 19:01:18 -03:00
fiatjaf
7b1f4ae49a fix types so tests compile. 2025-05-12 10:18:06 -03:00
fiatjaf
bbffe45824 do not error with "mute" when there are ephemeral handlers. 2025-05-12 05:15:24 -03:00
fiatjaf
f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. 2025-05-11 09:36:59 -03:00
sudocarlos
9118217048 khatru/blossom: implement BUD-05 without optimizations 2025-05-09 15:20:39 -03:00
sudocarlos
ce382bbc47 khatru/blossom: return content-type in handleUpload() 2025-05-09 15:18:21 -03:00
fiatjaf
adf874ca2e khatru: change name and signature of relay management main authorization hook. 2025-05-08 23:31:26 -03:00
fiatjaf
cafcfc6bcc khatru: fix GetAuthed() boolean return value. 2025-05-08 12:36:55 -03:00
fiatjaf
c0934e0639 since and until are not pointers anymore because that is too annoying. 2025-05-08 09:32:54 -03:00
fiatjaf
0d99789a54 khatru/blossom: implement bud-04 mirror. 2025-05-06 00:15:45 -03:00
fiatjaf
f0b3da78ef khatru: upgrade docs a little more. 2025-05-03 11:56:38 -03:00
fiatjaf
1ece6d0eab khatru: fix nip70 handling inverted conditional. 2025-05-03 11:56:38 -03:00
fiatjaf
80621fe547 khatru/docs: display fox. 2025-04-28 15:46:17 -03:00
fiatjaf
aaf0740513 partial docs update. 2025-04-21 15:44:45 -03:00
fiatjaf
3d595039cc fixes and tweaks from nak port work. 2025-04-21 08:35:19 -03:00
fiatjaf
15c6093c9b define a nostr.Kind type for event kinds, make adjustments everywhere and fix some horrible bugs with mmm, lmdb and badger querying and deleting. 2025-04-20 11:15:41 -03:00
fiatjaf
92c2de6294 eventstore tests. 2025-04-18 11:29:31 -03:00
fiatjaf
32efaa7c58 tests on root and khatru working. 2025-04-17 20:30:44 -03:00