Commit Graph

85 Commits

Author SHA1 Message Date
b95b349515 Create a policy for filtering messages by size, excluding contact lists. 2024-01-07 19:59:15 -08:00
4d7d001288 Add debug logging for rate-limit-policy. 2024-01-07 18:49:30 -08:00
Brian Lee
e6624f9105 Notes for testing, bump lock for rate limit exclusions. 2023-10-11 13:41:21 -07:00
Brian Lee
b315173cde Rate limit exclusion for nostr.wine. 2023-10-11 10:26:21 -07:00
Brian Lee
b7a422eebc Initialize a production branch 2023-10-11 09:42:18 -07:00
Brian Lee
1693b02ffd Merge a simple event kind policy. 2023-09-20 11:28:29 -07:00
Alex Gleason
433459d808
README: performance 2023-04-18 19:31:02 -04:00
Alex Gleason
7b188170eb
README: move Node.js section down 2023-04-18 19:23:35 -04:00
Alex Gleason
d1e726b612
README: add sections on upgrading, npm, and FAQ 2023-04-18 19:21:11 -04:00
Alex Gleason
bc81d25f18
README: add policies table 2023-04-18 18:49:01 -04:00
Alex Gleason
6f77ec418b
powPolicy: add example 2023-04-18 18:30:42 -04:00
Alex Gleason
33ef127ca7
pin esm.sh version with ?pin query, restore deno.lock 2023-04-17 17:05:23 -04:00
Alex Gleason
0c646c8dcc Merge branch 'npm' into 'develop'
Prepare for npm

See merge request soapbox-pub/strfry-policies!9
2023-04-17 01:32:22 +00:00
Alex Gleason
8a75bc4441
npm package typofix 2023-04-16 20:30:58 -05:00
Alex Gleason
2b6d6b9520
Disable lockfile for now 2023-04-16 20:28:50 -05:00
Alex Gleason
7362216da8
Setup for npm 2023-04-16 20:26:32 -05:00
Alex Gleason
980b410957
Add NPM build script 2023-04-16 11:51:35 -05:00
Alex Gleason
8428aab570
Export POW interface 2023-04-11 20:20:06 -05:00
Alex Gleason
fc690bd44c Merge branch 'upgrade-nostr-tools' into 'develop'
Upgrade nostr-tools, simplify powPolicy

See merge request soapbox-pub/strfry-policies!8
2023-04-11 22:21:50 +00:00
Alex Gleason
a37535d62e
Upgrade nostr-tools, simplify powPolicy 2023-04-11 16:42:08 -05:00
Alex Gleason
07088576eb
powPolicy: clarify difficulty option comment 2023-04-11 16:12:53 -05:00
Alex Gleason
2d880629cc Merge branch 'pow' into 'develop'
Add NIP-13 proof-of-work policy

See merge request soapbox-pub/strfry-policies!7
2023-04-11 21:06:55 +00:00
Alex Gleason
d652bf7a94
Add NIP-13 proof-of-work policy 2023-04-11 16:01:09 -05:00
Alex Gleason
3ab9364622 Merge branch 'openai' into 'develop'
Add OpenAI policy

See merge request soapbox-pub/strfry-policies!6
2023-03-30 23:18:21 +00:00
Alex Gleason
5ffa440349
Add OpenAI policy 2023-03-30 17:57:58 -05:00
Alex Gleason
a327ec132f
README: move available policies to the top 2023-03-30 14:42:13 -05:00
Alex Gleason
608bd6069c
Update README with docs link 2023-03-30 14:41:19 -05:00
Alex Gleason
6f59f9ce84
Make policies deno_doc friendly 2023-03-30 14:22:51 -05:00
Alex Gleason
37213aec65
antiDuplicationPolicy refactor opts 2023-03-29 23:53:07 -05:00
Alex Gleason
b32bfef342
More refactoring 2023-03-29 23:51:15 -05:00
Alex Gleason
48501f3c5f
Improve stupid code 2023-03-29 23:34:34 -05:00
Alex Gleason
566df31b4a Update README.md 2023-03-30 04:10:01 +00:00
Alex Gleason
efa60d9b48 Update README.md 2023-03-30 04:07:58 +00:00
Alex Gleason
225dec7627
io: print line before rethrowing error 2023-03-28 21:57:59 -05:00
Alex Gleason
c087e8fddd
filter: fix streaming of large events 2023-03-28 21:57:17 -05:00
Alex Gleason
ba482e5dfb Merge branch 'nip20' into 'develop'
Return proper NIP-20 responses

See merge request soapbox-pub/strfry-policies!5
2023-03-28 23:57:30 +00:00
Alex Gleason
dc721bcaa8
Return proper NIP-20 responses 2023-03-28 18:56:03 -05:00
Alex Gleason
382f52604d Merge branch 'filter-policy' into 'develop'
Add filterPolicy to block events that don't match the filter

See merge request soapbox-pub/strfry-policies!4
2023-03-28 23:41:54 +00:00
Alex Gleason
f309142acf
Add filterPolicy to block events that don't match the filter 2023-03-28 17:27:30 -05:00
Alex Gleason
734c8ffc0d
README: improve phrasing of intro 2023-03-28 16:28:22 -05:00
Alex Gleason
84b5d56cb6
filter: add a break statement 2023-03-28 16:26:33 -05:00
Alex Gleason
ae7d12ed30 Merge branch 'filter' into 'develop'
Add filter task to filter jsonl events by policy

See merge request soapbox-pub/strfry-policies!2
2023-03-28 21:20:40 +00:00
Alex Gleason
1a83ce44ac
Rearrange entrypoint.example.ts in a more sensible way 2023-03-28 16:16:47 -05:00
Alex Gleason
8dc9f73bfd
Add filter task to filter jsonl events by policy 2023-03-28 16:14:19 -05:00
Alex Gleason
420a086f1d
Make tests use in-memory db 2023-03-28 12:30:53 -05:00
Alex Gleason
2aa05dc194
Add regexPolicy, update other tests to use assertEquals 2023-03-26 17:02:59 -05:00
Alex Gleason
d38f5e06cf
Add keyword policy 2023-03-26 16:40:35 -05:00
Alex Gleason
31fd761278
Add pipeline test 2023-03-26 16:29:35 -05:00
Alex Gleason
c1852ddd56
Add test for rateLimitPolicy 2023-03-26 16:23:03 -05:00
Alex Gleason
a809da4249
Add test for antiDuplicationPolicy 2023-03-26 16:19:33 -05:00