{"id":19391128,"url":"https://github.com/asone/nostr-banhammer","last_synced_at":"2026-06-19T23:32:07.129Z","repository":{"id":205870190,"uuid":"715289718","full_name":"Asone/nostr-banhammer","owner":"Asone","description":"A validation grpc server for nostr-rs-relay based on file configuration","archived":false,"fork":false,"pushed_at":"2023-11-06T23:29:22.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T21:42:15.243Z","etag":null,"topics":["authorization-server","nostr","nostr-relay","nostr-rs-relay-grpc","nostr-tools","relay"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06T21:01:25.000Z","updated_at":"2023-11-06T21:30:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc883ed6-1901-4659-b574-d9f436467ec5","html_url":"https://github.com/Asone/nostr-banhammer","commit_stats":null,"previous_names":["asone/nostr-banhammer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Asone/nostr-banhammer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asone%2Fnostr-banhammer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asone%2Fnostr-banhammer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asone%2Fnostr-banhammer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asone%2Fnostr-banhammer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asone","download_url":"https://codeload.github.com/Asone/nostr-banhammer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asone%2Fnostr-banhammer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34552295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authorization-server","nostr","nostr-relay","nostr-rs-relay-grpc","nostr-tools","relay"],"created_at":"2024-11-10T10:25:01.457Z","updated_at":"2026-06-19T23:32:07.106Z","avatar_url":"https://github.com/Asone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Relay Banhammer\n\nRelay Banhammer is a validation server for `nostr-rs-relay`. \nFor any message sent to your `nostr-rs-relay`, the relay will poll the validation server which will match against a ban list to accept or reject the event. \n\nThe banhammer currently supports ban on : \n- sender ip\n- pubkey\n- content\n- tags\n\n\n\n## Configure\n\nThe ban list must be declared in a `yaml` file. \n\n| Field | Type | Description |\n|-------|------|-------------|\n| content | string | The reference value the validator will use, an npub if user ban. |\n| regex | boolean | Interpret content as a regex. |\n| date  | string | The creation date of the ban.  |\n| ban_type | One of `IP`,`CONTENT`,`TAG`,`USER` | The type of ban to be applied. |\n\ne.g:\n\n```yaml\n  - ban_type: CONTENT\n  content: hello\n  regex: false\n  date: \"2023-01-01T00:01:23\"\n  - ban_type: TAG\n  content: world\n  regex: false\n  date: \"2023-01-01T00:01:23\"\n  # use npub for user ban\n  - ban_type: USER\n  content: npub1gn5ha3qaxqgtvxhfdwsyt38s2sdu8jxmad92c0zuhfrthmnq9s5sxhfe6u\n  regex: false\n  date: \"2023-01-01T00:01:23\"\n  - ban_type: IP\n  content: 192.168.0.255\n  regex: false\n  date: \"2023-01-01T00:01:23\"\n```\n\n\n\n## CLI \n\nThe service comes with an additional CLI program to help in basic management of your banlist.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasone%2Fnostr-banhammer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasone%2Fnostr-banhammer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasone%2Fnostr-banhammer/lists"}