oneapp
A framework for desktop apps in .NET whose UI is HTML and CSS, drawn natively with no web view.
It shows oneui components in oneplatform windows, and runs the same components in the browser.
Open source, MIT or Apache-2.0, made by Recursive AI. Version 1.0.0 is on NuGet, for .NET 10.
A quick look
A component is a template, an optional stylesheet and a partial class with the same name. AppHost opens the window, mounts the component and runs the loop until the window closes.
The markup compiler checks every binding, event and CSS property when the project builds. “The loop sleeps in the operating system until input, a timer the page asked for, or a posted action arrives, and it draws a frame only when the page changed, so an idle window uses no CPU.”
Run on Linux (X11) and driven with the oneapp tool, which clicks through the window’s own event queue.
<main> <h1>Counter</h1> <button id="add" on:click="Increment">Clicked {Count} times</button> </main>
using OneUI.Components; public partial class Counter { [State] public partial int Count { get; set; } private void Increment() => Count++; }
using OneApp; using var host = AppHost.Create(new AppOptions(new Counter()) { Title = "Counter", AppId = "org.example.Counter" }); host.Run();
dotnet oneapp run . --detach dotnet oneapp click '#add' # three times dotnet oneapp query '#add'
{"count":1,"matches":[{"tag":"button","id":"add", … "text":"Clicked 3 times", …}]}
One component, window and browser
The template’s page, built from the kit, in a window on Linux and as a custom element in Chrome.
Both after two clicks and the name set to “Ada”. In the window, OneApp draws the page; in the browser, the browser does.
Components in the browser
What it does
Desktop shell
Windows, dialogs, overlays, menus, tray, notifications, file dialogs, hotkeys, screenshots, single instance.
Component kit
Button, input, textarea, label, checkbox, switch, card, badge, separator, avatar, tabs, dialog, alert dialog, popover, dropdown menu, tooltip, toast, select, table and scroll area, themed through CSS custom properties. “The look follows shadcn/ui’s published design and is not affiliated with it.”
Test harness
“Debug builds listen for MCP on a local socket, so tests and automation tools can click, type, query the DOM and accessibility tree and capture pixels; Release builds contain no listener.”
Accessibility
AT-SPI on Linux, NSAccessibility on macOS and UI Automation on Windows, from OneHtml’s accessibility tree.
Packaging
oneapp install adds an app to your launcher. oneapp package writes a .deb, an AppImage or an .msix. On macOS, oneapp install makes a signed .app bundle and, when asked, a .dmg.
The packages
- App host
RecursiveAI.OneApp. The app host: windows, the loop, input, the desktop shell, the harness, accessibility bridges. - Kit
RecursiveAI.OneApp.Kit. A component kit with a shadcn/ui-style look, as OneUI markup components. It depends only on RecursiveAI.OneUI, so it runs natively and in the browser. - Browser
RecursiveAI.OneApp.Browser. Runs the same components in the browser as custom elements onbrowser-wasm. - Tool
RecursiveAI.OneApp.Cli. Theoneapptool: run, drive, install and package apps. - Template
RecursiveAI.OneApp.Templates. Thedotnet new oneapptemplate: one kit-based component, the app host, an app id and icon, and theoneapptool. - Requirements
.NET 10, C#, all five at version 1.0.0. “Native apps are NativeAOT- and trim-compatible.
AppHostwith HTML pages is native only.” MIT or Apache-2.0.
Platforms
| Window and drawing | Desktop services | Accessibility | Packaging | |
|---|---|---|---|---|
| Linux | Wayland (server-side decorations, layer-shell overlays) and X11; Vulkan | tray, notifications, file dialogs, global hotkeys, screenshots and single instance through the desktop portals and the session bus | AT-SPI | .deb, AppImage, desktop entry |
| macOS (Apple silicon) | Cocoa; Metal | menu bar, status item, notifications, file dialogs, single instance | NSAccessibility | .app bundle, .dmg |
| Windows | Win32; Vulkan where the driver has it, otherwise OneRender’s CPU rasterizer shown through GDI | menu bar, tray icon, notifications, file dialogs, global hotkeys, screenshots, single instance | UI Automation | .msix (signed with your certificate, a store thumbprint or Microsoft’s cloud signing; oneapp install adds a Start-menu entry) |
| Browser | Components only, in RecursiveAI.OneApp.Browser: custom elements on browser-wasm, drawn by the browser | the browser’s | static folder |