{"id":24564670,"url":"https://github.com/leviosa42/p5js-sample-mqtt","last_synced_at":"2026-05-13T12:38:08.964Z","repository":{"id":273445183,"uuid":"892041878","full_name":"leviosa42/p5js-sample-mqtt","owner":"leviosa42","description":"MQTT.js + shiftr.io Desktop + p5.js を使ったサンプルコード","archived":false,"fork":false,"pushed_at":"2025-01-20T23:43:28.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T00:27:51.124Z","etag":null,"topics":["mqtt","mqttjs","p5js","shiftrio"],"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/leviosa42.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,"publiccode":null,"codemeta":null}},"created_at":"2024-11-21T12:09:44.000Z","updated_at":"2025-01-20T23:43:31.000Z","dependencies_parsed_at":"2025-01-21T00:27:52.296Z","dependency_job_id":"01911c54-682d-4b5e-8ff8-5d63b3496349","html_url":"https://github.com/leviosa42/p5js-sample-mqtt","commit_stats":null,"previous_names":["leviosa42/p5js-sample-mqtt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviosa42%2Fp5js-sample-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviosa42%2Fp5js-sample-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviosa42%2Fp5js-sample-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviosa42%2Fp5js-sample-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leviosa42","download_url":"https://codeload.github.com/leviosa42/p5js-sample-mqtt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955731,"owners_count":20374375,"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":["mqtt","mqttjs","p5js","shiftrio"],"created_at":"2025-01-23T11:20:03.410Z","updated_at":"2025-10-09T00:46:28.373Z","avatar_url":"https://github.com/leviosa42.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p5js-sample-mqtt\n\nMQTT を使って p5.js 上で通信を行うサンプルです。\n\n![](/asset/image.png)\n\n## 技術スタック\n\n- MQTT\n  - Desktop shiftr.io ... MQTT ブローカー\n  - mqtt.js ... MQTT クライアント\n- p5.js ... クリエイティブコーディング用ライブラリ\n- LiveServer(VSCode 拡張機能) ... ローカルサーバー\n\n## ディレクトリ構成\n\n```\np5js-sample-mqtt\n├── README.md\n├── receiver\n│   ├── index.html\n│   └── sketch.js\n└── sender\n    ├── index.html\n    └── sketch.js\n```\n\n## セットアップ\n\n1. リポジトリをクローンしVSCodeで開きます。\n\n```bash\ngit clone\ncode p5js-sample-mqtt\n```\n\n1. 右下の `Go Live` ボタンをクリックしてローカルサーバーを立ち上げます。このとき、ボタンの表示が `Port : ****` に変わるため、ポート番号をメモしておいてください。\n\n\u003e [!NOTE]\n\u003e もし LiveServer がインストールされていない場合は、VSCode の拡張機能からインストールしてください。\n\n\u003e [!NOTE]\n\u003e デフォルトのポート番号は `5500` です。\n\n3. ブラウザで `http://localhost:ポート番号/sender` と `http://localhost:ポート番号/receiver` を開きます。\n\n\n\u003e [!NOTE]\n\u003e iPad等プライベートLAN内のデバイスで動作させる場合は、`http://PCのIPアドレス:ポート番号/sender` と `http://PCのIPアドレス:ポート番号/receiver` を開いてください。\n\n## 使い方\n\n`sender` 側での情報が `receiver` 側で表示されます。\n\n送信している内容は以下の通りです。\n\n- マウス座標\n- `sender` 側の時刻[msec]\n- マウスボタンを押しているかどうか\n\n## 参考\n\n- https://qiita.com/emqx_japan/items/b0c010f7b2591575a263\n- https://qiita.com/youtoy/items/7c58de69b4b20543a5b5\n\n## ライセンス\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleviosa42%2Fp5js-sample-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleviosa42%2Fp5js-sample-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleviosa42%2Fp5js-sample-mqtt/lists"}