Skip to main content
Glama

Development Status: AuroraView is under active development. APIs may evolve before v1.0.0. Windows (WebView2) is the primary production-tested target; macOS (WKWebView) and Linux (WebKitGTK) support is available with ongoing testing.


Quick Try

Try AuroraView instantly without installation using uvx:

uvx auroraview --url https://example.com

Related MCP server: openmcp

Overview

AuroraView delivers a modern web-based UI layer for both standalone Python desktop applications and professional DCC tools (Maya, 3ds Max, Houdini, Blender, Nuke, Photoshop, Unreal Engine). Built with Rust (wry / tao / webview2-com) and PyO3 (abi3 wheels), it ships as a single native extension with zero third-party Python dependencies.

Key Highlights

  • Lightweight: ~5 MB wheel vs ~120 MB for Electron, using the OS native WebView engine

  • Zero Python Dependencies: Ships as a single PyO3 abi3 extension supporting Python 3.7–3.13

  • Desktop & DCC Ready: First-class standalone desktop apps (run_desktop), Qt widget embedding (QtWebView), and HWND integration (AuroraView)

  • Modern Web Stack: Use React, Vue, Svelte, Tailwind, or vanilla HTML/CSS/JS with a TypeScript SDK (@auroraview/sdk)

  • Bidirectional IPC: High-performance Python ↔ JavaScript RPC (auroraview.api.* / auroraview.call), push events, shared state, and streaming channels

  • MCP Server Built-In: Expose WebView automation and AG-UI event streaming directly to AI agents via auroraview-mcp

  • Standalone Packaging: Bundle frontend + Python backend into a single offline executable via auroraview-cli pack

See the DCC Integration Guide and Getting Started Guide for full walkthroughs.


Architecture

Technical Stack

  • Core Stack: Rust 1.90+, PyO3 (abi3), wry 0.54, tao 0.34, windows-rs / webview2-com

  • Web Engines: Windows (WebView2), macOS (WKWebView), Linux (WebKitGTK)

  • Packaging: maturin wheels — cp38-abi3 per platform for Python 3.8–3.13, plus dedicated cp37 wheels on Windows/Linux

  • Event Loop: Qt hosts own the event loop (Rust marshals UI work to the UI thread via task queues); standalone desktop apps run a managed native event loop

  • IPC Bridge: Unified window.auroraview bridge — auroraview.api.* / auroraview.call() for RPC, auroraview.send_event() / webview.emit() for events, and window.auroraview.trigger() for Rust-to-JS event dispatch

  • Custom Protocols: Sandboxed auroraview:// (asset_root) and custom DCC protocols (e.g. maya://, fbx://) without CORS restrictions

  • Embedding: Native QtWebView (QWidget / QDockWidget), direct HWND/parent embedding (owner / child modes), and automatic parent lifecycle cleanup

  • Performance Targets: <150 ms first paint (local HTML), <50 MB baseline RSS


Features

Core & IPC

  • Native WebView Engine: System WebView2 / WKWebView / WebKitGTK for minimal footprint

  • Bidirectional IPC: Async/await RPC (auroraview.api.*, auroraview.call), push events (emit / on), shared state, and streaming channels

  • Custom Protocol Handler: Load local and DCC-project assets via auroraview:// or custom schemes

  • Event System: Node.js-style EventEmitter (on, once, off, emit) with cancellable events and debounce/throttle utilities

  • Multi-Window Support: WindowManager for creating and coordinating multiple windows with cross-window events

  • Thread-Safe Core: Rust memory safety and UI-thread marshaling

Storage, Window & Navigation

  • Storage & Cookies: Full localStorage / sessionStorage, cookie CRUD, and clear_browsing_data()

  • Native Dialogs: open_file, save_file, select_folder, select_folders, confirm, alert, error, ok_cancel

  • Navigation Control: go_back, go_forward, reload, stop, can_go_back, can_go_forward

  • Window Lifecycle Events: on_shown, on_hidden, on_focused, on_blurred, on_resized, on_moved, on_closing, on_fullscreen_changed

  • File Drop Events: Native OS drag-and-drop with full file paths (file_drop, file_drop_hover, file_drop_cancelled, file_paste). Off by default (capture_file_drop=False) to preserve HTML5 dragover/drop; opt-in via AuroraView(capture_file_drop=True) when absolute OS paths are required — see docs/zh/guide/file-drop.md and examples/desktop_app_capture_file_drop.py.

DCC & Desktop Features

  • Qt Backend (QtWebView): True QWidget supporting QDockWidget, layouts, signals/slots, and automatic cleanup when parent closes

  • WebView2 Warmup: Automatic WebView2 pre-warming (WebViewPool) reducing subsequent creation time by ~50%

  • System Tray: Tray icon with context menu, hide-to-tray, and click-to-restore

  • Floating Tool Windows: Frameless, transparent, always-on-top panels with tool_window=True (WS_EX_TOOLWINDOW) and mode="owner"

  • Performance Monitoring: get_performance_metrics() and get_ipc_stats()

Plugin System & Chrome Extension Compatibility

  • Rust Plugins: Built-in process (stdout/stderr streaming), fs, dialog, shell, and clipboard plugins

  • 25+ Chrome Extension APIs: Polyfill layer covering chrome.storage (local/sync/session), bookmarks, history, downloads, cookies, notifications, tts, idle, power, and WXT compatibility

  • Security: CSP configuration, CORS control, and fine-grained permission rules

MCP Server & AI Agent Integration

  • MCP Server (auroraview-mcp): Exposes screenshot, load_url, load_html, eval_js, send_event, get_hwnd, list_webviews, create_webview, and close_webview tools to AI agents

  • mDNS Discovery: Auto-discoverable by MCP clients

  • AG-UI Protocol: SSE endpoint at /agui/events for real-time agent event streaming

from auroraview import McpServer

server = McpServer(port=7890)
server.start()  # non-blocking
server.emit_run_started("run-1", "thread-1")
server.stop()

See the MCP Server Guide for full details.


Installation

Windows and macOS

Basic installation (Native backend for desktop apps & non-Qt hosts):

pip install auroraview

With Qt support (for Qt-based DCCs like Maya, Houdini, Nuke, 3ds Max):

pip install "auroraview[qt]"

Note for Qt DCCs: The [qt] extra installs QtPy as a thin compatibility layer across PySide2, PySide6, PyQt5, and PyQt6.

Linux

Linux wheels are distributed via GitHub Releases due to system WebKitGTK dependencies:

# Install system dependencies
sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev  # Debian/Ubuntu
# sudo dnf install gtk3-devel webkit2gtk3-devel      # Fedora/RHEL
# sudo pacman -S webkit2gtk                          # Arch Linux

# Install wheel from GitHub Releases (Python 3.8+: cp38-abi3, Python 3.7: cp37-cp37m)
pip install https://github.com/try-auroraview/auroraview/releases/latest/download/auroraview-{version}-cp38-abi3-linux_x86_64.whl

Or build from source:

pip install auroraview --no-binary :all:

Quick Start

Choosing the Right API

API

Mode

Best For

Docking / Embedding

run_desktop() / run_standalone()

Standalone

Desktop applications & quick tools

Standalone window

QtWebView

Qt Native

Maya, Houdini, Nuke, 3ds Max

QDockWidget & Qt layouts

AuroraView

HWND / Unified

Unreal Engine, Blender, non-Qt apps, class-based tools

Direct HWND / owner mode

auroraview.core.WebView

Low-level

Advanced customization & custom protocols

Manual control

1. Standalone Desktop App (One-Liner)

from auroraview import run_desktop

# Launch a standalone desktop app (blocks until closed)
run_desktop(
    title="My App",
    url="http://localhost:3000",
    width=1024,
    height=768,
)

2. Qt Native Mode (QtWebView — Maya / Houdini / Nuke / 3ds Max)

Creates a true QWidget that integrates with QDockWidget, Qt layouts, and automatic parent-child cleanup:

from auroraview import QtWebView
from qtpy.QtWidgets import QDialog, QVBoxLayout

dialog = QDialog(maya_main_window())
layout = QVBoxLayout(dialog)

webview = QtWebView(parent=dialog, width=800, height=600)
layout.addWidget(webview)
webview.load_url("http://localhost:3000")

dialog.show()
webview.show()  # Non-blocking; closes automatically with parent

Houdini:

from auroraview import QtWebView
import hou

webview = QtWebView(parent=hou.qt.mainWindow(), url="http://localhost:3000")
webview.show()

Nuke:

from auroraview import QtWebView
from qtpy import QtWidgets

webview = QtWebView(parent=QtWidgets.QApplication.activeWindow(), url="http://localhost:3000")
webview.show()

3. HWND Mode (AuroraView — Unreal Engine & Non-Qt Hosts)

from auroraview import AuroraView

webview = AuroraView(url="http://localhost:3000", api=my_api_object)
webview.show()

hwnd = webview.get_hwnd()
if hwnd:
    import unreal
    unreal.parent_external_window_to_slate(hwnd)

Command-Line Interface

# Load a URL
auroraview --url https://example.com

# Load a local HTML file
auroraview --html /path/to/file.html

# Custom window configuration
auroraview --url https://example.com --title "My App" --width 1024 --height 768

# Run without installing
uvx auroraview --url https://example.com

Python 3.7 on Windows: Due to a uv/uvx limitation, invoke via python -m auroraview:

uvx --python 3.7 --from auroraview python -m auroraview --url https://example.com

See the CLI Documentation for all options.

Custom Window Icon

AuroraView uses the AuroraView icon by default. Pass any square PNG, ICO, JPEG, BMP, or GIF via icon:

from auroraview import run_desktop

run_desktop(
    title="My App",
    url="http://localhost:3000",
    icon="path/to/my-icon.png",
)

Property

Recommendation

Format

PNG (recommended) or multi-resolution ICO

Sizes

32×32 (taskbar), 64×64 (Alt+Tab), 256×256 (high-DPI)

Color Depth

32-bit RGBA with transparency


Usage Patterns

Pattern 1: AuroraView with an API Object (Simplest)

Best for quick prototypes, desktop utilities, and one-off tools.

from auroraview import AuroraView

class MyAPI:
    def get_data(self) -> dict:
        """JS: await auroraview.api.get_data()"""
        return {"items": [1, 2, 3], "count": 3}

    def save_file(self, path: str = "", content: str = "") -> dict:
        """JS: await auroraview.api.save_file({path: "/tmp/a.txt", content: "hello"})"""
        with open(path, "w", encoding="utf-8") as f:
            f.write(content)
        return {"ok": True, "path": path}

view = AuroraView(url="http://localhost:3000", api=MyAPI())
view.show()
const data = await auroraview.api.get_data();
const result = await auroraview.api.save_file({ path: "/tmp/test.txt", content: "Hello" });

auroraview.on("data_updated", (payload) => {
    console.log("Data updated:", payload);
});

Pattern 2: QtWebView Subclass for DCC Production Tools (Recommended)

Best for Maya, Houdini, Nuke, and 3ds Max tools.

from auroraview import QtWebView

class SceneTool(QtWebView):
    def __init__(self, parent=None):
        super().__init__(
            parent=parent,
            url="http://localhost:3000",
            width=420,
            height=640,
        )
        self.bind_api(self)

    def on_ready(self):
        self.emit("tool_ready", {"version": "1.0"})

    def get_selection(self) -> dict:
        return {"items": ["hero_mesh", "camera1"]}

tool = SceneTool(parent=maya_main_window())
tool.show()

Pattern 3: Explicit Binding & Signals (Advanced / Extensible Systems)

Best for dynamic plugin hosts, custom protocols, and fine-grained runtime wiring.

from auroraview.core import WebView
from auroraview import Signal

class OutlinerTool(WebView):
    selection_changed = Signal(list)

    def __init__(self):
        super().__init__(title="Outliner Tool", url="http://localhost:3000", width=400, height=600)
        self.bind_api(self, namespace="api")

        @self.on("item_selected")
        def handle_selection(data: dict):
            self.selection_changed.emit(data.get("items", []))

        self.selection_changed.connect(lambda items: print("Selected:", items))

    def get_hierarchy(self, root: str = None) -> dict:
        return {"children": ["group1", "mesh_cube", "camera1"], "count": 3}

tool = OutlinerTool()
# Dynamic runtime binding is also supported:
tool.bind_call("export_data", lambda fmt="json": {"ok": True, "format": fmt})
tool.show()

Aspect

Pattern 1 (api=)

Pattern 2 (QtWebView)

Pattern 3 (Explicit / Low-level)

Complexity

Simple

Medium

Advanced

Best For

Prototypes & desktop tools

Production DCC tools

Plugin hosts & custom protocols

Qt Docking

Optional

Native (QWidget)

Manual

Auto-binding

Yes (api=)

Via bind_api()

Manual bind_call()

See examples/ for complete runnable scripts.


Bidirectional Communication

Communication API Reference

Direction

JavaScript API

Python API

Use Case

JS → Python

await auroraview.api.method(params)

AuroraView(api=obj) / bind_api()

Auto-bound RPC with return value

JS → Python

await auroraview.call(method, params)

@webview.bind_call("method")

Explicit RPC with return value

JS → Python

auroraview.send_event(event, data)

@webview.on(event)

Fire-and-forget events

Python → JS

auroraview.on(event, handler)

webview.emit(event, data)

Push notifications from Python

JS local only

auroraview.trigger(event, data)

—

Local JS dispatch (not sent to Python)

Important: auroraview.trigger() dispatches events locally in JavaScript (used internally by the Rust bridge). To send events from JS to Python, always use auroraview.send_event() or auroraview.call().

Python ↔ JavaScript Examples

Python → JS (Push Events):

webview.emit("selection_changed", {"items": ["mesh1", "mesh2"]})
window.auroraview.on("selection_changed", (data) => {
    highlightItems(data.items);
});

JS → Python (Events):

window.auroraview.send_event("export_scene", { path: "/tmp/scene.fbx", format: "fbx" });
@webview.on("export_scene")
def handle_export(data):
    print(f"Exporting to: {data['path']}")

JS → Python (RPC with Return Value):

const result = await window.auroraview.call("api.rename_object", {
    old_name: "cube1",
    new_name: "hero_cube",
});
@webview.bind_call("api.rename_object")
def rename_object(old_name: str, new_name: str) -> dict:
    return {"ok": True, "old": old_name, "new": new_name}

Advanced Usage

Window Events & Controls

from auroraview import WebView
from auroraview.core.events import WindowEventData

webview = WebView(title="My App", width=800, height=600)

@webview.on_shown
def on_shown(data: WindowEventData):
    print("Window visible")

@webview.on_resized
def on_resized(data: WindowEventData):
    print(f"Resized to {data.width}x{data.height}")

@webview.on_closing
def on_closing(data: WindowEventData):
    return True  # Return False to cancel close

webview.resize(1024, 768)
webview.move(100, 100)
webview.toggle_fullscreen()

Callback Deregistration (EventTimer)

from auroraview import EventTimer

timer = EventTimer(webview, interval_ms=16)
timer.on_close(on_close_handler)
timer.off_close(on_close_handler)  # Also supports off_tick(handler)

Shared State

webview = WebView.create("My App", width=800, height=600)
webview.state["theme"] = "dark"
webview.state["count"] = 0

@webview.state.on_change
def on_state_change(key: str, value, old_value):
    print(f"{key}: {old_value} -> {value}")

# JavaScript: window.auroraview.state.theme = "light";

Command System & Channel Streaming

@webview.command("add_numbers")
def add(x: int, y: int) -> int:
    return x + y

# JS: const sum = await auroraview.invoke("add_numbers", { x: 1, y: 2 });

with webview.create_channel() as channel:
    for i in range(100):
        channel.send({"progress": i})

Custom Protocols & Local Assets

Use asset_root with the built-in auroraview:// protocol to load local files safely without CORS issues:

from auroraview import WebView

webview = WebView.create(title="My App", asset_root="./assets")
webview.load_html("""
<html>
  <head><link rel="stylesheet" href="./css/style.css"></head>
  <body><img src="./images/logo.png"></body>
</html>
""")

Or register domain-specific DCC protocols:

def handle_fbx_protocol(uri: str) -> dict:
    path = uri.replace("fbx://", "")
    try:
        with open(f"C:/maya_projects/current/{path}", "rb") as f:
            return {"data": f.read(), "mime_type": "application/octet-stream", "status": 200}
    except FileNotFoundError:
        return {"data": b"Not Found", "mime_type": "text/plain", "status": 404}

webview.register_protocol("fbx", handle_fbx_protocol)

Method

Security

Recommendation

auroraview:// with asset_root

High (directory-sandboxed, .localhost RFC 6761)

Recommended

Local dev HTTP server

High (controlled scope)

Recommended for dev HMR

allow_file_protocol=True

Low (unrestricted filesystem access)

Use with caution

See Custom Protocol Guide, Local Resources Guide, and examples/local_assets_example.py.

WebView2 Pre-warming (QtWebView)

QtWebView automatically pre-warms WebView2 on first creation (~50% faster subsequent windows). For explicit startup control (e.g. in Maya userSetup.py):

from auroraview.integration.qt import WebViewPool, QtWebView

WebViewPool.prewarm()
webview = QtWebView(parent=maya_main_window(), auto_prewarm=False)

System Tray & Floating Tool Windows

from auroraview import run_desktop, WebView

# System tray app
run_desktop(
    title="Background Utility",
    html=my_html,
    width=400,
    height=300,
    system_tray=True,
    hide_on_close=True,
)

# Frameless transparent floating panel (follows parent window)
panel = WebView.create(
    title="AI Assistant",
    html=panel_html,
    width=320,
    height=400,
    frame=False,
    transparent=True,
    always_on_top=True,
    tool_window=True,
    parent=parent_hwnd,
    mode="owner",
)
panel.show()

vx just gallery       # Run the interactive React Gallery
vx just gallery-pack  # Build standalone Gallery executable

Install auroraview-cli

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/try-auroraview/auroraview/main/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/try-auroraview/auroraview/main/scripts/install.ps1 | iex

Pre-built binaries are also available on GitHub Releases.

Application Packaging

Bundle a URL, frontend build, or fullstack Python + Web app into a standalone executable:

auroraview-cli pack --url https://example.com --output myapp
auroraview-cli pack --frontend ./dist --output myapp
auroraview-cli pack --config auroraview.pack.toml

Example auroraview.pack.toml:

[package]
name = "my-app"
version = "1.0.0"

[app]
title = "My Application"
frontend_path = "./dist"

[window]
width = 1200
height = 800
resizable = true

[bundle]
# Accepts PNG, JPG, or ICO (auto-converts PNG/JPG to multi-res Windows ICO)
icon = "./assets/my-app-icon.png"

[bundle.platform.windows]
console = false

[python]
entry_point = "main:main"
include_paths = ["./backend"]
strategy = "standalone"  # standalone | embedded | portable | pyoxidizer

Strategy

Offline

Approx. Size

Notes

standalone (default)

Yes

~50–80 MB

Embeds Python runtime, extracts on first run

embedded

No

~15 MB

Uses system Python

portable

Yes

~50–80 MB

Portable directory bundle

pyoxidizer

Yes

~30–50 MB

Requires PyOxidizer

See Packing Guide and examples/pack-example.toml.


DCC Software Support

DCC Software

Integration Mode

Status

Guide

Maya

QtWebView (QDockWidget)

Supported

Maya Guide • Maya Outliner Example

Houdini

QtWebView

Supported

Houdini Guide

3ds Max

QtWebView / HWND

Supported

3ds Max Guide

Blender

Standalone / Floating Window

Supported

Blender Guide

Nuke

QtWebView

Supported

DCC Overview

Unreal Engine

HWND (auroraview-ue)

In Progress

Unreal Guide

Photoshop / Substance

External / Plugin

Experimental

Photoshop • Substance Painter


Documentation


Development

Prerequisites

  • vx (universal tool/runtime manager)

  • Git

AuroraView uses vx + justfile as the canonical development harness for both local development and CI.

Build & Validate

git clone https://github.com/try-auroraview/auroraview.git
cd auroraview

# Bootstrap tools from vx.toml
vx setup

# Install Python deps and build
vx just install
vx just build

# Fast local verification / full CI-aligned verification
vx just harness-quick
vx just harness-verify

# Gallery packed E2E (CDP + Playwright)
vx just harness-gallery-e2e

Project Structure

auroraview/
├── crates/
│   ├── auroraview-core/        # Core protocols, RPC, event bus, icon/asset utilities
│   ├── auroraview-cli/         # CLI binary, packager entrypoint & embedded skills
│   ├── auroraview-desktop/     # Standalone desktop runtime, tray & window builder
│   ├── auroraview-dcc/         # DCC host integration layer
│   ├── auroraview-mcp/         # MCP server & AG-UI SSE streaming
│   ├── auroraview-pack/        # Standalone executable bundler
│   ├── auroraview-plugins/     # Native plugin architecture (fs, process, dialog, shell, clipboard)
│   ├── auroraview-extensions/  # Chrome Extension API compatibility layer
│   ├── auroraview-browser/     # Multi-tab browser & devtools/tabs/bookmarks/history crates
│   ├── auroraview-ai-agent/    # AI agent sidebar & CDP helpers
│   ├── auroraview-ue/          # Unreal Engine integration crate
│   └── auroraview-testing/     # Rust testing utilities
├── python/auroraview/          # Python package (AuroraView, QtWebView, run_desktop, testing)
├── packages/
│   ├── auroraview-sdk/         # TypeScript frontend SDK
│   └── auroraview-ai/          # Frontend AI chat/agent components
├── gallery/                    # Interactive React showcase & E2E baseline
├── examples/                   # Runnable Python & DCC examples
├── assets/brand/               # Lossless SVG brand masters & export pipeline
├── docs/                       # VitePress documentation site (EN & ZH)
└── tests/                      # Rust & Python test suites

Testing

HeadlessWebView Unified Testing Framework

from auroraview.testing import HeadlessWebView

# Auto-detect best backend (Playwright recommended)
with HeadlessWebView.auto() as webview:
    webview.goto("https://example.com")
    webview.click("#button")
    assert webview.text("#result") == "Success"

Backend

Method

Platform

Use Case

Playwright

HeadlessWebView.playwright()

All

Recommended for CI/CD

Xvfb

HeadlessWebView.virtual_display()

Linux

Real WebView testing

WebView2 CDP

HeadlessWebView.webview2_cdp(url)

Windows

Real WebView2 testing

# Unified harness tasks (recommended)
vx just harness-quick
vx just harness-verify

# Nox sessions via vx
vx uvx nox -s pytest
vx uvx nox -s pytest-qt
vx uvx nox -s lint

Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a pull request.

License

MIT License — see LICENSE for details.

Acknowledgments

  • Wry — Cross-platform WebView library

  • PyO3 — Rust bindings for Python

  • Tauri — Architecture inspiration and ecosystem

Contact

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Allows AI agents to control and interact with VS Code webviews by providing tools for navigation, element interaction, and state retrieval. It facilitates automated tasks like clicking elements, inputting text, and reading the DOM structure within a VS Code tab.
      13 npm
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.
      1
      MIT