mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-10-30 01:26:32 +00:00
64 lines
1.7 KiB
Markdown
64 lines
1.7 KiB
Markdown
# GRAIN 🌾
|
|
|
|
## Go Relay Archetecture for Implementing Nostr
|
|
|
|
GRAIN is an open-source Nostr relay implementation written in Go. This project aims to provide a robust and efficient Nostr relay that currently supports the NIP-01 of the nostr protocol.
|
|
|
|
## Features
|
|
|
|
- **NIP-01 Protocol Support**: GRAIN (nearly)fully supports NIP-01 for WebSocket communication.
|
|
- **Event Processing**: Handles all events by category and kind.
|
|
- **MongoDB 🍃**: Utilizes MongoDB to store and manage events efficiently.
|
|
- **Scalability**: Built with Go, ensuring high performance and scalability.
|
|
- **Open Source**: Licensed under the MIT License, making it free to use and modify.
|
|
|
|
## Configuration
|
|
|
|
Grain will automatically create the configurations and relay metadata files necessary if they do not already exist when you first run the program.
|
|
|
|
They are created in the root directory of Grain. Feel free to change any coinfigurations you want in these files.
|
|
|
|
### TODO
|
|
|
|
- configurable event purging
|
|
- by category
|
|
- by kind
|
|
- by time since latest
|
|
- create whitelist/blacklist functionality
|
|
for:
|
|
- valid nip05 domain
|
|
- pubkey
|
|
- npub
|
|
- kind int
|
|
- kind 1 wordlist
|
|
|
|
### Development
|
|
|
|
To contribute to GRAIN, follow these steps:
|
|
|
|
1. Fork the repository.
|
|
2. Make your changes.
|
|
3. Commit your changes:
|
|
|
|
```sh
|
|
git commit -m "Description of changes"
|
|
```
|
|
|
|
4. Push to the repo:
|
|
|
|
```sh
|
|
git push
|
|
```
|
|
|
|
5. Create a Pull Request.
|
|
|
|
### License
|
|
|
|
This project is Open Source and licensed under the MIT License. See the [LICENSE](license) file for details.
|
|
|
|
### Acknowledgments
|
|
|
|
Special thanks to the Nostr community for their continuous support and contributions.
|
|
|
|
Feel free to reach out with any questions or issues you encounter while using GRAIN. Happy coding!
|