{"id":21564636,"url":"https://github.com/kevinbader/cloudevents-ex","last_synced_at":"2025-04-10T13:07:27.445Z","repository":{"id":53141901,"uuid":"248023275","full_name":"kevinbader/cloudevents-ex","owner":"kevinbader","description":"Elixir SDK for CloudEvents","archived":false,"fork":false,"pushed_at":"2022-08-19T16:02:03.000Z","size":78,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T11:45:45.911Z","etag":null,"topics":["cloudevents","elixir"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/cloudevents","language":"Elixir","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/kevinbader.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}},"created_at":"2020-03-17T16:47:19.000Z","updated_at":"2023-11-01T04:48:23.000Z","dependencies_parsed_at":"2022-08-13T02:20:20.956Z","dependency_job_id":null,"html_url":"https://github.com/kevinbader/cloudevents-ex","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinbader%2Fcloudevents-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinbader%2Fcloudevents-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinbader%2Fcloudevents-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinbader%2Fcloudevents-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinbader","download_url":"https://codeload.github.com/kevinbader/cloudevents-ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248224093,"owners_count":21068072,"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":["cloudevents","elixir"],"created_at":"2024-11-24T10:16:37.528Z","updated_at":"2025-04-10T13:07:27.426Z","avatar_url":"https://github.com/kevinbader.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cspan id=\"badges\"\u003e\n\n[![Hex pm](https://img.shields.io/hexpm/v/cloudevents.svg?style=flat-square)](https://hex.pm/packages/cloudevents)\n[![Hex Docs](https://img.shields.io/badge/api-docs-blue.svg?style=flat-square)](https://hexdocs.pm/cloudevents)\n[![Apache 2.0 license](https://img.shields.io/hexpm/l/cloudevents.svg?style=flat-square)](./LICENSE)\n\n\u003c/span\u003e\n\nCloudevents is an Elixir [SDK] for consuming and producing [CloudEvents] with support for various transport protocols and codecs. If you want to learn more about the specification itself, make sure to check out the [official spec on GitHub].\n\nCloudevents is released under the Apache License 2.0 - see the [LICENSE](LICENSE) file.\n\n[CloudEvents]: https://cloudevents.io/\n[SDK]: https://github.com/cloudevents/spec/blob/master/SDK.md\n[official spec on GitHub]: https://github.com/cloudevents/spec\n\n\u003cdiv id=\"status\"\u003e\n\n## Supported versions\n\n* OTP 25.0 and later\n* Elixir 1.13 and later\n\n## Status\n\n| Spec                         | Status                            |\n| :--------------------------- | :-------------------------------- |\n| **Core Specification:**      |                                   |\n| CloudEvents                  | v0.1, v0.2, v1.0                  |\n|                              |                                   |\n| **Optional Specifications:** |                                   |\n| AMQP Protocol Binding        | out of scope for now (PR welcome) |\n| AVRO Event Format            | todo (PR welcome)                 |\n| HTTP Protocol Binding        | wip (done except batch mode)      |\n| JSON Event Format            | done                              |\n| Kafka Protocol Binding       | v1.0                              |\n| MQTT Protocol Binding        | out of scope for now (PR welcome) |\n| NATS Protocol Binding        | out of scope for now (PR welcome) |\n| Web hook                     | out of scope for now (PR welcome) |\n\n\u003c/div\u003e\n\n## Getting started\n\nAdd `cloudevents` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:cloudevents, \"~\u003e 0.6.1\"}]\nend\n```\n\nUse `Cloudevents.from_map/1` to create your first Cloudevent and see its JSON representation using `Cloudevents.to_json/1`.\n\nIf you're dealing with HTTP requests, `Cloudevents.from_http_message/2`, `Cloudevents.to_http_binary_message/1` and `Cloudevents.to_http_structured_message/2` are your friends.\n\nIf you need Avro, you need to add `avrora` to your dependency list:\n```elixir\ndef deps do\n  [{:avrora, \"~\u003e 0.21\"}]\nend\n```\n\nThen, you need to add `Cloudevents` to your supervisor:\n\n```elixir\nchildren = [\n  Cloudevents\n]\n\nSupervisor.start_link(children, strategy: :one_for_one)\n```\n\nOr start `Cloudevents` manually:\n\n```elixir\n{:ok, pid} = Cloudevents.start_link([])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinbader%2Fcloudevents-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinbader%2Fcloudevents-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinbader%2Fcloudevents-ex/lists"}