{"id":14551360,"url":"https://github.com/sonic182/pub_subx","last_synced_at":"2025-04-11T14:50:46.470Z","repository":{"id":64101133,"uuid":"573430703","full_name":"sonic182/pub_subx","owner":"sonic182","description":"Publisher Subscriber utility for elixir","archived":false,"fork":false,"pushed_at":"2024-09-01T12:20:36.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T11:01:32.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/pub_subx","language":"Elixir","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/sonic182.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-02T12:56:02.000Z","updated_at":"2025-02-28T19:51:41.000Z","dependencies_parsed_at":"2024-12-30T22:31:19.499Z","dependency_job_id":"08ecbe4d-e22d-4313-a4e4-96f531cb41b5","html_url":"https://github.com/sonic182/pub_subx","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"2b0a323f9aa79b2566bdf53fbe2cdae19e007910"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonic182%2Fpub_subx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonic182%2Fpub_subx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonic182%2Fpub_subx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonic182%2Fpub_subx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonic182","download_url":"https://codeload.github.com/sonic182/pub_subx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054218,"owners_count":21039951,"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-09-06T14:00:36.802Z","updated_at":"2025-04-11T14:50:46.439Z","avatar_url":"https://github.com/sonic182.png","language":"Elixir","funding_links":[],"categories":["Recently Updated","Utilities"],"sub_categories":["[Sep 02, 2024](/content/2024/09/02/README.md)"],"readme":"# PubSubx\n\n![Hex.pm Version](https://img.shields.io/hexpm/v/pub_subx)\n![License](https://img.shields.io/github/license/sonic182/pub_subx)\n![Issues](https://img.shields.io/github/issues/sonic182/pub_subx)\n\n`PubSubx` is a lightweight and flexible publish-subscribe (PubSub) library built on top of Elixir's `GenServer` and `Registry`. It allows processes to communicate by subscribing to topics and receiving messages when they are published. This is useful for decoupling components in your Elixir applications, enabling easier scalability and maintainability.\n\n## Features\n\n- **Subscribe/Unsubscribe**: Processes can easily subscribe or unsubscribe from topics.\n- **Publish**: Messages can be published to any topic, notifying all subscribed processes.\n- **Dynamic Topic Management**: Topics are created and removed dynamically based on subscriptions.\n- **Process Monitoring**: Automatically handles the removal of subscriptions when processes terminate.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed by adding `pub_subx` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:pub_subx, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\nThe docs can be found at \u003chttps://hexdocs.pm/pub_subx\u003e.\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonic182%2Fpub_subx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonic182%2Fpub_subx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonic182%2Fpub_subx/lists"}