The browser app runs the shared Rust geometry kernel as WebAssembly with Python application and export adapters through Pyodide in a Web Worker. It provides the desktop workspace and fifteen model families with browser downloads and local project recovery. CAD connection bridges and the desktop MCP companion are excluded. Calculations happen in the browser; there is no calculation backend.
Open the web app without installing the desktop program. The native installers linked in the main README remain separate downloads for desktop use and CAD integrations. Verification covers the tested flows; it does not establish compatibility with every browser, operating system or graphics driver.
This page describes a build from the current source tree. The hosted app and downloaded desktop packages can lag source changes; their release/deployment state is separate from a successful local build.
Use Python 3.10 or newer and the pinned Rust toolchain from the checkout or
an extracted source.zip with source-fonts.zip unpacked into the same directory.
Both archives are included beside the browser app; splitting the unchanged font
payloads keeps each download below the hosting size limit. No Node, npm, GTK or
native CAD libraries are needed.
The Rust build downloads locked dependencies on its first run; add --offline
when they are cached. The runtime fetch downloads six exact pinned files:
python3 scripts/build-rust-engine.py --target wasm
python3 scripts/fetch-web-runtime.py
python3 scripts/fetch-web-runtime.py --check-only
python3 scripts/build-webapp.py --runtime-dir work/webapp-runtime
python3 scripts/serve-webapp.pyOpen the local preview. Ctrl+C stops it. Change the
loopback port with --port 8767; change its bundle with --directory PATH.
The default output is work/webapp-dist; the default runtime cache is
work/webapp-runtime. Both stay outside source distributions. An existing cache
can be selected explicitly with fetch-web-runtime.py --directory PATH and
build-webapp.py --runtime-dir PATH. --check-only never fetches or writes.
The fetcher downloads the five runtime files from the pinned jsDelivr CDN and
Pyodide's LICENSE from the official GitHub 314.0.7 tag. Each file has one
fixed URL; redirects are rejected. It checks exact sizes and SHA256 against
webapp/runtime.json; valid files are reused. Edited or foreign target files
and symlinks are preserved by failing instead of replacing them. Remove or move an unwanted file yourself
before retrying. Unrelated cache metadata is retained.
The web bundle and preview commands never fetch dependencies. The builder has an
explicit source/asset list, deterministic ZIP contents and a checksum manifest.
It refuses to replace a foreign output directory or a bundle with extra/edited
files. Choose another --output PATH to retain a modified bundle. Native wheels
remain native application packages; source distributions include the web source,
recipe and tests, but no downloaded runtime binaries.
Parameter illustrations are checked-in static assets generated from the original
RatioLab schematics. The optional development command
PYTHONPATH=src:webapp python3 scripts/generate-web-help.py regenerates them
with pycairo; --check compares output and recorded source provenance. Ordinary
web builds and browser use do not require Cairo or GTK.
For a portable copy, retain the entire built folder. It includes README.txt,
serve.py, licenses, Rust notices in rust-notices.zip, and readable corresponding
source and the locked Rust build recipe in source.zip, with font payloads in
source-fonts.zip. Extract both source archives into one directory to rebuild.
After unpacking a complete portable ZIP, run python3 serve.py inside its folder
(or python serve.py if that is your interpreter's name). The preview helper
verifies every manifest file and rejects symlinks in listed paths before opening
its loopback HTTP server. It serves listed files only, with no directory listing.
A browser needs WebAssembly, Web Workers, WebGL and a secure context: HTTPS or
localhost. Opening index.html through file:// fails. Python on your computer
is required only for building or the local HTTP preview, not by a user visiting
an already hosted static app.
Motion keeps Input, Output and Fixed to frame roles distinct. Multi-member selectors use the full sidebar width, and each planetary stage remains independent. Wolfrom's fixed-member speeds remain available in Motion details.
Choose a family/construction, edit Dimensions, Motion and Assembly, and inspect the live model. Precise numeric fields accept decimal points or commas. Confirm an empty model field to search for a compatible minimum. Malformed numbers remain visible and block exports until valid. Orbit, zoom, Fit, animation, exploded/section views and component selection are available. Right mouse drag pans; left drag orbits. The upper-right orientation cube supports face, edge and corner snaps and dragging. Its Home, Fit, Pan and Display controls replace the old View panel, retaining all display options in the sliders menu.
Display options and Tools open over the right of the model. Expand tool temporarily gives the active tool the workspace. In Components & measurements → Parts, Restore view brings back the visibility in use before Isolate. Use the format buttons there to open the export dialog with Selected components already chosen. A click on empty viewport space clears the selection unless Ctrl or Shift is held. In Measure, click two visible surfaces to place markers A and B and see their straight-line distance in mm. Click empty space or Clear points to start again. From Parts, View teeth opens the nominal close-up for a supported gear. Focusing a tooth tips field opens its member's detail view. The Step size beside each field controls its increment. PDF sheets… edits the selected component's production and inspection plan and downloads the two PDFs and sheet data in one archive. The results band sits above two rows of motion controls. The first has Play, Initial pose, the phase slider and I/O. The second has the progressive input RPM slider and the exact speed field. The playback multiplier is available under Motion → Motion details and controls preview animation speed. Scrubbing phase pauses the preview without editing project parameters or export geometry; a reference turn is not necessarily a complete assembly cycle. Rack travel remains finite. Hover over parameters for adjacent help; the information button and F1 also open it. The pointer can enter the guide, and leaving both guide and parameter dismisses it. Original schematics can be expanded. CAD connections and native updates remain desktop features.
For cylindrical models, Dimensions contains a collapsed tooth tips group for each active member/stage. Topping removal, semitopping height and normal ramp angle reach the same Rust construction as the desktop. Both amounts default to zero. See the tooth-tip workflow, supported members and examples.
While dragging the RPM slider, the number previews your choice and the model keeps its applied speed. Releasing the pointer or adjustment key applies the final RPM once, as one Undo step. Save/Export confirms a pending slider choice.
Save/Open use desktop-compatible JSON; Save As and exports prepare browser downloads instead of native destination dialogs. Full and selected components can be exported as STEP/STL/SVG/DXF; complete packages include the preview PNG, reports and a checksum inventory. Keep downloaded JSON files: recent projects and unsaved draft recovery are local to this browser/origin, and private browsing or cleared site data can remove them. Undo/Redo preserve document edits.
The export dialog starts with Complete assembly, matching desktop. Choose Selected components explicitly and review its count and source indices/names; an empty or changed selection cannot fall back to a complete export. Project JSON always saves the complete editable configuration. The format description identifies section profiles and sampled geometry, and shows applicable export interpolation separately from preview detail. Package previews include the chosen scope even when parts are hidden, without section, explosion or motion. The browser controls the download location; Last export retains the prepared archive name, file inventory and component list. Preparing a download does not verify that the browser saved it to disk.
File is the upper-left dropdown for New, Open, Recent, recovery, Save,
Save As and Reset defaults. RatioLab branding precedes File. CAD and Export
stay on the right. Drag the parameter divider to adjust the column width or
focus it and use the arrow keys. Settings in the toolbar (Ctrl+,) opens the
shared Appearance, Controls, Model precision, General and MCP sidebar.
The theme switch now lives under Appearance, with editable palettes and portable
ratiolab-theme/1 import/export. CAD presets set both keyboard and mouse controls;
browser-reserved shortcuts have available equivalents displayed in the editor.
See workspace preferences.
In Settings → MCP, enter the absolute paths to the installed RatioLab-MCP
executable (RatioLab-MCP.exe on Windows) and the workspace, then copy the configuration
for your client. A Python wheel provides the ratiolab-mcp command. The web
app remembers these paths in this browser. Use RatioLab Desktop for folder
selection and automatic registration.
Language also remains available in the toolbar. Settings are saved for this browser origin independently of projects, history and numeric precision. Technical help and on-screen reports use the selected language; downloads retain canonical content. Model precision belongs to the project and uses Apply, with separate preview/export thresholds and model-specific error bounds. Unknown complete bounds are explicit. These describe approximation, not elastic deformation, manufacturing tolerances or file-conversion accuracy.
Tools include component surface measurements, theoretical gear metrology, finite combination search, discrete interference and working-backlash proposals. Tools → Bill of materials pairs the additional component table with the current model in an independent 3D view. Click a row or a component to select it in both views. Selected parts appear opaque in the assembled model, even when surrounded by nearly transparent parts. CAD interfaces point to the relevant geometry and leave unknown quantities and sizes open. The full report and downloadable component list remain available in the BOM dialog. Tools follow generated construction capabilities, and metrology uses the current single compatible component selection. Search starts with local tooth-count ranges and keeps other dimensions under More dimensions. Ratio, compact envelope and usable-contact ranking share the desktop query implementation; advanced fields include the optional minimum usable-contact constraint. Results show named current/proposed values; Apply remains unavailable for an unchanged candidate. Interference filters affect only the displayed findings, retaining coverage and the full report. Backlash shows its nominal target bracket before the separate contact and interference checks, and compares current/proposed centre distance and working backlash. Run/Cancel/Apply controls stay together. Search results require explicit Apply; a changed source invalidates old results. Cancel terminates the busy worker, restarts the engine and regenerates the latest current parameters. Retry restarts a failed load after missing/blocked bundle files have been corrected.
Geometry, ideal motion, construction warnings and analysis limits remain those of the canonical engine. Measurements use sampled surfaces; interference uses discrete poses and reports incomplete coverage. Finite search ranks only the specified domain. Working-backlash Apply follows solver eligibility, and an incomplete proposal remains ineligible. None establishes continuous clearance, strength, bearing life or manufacturing readiness. Read the generated reports, model warnings and technical references before using exports.
The public website build composes the complete self-hosted app at _site/app/.
Run bash website/build.sh from the source checkout to build both the website
and app, using verified public desktop-release data and the pinned runtime.
For a prepared offline environment, use --offline --web-runtime-dir PATH.
See the website build guide
for the existing Cloudflare Pages configuration and checks. Building does not
itself publish a deployment.
Copy the complete self-hosted output folder to a static HTTPS host, preserving
relative paths. No Python, API endpoint or server computation is required there.
Serve .mjs/.js as text/javascript and .wasm as application/wasm.
Missing assets must return an error, rather than an HTML application fallback.
Retain licenses, notices, source.zip and source-fonts.zip with the app. This recipe does not
publish or configure any host.
The self-hosted runtime performs no external fetches during operation. It does
need the locally served runtime files on load; this app has no service worker
or guaranteed offline reload. Optional help/source links open external sites.
The explicit developer option --external-runtime instead references the pinned
CDN and requires external access; it is not the portable self-hosted recipe.
The pinned runtime is Pyodide 314.0.7 with CPython 3.14.2. The upstream
Pyodide LICENSE is explicitly stored as runtime/PYODIDE-LICENSE (MPL 2.0).
webapp/notices/ preserves CPython's LICENSE and Doc/license.rst and Emscripten
5.0.3's LICENSE and bundled musl COPYRIGHT. Its provenance.json records exact
URLs, sizes and hashes. These copies identify the pinned runtime and its listed
notices; they are not an exhaustive audit of the WebAssembly binary.
RatioLab is GPL-3.0-only; the bundle includes readable application
source, all browser build/fetch/serve scripts and this recipe in source.zip.
The accompanying source-fonts.zip contains the unchanged fonts and their notices;
extract both archives into the same directory for a complete rebuild.
The runtime is supplied unmodified. Its corresponding upstream sources are
Pyodide 314.0.7,
CPython 3.14.2 and
Emscripten 5.0.3.
See Pyodide's license,
CPython's license and
the bundled notices/README.txt for the preserved texts and provenance.
On computers and tablets (viewports wider than 600 CSS pixels), the workspace fits the browser height. Long parameter lists and tool panels scroll internally; short windows and enlarged text can also require scrolling inside the model pane to reach every motion control. On phones, the page keeps its natural vertical flow and can scroll normally. All preview and motion controls remain available.
Model contains the family and variant selectors at the top of the parameter pane. A horizontal Dimensions, Motion, Assembly bar below those selectors chooses the parameter section. Changing section retains the current design and parameter drafts.
Settings > Appearance contains color mode and theme editing; Language remains a compact toolbar menu and is also available under General. Workspace preferences apply immediately; storage failures retain the session choice and show a notice. They do not edit the model or its recovery.