Vmux Framework

Rust made easy—through ECS composition, clear conventions, and typed macros. Build cross-platform desktop, mobile, web, TUI, and server applications from typed Bevy ECS feature plugins and Dioxus pages.

Start with the Framework quickstart to run a CEF-free native desktop window app or a headless ECS example in minutes. To modify Vmux itself or build a personal fork, see Make a change and Keep your own version.

Vmux Apps: crates/app/*(Desktop, CLI, Mobile)Standalone Rust Apps(Desktop / Web / TUI /Mobile / Service)Feature and Product:crates/feature/* andcrates/product/* (GPL-3.0)SDK: crates/sdk/* (MIT /Apache-2.0)
Click to expand

Guide map

  • Framework quickstart: scaffold with vmux new / vmux serve / vmux bundle, or run a native window or headless ECS app.
  • Framework examples: complete catalog of runnable Desktop, Web, TUI, Mobile, Service, feature, and primitive examples.
  • Core concepts: the eight primitives, entity vocabulary, operation policies, async tasks, channels, timers, and autosave stores.
  • Windows, pages, and menus: WindowHostPlugin, PageHostPlugin, UiPlugin, vmux_ui, declarative menus, and WebHostPlugin.
  • Testing and plugin authoring: deterministic headless testing, feature.ron composition, capabilities, and isolated product namespaces.
  • Crates and macros reference: feature matrix, attribute macro cheat sheet, licensing, and target support matrix.

Run the examples

Browse the Framework examples catalog or run them directly with the CLI:

vmux example --list
vmux example desktop_counter
vmux example web
vmux example tui
vmux example mobile
vmux example service

Pass --headless (or VMUX_EXAMPLE_HEADLESS=1) to smoke-test interactive client examples without opening a window or staying attached to a terminal/socket.

Validate external SDK consumers

Independent Cargo workspace compatibility suites live in tests/sdk/core and tests/sdk/host:

vmux dx test sdk
vmux dx test sdk --host
vmux dx test sdk --git
vmux dx test sdk --publish

Neither command launches Vmux. --git copies the consumer workspace and verifies pinned immutable Git revisions and dependency isolation without private cloud crates or bevy_cef. --publish verifies publishable SDK manifests, MIT OR Apache-2.0 licensing across the dependency closure, topological crate ordering, and cargo package --locked --no-verify across all publishable SDK crates under crates/sdk/*.

Pin a compatible SDK

Use vmux_sdk for external pure-Rust applications that want the publishable MIT OR Apache-2.0 facade without Vmux product features (crates/feature/*) or Chromium (bevy_cef). vmux_app remains the monorepo product composition crate (GPL-3.0-or-later).

During 0.0.x and 0.1.x, keep every vmux_* dependency on the exact same release version (or exact reviewed main commit before crates.io publication). Mixing revisions can produce incompatible ECS types even when their names match. The supported Bevy minor is 0.20; any Bevy minor upgrade bumps the SDK minor version (0.x). Breaking changes may occur between 0.1.x minor releases until 1.0.0, while patch releases (0.1.y) preserve API compatibility within the same Bevy minor.

Root [patch.crates-io] entries (bevy_cef*, bevy_window-0.20.1, bevy_world_serialization-0.20.1) are workspace-only optimizations for the Vmux desktop product: CEF is isolated to vmux_browser / vmux_ecs/cef, and external SDK consumers compile directly against upstream crates.io releases of bevy_window and bevy_world_serialization.

Store schemas belong to their features. Keep reflected names stable, version persisted contracts, and provide a migration or explicit refusal before accepting incompatible data.