{"id":17649114,"url":"https://github.com/bndw/nostr-relay-proxy","last_synced_at":"2025-05-07T07:29:51.508Z","repository":{"id":219529932,"uuid":"721429183","full_name":"bndw/nostr-relay-proxy","owner":"bndw","description":"A fan-in / fan-out nostr relay proxy","archived":false,"fork":false,"pushed_at":"2024-04-21T23:11:48.000Z","size":47,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T07:41:21.067Z","etag":null,"topics":["nostr"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bndw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T03:23:20.000Z","updated_at":"2024-11-04T18:42:13.000Z","dependencies_parsed_at":"2024-06-21T15:42:17.462Z","dependency_job_id":"888a5e38-2a2a-4bde-999f-b437229ed5cd","html_url":"https://github.com/bndw/nostr-relay-proxy","commit_stats":null,"previous_names":["bndw/nostr-relay-proxy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndw%2Fnostr-relay-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndw%2Fnostr-relay-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndw%2Fnostr-relay-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndw%2Fnostr-relay-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bndw","download_url":"https://codeload.github.com/bndw/nostr-relay-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252833282,"owners_count":21811149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nostr"],"created_at":"2024-10-23T11:24:08.537Z","updated_at":"2025-05-07T07:29:51.484Z","avatar_url":"https://github.com/bndw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nostr-relay-proxy\n\n\u003e ⚠️ WARNING: Experimental software. Use at your own risk.\n\nA fan-in / fan-out nostr relay proxy. Instead of connecting your\nnostr client to many relays, connect it to a single nostr relay proxy and enjoy:\n\n- **Efficient bandwidth usage**: events are deduplicated before being sent to the client.\n- **Increased performance**: offloading deduplication in addition to event caching optimizes query performance.\n- **Client IP obfuscation**: upstream relays only see the IP of the nostr relay proxy, not the client.\n\n## Features\n\n#### Authentication\n\nAccess to your nostr relay proxy may be restricted to a whitelist of allowed users.\nThere are two layers of authentication employed to restrict access:\n\n1. **Public key allowlist**: A list of `allowed_npubs` in the config file restricts reads and writes to whitelisted users.\n2. **[NIP-42](https://github.com/nostr-protocol/nips/blob/master/42.md)**: \nQueries are restricted to authenticated clients only.\n\n#### Local database\n\nEvents from upstream relays are stored locally on disk in a [LMDB](https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database).\nAs queries are received, the proxy will check its local database first and return\nmatching events if found. This read-through style cache dramatically speeds up query responses.\n\n## Quickstart\n\n1. Build the source code\n  ```\n  make build\n  ```\n\n2. Create a config file\n  ```\n  cp example.config.yaml config.yaml\n  ```\n\n3. Run the nostr-relay-proxy\n  ```\n  ./bin/nostr-relay-proxy -config ./path/to/config.yaml\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndw%2Fnostr-relay-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbndw%2Fnostr-relay-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndw%2Fnostr-relay-proxy/lists"}