Skip to content

ocknamo/n8n-nodes-nostrobots

Repository files navigation

日本語はこちら

n8n-nodes-Nostrobots

n8n node for nostr.

This is an n8n community node. It lets you use nostr in your n8n workflows.

Nostr is the simplest open protocol. that is able to create a censorship-resistant global "social" network once and for all.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

  • Nostr Write (Nostrobots)
    • Send kind1 note
    • Send event(advanced)
    • Raw Json Event(advanced)
  • Nostr Read
    • Fetch kind1 events
      • Query by eventId, public key, search word(NIP-50), hashtag, mention, and json filter.
  • Nostr Utils
    • Conversion from event to naddr, nevent.
    • Transform bech32, hex representation of keys to each other.

Credentials

  • Secret Key
    • You can use bech32 or lower case hex string.

Usage

Let's try the tutorial on creating an RSS feed bot..

Resources

Test in local

Please read Run your node locally.

# project root path
yarn build
yarn link

# move to n8n node directory. eg. ~/.n8n/nodes
yarn link n8n-nodes-nostrobots
n8n start

Unit test

yarn test

lint

yarn format
yarn lint

TODO

  • Trigger node by getting event from relay.

See also

License

MIT License