{"id":29883974,"url":"https://github.com/thedmi/capsule","last_synced_at":"2025-07-31T14:25:06.794Z","repository":{"id":220831721,"uuid":"740188946","full_name":"thedmi/capsule","owner":"thedmi","description":"Automatic thread-safe objects for .NET","archived":false,"fork":false,"pushed_at":"2025-07-03T15:27:49.000Z","size":791,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T16:29:15.093Z","etag":null,"topics":["actor-model","csharp","run-to-completion","state-machine","thread-safety"],"latest_commit_sha":null,"homepage":"https://thedmi.github.io/capsule/","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/thedmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-01-07T19:22:53.000Z","updated_at":"2025-07-03T15:20:26.000Z","dependencies_parsed_at":"2024-04-16T12:45:20.771Z","dependency_job_id":"470339b4-b631-4b6a-8ee9-19bee538e00b","html_url":"https://github.com/thedmi/capsule","commit_stats":null,"previous_names":["thedmi/capsule"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/thedmi/capsule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmi%2Fcapsule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmi%2Fcapsule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmi%2Fcapsule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmi%2Fcapsule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedmi","download_url":"https://codeload.github.com/thedmi/capsule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedmi%2Fcapsule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268056496,"owners_count":24188538,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["actor-model","csharp","run-to-completion","state-machine","thread-safety"],"created_at":"2025-07-31T14:25:01.183Z","updated_at":"2025-07-31T14:25:06.783Z","avatar_url":"https://github.com/thedmi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Capsule\n\n![dotnet workflow](https://github.com/thedmi/capsule/actions/workflows/dotnet.yml/badge.svg)\n\n[![NuGet packages](https://img.shields.io/nuget/v/Capsule.Core.svg?label=nuget%20Capsule.Core)](https://www.nuget.org/packages/Capsule.Core/)\n[![NuGet packages](https://img.shields.io/nuget/v/Capsule.Generator.svg?label=nuget%20Capsule.Generator)](https://www.nuget.org/packages/Capsule.Generator/)\n[![NuGet packages](https://img.shields.io/nuget/v/Capsule.Testing.svg?label=nuget%20Capsule.Testing)](https://www.nuget.org/packages/Capsule.Testing/)\n\nCapsule is a .NET library and C# source generator that provides thread-safe object encapsulation in an automatic and boilerplate-free way. It can be used as run-to-completion runtime for state machines, as actor library or just to avoid manual locking and synchronization code.\n\nCapsule turns ordinary objects into thread-safe *capsules*. A capsule can be used *concurrently* without the risk of race conditions. The original interface is retained, so this is *transparent* for callers.\n\n![Encapsulating an object](docs/docs/capsule.drawio.svg)\n\nTo create a capsule, you provide an implementation (green) and specify how the methods and properties (yellow) are to be encapsulated. Capsule then adds synchronization infrastructure (blue) and the hull (red), a generated interface adapter.\n\nApart from a few attributes and the requirement to make methods `async`, implementations remain free of synchronization code. This keeps code readable and focused. It also improves testability because synchronization concerns are separated.\n\nSee [docs](https://thedmi.github.io/capsule) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedmi%2Fcapsule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedmi%2Fcapsule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedmi%2Fcapsule/lists"}