{"id":27165885,"url":"https://github.com/explor4268/wsctrl","last_synced_at":"2025-07-30T19:33:19.752Z","repository":{"id":232383669,"uuid":"784185872","full_name":"explor4268/wsctrl","owner":"explor4268","description":"Prototype Web Socket Cursor and Controller","archived":false,"fork":false,"pushed_at":"2024-04-09T12:09:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T03:37:00.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/explor4268.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}},"created_at":"2024-04-09T11:03:44.000Z","updated_at":"2024-06-20T05:25:30.000Z","dependencies_parsed_at":"2024-04-09T15:39:27.030Z","dependency_job_id":"46cdad8b-d1f7-440a-aea2-ea5b63bb1be9","html_url":"https://github.com/explor4268/wsctrl","commit_stats":null,"previous_names":["explor4268/wsctrl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/explor4268/wsctrl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explor4268%2Fwsctrl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explor4268%2Fwsctrl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explor4268%2Fwsctrl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explor4268%2Fwsctrl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explor4268","download_url":"https://codeload.github.com/explor4268/wsctrl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explor4268%2Fwsctrl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267928946,"owners_count":24167430,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2025-04-09T03:37:02.618Z","updated_at":"2025-07-30T19:33:19.724Z","avatar_url":"https://github.com/explor4268.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsctrl\n\nControl your PC (and maybe Dolphin Emulator with DSU protocol) with your phone by moving your phone like a Wiimote from just a web interface!\n\n\n## Running the server\n\n### You may create a Python virtual environment first:\n\n```bash\npython3 -m venv venv # Replace the last venv and all other venv below with your desired path of your virtual environment\n. venv/bin/activate # you may adjust this depending of your shell\n```\n\n### Running the WebSocket server with Python:\n\n```bash\npip install -r requirements.txt\ncd py/\npython3 main.py\n```\n\n### Running the front-end HTTP server:\n\nUse whatever static HTTP server as you wish **to serve the `js/` folder.** (e.g. `cd js/ \u0026\u0026 python3 -m http.server PORT`)\nHowever, to make this work the page must be run with [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts). **Visiting the server by directly using your local IP Address (e.g. `http://192.168.x.x/`) does not work.**\n- You have to tunnel the server with SSH forwarding on the client (e.g. with [Termux](https://github.com/termux/termux-app) and running `ssh USERNAME@YOUR_HOST_IP_OR_NAME -L THIS_DEVICE_PORT:localhost:YOUR_HTTP_SERVER_PORT -L 8081:localhost:8081`) then visiting `http://localhost:THIS_DEVICE_PORT/`.\n- Alternatively, you can use reverse tunnel to expose the server to the public **with HTTPS** (e.g. ngrok, Cloudflare Tunneling) and visiting it from there (you may change the port configuration in `js/client.js` and `py/main.py` to the correct host and port)\n\nCurrently, there is no npm dependencies for the JavaScript front-end, so it is completely vanilla.\n\n## TODO\n\n- [ ] More controls\n- [ ] Fix moving while phone is tiled (so the cursor movement is not tilted too)\n- [ ] DSU\n- [ ] Not to hard-code the Websocket port 8001 and make it as a command-line options.\n- [ ] Built-in HTTP server\n- [ ] Fix other bugs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplor4268%2Fwsctrl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplor4268%2Fwsctrl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplor4268%2Fwsctrl/lists"}