Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtonon/nostr-ruby-playground
A ruby playground to learn the Nostr protocol
https://github.com/dtonon/nostr-ruby-playground
nostr nostr-protocol ruby
Last synced: 14 days ago
JSON representation
A ruby playground to learn the Nostr protocol
- Host: GitHub
- URL: https://github.com/dtonon/nostr-ruby-playground
- Owner: dtonon
- License: gpl-3.0
- Created: 2022-11-11T13:17:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T20:56:27.000Z (almost 2 years ago)
- Last Synced: 2024-02-16T05:35:51.443Z (9 months ago)
- Topics: nostr, nostr-protocol, ruby
- Language: Ruby
- Homepage:
- Size: 1.98 MB
- Stars: 17
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nostr - nostr playground in Ruby - ruby-playground.svg?style=social) (Other links / Client reviews and/or comparisons)
README
# Nostr Ruby playground
A series of simple progressive Ruby scripts to learn how to interact with the [Nostr Protocol](https://github.com/nostr-protocol/nostr) following the [NIPs](https://github.com/nostr-protocol/nips).
## Basic learning
01. How to generate a key pair
02. Convert keys to/from npub/nsec [Damus](https://github.com/damus-io/damus) Bench32 format
03. Generate pub key from a private one and check it against a reference
04. Create an event and check it against a reference
05. Post an event to Nostr
06. Post a direct message to a Nostr user
## Interactive scripts
07. Let's chat with another user!
![](readme_assets/07-screenshot.png)
08. Be alerted for new content or private messages
![](readme_assets/08-screenshot.png)
The scripts contain a test key pair, feel free to update it to test.
To experimenting with events creation is suggested to use a local relay, you can find many implementations at [awensome-nostr](https://github.com/aljazceru/awesome-nostr).