A Blazor library that provides easy access to browser APIs without the need to use any JavaScript.
Since JavaScript functionality for Blazor is primarly used for accessing BrowserAPIs, for most applications there will be no need to write any additional JavaScript.
It supports asynchronous communication as well as synchronous (JSRuntime and JSInProcessRuntime).
For documentation or sourcecode see github.com/BlackWhiteYoshi/Blazor.BrowserAPI.
You can find the test page at blazor-browserapi.firerocket.de.
- Clipboard
- Console
- CookieStorage
- Dialog
- Download
- Geolocation
- HTMLElement
- HTMLMediaElement (audio/video)
- Language
- LocalStorage
- MediaDevices (microphone/camera)
- SensorAPI
- ServiceWorker
- SessionStorage
- Add PackageReference to your .csproj file
<ItemGroup>
<PackageReference Include="Blazor.BrowserAPI" Version="{latest version}" />
</ItemGroup>
- Register BrowserAPI in your dependency container
using BrowserAPI;
services.AddBrowserAPI();
For documentation or sourcecode see github.com/BlackWhiteYoshi/Blazor.BrowserAPI.