{"id":19781949,"url":"https://github.com/arthurfiorette/medicus","last_synced_at":"2025-05-13T04:58:10.334Z","repository":{"id":262287293,"uuid":"886779999","full_name":"arthurfiorette/medicus","owner":"arthurfiorette","description":"A framework agnostic healthcheck handler","archived":false,"fork":false,"pushed_at":"2025-05-12T17:51:29.000Z","size":872,"stargazers_count":9,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T04:58:03.787Z","etag":null,"topics":["agnostic","check","fastify","health","http","server"],"latest_commit_sha":null,"homepage":"http://medicus.js.org","language":"TypeScript","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/arthurfiorette.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"arthurfiorette"}},"created_at":"2024-11-11T15:36:33.000Z","updated_at":"2025-05-02T12:10:16.000Z","dependencies_parsed_at":"2024-12-16T18:20:40.189Z","dependency_job_id":"17bfcd99-e8d4-4fef-99aa-6eed9e38766f","html_url":"https://github.com/arthurfiorette/medicus","commit_stats":null,"previous_names":["arthurfiorette/medicus"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Fmedicus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Fmedicus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Fmedicus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfiorette%2Fmedicus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurfiorette","download_url":"https://codeload.github.com/arthurfiorette/medicus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253877509,"owners_count":21977643,"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":["agnostic","check","fastify","health","http","server"],"created_at":"2024-11-12T06:03:12.764Z","updated_at":"2025-05-13T04:58:10.324Z","avatar_url":"https://github.com/arthurfiorette.png","language":"TypeScript","funding_links":["https://github.com/sponsors/arthurfiorette"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003cb\u003eUsing this package?\u003c/b\u003e Please consider \u003ca href=\"https://github.com/sponsors/arthurfiorette\" target=\"_blank\"\u003edonating\u003c/a\u003e to support my open source work ❤️\n  \u003cbr /\u003e\n  \u003csup\u003e\n   Help medicus grow! Star and share this amazing repository with your friends and co-workers!\n  \u003c/sup\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\" title=\"Medicus's logo\"\u003e\n  \u003ca href=\"https://medicus.js.org\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg src=\"docs/public/medicus.svg\" width=\"180\" alt=\"Medicus logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca title=\"MIT license\" target=\"_blank\" href=\"https://github.com/arthurfiorette/medicus/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/arthurfiorette/medicus?color=bfb434\"\u003e\u003c/a\u003e\n  \u003ca title=\"Codecov\" target=\"_blank\" href=\"https://app.codecov.io/gh/arthurfiorette/medicus\"\u003e\u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/arthurfiorette/medicus?token=ML0KGCU0VM\u0026color=d2a72d\"\u003e\u003c/a\u003e\n  \u003ca title=\"NPM Package\" target=\"_blank\" href=\"https://www.npmjs.com/package/medicus\"\u003e\u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dw/medicus?style=flat\u0026color=de8f2e\"\u003e\u003c/a\u003e\n  \u003ca title=\"Bundle size\" target=\"_blank\" href=\"https://bundlephobia.com/package/medicus\"\u003e\u003cimg alt=\"Bundlephobia\" src=\"https://img.shields.io/bundlephobia/minzip/medicus/latest?style=flat\u0026color=e87430\"\u003e\u003c/a\u003e\n  \u003ca title=\"Last Commit\" target=\"_blank\" href=\"https://github.com/arthurfiorette/medicus/commits/main\"\u003e\u003cimg alt=\"Last commit\" src=\"https://img.shields.io/github/last-commit/arthurfiorette/medicus?color=f15633\"\u003e\u003c/a\u003e\n  \u003ca title=\"Blazingly fast\" target=\"_blank\" href=\"https://twitter.com/acdlite/status/974390255393505280\"\u003e\u003cimg src=\"https://img.shields.io/badge/blazingly-fast-fa3737\"/\u003e\u003c/a\u003e\n  \n\u003c/p\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n# Medicus\n\n\u003e Flexible and agnostic health checks. Ensure the post-deployment health of your services.\n\n\u003cbr /\u003e\n\nMedicus is a comprehensive, agnostic health check library for Node.js. It provides an easy way to monitor the health of various services and integrates seamlessly with Fastify.\n\n\u003cbr /\u003e\n\n[Read the docs to **Learn More**.](https://arthur.run/medicus)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n```ts\nimport { Medicus, HealthStatus } from 'medicus';\n\nconst medicus = new Medicus();\n\n// Add health checkers\nmedicus.addChecker({\n  database() {\n    // Custom health logic\n    return HealthStatus.HEALTHY;\n  },\n  async cache() {\n    // Simulate an unhealthy status\n    return HealthStatus.UNHEALTHY;\n  }\n});\n\n// Perform a health check\nconst result = await medicus.performCheck(true);\n// {\n//   status: 'UNHEALTHY',\n//   services: {\n//     database: { status: 'HEALTHY' },\n//     cache: { status: 'UNHEALTHY' }\n//   }\n// }\n```\n\n\u003cbr /\u003e\n\n## License\n\nLicensed under the **MIT**. See [`LICENSE`](LICENSE) for more information.\n\n\u003cbr /\u003e\n\n## Star History\n\n\u003ca href=\"https://star-history.com/#arthurfiorette/medicus\u0026Date\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=arthurfiorette/medicus\u0026type=Date\u0026theme=dark\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=arthurfiorette/medicus\u0026type=Date\" /\u003e\n    \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=arthurfiorette/medicus\u0026type=Date\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## All Thanks To Our Contributors:\n\n\u003ca href=\"https://github.com/arthurfiorette/medicus/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=arthurfiorette/medicus\" /\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfiorette%2Fmedicus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurfiorette%2Fmedicus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfiorette%2Fmedicus/lists"}