{"id":19733746,"url":"https://github.com/h2337/eemit","last_synced_at":"2025-08-13T06:41:36.786Z","repository":{"id":57720335,"uuid":"274424659","full_name":"h2337/eemit","owner":"h2337","description":"Tiny event emitter library for Java","archived":false,"fork":false,"pushed_at":"2025-07-19T17:05:10.000Z","size":61,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T08:58:44.210Z","etag":null,"topics":["event-emitter","eventbus","eventemitter","events","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/h2337.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":"2020-06-23T14:17:03.000Z","updated_at":"2025-07-20T06:21:09.000Z","dependencies_parsed_at":"2024-12-18T20:43:27.901Z","dependency_job_id":null,"html_url":"https://github.com/h2337/eemit","commit_stats":null,"previous_names":["h2337/eemit","hikmat2337/eemit","jafarlihi/eemit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h2337/eemit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Feemit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Feemit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Feemit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Feemit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h2337","download_url":"https://codeload.github.com/h2337/eemit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h2337%2Feemit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270197910,"owners_count":24543466,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":["event-emitter","eventbus","eventemitter","events","java"],"created_at":"2024-11-12T00:33:26.498Z","updated_at":"2025-08-13T06:41:36.740Z","avatar_url":"https://github.com/h2337.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eemit\neemit is a Java event emitter library. It lets you emit objects (from multiple places) of the specified type in a given channel and handle them elsewhere in code by subscribing to that channel.\n\n### Install\nMaven:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.h2337\u003c/groupId\u003e\n    \u003cartifactId\u003eeemit\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle:\n```groovy\nimplementation 'com.github.h2337:eemit:0.1.0'\n```\n\n### Usage\n```java\nimport io.github.h2337.eemit.EventEmitter;\n\n...\n\n// Create EventEmitter with any type as an event type, here just String\nEventEmitter\u003cString\u003e emitter = new EventEmitter\u003c\u003e();\n\n// Listen to events on channel \"channel666\", pass in a lambda that'll receive channel name and the event object\nemitter.on(\"channel666\", (channel, object) -\u003e {\n  // Do something with object (which is String because we parameterized EventEmitter with String)\n  // \"channel\" argument will either be \"channel666\" or \"*\" here\n});\n\n// Listen to events on all channels\nemitter.on(\"*\", (channel, object) -\u003e {\n  // Do something with object\n});\n\n// Emit an event on \"channel666\", second parameter is of type that you parameterized EventEmitter with\nemitter.emit(\"channel666\", \"Some string\");\n\n// Emit to all channels\nemitter.emit(\"*\", \"Some string\");\n\n// How to unlisten:\nString uuid = emitter.on(\"channel666\", (channel, object) -\u003e {\n  // Do something with object\n});\n// Unregister callback\nemitter.off(uuid);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2337%2Feemit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh2337%2Feemit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh2337%2Feemit/lists"}