{"id":16732415,"url":"https://github.com/expelledboy/plugerl","last_synced_at":"2025-04-10T11:26:30.714Z","repository":{"id":57534558,"uuid":"101199680","full_name":"expelledboy/plugerl","owner":"expelledboy","description":"Most simple plugin system using Erlang behaviours.","archived":false,"fork":false,"pushed_at":"2017-08-23T16:11:56.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T10:12:16.366Z","etag":null,"topics":["plugin-loader"],"latest_commit_sha":null,"homepage":null,"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/expelledboy.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":"2017-08-23T16:03:51.000Z","updated_at":"2020-02-09T17:59:07.000Z","dependencies_parsed_at":"2022-09-26T18:21:38.082Z","dependency_job_id":null,"html_url":"https://github.com/expelledboy/plugerl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expelledboy%2Fplugerl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expelledboy%2Fplugerl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expelledboy%2Fplugerl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expelledboy%2Fplugerl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/expelledboy","download_url":"https://codeload.github.com/expelledboy/plugerl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248077539,"owners_count":21043978,"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":["plugin-loader"],"created_at":"2024-10-12T23:44:18.423Z","updated_at":"2025-04-10T11:26:30.687Z","avatar_url":"https://github.com/expelledboy.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Plugerl\n=======\n\n[![Travis](https://img.shields.io/travis/expelledboy/plugerl.svg)](https://travis-ci.org/expelledboy/plugerl)\n[![Hex.pm](https://img.shields.io/hexpm/v/plugerl.svg)](https://hex.pm/packages/plugerl)\n[![Hex.pm](https://img.shields.io/hexpm/dt/plugerl.svg)](https://hex.pm/packages/plugerl)\n\nMost simple plugin system using Erlang behaviours.\n\n### Usage\n\nModule that uses plugins.\n\n```erlang\n-callback install(Config :: map()) -\u003e ok | {error, atom()}.\n\nmain() -\u003e\n    Config = project:config(),\n    plugerl:over(my_behaviour, with_my_behaviours(Config)),\n    loop().\n\nloop() -\u003e\n    receive Msg -\u003e io:format(\"~p~n\", [Msg]) end,\n    loop().\n\nwith_my_behaviours(Config) -\u003e\n    fun(Plugin) -\u003e\n        Plugin:install(Config)\n    end.\n```\n\nPlugin module.\n\n```erlang\ninstall(Config) -\u003e\n    Timeout = maps:get(timeout, Config, 10),\n    timer:send_interval(Timeout, from_plugin).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpelledboy%2Fplugerl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpelledboy%2Fplugerl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpelledboy%2Fplugerl/lists"}