{"id":17862361,"url":"https://github.com/thalesmg/emqx-elixir-plugin-template","last_synced_at":"2025-04-02T21:14:29.850Z","repository":{"id":43705587,"uuid":"462018112","full_name":"thalesmg/emqx-elixir-plugin-template","owner":"thalesmg","description":"Example Elixir plugin template repo","archived":false,"fork":false,"pushed_at":"2022-02-23T17:44:13.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T11:33:28.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thalesmg.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":"2022-02-21T20:18:06.000Z","updated_at":"2022-02-21T20:19:01.000Z","dependencies_parsed_at":"2022-09-02T12:43:11.447Z","dependency_job_id":null,"html_url":"https://github.com/thalesmg/emqx-elixir-plugin-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Femqx-elixir-plugin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Femqx-elixir-plugin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Femqx-elixir-plugin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalesmg%2Femqx-elixir-plugin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thalesmg","download_url":"https://codeload.github.com/thalesmg/emqx-elixir-plugin-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892848,"owners_count":20850850,"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-10-28T08:52:33.369Z","updated_at":"2025-04-02T21:14:29.824Z","avatar_url":"https://github.com/thalesmg.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example EMQX Elixir Plugin Template\n\nAn example Mix project that can be used to build an EMQX 5.0.0 plugin.\n\n## Quickstart\n\n1. `make` or `MIX_ENV=prod mix release --overwrite`\n2. Copy `_build/prod/plugrelex/example/example-0.1.0` to the `plugins` directory in your EMQX installation.\n3. ```sh\n   emqx ctl plugins install example-0.1.0\n   emqx ctl plugins enable example-0.1.0\n   emqx ctl plugins start example-0.1.0\n   ```\n4. In a console in your broker (`emqx remote_console`):\n\n   ```elixir\n   :emqx.subscribe(\"topic\")\n   :emqx.publish(:emqx_message.make(\"topic\", \"payload\"))\n   ```\n\n   You should see your message printed by the plugin.\n\n   ```elixir\n   emqx_msg: %{\n     extra: [],\n     flags: %{},\n     from: :undefined,\n     headers: %{},\n     id: \u003c\u003c0, 5, 216, 140, 219, 62, 202, 170, 244, 66, 0, 0, 10, 211, 0, 0\u003e\u003e,\n     payload: \"payload\",\n     qos: 0,\n     timestamp: 1645474368899,\n     topic: \"topic\"\n   }\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Femqx-elixir-plugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalesmg%2Femqx-elixir-plugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalesmg%2Femqx-elixir-plugin-template/lists"}