{"repo":"KristofferStrube/Blazor.Streams","free":true,"listed":false,"github":"https://github.com/KristofferStrube/Blazor.Streams","clone":"git clone https://github.com/KristofferStrube/Blazor.Streams.git","description":"A Blazor wrapper for the Streams browser API.","language":"C#","stars":20,"topics":["blazor","blazor-interop","csharp","dotnet","filesystem","github-actions","github-pages","jsinterop","readable-stream","streams"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Introduction A Blazor wrapper for the browser API Streams The API standardizes ways to create, compose, and consume streams of data that map to low-level I/O primitives in the browser. This project implements a wrapper around the API for Blazor so that we can easily and safely interact with the streams of the browser. Demo The sample project can be demoed at https://kristofferstrube.github.io/Blazor.Streams/ On each page you can find the corresponding code for the example in the top right corner. On the API Coverage Status page, you can see how much of the WebIDL specs this wrapper has covered. Getting Started The package can be used in Blazor projects. Prerequisites You need to install .NET 7.0 or newer to use the library. Download .NET 7 Installation You can install the package via Nuget with the Package Manager in your IDE or alternatively using the command line: Import You need to reference the package in order to use it in your pages. This can be done in Import.razor by adding the following. Creating wrapper instance We can call the constructor for ReadableStream , WritableStream , or TransformStream from C# and work on these objects like so: For the above example we use two small JavaScript functions that basically serves as a way to convert the .NET DotNetStreamReference object into an IJSObjectReference and a way to get any attribute of an IJSObjectReference . These methods looks like this and can be defined in the index.html or host.razor page. Issues Feel free to op","default_branch":null,"files":null,"tree":[],"storefront":"/r/KristofferStrube","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KristofferStrube/Blazor.Streams/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}