{"id":13576287,"url":"https://github.com/oberernst/macrina","last_synced_at":"2026-02-18T21:02:18.564Z","repository":{"id":147574766,"uuid":"468952910","full_name":"oberernst/macrina","owner":"oberernst","description":"A CoAP server","archived":false,"fork":false,"pushed_at":"2025-11-19T19:21:35.000Z","size":93,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-08T20:57:47.462Z","etag":null,"topics":["coap","coap-server","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oberernst.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-03-12T01:56:17.000Z","updated_at":"2025-11-19T19:20:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"576a74b0-a47c-4028-b93f-b03a6723d10a","html_url":"https://github.com/oberernst/macrina","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/oberernst/macrina","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberernst%2Fmacrina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberernst%2Fmacrina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberernst%2Fmacrina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberernst%2Fmacrina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oberernst","download_url":"https://codeload.github.com/oberernst/macrina/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberernst%2Fmacrina/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["coap","coap-server","elixir"],"created_at":"2024-08-01T15:01:08.866Z","updated_at":"2026-02-18T21:02:18.542Z","avatar_url":"https://github.com/oberernst.png","language":"Elixir","readme":"# Macrina\n\nSaint Macrina, patron of Robotics, ora pro nobis\n---\nUNDER CONSTRUCTION! It's still a rough draft that I'm ripping to shreds constantly. LMK if you'd like this to change\n* CoAP binary request encoding and decoding (RFC 7253.3)\n* CoAP Block Transfers (RFC 7959)\n* Endpoint \n  * can receive and decode messages\n  * started with arbitrary `handler` function for processing messages\n\n## Overview\n\n### `Macrina.Endpoint`\nA thin `GenServer` wrapper around `:gen_udp`. Given an IP and port, any incoming UDP packets at that port will be sent to the `Endpoint`. This is done via `GenServer`'s built-in `handle_info` functionality.\n\n### `Macrina.Connection.Server`\nA `GenServer` that represents a connection from the local `Endpoint` that started it to some other `Endpoint`. Given an IP, port, and `Handler` module, this process serves two important functions: \n* general message handling\n  * receiving `{:coap, binary()}` messages\n  * decoding those messages\n  * using the given `Handler` module to process the message and generate any CoAP responses\n  * sending those responses via `:gen_udp`\n* client message handling\n  * the included `Macrina.Client` uses this process to send requests\n  * clients use a `GenServer.call` to do this, which returns the response from the requested endpoint or times out\n\n### `Macrina.Message`\nUsed for encoding and decoding `CoAP` messages, defining a `struct` for in memory representation\n","funding_links":[],"categories":["Elixir"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foberernst%2Fmacrina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foberernst%2Fmacrina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foberernst%2Fmacrina/lists"}