WebUI is a high-performance, language-agnostic server-side rendering framework built in Rust. It compiles HTML templates into compact Protocol Buffer binaries at build time so runtime rendering applies state without reparsing templates. Interactive Web Components hydrate as islands on the client.
Documentation: microsoft.github.io/webui
- Compiled templates: HTML is parsed once at build time into a compact binary protocol.
- Language agnostic: Rust, Node/Bun/Deno, C#, Python, Go, and any language that can call C FFI.
- Web Components: Native custom elements with Shadow DOM support.
- Server-side logic: Conditions, loops, and expressions are evaluated on the server.
- Plugin-ready: Parser and handler plugins support framework-specific hydration and directives.
npm install @microsoft/webuiOr install the Rust CLI:
cargo install microsoft-webui-cli| Resource | Link |
|---|---|
| Full documentation | https://microsoft.github.io/webui |
| Getting started | https://microsoft.github.io/webui/guide/ |
| CLI reference | https://microsoft.github.io/webui/guide/cli/ |
| Language integrations | https://microsoft.github.io/webui/guide/integrations |
| Benchmarks | BENCHMARKS.md |
Prerequisites:
- Rust 1.93+ with
clippyandrustfmt - Node.js 22+ with pnpm
Common commands:
| Command | Description |
|---|---|
cargo xtask check |
Run the full repository quality gate before commits |
cargo xtask fmt |
Check formatting |
cargo xtask clippy |
Run clippy lints |
cargo xtask test |
Run all tests |
cargo xtask build |
Build the workspace and examples |
cargo xtask dev <app> |
Run an example app in development mode |
cargo xtask bench <target> |
Run benchmarks |
For contribution policy, issue guidelines, and the current pull request policy, see CONTRIBUTING.md.
crates/ Rust crates for the CLI, parser, handler, protocol, FFI, and integrations
packages/ npm packages for the CLI, WebUI Framework, router, and platform binaries
docs/ VitePress documentation site
examples/ Example applications and integration samples
WebUI is still in active development. We are not accepting unsolicited pull requests right now, but we do welcome well-documented issues:
| Need | Where to go |
|---|---|
| Report a bug | CONTRIBUTING.md#bugs |
| Request a feature | CONTRIBUTING.md#feature-requests |
| Report a documentation need | CONTRIBUTING.md#documentation-issues |
| Get support guidance | SUPPORT.md |
| Report a security issue | SECURITY.md |
This project has adopted the Microsoft Open Source Code of Conduct.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third party policies.
MIT