{"id":28396358,"url":"https://github.com/ssbc/ssb-device-address","last_synced_at":"2026-02-25T18:37:51.559Z","repository":{"id":57368770,"uuid":"151326325","full_name":"ssbc/ssb-device-address","owner":"ssbc","description":"announce a public address for yourself","archived":false,"fork":false,"pushed_at":"2019-06-27T08:36:15.000Z","size":20,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T10:46:00.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ssbc.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}},"created_at":"2018-10-02T21:33:14.000Z","updated_at":"2022-05-12T12:58:50.000Z","dependencies_parsed_at":"2022-08-23T20:10:49.415Z","dependency_job_id":null,"html_url":"https://github.com/ssbc/ssb-device-address","commit_stats":null,"previous_names":["dominictarr/ssb-public"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ssbc/ssb-device-address","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-device-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-device-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-device-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-device-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbc","download_url":"https://codeload.github.com/ssbc/ssb-device-address/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fssb-device-address/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29834631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:57:15.019Z","status":"ssl_error","status_checked_at":"2026-02-25T17:56:11.472Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-05-31T21:38:13.116Z","updated_at":"2026-02-25T18:37:51.554Z","avatar_url":"https://github.com/ssbc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssb-device-address\n\nAnnounce a public address for yourself. Unlike old \"pub\" announcements, this you \n_may not_ announce addresses for other feeds, only yourself.\n\n## usage\n\nAnnounce your address and availability. Availability is an estimate between 0 and 1\nof the probability you'll be online at any given time. Availability\nhelps peers prioritize connecting to you, if you are unsure\nset a lower value. Setting availability is mandatory.\n\nFor your pub:\n```\nsbot deviceAddress.announce --scope public --availability 1\n```\n\nYou can also set the address manually:\n```\nsbot deviceAddress.announce --address \u003caddress\u003e --availability 0.6\n```\n\nAlternatively, use a [scope](https://github.com/regular/multiserver-scopes),\nand it will announce the address given by `sbot getAddress \u003cscope\u003e`\n\nYou can also _encrypt_ the address announcement, if you do not want \nthe whole world connecting to you.\n\n```\nsbot deviceAddress.announce --scope public --availability 0.3 --recps \u003cid\u003e\n```\nNote, you can use multiple recps by just having more\n`--recps \u003cid1\u003e --recps \u003cid2\u003e --recps \u003cid3\u003e` etc\n\n\n## api\n\n### getAddress (id, cb)\n\nReturn the public address for `id`, if one has been posted.\n\n### announce({address: addr?, availability:0-1}, cb)\n\nPost the current address. If you pass `addr`, validate and post the value \nof `addr`. Must pass `availability` as a value between 0 and 1 inclusive. \n\nIf callback `cb` is passed, the public address from `getAddress` will be \npassed to your callback. In case of an invalid address or availability \nvalue, error messages will be passed to your callback.\n\n## License\n\nMIT\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fssb-device-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbc%2Fssb-device-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fssb-device-address/lists"}