101 Commits

Author SHA1 Message Date
Jon Staab
43de47addb Switch supported_nips to strings 2026-02-09 14:40:37 -08:00
fiatjaf
0cb0d1ccb0 unify usage and export nostr.IsOlder() helper. 2026-01-22 22:54:44 -03:00
fiatjaf
bcf973f997 khatru: update search cookbook in docs. 2026-01-16 18:56:41 -03:00
fiatjaf
bd55c22768 khatru/blossom: ensure we don't get tricked by Content-Length. 2026-01-16 08:13:14 -03:00
fiatjaf
8b9e2ea951 khatru/blossom: fix yield exiting on eventstorewrapper. 2026-01-16 07:20:57 -03:00
fiatjaf
449db37bb5 nip86: fix kind type. 2026-01-14 00:53:05 -03:00
fiatjaf
455d7fcefe khatru: maybe fix links on readme. 2026-01-13 07:49:45 -03:00
fiatjaf
348de7bb06 khatru/blossom: fix an error message. 2026-01-13 00:23:44 -03:00
fiatjaf
b9f1f93561 khatru/blossom: get rid of custom BlobDescriptor with useless Owner field. 2026-01-13 00:03:53 -03:00
fiatjaf
14acd4b740 blossom: GetExtension() 2026-01-12 15:46:01 -03:00
fiatjaf
416e11b868 khatru: support path in getBaseURL(). 2026-01-02 07:25:46 -03:00
fiatjaf
f47b77272b khatru: serve relay only from the path specified in ServiceURL. 2025-12-30 23:58:33 -03:00
fiatjaf
9f6143143b grasp: allowFilter. 2025-12-29 19:50:25 -03:00
fiatjaf
c6bd1ee446 khatru: fix bbolt halting problem by deleting outside of the loop that fetches events to be deleted.
fixes nostr:nevent1qvzqqqqx25pzq2f38nys0gq4hs5k4l4s426689psdk7d52kzjk9s0ypne2nt7927qy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcqyphrdv7jerr3f5mtlpcl7j7dg26ecxj9vrd5pyf0jknkqmp5qyyj28gxd3q
2025-12-19 00:23:21 -03:00
fiatjaf
bdef5ac224 khatru: fix possible race condition with authed keys. 2025-12-16 13:21:53 -03:00
fiatjaf
658a40e16c grasp: remove superfluous status code. 2025-12-12 21:24:48 -03:00
fiatjaf
34a509c9d7 grasp: pass request context to repoExists(). 2025-12-08 12:29:32 -03:00
fiatjaf
b323ca1b73 khatru: expose GetAllAuthed() safe helper. 2025-12-03 19:31:23 -03:00
fiatjaf
0e76c95cba khatru: increase max tokens on default strict policy. 2025-12-03 16:13:54 -03:00
fiatjaf
836a0f9842 grasp: remove apparently useless usage of syscall.SysProcAttr as it breaks windows builds. 2025-12-01 21:22:26 -03:00
fiatjaf
91548fa0a1 khatru: set max negentropy limit to 20x the default max limit. 2025-12-01 20:28:30 -03:00
fiatjaf
b15ad71282 khatru: negentropy sessions take longer to close. 2025-12-01 18:28:02 -03:00
fiatjaf
fb1603e062 grasp: repository path uses the pubkey now. 2025-12-01 10:03:01 -03:00
fiatjaf
020e4a8f56 grasp: spread stuff into multiple files. 2025-12-01 09:42:34 -03:00
fiatjaf
4b8fc31c23 grasp: return empty info-refs on both push and pull when repository wasn't created yet. 2025-11-30 22:41:31 -03:00
fiatjaf
6367bd71d4 nip11: add "supported_grasps" special field. 2025-11-25 14:50:14 -03:00
fiatjaf
ff5655ac55 schema: tests passing. 2025-11-23 17:52:29 -03:00
fiatjaf
98959e73e7 eventstore: replace bluge with bleve.
bluge seems to be abandoned and bleve should work better, who knows.
2025-11-23 06:57:54 -03:00
fiatjaf
55a43e46b7 use xhex everywhere. 2025-11-23 06:57:54 -03:00
fiatjaf
4a5983a17c grasp: fix all the issues with info-refs, force-pushes, checked-out repos etc, and .Log() 2025-11-19 16:37:20 -03:00
fiatjaf
5efd8c6485 grasp: better git error messages and get rid of stdout printing. 2025-11-18 23:18:49 -03:00
fiatjaf
8ea2a00037 grasp: temporary OnRead and OnWrite hooks. 2025-11-18 16:28:05 -03:00
fiatjaf
f5fb294efa blossom: add an alternative BlobIndex implementation in memory. 2025-11-18 16:04:37 -03:00
fiatjaf
078e9b4cc2 khatru: grasp server. 2025-11-17 08:10:08 -03:00
fiatjaf
98dbe7b9e9 improve and make nip77 api nicer so it could be better used in nak. 2025-11-12 20:21:02 -03:00
fiatjaf
43fabbeb2a eventstore: more consistent ErrDupEvent firing. 2025-11-12 16:10:50 -03:00
fiatjaf
db835ef3c4 khatru: add policies to validate event tags by kind and replace reactions. 2025-11-11 16:34:17 -03:00
fiatjaf
637de481e5 khatru: fix bug that caused a query with limit zero to bypass request filtering.
spotted by hodlbod.
2025-11-04 21:19:56 -03:00
fiatjaf
b87bc0ede4 khatru: store and broadcast kind:5 deletion events.
by insistence of @staab
2025-10-31 16:36:46 -03:00
fiatjaf
32bbff615a khatru: ForceBroadcastEvent() 2025-10-31 13:05:19 -03:00
fiatjaf
13c44a4644 khatru: PreventBroadcast() also gets passed the filter. 2025-10-30 16:30:34 -03:00
fiatjaf
e34ce6aa94 khatru: fix an argument name. 2025-10-30 09:41:37 -03:00
fiatjaf
8ae530b163 nip42/khatru: clearer AUTH error messages. 2025-10-28 11:42:38 -03:00
fiatjaf
309bab0048 khatru: router AnyEvent() and AnyReq(). 2025-10-28 11:10:45 -03:00
fiatjaf
131093388d khatru: reduce default max number of authenticated clients. 2025-10-26 17:00:35 -03:00
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