{"id":15562823,"url":"https://github.com/ekaansharora/remote-shutdown-service","last_synced_at":"2026-04-09T17:34:58.857Z","repository":{"id":106019774,"uuid":"450895705","full_name":"EkaanshArora/remote-shutdown-service","owner":"EkaanshArora","description":"nodejs app to run as a service to listen for remote shutdown commands from a mobile app","archived":false,"fork":false,"pushed_at":"2022-05-20T18:59:41.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:11:19.524Z","etag":null,"topics":["app","linux","macos","mdns","mobile","nodejs","reactnative","remote-control","shutdown","windows","zeroconf"],"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/EkaanshArora.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":"2022-01-22T18:01:34.000Z","updated_at":"2022-05-18T13:26:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3691b8b-2743-4c8d-8bfb-2a35855aa347","html_url":"https://github.com/EkaanshArora/remote-shutdown-service","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"5b242c2103de6dc60caef7c287e8605791fb589a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EkaanshArora/remote-shutdown-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkaanshArora%2Fremote-shutdown-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkaanshArora%2Fremote-shutdown-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkaanshArora%2Fremote-shutdown-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkaanshArora%2Fremote-shutdown-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EkaanshArora","download_url":"https://codeload.github.com/EkaanshArora/remote-shutdown-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkaanshArora%2Fremote-shutdown-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014327,"owners_count":26085492,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","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":["app","linux","macos","mdns","mobile","nodejs","reactnative","remote-control","shutdown","windows","zeroconf"],"created_at":"2024-10-02T16:16:26.655Z","updated_at":"2025-10-13T08:41:42.409Z","avatar_url":"https://github.com/EkaanshArora.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote Shutdown Service\n\nNode/Express server for https://github.com/EkaanshArora/remote-shutdown-app to trigger shutdown, restart and sleep desktop commands from your phone.\n\nShould work on Mac, Windows and Linux. You'll need to launch the service as a superuser to have necessary privileges to execute shutdown command. \n\nThere's a [version](https://github.com/EkaanshArora/remote-shutdown-service/tree/mdns) with network discovery using [MDNS](https://github.com/agnat/node_mdns). You'll need to compile MDNS for your system to use it. Use the [mdns branch](https://github.com/EkaanshArora/remote-shutdown-app/tree/mdns) of the app.\n\n## How to use\n- Install [Node.js](https://nodejs.org/) and NPM\n- Download the project and navigate to the folder\n- Install dependencies `npm i`\n- Start the server `npm start`\n\n### How to setup background task and autostart\nI use [pm2](https://github.com/Unitech/pm2)\n- Install pm2 globally `npm i -g pm2`\n- Start the server in the project directory `pm2 start index.js --name RemoteShutdownService` \n- Configure autostart (optional) `pm2 autostart`.\n  - On Windows you can add `pm2 resurrect` to a `start.cmd` file and add it to your registry at `HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run` to launch the command on startup\n- Save the current running tasks for autostart `pm2 save`\n\nListens on port: `5001` with password: `e` by default  \nYou can configure this in `index.js`\n\nTODO: \n- Tests\n- One click executable\n\nI put this together in a few hours, please open a PR if you find bugs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekaansharora%2Fremote-shutdown-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekaansharora%2Fremote-shutdown-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekaansharora%2Fremote-shutdown-service/lists"}