viktorvsk / saltivka Goto Github PK
View Code? Open in Web Editor NEWπΊπ¦ Friendly Nostr Relay in Ruby with UI
Home Page: https://saltivka.org
License: MIT License
πΊπ¦ Friendly Nostr Relay in Ruby with UI
Home Page: https://saltivka.org
License: MIT License
It seems that rate limiting won't work on DigitalOcean AppPlatform currently due to:
Cloud Flare seems to be able to handle this (https://developers.cloudflare.com/support/network/understanding-and-configuring-cloudflares-ipv6-support/#h_877db671-916a-4085-9676-8eb27eaa2a91) but it was not tested/adjusted to WAF deployments
Currently single Redis backend is used for all operations. However, workload may be split among different instances (each potentially having different settings and topology):
Currently if RELAY_CONFIG.max_limit
is set to 100
and REQ
command is sent by a client with 5
different filters (i.e. ["REQ", "subscription", {...}, {...}, {...}, {...}, {...}]
the response in theory will contain 500 records maximum (100 per filter). Also, in case filters have #authors
filter, NIP-26 delegation will trigger another UNION
to each subquery.
We could limit resulting set, but it could be not clear for clients, so the best and the most obvious solution should be defined and enforced.
According to NIP-01 e
tags must have valid Event#sha256
in the second value and this value should be searchable by predicate and p
tags must have valid Author#pubkey
as the second value.
Currently it works in the same way NIP-12 is supported β all single letter tags are added as SearchableTag
. However, it means those values are stored as is, having duplicates and occupying a lot of space. SearchableTags on e
and p
tags require the most memory among all indexes currently.
It would be great to store references to other tables instead.
It is pretty straightforward for p
tag since we can just create an Author
record before saving an event if it does not exist and leave this record in database even if Event is not valid (given that pubkey is valid).
However for e
tag it's not as straightforward. Because it may happen e
tag refers to the Event we don't know. And currently events
table expects valid events and no drafts.
Market | Status | Notes |
---|---|---|
Caprover | π§ | https://caprover.com/docs/one-click-apps.html |
DigitalOcean | π§ | https://github.com/digitalocean/marketplace-partners |
Umbrel | π§ | https://github.com/getumbrel/umbrel-apps/blob/master/README.md |
REQ
command find if any of recent/popular cached events matchLIMIT
in this case (can we avoid database request at all?)Implement some handy features for relay operators who may want to sell names on exclusive domains:
free
, `pay-with-day', 'subscribers-only'Provider | Status | Notes |
---|---|---|
https://minatopay.com | Can't get active API key | |
https://www.opennode.com | β | Mostly happy path was tested |
https://zebedee.io | Documentation is not ready (https://docs.zebedee.io/docs/webhook-events/), can't get active API keys, doesn't provide hosted checkout page | |
https://nodeless.io | π§ | Planned |
https://lnbits.com | π§ | Planned |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.