{"id":23814082,"url":"https://github.com/notjustanna/eventpipes","last_synced_at":"2026-04-28T18:02:00.576Z","repository":{"id":103408568,"uuid":"170734836","full_name":"NotJustAnna/eventpipes","owner":"NotJustAnna","description":"Event Pipes for Java. Quite Reactive.","archived":false,"fork":false,"pushed_at":"2019-11-26T14:09:04.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T03:46:18.742Z","etag":null,"topics":["java"],"latest_commit_sha":null,"homepage":null,"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/NotJustAnna.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":"2019-02-14T18:00:50.000Z","updated_at":"2021-11-13T00:56:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"641a7e82-6418-434c-aef9-cd5287b88f5b","html_url":"https://github.com/NotJustAnna/eventpipes","commit_stats":null,"previous_names":["notjustanna/eventpipes","annathelibri/eventpipes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Feventpipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Feventpipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Feventpipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Feventpipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotJustAnna","download_url":"https://codeload.github.com/NotJustAnna/eventpipes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079637,"owners_count":19744725,"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":["java"],"created_at":"2025-01-02T03:46:23.919Z","updated_at":"2026-04-28T18:02:00.522Z","avatar_url":"https://github.com/NotJustAnna.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventPipes\n\nFully configured lightweight event publishing/subscribing library, made in pure Java.\n\nThe library is REALLY small and is made on pure Java 8.\n\nLicensed under the [MIT License](https://github.com/arudiscord/eventpipes/blob/master/LICENSE).\n\n### Installation\n\n![Latest Version](https://api.bintray.com/packages/arudiscord/maven/eventpipes/images/download.svg)\n\nUsing in Gradle:\n\n```gradle\nrepositories {\n  jcenter()\n}\n\ndependencies {\n  compile 'pw.aru.libs:eventpipes:LATEST' // replace LATEST with the version above\n}\n```\n\nUsing in Maven:\n\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ecentral\u003c/id\u003e\n    \u003cname\u003ebintray\u003c/name\u003e\n    \u003curl\u003ehttp://jcenter.bintray.com\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003epw.aru.libs\u003c/groupId\u003e\n    \u003cartifactId\u003eeventpipes\u003c/artifactId\u003e\n    \u003cversion\u003eLATEST\u003c/version\u003e \u003c!-- replace LATEST with the version above --\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n### Usage\n\nThe starting point of the library is the `EventPipes` class.\n\n- Use `EventPipes.newPipe` (or `newAsyncPipe`) to create your first pipe.\n- If you need stuff being handled by the key, use `EventPipes.newKeyedPipe` (or `newAsyncKeyedPipe`)\n- `EventPipe` implements `EventPublisher` and `EventSubscriber`, and the actual `publish`/`subscribe` methods are on that class.\n\n### Example Implementations:\n\n```java\npublic interface MyEvents {\n    EventPipe\u003cReadyEvent\u003e READY = newAsyncPipe();\n    EventPipe\u003cInteger\u003e EVERY_SECOND = newAsyncPipe();\n    EventPipe\u003cRedisChannelMessage\u003e REDIS_MESSAGES = newAsyncPipe();\n}\n\npublic class EventEmitter extends MyEvents {\n    public static void emitEvents() throws Exception {\n        READY.publish(new ReadyEvent());\n        \n        for(int i = 0; i \u003c 100; i++) {\n            EVERY_SECOND.publish(i);\n            Thread.sleep(1000);\n        }\n        \n        MyRedis.instance().subscribe(\"very-important-messages\", REDIS_MESSAGES::publish);\n    }\n}\n\npublic class MyEventAPI {\n    public final EventSubscriber\u003cReadyEvent\u003e onReady;\n    public final EventSubscriber\u003cInteger\u003e eachSecond;\n    \n    public MyEventAPI() {\n        EventPipe\u003cReadyEvent\u003e readyPipe = newAsyncPipe();\n        EventPipe\u003cInteger\u003e secondPipe = newAsyncPipe();\n        \n        onReady = readyPipe.subscriber();\n        eachSecond = secondPipe.subscriber();\n        \n        MyEventGateway gateway = new GatewayImpl(this, readyPipe.publisher(), eachSecond.publisher());\n        gateway.connect(\"https://my-gateway.what-a-cool-discord-bot.com/v6/\");\n    }\n}\n```\n\n### Support\n\nSupport is given on [Aru's Discord Server](https://discord.gg/URPghxg)\n\n[![Aru's Discord Server](https://discordapp.com/api/guilds/403934661627215882/embed.png?style=banner2)](https://discord.gg/URPghxg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjustanna%2Feventpipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotjustanna%2Feventpipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjustanna%2Feventpipes/lists"}