Quick Nostr posting CLI
CLI application to quickly publish random identity kind 1 Nostr events with PoW. Uses multithreaded hashing and automatically publishes to hardcoded relays.
./application_name message pow_target
./noteslinger "Your Braindump" 24
- Clone this repository:
git clone https://github.com/f321x/noteslinger
- Install the Rust compiler (if not installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Compile the application
RUSTFLAGS="-C target-cpu=native" cargo build --release
Now the binary is available in ./target/release/noteslinger
To make the binary quickly available you can set a shell alias to the file:
echo "alias wired='~/path/to/wired-pow-poster/target/release/noteslinger'" >> ~/.bashrc && source ~/.bashrc
echo "alias wired='~/path/to/wired-pow-poster/target/release/noteslinger'" >> ~/.zshrc && source ~/.zshrc
The application can then be started just by typing wired "Hello Nostr!" pow[int]
in the shell.