{"id":23867007,"url":"https://github.com/bvcxza/sonos","last_synced_at":"2026-06-06T13:31:13.728Z","repository":{"id":270815264,"uuid":"882092315","full_name":"bvcxza/sonos","owner":"bvcxza","description":"C++ library and command line tool for Nostr","archived":false,"fork":false,"pushed_at":"2025-07-11T19:50:09.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-28T17:42:24.950Z","etag":null,"topics":["command-line-tool","cpp","library","nostr"],"latest_commit_sha":null,"homepage":"","language":"C++","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/bvcxza.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-01T21:42:47.000Z","updated_at":"2025-09-01T06:53:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef17cfb9-936c-4202-9eb7-023c6f731ac5","html_url":"https://github.com/bvcxza/sonos","commit_stats":null,"previous_names":["bvcxza/sonos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bvcxza/sonos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvcxza%2Fsonos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvcxza%2Fsonos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvcxza%2Fsonos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvcxza%2Fsonos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvcxza","download_url":"https://codeload.github.com/bvcxza/sonos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvcxza%2Fsonos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33984824,"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-06T02:00:07.033Z","response_time":107,"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":["command-line-tool","cpp","library","nostr"],"created_at":"2025-01-03T10:01:53.977Z","updated_at":"2026-06-06T13:31:13.705Z","avatar_url":"https://github.com/bvcxza.png","language":"C++","funding_links":[],"categories":["Libraries"],"sub_categories":["Client reviews and/or comparisons"],"readme":"# SONOS\n\nA C++ library and a command line tool for [Nostr](https://nostr.com). It follows [NIP-01](https://github.com/nostr-protocol/nips/blob/master/01.md) spec.\n\n## Prerequisite to build\n\nThis project uses [miniforge](https://github.com/conda-forge/miniforge) as dependency manager. Follow [instructions](https://github.com/conda-forge/miniforge#install) to install it.\n\n## For users\n\n### Build and Install\n\nSee [Prerequisite](#prerequisite-to-build) before build.\n\n```\ngit clone --recurse-submodules https://github.com/bvcxza/sonos.git\ncd sonos\nmamba env update -n $(basename $PWD) -f conda.yml\n. env.sh\nbld_secp256k1 \u0026\u0026 cnf -DCMAKE_INSTALL_PREFIX=~/.local \u0026\u0026 bld install\n```\n\n### Run\n\nJust enter `sonos` to show usage.\n\n```\nCommands:\n\nconvert:\n\n\tConvert bech32 addresses (npub1 and nsec1) to/from hexadecimal string.\n\tUsage: sonos convert \u003cbech32 address\u003e\n\tUsage: sonos convert \u003chex address\u003e \u003chrp:npub or nsec\u003e\n\nevent:\n\n\tCreate and send a event to nostr relays.\n\tUsage: echo \"content\" | sonos event \u003cnsec\u003e \u003ckind\u003e \u003ctags\u003e \u003crelay_addresses ...\u003e\n\nkeypair:\n\n\tCreate or show keypair from hexadecimal/bech32 secret string\n\tUsage: sonos keypair [secret]\n\nrelays:\n\n\tShow user's relays from hexadecimal/bech32 public key.\n\tUsage: sonos relays \u003cread|write|all\u003e \u003cpublic_key\u003e \u003crelay_addresses ...\u003e\n\nreq:\n\n\tSend a REQ message to nostr relays and execute a external command for each received event.\n\tThe program called by command receives the event JSON file path as the first parameter ($1 in bash).\n\tUsage: sonos req \u003cfilters\u003e \u003ccommand\u003e \u003crelay_addresses ...\u003e\n\nuser:\n\n\tShow user metadata from hexadecimal/bech32 public key.\n\tUsage: sonos user \u003cpublic_key\u003e \u003crelay_addresses ...\u003e\n\n```\n\n### Send a REQ and handle events with external program\n\nExample: Call a [bash script](samples/script.sh) for each [event](https://github.com/nostr-protocol/nips/blob/master/01.md#events-and-signatures) with tag \"Monero\".\n\n```\nsonos req '{\"kinds\":[1],\"#t\":[\"Monero\"],\"limit\":0}' ./samples/script.sh nostr.bitcoiner.social:443\n```\n\n## For developers\n\n### Build and Test\n\nSee [Prerequisite](#prerequisite-to-build) before build.\n\n```\ngit clone https://github.com/bvcxza/sonos.git\ncd sonos\ngit submodule update --init --force --recursive\nmamba env update -n $(basename $PWD) -f conda.yml\n. env.sh\nbld_secp256k1 \u0026\u0026 cnf \u0026\u0026 bld \u0026\u0026 tst\n```\n\n### Run\n\nJust enter `run` to show usage.\n\n## Donations\n\nPlease consider donating to support the development of this project.\n\n[Monero (XMR)](https://www.getmonero.org): 8AADjm5nz4GXXn7Tf6FNfwCaAjAdkvdUs5KgRwBGUj2NHwWqkxbfLzYPom3mL6a1cN1aypyfvyzaxHAM8aARbafFKkABT6Z\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvcxza%2Fsonos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvcxza%2Fsonos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvcxza%2Fsonos/lists"}