AffrescoUI
A native C++23 UI engine that renders apps from a live document format which people and AI agents can edit under permission checks.
At a Glance
Self-hosted AffrescoUI core engine released under the Apache License 2.0, free to use, modify and distribute.
Engagement
Available On
Alternatives
Listed Dec 2026
About AffrescoUI
AffrescoUI is an Apache-2.0 native UI engine by Riccardo Sottini for applications that keep changing while they run. An app is written as a program in AffrescoUI Lisp, a sandboxed Clojure dialect, or directly as a JSON document, and the engine draws it with C++23 and OpenGL without a browser engine or web view. The latest listed release is v2.0.0.
What It Is
AffrescoUI is a UI framework and runtime in which an application is a live document made of named definitions for its window, views, state, behaviour, commands, keys, settings and text. People and AI agents can propose changes to a running app. Each change is checked against the app's permissions, previewed when approval is needed, and applied in place without a rebuild or restart.
The repository ships thirteen example apps written in Lisp and JSON, including an IDE, an image editor, a presentation editor, a 3D modeller, a smart-home dashboard, a music player and a Kanban board. A Launcher app opens them, creates new apps and configures the AI that each app's assistant uses.
How Changes Flow
Peers such as the in-app assistant, scripts or an AI agent connected through a two-way MCP server submit revisions made of compact edits. Permission rules decide whether each change is denied, sent for review or allowed. Proposals work like branches that can be previewed and accepted, always allowed or rejected with a reason. Accepted changes become SHA-256 commits on main, and any commit can be undone while later changes are kept. Agents can also run an app's commands as tools under the app's run rules.
Embedding and Setup
Building needs CMake 3.25 or later and a C++23 compiler. The library can be embedded in a C++ host through CMake, or driven from C through a C API, and a Python binding wraps it. A WebAssembly build targets the browser. The assistant can use Claude Code, GitHub Copilot, or a local model through Ollama, LM Studio or llama.cpp. The README notes that the v2.0.0 downloads are not yet code-signed.
Language and Tooling
The Lisp dialect is measured against Clojure's cross-dialect tests, with documented differences. Tooling includes an affrescoui CLI for running, checking, testing, rendering, formatting and converting between JSON and Lisp, plus a VS Code extension, a clj-kondo configuration and an nREPL server for live editing.
Collections
Popular collections
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- Black Friday 2026: Learn with AI
Collection by @evtuff
- Black Friday 2026: Coding Agent Tools
Collection by @samofcode
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
Add AffrescoUI to one of your collections.
Community Discussions
Be the first to start a conversation about AffrescoUI
Share your experience with AffrescoUI, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted AffrescoUI core engine released under the Apache License 2.0, free to use, modify and distribute.
- Apache License 2.0 (OSI-approved) covers the core C++23 native UI engine
- Apps defined in AffrescoUI Lisp (a Clojure dialect) or JSON
- Embeddable via CMake or C API
- MCP server for AI agents
- Permission-checked live changes with version control
Capabilities
Key Features
- Native C++23 renderer on OpenGL 4.1 core or ES 3.0 (WebGL2 in browser)
- Apps defined as a live document in Lisp (Clojure dialect) or JSON
- In-place live updates without rebuild or restart
- Permission rules (deny/ask/allow) on every change
- Proposals with live preview, diff, accept or reject
- SHA-256 commit history with undo and restore
- Two-way MCP server for AI agents
- Built-in app assistant with Claude Code, GitHub Copilot or local models
- Exportable change sets and shareable app versions
- C++ library, C API and Python binding
- nREPL server for live editing from an editor
- Scenario tests with golden-image rendering checks
- Accessibility support through platform APIs
- Vector PDF export
- Thirteen example apps and a Launcher
