Blazor

Blazor Native: a proof of concept that renders HTML and CSS without a browser

DEV Community: #blazor Florian Rappl
Blazor

Florian Rappl presents BlazorSharp, a proof of concept that renders Blazor components into an AngleSharp DOM and paints it inside an Avalonia window. With no webview and no JavaScript bridge, it sketches an alternative to Blazor Hybrid, and the article is candid about its limits.

Key points

  • The Blazor component model stays; a custom renderer applies render batches to an AngleSharp DOM.
  • Avalonia supplies only the window and input surface, while AngleSharp.Browser handles layout and painting.
  • Input events become DOM events and route back to component handlers, so @onclick and @oninput work.
  • The demo ships a counter, navigation, a timer-driven gallery, a ToDo list and theme settings.
  • CSS coverage is partial: grid, transitions, sticky positioning and font behavior can drift from a browser.
  • Virtualize, scoped CSS, prerendering and enhanced navigation are unsupported, and there is no accessibility tree.

Real-world use

  • Small, self-contained desktop UIs that must avoid any browser dependency
  • Razor component apps with controlled CSS that do not rely on browser-only libraries

This summary was generated by the agent from the original post on DEV Community: #blazor. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message