{"id":20292969,"url":"https://github.com/fdch/collidepd-client","last_synced_at":"2026-04-18T00:32:46.839Z","repository":{"id":163894110,"uuid":"345219243","full_name":"fdch/collidepd-client","owner":"fdch","description":"a node.js client for the collidepd server that connects to a websocket and forwards OSC messages","archived":false,"fork":false,"pushed_at":"2021-07-29T00:41:56.000Z","size":631,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T05:14:37.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fdch.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":"2021-03-06T23:43:24.000Z","updated_at":"2021-07-29T00:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"931784d9-c98e-4efa-866a-d08e737b95ba","html_url":"https://github.com/fdch/collidepd-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fdch/collidepd-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdch%2Fcollidepd-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdch%2Fcollidepd-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdch%2Fcollidepd-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdch%2Fcollidepd-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdch","download_url":"https://codeload.github.com/fdch/collidepd-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdch%2Fcollidepd-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31951353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":[],"created_at":"2024-11-14T15:20:16.566Z","updated_at":"2026-04-18T00:32:44.884Z","avatar_url":"https://github.com/fdch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CollidePD Client\n\nCLI (command line interface) client for the `collidepd` server: https://github.com/fdch/collidepd\n\n## Install\n\n### 1. Get Node.js and npm\nThis project is made using `node.js` and `npm`. You can get `npm` here: https://www.npmjs.com/get-npm\n\n### 2. Get the repository and install dependencies\n```\ngit clone https://github.com/fdch/collidepd-client.git\ncd collidepd-client\nnpm install express --save\nnpm install socket.io-client --save\n```\n\n## Usage\n\nInside the `collidepd-client` directory, you can now run the client script like this: `node client.js`\n\n### Messages:\n\n- `connect`  connects to the websocket host (see inside `client.js` for more).\n- `disconnect` disconnects from the websocket host.\n- `udpconnect` connects to localhost at port `5009` for UDP messages.\n- `udpdisconnect` disconnect from localhost.\n- `verbose` toggle console printing on or off\n- `exit` closes any connection and quits\n\n### Special Messages:\n\n#### `server` - interface to the websocket server\n\nAny message prepended with `server` will be forwarded to the server.\n\n- `server name myname` will change your client name on the server\n- `server users` returns how many users are connected and their ids or names\n- `server chat \"hello there, I'm chatting\"` sends out a chat message\n- `server event /dog 1 2 3` sends out an 'event' message in osc format \n- `server mode 1|0` changes broadcast mode to include sender or not.\n- `server verbose 1|0` changes verbosity on the server for console output.\n- `server dump` outputs all server-side stored data to the sender.\n\n## Example\nTest pd-server printing osc to terminal stout. This script opens a pd patch that listens to UDP port 5009 and prints incoming osc-parsed messages to console. \n```\n./start-pd-server\n```\nOn a different terminal, start the client script and connect to websocket:\n```\nnode client.js\n[prompt:] connect\nsocket id: QXOnsbgCzj8mB_0GAAAC\nconnected\n1\n```\nThen, you can send a chat:\n```\n[prompt:] server chat \"hello world\"\n```\nCheck for anything that is stored on the server:\n```\n[prompt:] server dump\n[\n  {\n    id: 'QXOnsbgCzj8mB_0GAAAC',\n    data: { name: '', event: [], control: [], chat: [Array] },\n    time: 1615075506104\n  }\n]\n```\nYou can also connect to the udp port and send a message, and wait for the output on the terminal window running the pd script.\n```\n[prompt:] udpconnect\n[prompt:] server event /cat 4 5 6\n\n```\n\nWhen you are done, you can exit like this:\n```\n[prompt:] exit\nBye!\nio client disconnect\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdch%2Fcollidepd-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdch%2Fcollidepd-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdch%2Fcollidepd-client/lists"}