Skip to content

rubenvanstaden/nosh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash scripts to use nostr the Unix Way.

Overview

Relay and user subscription information is kept in a local config file:

cat ~/.config/nostr/cfg.json

Setup

  1. First install the nostr [cli](rubenvanstaden/nostr: Notes and Other Zettels Transmitted by Relays) written in Go.
{
  "relays": [
    "ws://localhost:8080"
  ],
}
  1. Install the script locally and set environment variables.
# Install path
export SCRIPT="$HOME/.local/bin"

# Relay to connect too.
export RELAY=ws://0.0.0.0:8080

make install

Usage

  1. First you need to add a relay to connect too.
nrelay --add 'ws://localhost:8080'
  1. First you have to follow a user via their public key (this includes yourself).
nfollow <npub>
  1. Request events from relay and pipe the JSON response to a more clean output.
nreq | nshow
  1. Publish text event to relay
nevent 'Hello friend'

About

Nostr done the Unix Way

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published