{"id":16368277,"url":"https://github.com/bfren/wrap","last_synced_at":"2026-02-20T14:01:12.090Z","repository":{"id":187408252,"uuid":"673908606","full_name":"bfren/wrap","owner":"bfren","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-21T21:11:38.000Z","size":55023,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T10:01:10.678Z","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/bfren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"bfren","patreon":"bfren"}},"created_at":"2023-08-02T17:42:36.000Z","updated_at":"2026-01-21T21:11:30.000Z","dependencies_parsed_at":"2023-09-22T20:47:01.133Z","dependency_job_id":"30d321ed-36f2-4074-9a49-23ac6f3f0183","html_url":"https://github.com/bfren/wrap","commit_stats":null,"previous_names":["bfren/monadic","bfren/monads"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/bfren/wrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Fwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Fwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Fwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Fwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfren","download_url":"https://codeload.github.com/bfren/wrap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Fwrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28733590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-11T02:52:14.369Z","updated_at":"2026-02-20T14:01:12.077Z","avatar_url":"https://github.com/bfren.png","language":"C#","funding_links":["https://github.com/sponsors/bfren","https://patreon.com/bfren"],"categories":[],"sub_categories":[],"readme":"# Wrap Monads (C#)\n\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/bfren/wrap?include_prereleases\u0026label=Release) [![Nuget](https://img.shields.io/nuget/dt/Wrap?label=Downloads)](https://www.nuget.org/packages/wrap/) [![GitHub](https://img.shields.io/github/license/bfren/wrap?label=Licence)](https://mit.bfren.dev/2019)\u003cbr/\u003e[![Test](https://github.com/bfren/wrap/actions/workflows/test.yml/badge.svg)](https://github.com/bfren/wrap/actions/workflows/test.yml) [![Publish](https://github.com/bfren/wrap/actions/workflows/publish.yml/badge.svg)](https://github.com/bfren/wrap/actions/workflows/publish.yml) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/6194f797b6ff44d68d3ea6624d0a36aa)](https://app.codacy.com/gh/bfren/wrap/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\nVarious monads (including Maybe - see [here](https://en.wikipedia.org/wiki/Monad_(functional_programming)#An_example:_Maybe)) for C# - to handle null values and exceptions better - including Linq support, chaining, and asynchronous programming.  Includes:\n\n- `Either\u003cTLeft, TRight\u003e`\n- `Monad\u003cT\u003e`\n- `Id\u003cT\u003e` (support for `int`, `uint`, `long`, `ulong` and `Guid` value types)\n- `Maybe\u003cT\u003e` (either: `Some\u003cT\u003e` or `None`)\n- `Result\u003cT\u003e` (either: `Ok\u003cT\u003e` or `Failure`)\n\nView the [Wiki](https://github.com/bfren/wrap/wiki) for documentation.\n\n## History\n\nAlthough this library is at v1, it brings together some mature projects I have been working on since 2019. It started with a Result\u003cT\u003e implementation which morphed into Maybe - which reached v10 in November 2025 - and I figured it would be best to have both.\n\nAt the same time I was maintaining a StrongId library - which reached v8.5 in November 2024 - to avoid using primitives for Entity IDs. I realised the similarities between Result\u003cT\u003e, Maybe\u003cT\u003e and Id\u003cT\u003e and decided to bring them all together in one library: Wrap.\n\n## Licence\n\n\u003e [MIT](https://mit.bfren.dev/2019)\n\n## Copyright\n\n\u003e Copyright (c) 2019-2026 [bfren](https://bfren.dev) (unless otherwise stated)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfren%2Fwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfren%2Fwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfren%2Fwrap/lists"}