{"id":21258876,"url":"https://github.com/spacebro/bro-recorder","last_synced_at":"2025-10-23T22:59:15.956Z","repository":{"id":146473759,"uuid":"150434436","full_name":"spacebro/bro-recorder","owner":"spacebro","description":"record and playback a serie of spacebro events","archived":false,"fork":false,"pushed_at":"2018-11-06T16:58:02.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T21:46:29.419Z","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-09-26T13:51:29.000Z","updated_at":"2018-11-06T16:58:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d15b1d66-1cd3-41e0-b339-c457cca6a29f","html_url":"https://github.com/spacebro/bro-recorder","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%2Fbro-recorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fbro-recorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fbro-recorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacebro%2Fbro-recorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacebro","download_url":"https://codeload.github.com/spacebro/bro-recorder/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:17.226Z","updated_at":"2025-10-23T22:59:10.929Z","avatar_url":"https://github.com/spacebro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bro-rercorder\n\nUtility for recording and playback a serie of spacebro events.\n\n### Usage\n\nbro-rercorder is meant to be used as is. You install it, provide a custom configuration file and run it.\n\n##### Install\n```sh\n$ git clone git@github.com:spacebro/bro-rercorder.git\n$ cd bro-rercorder/\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##### Record\n\nStop recording by `ctrl+c`, `SIGTERM`, or by sending a `bro-recorder-stop` event to the channel.\n\n```sh\n$ node record.js\n```\n\n##### Plaback\n\n```sh\n$ node play.js\n```\n\nYou can override the `settings.json` file with CLI args like so:\n\n```sh\n$ node play.js --play.filepath /path/to/my/file.json\n```\n\n### Settings\n\n```js\n{\n  \"verbose\": false, // does bro-rercorder logs everything or not\n  \"record\": {\n    \"events\": [\"*\"],\n    // an array of event names to listen to. you can use a wildcard,\n    // but bro-recorder won't be able to write the event name in the file\n    \"folder\": \"./library\", // path the folder where you want to write your files\n    \"filename\": \"bro-recorder\", // name of the file (no extension, bro-record will append '.json')\n    \"overwrite\": false\n    // if set to false, bro-recorder will add a timestamp to the filename\n    // so you can keep versions of your recording. if not, bro-recorder will simply overwrite the file.\n  },\n  \"play\": {\n    \"filepath\": \"./library/bro-recorder.json\", // path to the recording file\n    \"loop\": false // wether to loop the record or not\n  },\n  \"spacebro\": {\n    \"host\": \"127.0.0.1\", // host of your spacebro server\n    \"port\": 8888, // port of your spacebro server\n    \"channelName\": \"bro-record\" // channel name you want to use (optionnal)\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacebro%2Fbro-recorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacebro%2Fbro-recorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacebro%2Fbro-recorder/lists"}