IEvangelist/blazorators ? reverse-engineered prompt
Reverse engineered prompt
Build me a C# solution for Blazor JavaScript interop that gives me strongly typed wrappers around browser APIs, so I can call JavaScript from Blazor without hand writing a lot of glue code.
I want it to support both Blazor WebAssembly and Blazor Server, with a clean DI friendly service style, and a source generator that can turn TypeScript style declarations into C# interfaces and callable methods. It should include ready to use packages for common browser features like local storage, session storage, geolocation, speech synthesis, speech recognition, and permissions, plus a broader DOM interop layer if that fits.
Please also include a couple of simple sample apps or demos that show how someone would register the services and call them from a Blazor page. If you need to check current .NET or Blazor docs while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit