{"id":26018933,"url":"https://github.com/moonwave99/backbone.station","last_synced_at":"2026-04-22T04:02:35.978Z","repository":{"id":30385138,"uuid":"33937796","full_name":"moonwave99/backbone.station","owner":"moonwave99","description":"A mixin for making life with Backbone.Radio even easier.","archived":false,"fork":false,"pushed_at":"2015-04-15T12:29:02.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-08T11:47:26.017Z","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/moonwave99.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}},"created_at":"2015-04-14T14:47:37.000Z","updated_at":"2015-04-15T12:29:02.000Z","dependencies_parsed_at":"2022-08-22T08:20:16.243Z","dependency_job_id":null,"html_url":"https://github.com/moonwave99/backbone.station","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moonwave99/backbone.station","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fbackbone.station","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fbackbone.station/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fbackbone.station/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fbackbone.station/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonwave99","download_url":"https://codeload.github.com/moonwave99/backbone.station/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fbackbone.station/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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-03-06T06:39:32.387Z","updated_at":"2026-04-22T04:02:35.948Z","avatar_url":"https://github.com/moonwave99.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backbone.station\n\nA mixin for making life with [Backbone.Radio](https://github.com/marionettejs/backbone.radio) even easier.\n\n## Instructions\n\nIn order not to fill initialisers with `Backbone.Radio.channel('app').comply( 'do:smth', this.action, this)` all over the place, you can now put all the configuration in two `complyTo` and `replyTo` hashes like this:\n\n    var MyView = Backbone.View.extend(_.extend({}, Backbone.Station, {\n      complyTo: {\n        channelName: {\n          'commandName'        : 'someHandler',\n          'anotherCommandName' : function(params){ ... }\n        },\n        anotherChannelName: { ... }\n      },\n      replyTo: {\n        channelName: {\n          'requestName' : ...\n        }\n      },\n      ...\n      'someHandler' : function(params){ ... }\n    }));\n    \nYou just need to call the `_initChannels` method in the initialiser, like this:\n\n    initialize: function(options){\n      this._initChannels.call(this, 'channelName', 'anotherChannelName');\n    }\n    \nIn order to remove listeners on view/object disposal, run `_unsubscribe`:\n\n    onDestroy: function(){\n      this._unsubscribe.call(this);\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwave99%2Fbackbone.station","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonwave99%2Fbackbone.station","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwave99%2Fbackbone.station/lists"}