{"id":13770631,"url":"https://github.com/aschuhardt/Opal","last_synced_at":"2025-05-11T03:32:50.354Z","repository":{"id":124113223,"uuid":"488484195","full_name":"aschuhardt/Opal","owner":"aschuhardt","description":"A .NET client library for the Gemini protocol","archived":false,"fork":false,"pushed_at":"2024-01-06T21:19:58.000Z","size":178,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-20T15:43:44.246Z","etag":null,"topics":["csharp","dotnet","dotnet-core","dotnet-standard","dotnet6","dotnet7","dotnet8","gemini","gemini-client","gemini-protocol","smolnet","titan","titan-protocol"],"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/aschuhardt.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}},"created_at":"2022-05-04T06:58:55.000Z","updated_at":"2024-04-29T22:38:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99c8041-7458-43fc-b744-5b7139fe3087","html_url":"https://github.com/aschuhardt/Opal","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuhardt%2FOpal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuhardt%2FOpal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuhardt%2FOpal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuhardt%2FOpal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschuhardt","download_url":"https://codeload.github.com/aschuhardt/Opal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":["csharp","dotnet","dotnet-core","dotnet-standard","dotnet6","dotnet7","dotnet8","gemini","gemini-client","gemini-protocol","smolnet","titan","titan-protocol"],"created_at":"2024-08-03T17:00:40.027Z","updated_at":"2025-05-11T03:32:49.948Z","avatar_url":"https://github.com/aschuhardt.png","language":"C#","funding_links":[],"categories":["Programming"],"sub_categories":["Graphical"],"readme":"![Opal on Nuget](https://img.shields.io/nuget/v/Opal) ![Opal build](https://img.shields.io/github/actions/workflow/status/aschuhardt/Opal/dotnet.yml?branch=main) ![Last commit](https://img.shields.io/github/last-commit/aschuhardt/Opal) ![MIT](https://img.shields.io/github/license/aschuhardt/Opal)\n\n# Opal\nA client library for the Gemini and Titan protocols targeting .NET Standard 2.0 and .NET 7\n\n## Features\n- Asynchronous requests\n- Typed Gemtext document handling\n- Event-based user input\n- Configurable redirect behavior\n- Optional client certificate support with creation and persistence\n- Optional TOFU semantics with persistent certificate caching\n- No external dependencies\n\n## Usage\nInstall the Nuget package\n\n```\nInstall-Package Opal -Version 1.7.6\n```\n\nCreate an instance of a client and make requests\n\n```csharp\n// the default behavior is to automatically follow redirects and to persit \n// local and remote certificates to disk\nvar client = new OpalClient();\n\nvar response = await client.SendRequestAsync(\"gemini.circumlunar.space\");\n\nif (response is GemtextResponse gmi)\n{\n  // the response body may accessed directly...\n  await using (var reader = new StreamReader(gmi.Body))\n    Console.WriteLine(reader.ReadToEnd());\n  \n  // ... or as a collection of strongly-typed ILine objects\n  foreach (var line in gmi.AsDocument())\n  {\n    if (line is LinkLine link)\n      Console.WriteLine($\"Found link to {link.Uri}\");\n     \n    Console.WriteLine(line);\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuhardt%2FOpal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschuhardt%2FOpal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuhardt%2FOpal/lists"}