fiatjaf
581c4ece28
updating go-nostr to fix sonic parser bug.
2025-03-14 20:10:52 -03:00
fiatjaf
596bca93c3
go-nostr MessageParser string transition.
2025-03-12 00:53:19 -03:00
fiatjaf
44ed6f519d
use NewMessageParser() that allows sonic to be opted in with tags.
2025-03-11 17:32:04 -03:00
fiatjaf
db832d4255
use sonic json parser and other minor performance improvements.
2025-03-07 21:47:34 -03:00
fiatjaf
625bde38c5
update go-nostr so CountEnvelope only has one filter, which simplies COUNT handling a lot, specially with HLL.
2025-03-07 10:11:58 -03:00
ZigBalthazar
6e224b9437
nip-86: stats, grant/revoke admin, listallowedevents and listdisallowedkinds
2025-02-19 12:50:21 -03:00
fiatjaf
433cceea86
include the ReplaceEvent setup on all examples.
2025-01-13 16:47:21 -03:00
fiatjaf
d27f582a0b
nip-40 expiration manager.
2025-01-13 08:06:13 -03:00
fiatjaf
abbe61d128
use ReplaceEvent when available.
2024-12-08 00:50:29 -03:00
fiatjaf
6275f52134
support hyperloglog handlers on COUNT.
2024-12-07 00:26:22 -03:00
Anthony Accioly
dc34dd7e90
build(deps): bump rs/cors version to v1.11.1
2024-11-04 14:02:18 +00:00
fiatjaf
a931a83370
fix negentropy by making special provisions for bypassing query limits.
2024-11-03 16:57:18 -03:00
fiatjaf
91e7737ec1
basic modular blossom support.
2024-10-27 17:20:10 -03:00
fiatjaf
1dc12e5d2e
support negentropy.
2024-10-26 23:41:39 -03:00
fiatjaf
f3b18619c7
update eventstore just so badger and ristretto are the same everywhere, who knows what the package manager will do.
2024-10-23 23:17:50 -03:00
fiatjaf
cc891d06ed
update go-nostr and make checkid faster.
2024-09-24 19:04:18 -03:00
fiatjaf
cf98cfc6d8
update xsync.
2024-08-24 07:17:07 -03:00
fiatjaf
ef57f54a28
fix listeners convoluted magic and add tests for it.
2024-08-01 18:16:08 -03:00
fiatjaf
a103353254
fix development mess.
2024-08-01 12:41:27 -03:00
fiatjaf
a63dc829df
routing.
2024-07-30 12:53:27 -03:00
fiatjaf
5c7121a3f6
update go-nostr to fix some bugs.
2024-07-12 13:47:25 -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
f8afb51ee9
ratelimits.
2024-05-12 20:37:00 -03:00
fiatjaf
35053f6215
when LimitZero don't do any database queries.
2024-03-29 08:12:39 -03:00
fiatjaf
eb83307005
update dependencies.
2024-01-18 18:20:39 -03:00
fiatjaf
f450c26d84
update go-nostr and xsync.
2024-01-10 16:27:50 -03:00
fiatjaf
08a527f9d8
upgrade eventstore dependency.
2023-12-22 19:50:32 -03:00
fiatjaf
7e06629953
superficial tweaks to auth handling.
2023-12-09 14:41:54 -03:00
fiatjaf
d3a0c545d2
GetIP() and GetOpenSubscriptions() utils.
2023-12-09 08:19:37 -03:00
fiatjaf
888ac8c1c0
use updated released go-nostr.
2023-11-29 12:23:02 -03:00
fiatjaf
8fd6436ac8
rework nip11 support to be more transparent.
2023-11-18 10:35:08 -03:00
fiatjaf
80586c4573
update go-nostr to fix the OK envelope bug.
2023-11-04 17:31:39 -03:00
fiatjaf
6acf1b4366
update eventstore and badger/lmdb examples.
2023-11-02 20:16:17 -03:00
fiatjaf
bf2c9e4640
use eventstore release v0.0.1
2023-10-31 16:48:05 -03:00
fiatjaf
b6e7fabeb6
move storage plugins to eventstore module.
2023-10-31 16:38:32 -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
fiatjaf
dc594ee32b
migrate to fasthttp/websocket.
2023-06-23 07:10:59 -03:00
fiatjaf
ebfff13b18
use envelopes everywhere.
2023-06-16 17:48:34 -03:00
fiatjaf
b2bf358789
update to go-nostr 0.18.3
2023-05-18 09:47:04 -03:00
Yasuhiro Matsumoto
2771d9b8ba
fix(all): use v2 module
2023-05-08 12:49:11 -03:00
bndw
ae641fd24d
refactor(postgres): make SQL generation testable
...
Decouples the postgresql sql generation from the query execution.
This allows the logic for building sql to be unit tested without
access to a database.
This work was motivated when a client was not receiving events as
expected. In debugging I found that if a tag's value was an empty array,
then no query would be executed - and to my surprised no error is
raised either. I wanted to get a better sense of the current constraints on
when queries are and are not executed, but I had a hard time keeping the
code in my head. This led me to extracting the sql generation into its
own function and writing the unit tests that document its current
behavior. This refactor makes no changes to the current logic. I have added
some REVIEW comments in the test cases where I thought some error handling
could be introduced but I wanted to first see if you were receptive to this
refactor before proposing any functional changes.
2023-05-02 12:41:51 -03:00
fiatjaf
4e15120111
migrate all built-in storage backends.
2023-05-01 19:41:17 -03:00
fiatjaf
e3d4655dba
v2 with breaking changes and a simpler API.
2023-05-01 19:21:09 -03:00
mattn
0e7c7f8abb
add sqlite3 storage ( #40 )
...
* add sqlite3 storage
* filter by content
* remove needless files
* update go.mod
* do not unquote Search
2023-02-26 14:57:47 -03:00
fiatjaf
eb0c6539b6
update go-nostr dependency and gitignore search binary.
2023-02-15 20:27:51 -03:00
Steve Perkins
a7a0bb6682
Use dsl builder for es query
2023-02-15 16:29:54 -05:00
Steve Perkins
0e18a49861
wip docker-compose setup
2023-02-13 20:44:06 -05:00
Steve Perkins
05600231b4
support search req a-la nip-50
2023-02-10 14:58:01 -05:00
Steve Perkins
d306c03369
basic elasticsearch storage example
2023-02-06 13:30:51 -05:00