{"id":32169497,"url":"https://github.com/lvlick/compound","last_synced_at":"2026-02-22T19:02:57.860Z","repository":{"id":57485036,"uuid":"139053966","full_name":"lvlick/Compound","owner":"lvlick","description":"A minimalistic TCP Server written in elixir.","archived":false,"fork":false,"pushed_at":"2018-06-29T14:36:28.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-18T22:22:50.691Z","etag":null,"topics":["elixir","tcp-server"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvlick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-28T18:21:03.000Z","updated_at":"2018-06-29T14:36:29.000Z","dependencies_parsed_at":"2022-08-26T11:11:10.444Z","dependency_job_id":null,"html_url":"https://github.com/lvlick/Compound","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lvlick/Compound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvlick%2FCompound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvlick%2FCompound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvlick%2FCompound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvlick%2FCompound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvlick","download_url":"https://codeload.github.com/lvlick/Compound/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvlick%2FCompound/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29723573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["elixir","tcp-server"],"created_at":"2025-10-21T16:03:28.231Z","updated_at":"2026-02-22T19:02:57.843Z","avatar_url":"https://github.com/lvlick.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compound\n\nA minimalistic TCP Server written in Elixir.\n\n## Introduction\nCompound goal is to offer a simple API that allows users to send and receive packets via TCP connections.\nEach TCP connection is handled by its own process utilizing Elixir's `GenServer` behavior.\nFor your applications to be able to handle packets received by Compound, callbacks are used with the possibility of each connection having its own callback.\n\n## Installation \n\nCompound can be added to your project \nby append `compound` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:compound, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nand then running `mix deps.get` to install it.\n\n## Preparation\n\nBefore you can use Compound you have to take a few steps.\n\nFirst you need to add one or more server configurations to your `config.exs`:\n\n```elixir\nconfig :compound, tcp_servers: [\n  %{id: \"example\", port: 3001},\n  ...\n]\n```\n\nA server configuration consists of an id (as a `string`) and a port (as an `integer`).\n\nAfter starting your elixir app simply call `Compound.TCP.set_default_callback(server, callback)` with the id of the server from the configuration and a pid. \nIncoming packets for that server will be forwarded to your callback process as `{:new_packet, packet, sender}`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvlick%2Fcompound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvlick%2Fcompound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvlick%2Fcompound/lists"}