{"id":22081339,"url":"https://github.com/ba32107/dotnet-chrome-native-messaging","last_synced_at":"2025-07-24T14:32:43.991Z","repository":{"id":38336097,"uuid":"230122065","full_name":"ba32107/dotnet-chrome-native-messaging","owner":"ba32107","description":"Chrome Native Messaging Host libraries in .NET","archived":false,"fork":false,"pushed_at":"2023-05-31T21:22:50.000Z","size":69,"stargazers_count":25,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T06:20:35.882Z","etag":null,"topics":["chrome","chrome-extension","dotnet","dotnet-standard"],"latest_commit_sha":null,"homepage":"","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/ba32107.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}},"created_at":"2019-12-25T15:40:52.000Z","updated_at":"2025-05-20T04:47:20.000Z","dependencies_parsed_at":"2024-12-02T00:17:24.252Z","dependency_job_id":null,"html_url":"https://github.com/ba32107/dotnet-chrome-native-messaging","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ba32107/dotnet-chrome-native-messaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ba32107%2Fdotnet-chrome-native-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ba32107%2Fdotnet-chrome-native-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ba32107%2Fdotnet-chrome-native-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ba32107%2Fdotnet-chrome-native-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ba32107","download_url":"https://codeload.github.com/ba32107/dotnet-chrome-native-messaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ba32107%2Fdotnet-chrome-native-messaging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266855908,"owners_count":23995582,"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-24T02:00:09.469Z","response_time":99,"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":["chrome","chrome-extension","dotnet","dotnet-standard"],"created_at":"2024-11-30T23:23:42.187Z","updated_at":"2025-07-24T14:32:43.703Z","avatar_url":"https://github.com/ba32107.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Chrome Native Messaging Host libraries in .NET\n\n[\u003cimg src=\"https://img.shields.io/nuget/v/Chrome.NativeMessaging?label=Chrome.NativeMessaging\"\u003e](https://www.nuget.org/packages/Chrome.NativeMessaging/)\n[\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/ba32107/dotnet-chrome-native-messaging/master_chrome_native_messaging.yaml?branch=main(Chrome.NativeMessaging)\"\u003e](#)\n[\u003cimg src=\"https://img.shields.io/nuget/dt/Chrome.NativeMessaging\"\u003e](#)  \n\n[\u003cimg src=\"https://img.shields.io/nuget/v/Chrome.NativeMessaging.Installer?label=Chrome.NativeMessaging.Installer\"\u003e](https://www.nuget.org/packages/Chrome.NativeMessaging.Installer/)\n[\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/ba32107/dotnet-chrome-native-messaging/master_chrome_native_messaging_installer.yaml?branch=main(Chrome.NativeMessaging.Installer)\"\u003e](#)\n[\u003cimg src=\"https://img.shields.io/nuget/dt/Chrome.NativeMessaging.Installer\"\u003e](#)  \n  \nA simple and intuitive .NET implementation of the [Chrome Native Messaging](https://developer.chrome.com/apps/nativeMessaging) protocol.\n\n* Easy to use\n* No JSON parsing or dependencies\n* .NET Standard \u0026 platform independent\n* Testable through abstractions\n* Async support\n* Separate installer library\n* NuGet packages available\n\n### Chrome.NativeMessaging\n\nCreating a native messaging host is dead simple: just call `StartListening` and pass in your message handler as a `Func\u003cstring, string\u003e`:\n```C#\nvar host = new NativeMessagingHost();\nhost.StartListening(jsonMessage =\u003e\n{\n    var response = DoSomethingAndCreateResponse(jsonMessage);\n    return response;\n});\n```\n\nTo learn more, check out [the docs](https://github.com/ba32107/dotnet-chrome-native-messaging/blob/master/docs/Chrome.NativeMessaging.md) and the [Examples](https://github.com/ba32107/dotnet-chrome-native-messaging/blob/master/docs/Examples.md) page.\n\n### Chrome.NativeMessaging.Installer\n\nUse this package to install your native messaging host. Just create a manifest and let the library do the rest:\n```C#\nvar manifest = new NativeMessagingHostManifest\n{\n    Name = \"com.my_company.my_application\",\n    Description = \"My Application\",\n    Path = @\"C:\\Program Files\\My Application\\chrome_native_messaging_host.exe\",\n    AllowedOrigins = new []\n    {\n        \"knldjmfmopnpolahpmmgbagdohdnhkik\"\n    }\n};\n\n// System.IO.Abstractions\nvar fs = new FileSystem();\n\nvar installer = NativeMessagingHostInstallerFactory.CreateInstaller(fs);\ninstaller.Install(manifest);\n```\nRead [the docs](https://github.com/ba32107/dotnet-chrome-native-messaging/blob/master/docs/Chrome.NativeMessaging.Installer.md) to learn more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fba32107%2Fdotnet-chrome-native-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fba32107%2Fdotnet-chrome-native-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fba32107%2Fdotnet-chrome-native-messaging/lists"}