Skip to content

Dolu89/nostr-proxy

Repository files navigation

Nostr Proxy

Push and get events to your Proxy, get results from multiple Nostr relays

Installation

In the project directory, run:

pnpm install

Edit your env variables. You can use a .env file by copying the file .env.example in the root directory, or you can set your variables into your hosting provider UI.
For APP_KEY, you can use the following command to generate one node ace generate:key

PORT=3333
HOST=0.0.0.0
NODE_ENV=development
APP_KEY=unique-key
DRIVE_DISK=local
SESSION_DRIVER=cookie
CACHE_VIEWS=false
PROXY_URL=wss:https://your-proxy.com
RELAYS=wss:https://relay1.com,wss:https://relay2.com,wss:https://relay.com

Launch

Development

npm run dev to start the app in dev mode.
Open http:https://localhost:3333 to view it in the browser.
Use ws:https://localhost:3333 into your Nostr client.

Production

npm run build
cd build
pnpm install --prod
node server.js

Running tests

TODO

Known issues

  • None?

Learn More

License

This project is MIT licensed.

About

Nostr proxy: save you WS connections

Topics

Resources

License

Stars

Watchers

Forks