{"id":13432789,"url":"https://github.com/typicode/stop-server","last_synced_at":"2025-04-05T20:08:38.034Z","repository":{"id":48077311,"uuid":"41372748","full_name":"typicode/stop-server","owner":"typicode","description":":iphone: Shut down your computer with your phone","archived":false,"fork":false,"pushed_at":"2021-08-08T14:54:11.000Z","size":25,"stargazers_count":348,"open_issues_count":8,"forks_count":42,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-10-22T19:19:35.919Z","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/typicode.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":"2015-08-25T15:49:47.000Z","updated_at":"2024-10-01T08:55:27.000Z","dependencies_parsed_at":"2022-08-12T18:10:12.166Z","dependency_job_id":null,"html_url":"https://github.com/typicode/stop-server","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fstop-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fstop-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fstop-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typicode%2Fstop-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typicode","download_url":"https://codeload.github.com/typicode/stop-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247260802,"owners_count":20910078,"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":[],"created_at":"2024-07-31T02:01:16.599Z","updated_at":"2025-04-05T20:08:38.011Z","avatar_url":"https://github.com/typicode.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# stop-server [![](https://badge.fury.io/js/stop-server.svg)](https://www.npmjs.com/package/stop-server) [![](https://travis-ci.org/typicode/stop-server.svg?branch=master)](https://travis-ci.org/typicode/stop-server)\n\n\u003e Shut down your computer with your phone :iphone: (works on OS X, Linux and Windows)\n\n## Install\n\n```sh\nnpm install -g stop-server\n```\n\n```sh\nstop-server start # Need to be done only once\n```\n\n## Usage\n\nVisit [`http://your-local-ip:5709`](http://localhost:5709/qr.html) __on your phone__. You should see this page:\n\n![](http://i.imgur.com/4WadpZc.png)\n\n__Important__ if you're on OS X or Linux, you need to allow commands to be used without sudo:\n\n```bash\n# Run 'sudo visudo' and add\nyour-username ALL=NOPASSWD: /sbin/shutdown       # OS X and Linux\nyour-username ALL=NOPASSWD: /usr/sbin/pm-suspend # Linux only\n```\n\n__Tip__ for easier access, you can get a QR code by going to [http://localhost:5709/qr.html](http://localhost:5709/qr.html) from your computer\n\n## Uninstall\n\n```\nnpm rm -g stop-server\n```\n\n## How it works?\n\n`stop-server` is a simple Express server with only 2 routes:\n\n```\nPOST http://your-local-ip:5709/power-off\nPOST http://your-local-ip:5709/sleep\n```\n\n## License\n\nMIT - [typicode :cactus:](https://github.com/typicode/stop-server)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fstop-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypicode%2Fstop-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypicode%2Fstop-server/lists"}