{"id":27026699,"url":"https://github.com/bondy-io/bondy_net","last_synced_at":"2025-04-09T18:15:57.616Z","repository":{"id":285934151,"uuid":"959778768","full_name":"bondy-io/bondy_net","owner":"bondy-io","description":"An Erlang/OTP Library that implements unified proxy distribution module providing a common interface between disterl, partisan and any alternative distribution layer.","archived":false,"fork":false,"pushed_at":"2025-04-03T19:36:26.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-09T18:15:54.390Z","etag":null,"topics":["bondy","erlang","partisan"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bondy-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-04-03T10:41:23.000Z","updated_at":"2025-04-03T19:36:30.000Z","dependencies_parsed_at":"2025-04-03T12:48:43.718Z","dependency_job_id":null,"html_url":"https://github.com/bondy-io/bondy_net","commit_stats":null,"previous_names":["bondy-io/bondy_net"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondy-io%2Fbondy_net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondy-io%2Fbondy_net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondy-io%2Fbondy_net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondy-io%2Fbondy_net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bondy-io","download_url":"https://codeload.github.com/bondy-io/bondy_net/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085322,"owners_count":21045139,"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":["bondy","erlang","partisan"],"created_at":"2025-04-04T23:15:24.772Z","updated_at":"2025-04-09T18:15:57.592Z","avatar_url":"https://github.com/bondy-io.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bondy_net\n\n`bondy_net` is a backend-agnostic Erlang application that provides a unified interface over either **Distributed Erlang**, **[Partisan](https://partisan.dev)** or other disterl alternatives. \n\nIt allows your application to switch distribution backends **without modifying application code**.\n\nNotice `bondy_net` doesn't use [Bondy](bondy.io) (the application networking platform). It is called `bondy_net` as it is part of the Bondy suite of libraries.\n\n## Why Use `bondy_net`?\n* Switch between distribution backends without rewriting your code\n* Keep application logic decoupled from distribution mechanics\n\n## Features\n* Unified API for sending messages, monitor nodes and obtaining information\n* Supports both **Distributed Erlang** and **Partisan**\n* Backend selection via environment variable or application config\n* Uses parse transforms for **zero-runtime dispatch cost**\n\n## Installation\nAdd to your `rebar.config` dependencies:\n\n{deps, [\n    bondy_net\n]}.\n\nMake sure you also:\n* include `bondy_net` as an application in your `app.src` file. At startup the application will generate the `bondy_net` module using parse transforms based on your configuration\n* include `partisan` or your custom backend if you’re are not using disterl.\n\n\n## Configuration\nSet the backend distribution system via `sys.config`:\n\n```erlang\n{bondy_net, [\n    {backend, partisan}\n]}.\n```\n\n## Usage\nUse `bondy_net` module just like you’d use `erlang` (`net_kernel`) and `partisan`.\nCheck the implemented functions in `bondy_net` as only a subset of functions is implemented.\n\n## Broadcasting\nSince there is no implementation for broadcasting natively in Erlang a call to \n`bondy_net:broadcast/2` will fail unless you also provide a `broadcast_backend` module that implements the callback e.g. `my_module` in the following example.\n\n```erlang\n{bondy_net, [\n    {backend, erlang},\n    {broadcast_backend, my_module}\n]}.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbondy-io%2Fbondy_net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbondy-io%2Fbondy_net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbondy-io%2Fbondy_net/lists"}