The Immortal is a Nostr relay implementation in Rust.
Immortal is aimed and designed to be scalable, high-performance, and configurable. It's a good choice for paid relays or big community relays, and not a good choice for a personal relay.
- Rust 1.70 or later
- Cargo (comes with Rust)
# Clone the repository
git clone https://github.com/dezh-tech/immortal.git
cd immortal
# Build the project
cargo build --release
# Run the relay
cargo run --releaseThe relay can be configured using a config.toml file. See the example configuration in the repository.
Immortal includes optional Telegram bot integration for monitoring and notifications. To enable the bot:
- Create a new bot with @BotFather on Telegram
- Get your bot token
- Add the token to your
config.toml:
telegram_bot_token = "YOUR_BOT_TOKEN_HERE"The bot supports the following commands:
/start- Welcome message/status- Get relay status/help- Show available commands
If no token is provided, the relay will run without the Telegram bot.
Updates, changes, or community discussions can be followed on the GitHub issue/discussion or the Dezh Technologies Nostr profile.
All kinds of contributions are welcome! Read the Contribution guides before any code contribution.
Donations and financial support for the development process are possible using Bitcoin and Lightning:
on-chain:
bc1qfw30k9ztahppatweycnll05rzmrn6u07slehmc
lightning:
The Immortal software is published under the MIT License, and contributing to and using this code means you agree with the license.