{"id":16401548,"url":"https://github.com/plugfox/eb_archive","last_synced_at":"2026-01-11T13:35:29.011Z","repository":{"id":56828331,"uuid":"259512275","full_name":"PlugFox/eb_archive","owner":"PlugFox","description":"Event Manager implementing an event-driven publish–subscribe pattern with singleton Event Bus.","archived":false,"fork":false,"pushed_at":"2020-08-16T00:57:00.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T02:49:13.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/PlugFox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-28T02:40:29.000Z","updated_at":"2023-04-07T13:01:14.000Z","dependencies_parsed_at":"2022-08-29T02:40:44.822Z","dependency_job_id":null,"html_url":"https://github.com/PlugFox/eb_archive","commit_stats":null,"previous_names":["plugfox/eb_archive","plugfox/eb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Feb_archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Feb_archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Feb_archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Feb_archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlugFox","download_url":"https://codeload.github.com/PlugFox/eb_archive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240325877,"owners_count":19783750,"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-10-11T05:43:24.025Z","updated_at":"2026-01-11T13:35:29.004Z","avatar_url":"https://github.com/PlugFox.png","language":"Dart","readme":"# EB  \n  \n  \n### About  \nEvent Manager implementing an event-driven [publish–subscribe pattern](https://en.wikipedia.org/wiki/Publish-subscribe_pattern) with singleton Event Bus.  \nInspired by message queue paradigm, message brokers.  \nDesigned for easy application scaling.  \n  \n  \n---\n  \n### Example:  \n  \n```dart\nimport 'package:eb/eb.dart';\n\nclass A with Subscriber {\n  A() {\n    messages.forEach((Message e) =\u003e print('A gotcha $e')); \n  }\n}\n  \nclass B with Subscriber {}\n\nclass C with Publisher, Subscriber {}\n\nclass D with Publisher {}\n\nvoid main() {\n  // Supervisor for whole app and logs\n  MessageBusSupervisor.addMessageCallbacks(\u003cMessageMW\u003e[\n    (Message e) =\u003e print('Supervisor gotcha $e #1'),\n    (Message e) =\u003e print('Supervisor gotcha $e #2'),\n  ]);\n\n  // Domains/Subsystems/Widgets\n  A();\n  B()..onMessage((Message e) =\u003e print('B gotcha $e'));\n  C()..onMessage((Message e) =\u003e print('C gotcha $e'), topic: 'd')..emit(const Message('c'));\n  D()..emit(const Message('d'));\n\n  // Permanent bus destruction\n  MessageBusSupervisor.kill();\n}\n```  \n  \n  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Feb_archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplugfox%2Feb_archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Feb_archive/lists"}