Skip to content

bordalix/pinlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinlink

Shell script to fetch new posts from pinboard.in and publish to Nostr

It gets posts from https://pinboard.in marked as public with less than 24 hours, configurable in fetch.sh

The list of relays is configurable in publish.sh

Requirements

  • nak, the nostr army knife
  • jq, a command-line JSON processor

How to use it

Clone this repo:

$ git clone https://github.com/bordalix/pinlink
$ cd pinlink

Add your credentials to file .env.local:

# get it from pinboard.in > settings > password
$ echo "authtoken=username:1234567890ABCDEF" > .env.local
# your nostr private key in hexadecimal format
$ echo "seckey=<64 hex chars>" >> .env.local

There are 4 executable scripts:

  • fetch.sh fetches new posts from pinboard.in and saves to posts.json
  • create.sh from posts.json creates event.txt with full text for the event to be published
  • publish.sh gets event content from event.txt, signs and publishes it to list of relays
  • run.sh run all 3 previous scripts in sequence

About

Fetch from Pinboard and publish to Nostr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages