---
title: "oneapp"
url: https://recursiveai.org/oneapp/
description: "A framework for desktop apps in .NET whose UI is HTML and CSS, drawn natively with no web view: the app host, a component kit, components in the browser, the oneapp tool and a dotnet new template. Linux, macOS and Windows. MIT or Apache-2.0. 1.0.0."
---

# oneapp

A framework for desktop apps in .NET whose UI is HTML and CSS, drawn natively with no web view.

It shows [oneui](https://recursiveai.org/oneui/) components in [oneplatform](https://recursiveai.org/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.

```sh
dotnet add package RecursiveAI.OneApp --version 1.0.0
```

- [Getting started](https://recursiveai.org/oneapp/docs/getting-started/)
- [Docs](https://recursiveai.org/oneapp/docs/)
- [GitHub](https://github.com/recursive-ai-oss/oneapp-csharp)
- [NuGet](https://www.nuget.org/packages/RecursiveAI.OneApp)

## 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](https://recursiveai.org/oneapp/docs/getting-started/)

*Counter.html · HTML*

```
<main>
  <h1>Counter</h1>
  <button id="add" on:click="Increment">Clicked {Count} times</button>
</main>
```

*Counter.cs · C#*

```
using OneUI.Components;
 
public partial class Counter
{
    [State]
    public partial int Count { get; set; }
 
    private void Increment() => Count++;
}
```

*Program.cs · OneApp 1.0.0 · .NET 10*

```
using OneApp;
 
using var host = AppHost.Create(new AppOptions(new Counter())
    { Title = "Counter", AppId = "org.example.Counter" });
host.Run();
```

*Terminal · Linux, X11*

```
dotnet oneapp run . --detach
dotnet oneapp click '#add'     # three times
dotnet oneapp query '#add'
```

*Output, shortened · JSON*

```
{"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](https://recursiveai.org/oneapp/docs/browser/)

*MyApp · Linux, X11*

```

```

*<my-app> · Chrome*

```

```

### 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 on `browser-wasm`.
- **Tool**: `RecursiveAI.OneApp.Cli`. The `oneapp` tool: run, drive, install and package apps.
- **Template**: `RecursiveAI.OneApp.Templates`. The `dotnet new oneapp` template: one kit-based component, the app host, an app id and icon, and the `oneapp` tool.
- **Requirements**: .NET 10, C#, all five at version 1.0.0. “Native apps are NativeAOT- and trim-compatible. `AppHost` with 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 |

## Go further

- [GitHub](https://github.com/recursive-ai-oss/oneapp-csharp)
- [NuGet](https://www.nuget.org/packages/RecursiveAI.OneApp)
- [Getting started](https://recursiveai.org/oneapp/docs/getting-started/)
- [All docs](https://recursiveai.org/oneapp/docs/)
- [Component kit](https://recursiveai.org/oneapp/docs/kit/)
- [Changelog](https://recursiveai.org/oneapp/docs/changelog/)
