Recursive AI
LibraryC#Available

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.

dotnet add package RecursiveAI.OneApp --version 1.0.0

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.

Getting started
Counter.htmlHTML
<main>
  <h1>Counter</h1>
  <button id="add" on:click="Increment">Clicked {Count} times</button>
</main>
Counter.csC#
using OneUI.Components;
 
public partial class Counter
{
    [State]
    public partial int Count { get; set; }
 
    private void Increment() => Count++;
}
Program.csOneApp 1.0.0 · .NET 10
using OneApp;
 
using var host = AppHost.Create(new AppOptions(new Counter())
    { Title = "Counter", AppId = "org.example.Counter" });
host.Run();
TerminalLinux, X11
dotnet oneapp run . --detach
dotnet oneapp click '#add'     # three times
dotnet oneapp query '#add'
Output, shortenedJSON
{"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
MyAppLinux, X11
The MyApp window: a card titled “Hello, Ada” with a name field holding “Ada” and a dark button reading “Clicked 2 times”.
<my-app>Chrome
The same card in Chrome: “Hello, Ada”, the name field holding “Ada” and a button reading “Clicked 2 times”.
What it does

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

Platforms

Window and drawingDesktop servicesAccessibilityPackaging
LinuxWayland (server-side decorations, layer-shell overlays) and X11; Vulkantray, notifications, file dialogs, global hotkeys, screenshots and single instance through the desktop portals and the session busAT-SPI.deb, AppImage, desktop entry
macOS (Apple silicon)Cocoa; Metalmenu bar, status item, notifications, file dialogs, single instanceNSAccessibility.app bundle, .dmg
WindowsWin32; Vulkan where the driver has it, otherwise OneRender’s CPU rasterizer shown through GDImenu bar, tray icon, notifications, file dialogs, global hotkeys, screenshots, single instanceUI Automation.msix (signed with your certificate, a store thumbprint or Microsoft’s cloud signing; oneapp install adds a Start-menu entry)
BrowserComponents only, in RecursiveAI.OneApp.Browser: custom elements on browser-wasm, drawn by the browserthe browser’sstatic folder

Go further