{"id":20255130,"url":"https://github.com/hjfitz/phone-home","last_synced_at":"2026-05-17T15:04:42.131Z","repository":{"id":75400827,"uuid":"160812572","full_name":"hjfitz/phone-home","owner":"hjfitz","description":"Phone home to any given server","archived":false,"fork":false,"pushed_at":"2018-12-07T11:07:42.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T02:50:51.103Z","etag":null,"topics":["api","ip","ipv4","node","rest","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hjfitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-12-07T11:01:58.000Z","updated_at":"2018-12-07T11:08:14.000Z","dependencies_parsed_at":"2023-06-06T09:30:46.732Z","dependency_job_id":null,"html_url":"https://github.com/hjfitz/phone-home","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hjfitz/phone-home","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fphone-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fphone-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fphone-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fphone-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjfitz","download_url":"https://codeload.github.com/hjfitz/phone-home/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fphone-home/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","ip","ipv4","node","rest","server"],"created_at":"2024-11-14T10:36:33.896Z","updated_at":"2026-05-17T15:04:42.103Z","avatar_url":"https://github.com/hjfitz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phone Home\n\u003e Have all of your devices call in, and know when they were online last\n\n## Setup\n1. Install deps:\n```bash\nyarn\n```\n\n2. Create some certificates. I like self-signing\n```bash\nopenssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes\n```\n\n3. Run the server\n```bash\nnode server\n```\n\n\n## Interacting with the server\nDo it lazily with cURL!\n\n### Updating\n```bash\ncurl -X POST -H \"authorization: secrets don't go on github\" https://SERVER_URL:5001/key/laptop -k\n```\n\n### Retrieving All Records\n```bash\ncurl -H \"authorization: secrets don't go on github\" https://SERVER_URL:5001/all -k\n```\n\n## Running on Startup\nCreate a Systemd service unit:\n```ini\n[Unit]\nDescription=Phone Home Service\n\n[Service]\nExecStart=/path/to/curl_script\n\n[Install]\nWantedBy=multi-user.target\n```\n\n* Save it under `/etc/systemd/system/phone-home.service`\n* Start the service `sudo systemctl start phone-home.service`\n* Enable it! `sudo systemctl enable phone-home.service`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fphone-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjfitz%2Fphone-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fphone-home/lists"}