Skip to content

Command line app for backing up contact lists #nostr

Notifications You must be signed in to change notification settings

jeremyd/nostr-contacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nostr-contacts

A command line tool for making a backup of your #nostr contact list.

(Also known as follows).

See nostr protocol.

Features

  • Support Linux / Mac / Windows
  • Backup contacts as a flat .txt file
  • Restore contacts from a backup

Unpack and run.

help:

nostr-contacts --help

example backing up contacts:

nostr-contacts backup --relay wss://nostr21.com --relay wss://nostr-pub.wellorder.net --pubkey npub1xxx

example restoring contacts:

export NOSTR_PRIVATE=<your private key>
# this will prompt for confirmation before broadcasting
nostr-contacts restore --file <path to backup.txt> --relay wss://nostr-pub.wellorder.net

Contacts Backup .txt file format

Contacts will be saved in contacts-(pubkey)-(unix timestamp).txt in the current directory.

This file contains a list of the pubkeys of your follows (one per line).

About

Command line app for backing up contact lists #nostr

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages