Commit Graph

  • 591b49fe73 do not log on normal websocket close. fiatjaf 2023-11-19 08:30:06 -03:00
  • 5db3b5fb8b use binary search in RestrictToSpecifiedKinds() fiatjaf 2023-11-18 23:23:01 -03:00
  • dcdf86c4e4 allow filtering by tag on PreventTooManyIndexableTags fiatjaf 2023-11-18 12:54:59 -03:00
  • 0a62169e14 update examples. fiatjaf 2023-11-18 10:37:07 -03:00
  • 8fd6436ac8 rework nip11 support to be more transparent. fiatjaf 2023-11-18 10:35:08 -03:00
  • d2544d0f4d stop uselessly returning NIPs that are obviously supported on NIP-11 response. fiatjaf 2023-11-18 08:03:32 -03:00
  • 7a3eb6fb08 plugins.PreventLargeTags() fiatjaf 2023-11-13 16:26:27 -03:00
  • 1abeab4851 filter.Limit is zero by default, so we will short-circuit on negative limits. fiatjaf 2023-11-13 10:55:17 -03:00
  • ecb4fc66f8 shortcut querying when limit == 0 fiatjaf 2023-11-12 09:27:36 -03:00
  • af24bd2132 fix eose waitgroup on early reject. fiatjaf 2023-11-11 21:15:10 -03:00
  • 4905a46ccd make filter rejection actually work and move logic to a separate file. fiatjaf 2023-11-11 21:08:39 -03:00
  • 21e0c559f7 simplify event rejection code. fiatjaf 2023-11-11 18:00:04 -03:00
  • 78dd138ca8 fix content-type for nip-11. fiatjaf 2023-11-09 21:39:28 -03:00
  • 6c1a030ad2 get rid of useless error for closing connection on ping. fiatjaf 2023-11-07 22:55:24 -03:00
  • 270096debb meta things and get rid of old relayer tests that don\'t work here. fiatjaf 2023-11-07 22:31:13 -03:00
  • 487b84cf2d fix previous commit plugins. fiatjaf 2023-11-07 16:35:27 -03:00
  • b277dae743 fix RejectFilters application, support overwriting filters and add some filter plugin helpers. fiatjaf 2023-11-07 16:08:56 -03:00
  • 1e51cdbc07 use ErrDupEvent from eventstore instead of our own. fiatjaf 2023-11-07 14:36:13 -03:00
  • a15cd4e545 fix replaceable handlers to not delete things all the time. fiatjaf 2023-11-07 14:14:53 -03:00
  • e6078b1a68 a readme with a sample. fiatjaf 2023-11-06 17:45:27 -03:00
  • 0ad33f78f1 PreventTimestampsInThePast() and PreventTimestampsInTheFuture() helpers. fiatjaf 2023-11-04 18:21:26 -03:00
  • c0848182c4 OverwriteResponseEvent for optionally modifying events before sending them to client. fiatjaf 2023-11-04 17:35:47 -03:00
  • 80586c4573 update go-nostr to fix the OK envelope bug. fiatjaf 2023-11-04 17:31:39 -03:00
  • d19b8f8895 support icon url. fiatjaf 2023-11-02 21:24:19 -03:00
  • 85ec58cf8e RestrictToSpecifiedKinds() filter. fiatjaf 2023-11-02 20:31:32 -03:00
  • 6acf1b4366 update eventstore and badger/lmdb examples. fiatjaf 2023-11-02 20:16:17 -03:00
  • bf2c9e4640 use eventstore release v0.0.1 fiatjaf 2023-10-31 16:48:05 -03:00
  • b6e7fabeb6 move storage plugins to eventstore module. fiatjaf 2023-10-31 16:38:32 -03:00
  • bbe186494e replace mutex-guarded maps with xsync/v2 maps. fiatjaf 2023-10-03 08:32:07 -03:00
  • 24d1e3aebd lmdbn/badgern: fix for tag array crashes on query planner. fiatjaf 2023-09-16 15:51:41 -03:00
  • 8968982b9a relayer, second attempt, now much better. fiatjaf 2023-08-10 14:32:11 -03:00
  • e4fe82dd7f keep up with the latest specs for since/until filter jiftechnify 2023-07-15 11:12:35 +09:00
  • fb3626feb9 fix typo Yasuhiro Matsumoto 2023-07-13 23:26:21 +09:00
  • 0d92cb63d1 be smarter about errors from SaveEvent() fiatjaf 2023-06-26 20:47:33 -03:00
  • 0a5624737d pass AUTH information to functions via context. fiatjaf 2023-06-26 20:05:06 -03:00
  • dc594ee32b migrate to fasthttp/websocket. fiatjaf 2023-06-23 07:10:03 -03:00
  • ebfff13b18 use envelopes everywhere. fiatjaf 2023-06-16 17:38:32 -03:00
  • ee84bf513f feat(AddEvent): add pointer when adding event (#68) Isaque Veras 2023-06-12 08:19:07 -03:00
  • 0efec9b905 Merge pull request #67 from mattn/fix-elasticsearch-count fiatjaf_ 2023-06-05 11:50:16 -03:00
  • 55f0f5a225 feat(postgres): configurable limits bndw 2023-06-04 17:00:43 -07:00
  • 070bf34438 remove unused code Yasuhiro Matsumoto 2023-06-05 23:46:25 +09:00
  • 3176fbde62 implement CountEvents Yasuhiro Matsumoto 2023-06-05 23:43:29 +09:00
  • 7023220941 fix docker-compose.yml Yasuhiro Matsumoto 2023-06-05 23:42:53 +09:00
  • 0b7a1669b8 chore(listener): removing redundancy (#64) Isaque Veras 2023-06-03 16:28:02 -03:00
  • 9617bd80ce fix: link to basic example Isaque Veras 2023-05-29 14:19:38 -03:00
  • 03ecbb9e6c feat(postgres): configurable query limit bndw 2023-05-23 20:41:48 -07:00
  • 47b8ee106f move example relay implementations to examples/ folder. fiatjaf 2023-05-18 09:48:56 -03:00
  • b2bf358789 update to go-nostr 0.18.3 fiatjaf 2023-05-18 09:47:04 -03:00
  • a7dbf7c491 refactor(postgres): Unit test SaveEvent bndw 2023-05-03 17:18:47 -07:00
  • f328910ab6 COUNT should not be subscribable Yasuhiro Matsumoto 2023-05-18 09:50:06 +09:00
  • 639c210661 support NIP-45 (#58) mattn 2023-05-17 19:54:56 +09:00
  • c4a678da1e fix(rss-bridge): do not use OnInitialized Yasuhiro Matsumoto 2023-05-08 23:58:43 +09:00
  • 2771d9b8ba fix(all): use v2 module Yasuhiro Matsumoto 2023-05-08 23:55:48 +09:00
  • 523b11d068 fix(rss): fixing event creation date type Isaque Veras 2023-05-06 10:43:19 -03:00
  • 54001282d9 fix: async save event bndw 2023-05-03 09:40:25 -07:00
  • ae641fd24d refactor(postgres): make SQL generation testable bndw 2023-05-02 07:42:27 -07:00
  • e84f5df1f0 make tests pass on base package. fiatjaf 2023-05-01 20:38:11 -03:00
  • a4512da371 reimplement server.Start() fiatjaf 2023-05-01 19:56:37 -03:00
  • 4e15120111 migrate all built-in storage backends. fiatjaf 2023-05-01 19:40:16 -03:00
  • e3d4655dba v2 with breaking changes and a simpler API. fiatjaf 2023-05-01 19:21:09 -03:00
  • a82e5edb0d Adds NIP-33 support for replaceable events. Steve Perkins 2023-03-31 10:03:35 -04:00
  • 7ea3cd5431 unecessary check Liran Cohen 2023-03-09 21:54:20 -05:00
  • ee301e82d9 like over instr Liran Cohen 2023-03-09 20:04:36 -05:00
  • b50dad2700 fix link mattn 2023-02-27 00:55:18 +09:00
  • 0e7c7f8abb add sqlite3 storage (#40) mattn 2023-02-27 02:57:47 +09:00
  • 4fc77c2604 build and release search example relay. fiatjaf 2023-02-15 20:46:27 -03:00
  • eb0c6539b6 update go-nostr dependency and gitignore search binary. fiatjaf 2023-02-15 20:27:51 -03:00
  • 50ad9de70b Merge pull request #37 from stereosteve/elasticsearch fiatjaf 2023-02-15 18:34:14 -03:00
  • a7a0bb6682 Use dsl builder for es query Steve Perkins 2023-02-15 16:28:39 -05:00
  • 0e18a49861 wip docker-compose setup Steve Perkins 2023-02-13 20:44:06 -05:00
  • 05600231b4 support search req a-la nip-50 Steve Perkins 2023-02-10 14:58:01 -05:00
  • 9aeb352320 advertise nip11 on nip11 handler Gustavo Chain 2023-02-10 18:02:45 +01:00
  • 304831f749 move AfterSave method from relay to storage Gustavo Chain 2023-02-09 01:41:44 +01:00
  • c7d584da54 remove duplicated nip09 handling Gustavo Chain 2023-02-09 01:30:36 +01:00
  • 34a21cb374 Use bulk indexer for writes. Special case get by ID. Steve Perkins 2023-02-07 10:46:27 -05:00
  • d306c03369 basic elasticsearch storage example Steve Perkins 2023-02-06 13:30:29 -05:00
  • 905a68cd91 update dependencies. fiatjaf 2023-01-26 20:03:50 -03:00
  • d7750ad15f added comment Dylan Cant 2023-01-19 11:02:39 -05:00
  • 82e4174073 added filter handling to query.go and sort "created_by" descending Dylan Cant 2023-01-19 10:54:11 -05:00
  • 0442b02394 fix postgres delete event query Liran Cohen 2023-01-18 21:23:34 +00:00
  • e270b56314 Merge pull request #26 from barkyq/master fiatjaf 2023-01-17 08:08:46 -03:00
  • 23965269a1 Merge remote-tracking branch 'origin/master' Dylan Cant 2023-01-16 21:32:28 -05:00
  • cab0654516 small fixes to NIP-42 parts of handlers.go Dylan Cant 2023-01-16 21:29:35 -05:00
  • 38d0f481c1 Added an "OK" signal when authenticated (or not) Dylan Cant 2023-01-16 01:24:35 -05:00
  • c05896a2e3 fixed typos added docstring Dylan Cant 2023-01-15 23:33:53 -05:00
  • cf3f94f4de Added an "OK" signal when authenticated (or not) Dylan Cant 2023-01-16 01:24:35 -05:00
  • c573c465f0 fixed typos added docstring Dylan Cant 2023-01-15 23:33:53 -05:00
  • fe91197d45 implement nip-42 AUTH and restrict DMs to authed users. fiatjaf 2023-01-15 22:38:24 -03:00
  • e70a5601c7 update go-nostr and fix rss-bridge. fiatjaf 2023-01-02 14:31:28 -03:00
  • 9ba958e9a0 set SetMaxOpenConns, close rows when QueryEvents finishes 0x0ff 2022-12-30 17:18:23 +01:00
  • 8b3ff7ac26 fix: remove listeners when client disconnects 0x0ff 2022-12-29 15:02:59 +01:00
  • 9ba4326085 fix: pass unix timestamp to DB.Exec instead of Time 0x0ff 2022-12-29 15:10:14 +01:00
  • af890590f3 fix: QueryEvents should skip ids that are not a valid 32 byte hex 0x0ff 2022-12-28 11:42:16 +01:00
  • f2ab8020a8 handle event responses as per NIP-20 0x0ff 2022-12-23 15:55:52 +01:00
  • 05e8f03d43 move timestamp variable under condition Saul Freeberty 2022-12-26 20:51:31 +00:00
  • 8fd148bbb5 remove expired invoice, and fix display unexpired invoice Saul Freeberty 2022-12-26 20:41:43 +00:00
  • bacf19b88d remove empty space Saul Freeberty 2022-12-25 23:14:34 +00:00
  • 3c953e4ae8 fix expensive relay invoice handler Saul Freeberty 2022-12-25 23:09:48 +00:00
  • 627724f702 start: introduce Server type and Shutdown (breaking change) alex 2022-12-24 22:21:26 +01:00
  • 932a9b62a7 start: make http server's listening host/port compatible with IPv6 (#14) alex 2022-12-24 22:53:05 +01:00