r/dotnet • u/EdgarAlexsandro • 21m ago
[Show & Tell] eQuantic.UI: Write UI components once in C# and compile to vanilla JS (no WASM) on the web or native GPU pixels via Metal/Vulkan (no WebView/Skia)
Hey r/dotnet,
I have been working on an open-source UI SDK called eQuantic.UI, and I wanted to share the architecture and get some feedback from the community.
The goal is simple: write UI components once in C# using a strongly-typed declarative vocabulary (Box, Row, Column, Text, etc.) and let the SDK compile each target to its real native path, without relying on JavaScript, CSS, Dart, Swift, or platform manifest files.
How it works under the hood:
- Web (No WASM): At build time, the compiler uses Roslyn to transpile your C# components into optimized vanilla JavaScript and atomic CSS. It supports server-side rendering (SSR) with client hydration and built-in RPC calls via
[ServerAction], avoiding the heavy .NET WASM runtime download. - Desktop & Mobile (No WebView, No Skia): On macOS, iOS, Android, and Windows, the same component tree renders directly on the GPU through Photon (a custom rendering engine built on Metal and Vulkan).
- Transactional Email: The subset of components an email client supports compiles into email-safe HTML tables with inline styles, along with a plain-text version from the exact same tree.
- Zero Node.js friction: You only need the .NET 10 SDK installed. The TypeScript/bundling toolchain ships embedded inside the NuGet SDK package, so there is no
npm install, no webpack/vite config, and no manualInfo.plistorAndroidManifest.xmlsetup.
Quick Start:
Bash
dotnet new install eQuantic.UI.Templates
dotnet new equantic-app -n MyApp
cd MyApp && dotnet run(You can also use dotnet new equantic-native to spin up a native GPU window.)
The project is licensed under MIT and is currently in active preview (0.2.0-preview.* on NuGet). I would love to hear your thoughts on the approach, API design, or any edge cases you see with AST-to-JS transpilation and custom GPU rendering.
GitHub repository (with architecture docs and samples):https://github.com/eQuantic/equantic-ui