{"id":21258868,"url":"https://github.com/spacebro/idle-bro","last_synced_at":"2025-03-15T06:35:08.867Z","repository":{"id":146473791,"uuid":"154368218","full_name":"spacebro/idle-bro","owner":"spacebro","description":"send an event when idle","archived":false,"fork":false,"pushed_at":"2018-11-14T10:06:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T21:46:28.629Z","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/spacebro.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":"2018-10-23T17:19:01.000Z","updated_at":"2018-11-14T10:06:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec9c1267-21b7-435d-8d61-44b701cf0b3e","html_url":"https://github.com/spacebro/idle-bro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fidle-bro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fidle-bro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fidle-bro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fidle-bro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacebro","download_url":"https://codeload.github.com/spacebro/idle-bro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695478,"owners_count":20332622,"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-11-21T04:11:15.914Z","updated_at":"2025-03-15T06:35:08.847Z","avatar_url":"https://github.com/spacebro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# idle-bro\n\nUtility for monitoring a spacebro events and notify state update with a `idle-start` or `idle-stop`.\n\n### Usage\n\nidle-bro is meant to be used as is. You install it, provide a custom configuration file and run it.\n\nYou can send a `'get-idle-status'` event to get the idle status in response from `idle-bro`.\n\nEach time a new spacebro client connects, `idle-bro` will broadcast its status.\n\n##### Install\n```sh\n$ git clone git@github.com:spacebro/idle-bro.git\n$ cd idle-bro/\n$ npm i\n```\n\n##### Eventually use custom settings\n```sh\n$ cp settings/settings.default.js settings/settings.js\n$ vim settings/settings.js\n```\n\n### Run\n\n```sh\n$ node index.js\n```\n\n### Settings\n\n```js\n{\n  \"threshold\": 1000, // time (in ms) before state update (must be \u003e 100)\n  \"verbose\": false, // does idle-bro logs everything or not\n  \"events\": [\"*\"],\n  // an array of event names to listen to. you can use a wildcard\n  \"spacebro\": {\n    \"host\": \"127.0.0.1\", // host of your spacebro server\n    \"port\": 8888, // port of your spacebro server\n    \"channelName\": \"idle-bro\" // channel name you want to use (optionnal)\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacebro%2Fidle-bro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacebro%2Fidle-bro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacebro%2Fidle-bro/lists"}