Avatar
Cody
8125b911ed0e94dbe3008a0be48cfe5cd0c0b05923cfff917ae7e87da8400883
Building 👨‍💻 https://jumble.social/ & nostr-relay-tray

Most clients support it, you just need to add the port at the end of the address. Like this: ws://your-ip-address:4869

Sound great! Initially, this project was just intended to show how to use https://github.com/CodyTseng/nostr-relay to develop your own relay with just a few lines of code, so it was quite simple, lol. But now I feel like many people would need a relay that they can simply double-click to run on their computers, so I'll continue to develop more features for it.

This is an important feature, and I will add it as soon as possible.

My other relay implementation supports setting whitelist. https://github.com/CodyTseng/nostr-relay-nestjs

If you expose port 4869 of your device to the public network, it can be accessed and used by others as well.

Is wss://nostr-relay.app the fastest #nostr #relay using #PostgreSQL? 😼

You can prevent some bots by adding BLACKLIST=pubkey1,pubkey2 in the .env file. This feature was recently added and hasn't been documented yet. WHITELIST is also supported if needed.

I'm still considering the metrics monitoring feature. Prometheus + Grafana would be powerful, but it would also increase the complexity of deploying a relay. I believe ease of deployment is important for decentralization. So for now, only some simple monitoring charts are provided.

Feel free to raise an issue with me if you have any questions 🤗

You need to execute the migrations script before running.

npm run migration:run

The documentation still needs a lot of improvements.

I added some simple performance metric charts for wss://nostr-relay.app #nostr #relay

The REQ metric for this week on wss://nostr-relay.app 🚀

P50 5 ms

P75 22 ms

P90 60 ms

P95 111 ms

P99 394 ms

#nostr #relay #postgresql

Nostr relay tray can run on Mac. https://github.com/CodyTseng/nostr-relay-tray/releases/download/v1.2.1/nostr-relay-tray-darwin-x64-1.2.1.zip Rosetta will allow it to run smoothly. Because I'm not an Apple developer, I'm unable to package an Apple silicon version.

If you want to run an Apple silicon version, you'll need to compile it from the source code. The performance will be better.

```

# Clone this repository

git clone https://github.com/CodyTseng/nostr-relay-tray.git

# Go into the repository

cd nostr-relay-tray

# Install dependencies

npm install

# Build the app

npm run make

```

The executable file will be in the `out` folder.

Made a small optimization last night, and now the query speed has improved significantly.

#nostr #relay #postgesql

https://nostr-relay.app/metrics

This depends on your network environment and firewall configuration. In general, you can use it directly.

If you don't want to use the desktop app, you can also try this: https://github.com/CodyTseng/nostr-relay-sqlite

The nostr-relay-tray on my computer has cached over 100k events for #noStrudel. Here are the processing time metrics for REQ requests:

P50: 3ms

P75: 14ms

P90: 29ms

P95: 38ms

P99: 98ms

I hope to have more clients allowing users to set up their own local relays for caching. This can speed up loading, reduce bandwidth, and own events

#nostr #relay #grownostr

I'm displaying some metrics of my #relay on https://nostr-relay.app/metrics

There are really few users 😂 I hope to have more #ostriches join in to help me test the reliability and performance of this implementation. (wss://nostr-relay.app FREE!) #nostr #devstr