The Nostr Gateway is an effort to pull Nostr data from relays around the nostrsphere into HTML pages for the consumption of the unnostrinitiated. It is built using Node.js and Docker, and is designed to be easy to deploy and run on any machine.
The Nostr Gateway provides a simple web interface for viewing Nostr data from relays around the nostrsphere. To use the interface, simply visit https://nostrexplorer.com in your web browser.
yarn --ignore-engines
yarn run dev
It can be deployed to these places that can run Next.js apps natively, like https://vercel.com/. When deploying on Vercel it's necessary to add the environment variables LD_LIBRARY_PATH=/vercel/path0/node_modules/canvas/build/Release:/var/task/node_modules/canvas/build/Release
manually because of the canvas
package.
- Clone the repository to your local machine using the git command line tool or a Git desktop client:
- Navigate to the repository's root directory:
git clone https://github.com/fiatjaf/nostr-gateway.git cd nostr-gateway
- Edit relays in utils/nostr.js (optional)
- Build the Docker image for the Nostr Gateway:
sudo docker build -t nostr-gateway .
- Run the Docker container for the Nostr Gateway:
sudo docker run -p 3000:3000 -d nostr-gateway
- Verify that the Nostr Gateway is running by visiting http://localhost:3000 in your web browser.
Contributions to the Nostr Gateway are welcome!
If you find a bug, have a feature request, or want to contribute code, please open an issue or pull request on the GitHub repository.