Skip to content

What is Axon? ​

Python on the backend, web on the frontend.

Axon is a hybrid desktop framework: a Python process owns the logic, a web page owns the UI, and the two can call each other — in code it looks like a local function call:

const total = await Axon.Cart.total("CNY");
Axon("MainView").Chart.redraw([1, 2, 3])

No IPC protocol to hand-write, no JSON plumbing, no glue for "how do I put a frontend build inside a window".

What problem it solves ​

  • You want Python's libraries, not Qt widgets. Data, files, serial ports, models live in Python; the UI should be HTML/CSS, not QGridLayout.
  • You want the web ecosystem without a second runtime. Python opens the window, reads local files, spawns processes. No Electron-style "main + renderer + bundler" stack.
  • You want a window, not a browser. The result is a double-clickable desktop app with an icon, optional custom window chrome and native menus — and the same page can also be deployed as a plain documentation site (this site is exactly that).

What it is made of ​

Package / repoRoleRequired
axon-gui (Python + npm)Runtime: window, channels, Axon sugar, events, Store, cross-windowyes
axon-shellOptional chrome: frameless window, drag/resize hit-testing, window controls, native menusfor custom title bars
templatesVue 3 / React 19 / Angular 20 startersfetched by axon-gui init

How one call travels ​

For await Axon.Cart.total("CNY"):

  1. JS sends a call with a call_id;
  2. it crosses Qt's QWebChannel into Python, where AxonJSCallHandler finds the controller by id and the method by name;
  3. plain def runs in a thread pool, async def runs on a dedicated asyncio loop;
  4. the return value (or the exception) comes back with the same call_id, resolving or rejecting the Promise.

Details (threading, lazy properties, events, Store) are in Architecture.

How it compares ​

AxonElectronTauripywebview
BackendPython (running)NodeRustPython
Ship another runtimeno (Qt WebEngine comes with PySide6)yesno (system WebView)no
Two-way callsbuilt inroll your own IPCcommands/eventsmostly one-way
Bundle sizelarge (≈220 MB with Qt)largesmallmedium

Pick Axon when the logic already lives in Python. If your logic is JS, go straight to Electron.

When not to use it ​

  • All logic is JS/TS: Electron or Tauri.
  • You only need a read-only page: a static site is enough.
  • Bundle size is the hard constraint and system-WebView differences are acceptable: Tauri.

Next ​

Fastest round-trip → Quickstart; how messages travel → Architecture; real calls → Live examples.