{"id":40070525,"url":"https://github.com/kpol/healthcheckr","last_synced_at":"2026-01-22T04:02:39.816Z","repository":{"id":333413612,"uuid":"1137202744","full_name":"kpol/HealthCheckr","owner":"kpol","description":"A lightweight health check library for .NET and Azure Functions that runs async checks in parallel, preserves execution order and returns a clean JSON response with status, durations and optional error details.","archived":false,"fork":false,"pushed_at":"2026-01-19T07:31:03.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T13:29:14.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/kpol.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-19T03:58:33.000Z","updated_at":"2026-01-19T07:26:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kpol/HealthCheckr","commit_stats":null,"previous_names":["kpol/healthcheckr"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/kpol/HealthCheckr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpol%2FHealthCheckr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpol%2FHealthCheckr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpol%2FHealthCheckr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpol%2FHealthCheckr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpol","download_url":"https://codeload.github.com/kpol/HealthCheckr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpol%2FHealthCheckr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28653632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-19T08:07:52.095Z","updated_at":"2026-01-22T04:02:39.811Z","avatar_url":"https://github.com/kpol.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HealthCheckr\n\nLightweight async health checks for .NET and Azure Functions with ordered results and clean JSON output.\n\n[![CI Build](https://github.com/kpol/HealthCheckr/actions/workflows/dotnetcore.yml/badge.svg)](https://github.com/kpol/HealthCheckr/actions/workflows/dotnetcore.yml)\n[![Nuget](https://img.shields.io/nuget/v/HealthCheckr.svg?logo=nuget)](https://www.nuget.org/packages/HealthCheckr)\n\n## Features\n\n* Async health checks with support for `CancellationToken`\n* Preserve registration order in JSON response\n* Optional duration tracking per check\n* Optional error reporting per check\n* Configurable HTTP status codes for Healthy, Degraded, and Unhealthy states\n* JSON output with enum status serialized as string\n* Compatible with .NET 8+ (future .NET 10 support)\n\n---\n\n## Installation\n\nInstall via NuGet:\n\n```bash\ndotnet add package HealthCheckr\n```\n\nOr via the NuGet Package Manager:\n\n```\nPM\u003e Install-Package HealthCheckr\n```\n\n---\n\n## Usage\n\n```csharp\nusing HealthCheckr;\n\nvar checker = new HealthChecker()\n    .AddCheck(\"Database\", async ct =\u003e {\n        // perform your database check\n        return HealthStatus.Healthy;\n    }, \"Checks database connectivity\")\n    .AddCheck(\"Cache\", async ct =\u003e {\n        // perform cache check\n        return HealthStatus.Degraded;\n    }, \"Checks Redis cache availability\");\n\nvar result = await checker.CheckAsync();\n\nConsole.WriteLine(result.ToJson());\n```\n\n### Example JSON Output\n\n```json\n{\n  \"status\": \"Degraded\",\n  \"checks\": [\n    {\n      \"name\": \"Database\",\n      \"description\": \"Checks database connectivity\",\n      \"status\": \"Healthy\",\n      \"durationMs\": 12\n    },\n    {\n      \"name\": \"Cache\",\n      \"description\": \"Checks Redis cache availability\",\n      \"status\": \"Degraded\",\n      \"durationMs\": 8\n    }\n  ],\n  \"totalDurationMs\": 20,\n  \"timestamp\": \"2026-01-19T11:15:23.123Z\"\n}\n```\n\n---\n\n## Configuration\n\n* `IncludeErrors` \u0026ndash; Include exception details for failing checks.\n* `IncludeDuration` \u0026ndash; Include execution duration per check.\n* `HealthyHttpStatusCode` / `DegradedHttpStatusCode` / `UnhealthyHttpStatusCode` \u0026ndash; Customize HTTP response codes for overall status.\n\n---\n\n## Contributing\n\nContributions are welcome. Please open an issue or pull request on GitHub.\n\n---\n\n## License\n\n\u0026copy; Kirill Polishchuk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpol%2Fhealthcheckr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpol%2Fhealthcheckr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpol%2Fhealthcheckr/lists"}