{"id":13508114,"url":"https://github.com/whatyouhide/plug_heartbeat","last_synced_at":"2025-06-29T11:32:35.750Z","repository":{"id":53715475,"uuid":"30313818","full_name":"whatyouhide/plug_heartbeat","owner":"whatyouhide","description":"A plug for responding to heartbeat requests.","archived":false,"fork":false,"pushed_at":"2021-03-18T14:48:24.000Z","size":15,"stargazers_count":36,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-17T19:54:23.940Z","etag":null,"topics":["elixir","plug"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/plug_heartbeat","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whatyouhide.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-04T18:21:59.000Z","updated_at":"2023-02-15T17:56:01.000Z","dependencies_parsed_at":"2022-09-26T19:31:11.747Z","dependency_job_id":null,"html_url":"https://github.com/whatyouhide/plug_heartbeat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/whatyouhide/plug_heartbeat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fplug_heartbeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fplug_heartbeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fplug_heartbeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fplug_heartbeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whatyouhide","download_url":"https://codeload.github.com/whatyouhide/plug_heartbeat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fplug_heartbeat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262586092,"owners_count":23332784,"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":["elixir","plug"],"created_at":"2024-08-01T02:00:48.249Z","updated_at":"2025-06-29T11:32:35.690Z","avatar_url":"https://github.com/whatyouhide.png","language":"Elixir","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"readme":"# PlugHeartbeat\n\n![](https://github.com/whatyouhide/plug_heartbeat/workflows/CI/badge.svg)\n\nA tiny plug for responding to heartbeat requests.\n\n## Installation and docs\n\n[Documentation is available on hex.pm][docs].\n\nAdd a dependency to your application's `mix.exs` file:\n\n```elixir\ndefp deps do\n  [{:plug_heartbeat, \"~\u003e 1.0\"}]\nend\n```\n\nthen run `mix deps.get`.\n\n## Usage\n\nJust plug this plug (sorry) in your plug pipeline:\n\n```elixir\ndefmodule MyServer do\n  use Plug.Builder\n  plug PlugHeartbeat\n  # ... rest of the pipeline\nend\n```\n\nWith this setup, all `GET` and `HEAD` requests to `/heartbeat` will return a\n*200 OK* status and `OK` as the body. This path can be customized through the\n`:path` option:\n\n```elixir\ndefmodule MyServer do\n  use Plug.Builder\n  plug PlugHeartbeat, path: \"/health\"\n  # ... rest of the pipeline\nend\n```\n\nThat's pretty much it, but the [docs][docs] contain further details.\n\n## License\n\nMIT \u0026copy; Andrea Leopardi, see the [license file][license].\n\n\n[license]: LICENSE.txt\n[docs]: https://hex.pm/packages/plug_heartbeat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatyouhide%2Fplug_heartbeat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhatyouhide%2Fplug_heartbeat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatyouhide%2Fplug_heartbeat/lists"}