Process Mining Studio powered by Rust4PM.
Propel is a process mining app built on the algorithms of Rust4PM. The same Rust engine runs either in your browser (compiled to WebAssembly) or natively in the desktop app, and its results are shown in dockable panels made from reusable React components.
- In the browser (WASM): propel.aarkue.eu
- Desktop installers: github.com/aarkue/propel/releases/latest
- React component library (Storybook): propel.aarkue.eu/storybook
- Import of XES event logs (also
.xes.gz) and OCEL 2.0 logs (.json,.xml,.sqlite). Files can be dropped anywhere on the window, opened through the menu, or, on desktop, opened from the file manager. The Rust engine parses them. - Discovery of directly-follows graphs (DFG and OC-DFG), Petri nets and process trees (Inductive Miner, Alpha+++), object-centric Petri nets, and OC-DECLARE constraints.
- Alignment-based conformance checking of an event log against a Petri net, and OC-DECLARE constraint violations.
- Views on cases and objects, e.g., dotted chart, trace variants, performance spectrum, variant timing, case durations, object lifelines, and workload calendars.
- Extraction of OCEL 2.0 logs from relational sources (e.g., SQLite databases or CSV and Parquet files) through extraction blueprints.
- Filters and transforms for event logs and OCELs, and editors for event logs, OCELs, Petri nets, and object-centric Petri nets.
- A pipeline editor, in which every Rust4PM binding is a node and typed handles connect the output of one node to the input of the next.
In the browser, Propel runs without any installation at propel.aarkue.eu. The engine runs locally in WebAssembly, so your data does not leave your machine.
Desktop installers are built by CI for every release and are available at github.com/aarkue/propel/releases/latest.
The desktop app is not limited by the 4 GB memory of WebAssembly and registers itself for .xes, .pnml, .ocdeclare, and other file types.
We recommend the first installer listed for each platform:
- Linux:
[...].AppImage, or[...].deb(Debian/Ubuntu) and[...].rpm(Fedora/RHEL/openSUSE) - Windows:
[...]-setup.exe, or[...].msi - macOS:
[...].dmg, or[...].app.tar.gz
Windows Defender sometimes shows a (false-positive) threat warning for Tauri-packaged installers (see also tauri-apps/tauri#2486).
If this happens, try the other installer variant (e.g., .msi instead of -setup.exe).
-
One registry for all functions. Every analysis function is a Rust function annotated with
#[register_binding]. The Rust4PMbindingsregistry (built oninventory) collects them at link time and provides:- runtime JSON dispatch (
execute_binding(id, args) -> Vec<u8>), - metadata for each function (
list_functions_meta()returns its id, docs, and schemars JSON Schemas for the arguments and the return type), - a pipeline node for each function.
After
pnpm codegen, a new annotated function is available as a pipeline node and as a typed call from TypeScript. - runtime JSON dispatch (
-
Data stays in Rust/WASM. Bindings return UTF-8 JSON as
Vec<u8>. Large objects (event logs, OCELs) live in the engine, and TypeScript refers to them by handles (e.g.,Handle<"OCEL">). TypeScript only holds handles, metadata, and small results. -
Compile-time types.
pnpm codegenturns the JSON Schemas of the binding metadata into a typedBindingsmap andcallBinding<K>(id, args): Promise<ret>. -
One definition per visualization. A single
defineVis(...)call defines both the dockview panel and the pipeline viewer. The component itself is a reusable@r4pm/componentsexport. -
Published components. The components are published as the
@r4pm/componentspackage, which other React apps (e.g., another process mining tool) can use.
Many of the visualizations and React components of Propel are also available on their own.
After npm i @r4pm/components, components like DFGs, Petri net editors, and trace and alignment views can be used in any React project.
See the components README for more details.
propel/
βββ packages/ # @r4pm/* libraries (only components publishes; client is internal)
β βββ client/ # @r4pm/client the engine contract: callBinding + BackendContext + Handle types + codegen (INTERNAL, not published)
β βββ components/ # @r4pm/components reusable viewers + inputs + presentation contract + export frame
β β # subpaths: . /ui /petri /process-tree /charts /extraction-blueprint (+ css); see packages/components/README.md
βββ apps/
β βββ studio/ # @r4pm/studio the app: composes packages, selects a transport (wasm/http/tauri). Also contains
β β # viewer registry (src/viewers/), vis definitions (src/vis), panels (src/panels),
β β # transport backends (src/backends), stores + shell (src/stores, src/shell),
β β # pipeline (src/pipeline), and transforms (src/transforms)
βββ examples/
β βββ external-consumer/ # a minimal React app that uses @r4pm/components
βββ engine/ # Rust (Cargo workspace)
β βββ backend-shared/ # shared engine logic: binding dispatch, object lifecycle, metadata
β βββ app-bindings/ # new bindings: #[register_binding] functions
β βββ wasm/ # backend-wasm cdylib (execute_binding / list_functions / load_item_bytes / ...)
β βββ viz-wasm/ # rust4pm's visualization bindings as wasm, embedded in @r4pm/components
β βββ webserver/ # propel-webserver: axum HTTP transport backend (web:server)
β βββ app/ # propel-tauri: Tauri desktop app (app:dev / app:build)
β βββ meta-gen/ # dumps the live registry to bindings-meta.json for TS codegen
Tooling: pnpm workspaces + Turborepo, React 18 + TypeScript (verbatimModuleSyntax: true),
Tailwind v4 (standard for all UI), Vite for the app, wasm-pack for the engine.
Only @r4pm/components is published. @r4pm/client is an internal package (the engine
contract) used by apps/studio:
| Package | Published? | Depends on | Provides |
|---|---|---|---|
@r4pm/components |
yes | (none of @r4pm/client) |
reusable component library + presentation contract + export frame, via subpaths (see the components README) |
@r4pm/client |
no (internal) | (none) | callBinding, BackendContext interface, FunctionMeta/ExtendedJSONSchema, branded Handle<K>, generated Bindings. The engine contract, used by the app and the three transports. |
The subpaths (., /ui, /petri, /process-tree, /charts, /extraction-blueprint, /styles.css, plus /rules.css for apps that run
their own Tailwind build, and the companion /ui/styles.css, /petri/editor.css, and /process-tree/editor.css) are documented in
the components README.
Studio-internal code (viewer registry, pipeline editor, transforms, stores) lives in apps/studio/src
and is not published.
@r4pm/components imports nothing from @r4pm/client and never references RETURN_TYPES.
Each viewer is generic over a local structural interface, and the app binds it to the engine in
apps/studio/src/vis/<id>.tsx via defineVis(...), so engine type drift fails to compile there.
Transport-specific code (Tauri/fetch/WASM) lives only in apps/studio.
Prerequisites:
- Node (current LTS) and pnpm
- Rust via rustup. The desktop app and the webserver build on stable.
The WASM engine pins
nightly-2025-06-01inengine/wasm/rust-toolchain.toml, which rustup installs on the first build. wasm-packfor the browser target and the components' visualization wasm- For the desktop app, the Tauri prerequisites of your platform (e.g., WebKitGTK on Linux)
pnpm install # also builds the visualization wasm of @r4pm/components, if Rust and wasm-pack are availablePropel can then be run in one of three ways, which share the UI and the engine:
# Desktop app (Tauri): native engine, starts the Vite dev server itself
pnpm app:dev
# Browser, engine in WebAssembly: build the engine once (and after Rust changes), then start Vite
pnpm wasm:build # or, faster and unoptimized: cd engine/wasm && wasm-pack build --target web --dev
pnpm wasm:dev
# Browser, engine as a local HTTP server: run both in separate terminals
pnpm web:server
pnpm web:uiAfter adding or changing a Rust binding (its arguments or return type), regenerate the typed bindings and the file associations:
pnpm codegenBefore committing, run:
pnpm typecheck # tsc across the workspace
pnpm test # Vitest
pnpm check # Biome lint and format checkSee CONTRIBUTING.md for the project conventions and how to verify a change.
It also contains step-by-step guides (see Extending Propel):
- Add a new visualization (viewer + panel in one file).
- Add a new Rust binding (analysis function).
- Add a new transport (Tauri / webserver / custom).
- Use
@r4pm/*packages in an external React app (incl. Tailwind setup).
The only published package is @r4pm/components, released publicly to the @r4pm npm org.
Publishing runs on GitHub CI and is driven by tags:
pnpm components:version 0.1.0 # bump packages/components/package.json and print the git commands
pnpm components:version 0.1.0 --tag # bump, commit, tag components-v0.1.0, and pushPushing a components-v* tag triggers .github/workflows/publish-components.yml, which builds the package and
publishes it to npm.
The desktop app is versioned separately with pnpm app:version <x.y.z>, which works the same way with v* tags and starts the release build.
This project is dual-licensed under either the Apache License Version 2.0 or the MIT License, at your option.