Blazor logo

Blazor

An experimental web UI framework using C#/Razor and HTML, running in the browser via WebAssembly
516
695
+ 1
440

What is Blazor?

Blazor is a .NET web framework that runs in any browser. You author Blazor apps using C#/Razor and HTML.
Blazor is a tool in the Front-End Frameworks category of a tech stack.
Blazor is an open source tool with GitHub stars and GitHub forks. Here’s a link to Blazor's open source repository on GitHub

Who uses Blazor?

Companies
31 companies reportedly use Blazor in their tech stacks, including Scopeland Technology GmbH, Objectivity Software Development, and Weland Solutions AB.

Developers
475 developers on StackShare have stated that they use Blazor.

Blazor Integrations

C#, .NET, WebAssembly, FluentValidation, and ABP Commercial are some of the popular tools that integrate with Blazor. Here's a list of all 6 tools that integrate with Blazor.
Pros of Blazor
62
Uses C#
48
No need to learn separate language or technology
41
Supports making a single page application
39
Tight integration with .NET project
37
Uses .NET standard library
30
Very little JavaScript required
29
Components
27
Shared classes between client and server
27
No need to compile, bundle and deploy separately
24
Cross Platform
21
Has Server AND Client hosting models
18
Very easy JavaScript interop if required
17
Third party state management i.e. Blazor-State
14
App state can be managed singleton objects
4
Portable Code across Mobile, Web and Desktop
2
Work with Electron/MAUI
Decisions about Blazor

Here are some stack decisions, common use cases and reviews by companies and developers who chose Blazor in their tech stack.

Needs advice
on
BlazorBlazor
and
Quasar FrameworkQuasar Framework

The only two programming languages I know are Python and Dart, I fall in love with Dart when I learned about the type safeness, ease of refactoring, and the help of the IDE. I have an idea for an app, a simple app, but I need SEO and server rendering, and I also want it to be available on all platforms. I can't use Flutter or Dart anymore because of that. I have been searching and looks like there is no way to avoid learning HTML and CSS for this. I want to use Supabase as BASS, at the moment I think that I have two options if I want to learn the least amount of things because of my lack of time available:

  1. Quasar Framework: They claim that I can do all the things I need, but I have to use JavaScript, and I am going to have all those bugs with a type-safe programming language avoidable. I guess I can use TypeScript?, but that means learning both, and I am not sure if I will be able to use 100% Typescript. Besides Vue.js, Node.js, etc.

  2. Blazor and .NET: There is MAUI with razor bindings in .Net now, and also a Blazor server. And as far as I can see, the transition from Dart to C# will be easy. I guess that I have to learn some Javascript here and there, but I have to less things I guess, am I wrong? But Blazor is a new technology, Vue is widely used.

See more

Blazor's Features

  • Uses only the latest web standards
  • No plugins or transpilation needed
  • A component model for building composable UI
  • Routing
  • Layouts
  • Forms and validation
  • Dependency injection
  • JavaScript interop
  • Live reloading in the browser during development
  • Server-side rendering
  • Full .NET debugging both in browsers and in the IDE
  • Rich IntelliSense and tooling
  • Ability to run on older (non-WebAssembly) browsers via asm.js
  • Publishing and app size trimming

Blazor Alternatives & Comparisons

What are some alternatives to Blazor?
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Vaadin
It is the fastest way to build web applications in Java. It automates the communication between your server and the browser and gives you a high-level component API for all Vaadin components
Xamarin
Xamarin’s Mono-based products enable .NET developers to use their existing code, libraries and tools (including Visual Studio*), as well as skills in .NET and the C# programming language, to create mobile applications for the industry’s most widely-used mobile devices, including Android-based smartphones and tablets, iPhone, iPad and iPod Touch.
Flutter
Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.
See all alternatives

Blazor's Followers
695 developers follow Blazor to keep up with related blogs and decisions.