{"id":13832809,"url":"https://github.com/blakejakopovic/nostreq","last_synced_at":"2025-07-09T19:31:24.827Z","repository":{"id":65351937,"uuid":"574066784","full_name":"blakejakopovic/nostreq","owner":"blakejakopovic","description":"Nostr relay event request generator","archived":false,"fork":false,"pushed_at":"2023-05-19T10:19:02.000Z","size":25,"stargazers_count":25,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-14T11:06:41.733Z","etag":null,"topics":["cli","nostr","nostr-protocol","rust"],"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/blakejakopovic.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}},"created_at":"2022-12-04T10:23:38.000Z","updated_at":"2024-04-12T11:41:33.000Z","dependencies_parsed_at":"2024-01-13T16:32:50.503Z","dependency_job_id":"6aad7f1c-4cda-4576-b2e5-28cf9200c637","html_url":"https://github.com/blakejakopovic/nostreq","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"a9f4df9e80722d39c4639fe8def7cab0318c818b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakejakopovic%2Fnostreq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakejakopovic%2Fnostreq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakejakopovic%2Fnostreq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakejakopovic%2Fnostreq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blakejakopovic","download_url":"https://codeload.github.com/blakejakopovic/nostreq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225581843,"owners_count":17491795,"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":["cli","nostr","nostr-protocol","rust"],"created_at":"2024-08-04T11:00:31.222Z","updated_at":"2024-11-20T15:31:07.166Z","avatar_url":"https://github.com/blakejakopovic.png","language":"Rust","funding_links":[],"categories":["Install from Source","Tools"],"sub_categories":["Nostr","Client reviews and/or comparisons"],"readme":"# nostreq\n\nNostr relay event request generator\n\n## Getting started\nUsing Cargo to install (requires ~/.cargo/bin to be in PATH)\n```shell\n$ cargo install nostreq\n```\n\nBuilding from source (may be unstable)\n```shell\n$ git clone https://github.com/blakejakopovic/nostreq\n$ cargo build --release\n$ ./target/release/nostreq\n```\n\n## Examples\n\nNote: Comma or space separated multi-values are supported.\n\nGenerate a relay request for events with kind 0 or 2\n```shell\n$ nostreq --kinds 0,2\n[\"REQ\", \"ec3e6238-5ef3-4162-899c-a58e882e586a\", {\"kinds\":[0,2]}]\n```\n\nGenerate a relay request for events with authors\n```shell\n$ nostreq --authors pubkey1,pubkey2,pubkey3\n[\"REQ\", \"2e3479cd-e04d-4e4d-a370-a7c77cf7998e\", {\"authors\":[\"pubkey1\",\"pubkey2\",\"pubkey3\"]}]\n```\n\nGenerate a relay request with multiple filters (OR)\n```shell\n$ nostreq --authors pubkey1 --limit 1 --or --etags pubkey1\n[\"REQ\", \"dede0573-ffb4-45e7-a2e7-346178426762\", {\"authors\":[\"pubkey1\"],\"limit\":1},{\"#e\":[\"pubkey1\"]}]\n```\n\nGenerate a relay request a custom subscription id\n```shell\n$ nostreq --subscription-id myspecialsub\n[\"REQ\", \"myspecialsub\", {}]\n```\n\nGenerate a blank relay request with UUID generated subscription id\n```shell\n$ nostreq\n[\"REQ\", \"83d1ca68-c629-452c-b045-16197fde2b42\", {}]\n```\n\n## Using with [nostcat](https://github.com/blakejakopovic/nostcat) to request events from relays\n\n```shell\n$ nostreq --limit 1 --kinds 1 | nostcat wss://relay.damus.io\n[\"EVENT\",\"515a1980-fdf4-4a42-936b-b64eb7bd1574\",{\"id\":\"c7ac087a2ab2e293dd5d75ca344be649983dee263166e1da3a3d806fed4b5240\",\"pubkey\":\"887645fef0ce0c3c1218d2f5d8e6132a19304cdc57cd20281d082f38cfea0072\",\"created_at\":1670150101,\"kind\":1,\"tags\":[],\"content\":\"Show HN: Using Vim as an input method editor (IME) for X11 apps https://github.com/algon-320/vime\",\"sig\":\"d02e6fe1b9c34e33c5182871cfc251680b760860275896965fae08c8a3f007648d9708c0277143f44d41f2e2a1a9fe24a865526be971a26d4347baf01175dfc7\"}]\n```\n\n\n## Full help text\n```shell\n$ nostreq --help\n\nUsage: nostreq [OPTIONS]\n\nOptions:\n      --subscription-id \u003csubscription-id\u003e\n          custom request subscription id\n      --ids [\u003cids\u003e...]\n          a list of event ids or prefixes\n      --authors [\u003cauthors\u003e...]\n          a list of pubkeys or prefixes, the pubkey of an event must be one of these\n      --kinds [\u003ckinds\u003e...]\n          a list of a kind numbers\n      --etags [\u003cetags\u003e...]\n          a list of event ids that are referenced in an \"e\" tag\n      --ptags [\u003cptags\u003e...]\n          a list of pubkeys that are referenced in a \"p\" tag\n      --since \u003csince\u003e\n          a timestamp, events must be newer than this to pass\n      --until \u003cuntil\u003e\n          a timestamp, events must be older than this to pass\n      --limit \u003climit\u003e\n          maximum number of events to be returned in the initial query\n  -h, --help\n          Print help information\n  -V, --version\n          Print version information\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakejakopovic%2Fnostreq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakejakopovic%2Fnostreq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakejakopovic%2Fnostreq/lists"}