1.2 Repository layout
Tempo is organized by component. Implementation and component-specific tests
are kept together and shared inputs are under tests/fixtures.
| Directory | Responsibility |
|---|---|
rust/core | Field geometry, planning, trajectory generation, following, sequencing, and the C ABI |
rust/wasm | Browser bindings over the same core and WebAssembly conformance checks |
java, python, cpp | Robot-facing APIs, native adapters, packaging, and binding tests |
gui | Browser editor, desktop shell, and editor tests |
assets | Shared brand source, licensed fonts, and bundled game packs |
tests/fixtures | Cross-language expected results, recorded traces, ABI authorities, and API snapshots |
examples | Runnable robot projects and simulation examples |
website | Published user guides and API documentation |
tools | The bundled-pack generator (packs), which every build runs |
docs/contributing | Architecture, design, building and testing |
The Rust workspace defaults to core. The wasm crate has a separate workspace
and target directory and imports core by path. Native bindings load
libtempo_core, and directory names do not determine the published native ABI.
Naming
- Use lowercase, single-word directory names:
sequencing,planning,api. - Use camelCase for multiword data files and prose documents:
routeJoins.json,repositoryLayout.md. - Use short component names within an existing namespace, such as
rust/wasm. - Keep language conventions: Rust modules and Python modules use snake_case, Java and C++ type files match their class names, and editor components use PascalCase.
- Keep tool-defined names such as
Cargo.toml,Cargo.lock,CMakeLists.txt,package.json,README.md, and.clang-format. - Name tests after the behavior or public surface they exercise. Keep them beside their component, or in its existing test source set.
Existing script entrypoints, published package names, and field pack identifiers are compatibility surfaces. Renaming one requires updating its build, CI, and documentation consumers together.
Applications
gui/web contains the shared React frontend and gui/desktop
contains the Tauri shell. Commands run from gui through the npm scripts
dev, test, build, serve, and desktop. Build and launch helpers are in
scripts/, and the generated planner package is in wasm/web and feeds the
assembled dist/.
The frontend’s src/features/ groups screens, stores, domain logic, tests, and
styles by feature. Shared application assembly, components, canvas helpers,
planning, source editing, workspace persistence, and platform access are in
src/app, src/components, src/canvas, src/planner, src/code,
src/workspace, and src/platform. See the editor guide
for commands and the feature list.
Shared fixtures
The shared assets contain canonical brand, font, and game-pack inputs. Browser builds import them directly and native bundles derive their resources from those files. Consumer-specific images and generated platform icons stay with the application that uses them.
The fixture index describes each group, and tests that exercise several bindings read the same files. Component-only test helpers belong with that component, not in the shared fixture tree.
Recorded sequencing traces keep their case identifiers, which the loaders map to camelCase filenames. Their bytes change only through a reviewed hand edit naming the behavior that moved. Source-closure hashes follow the actual tracked source paths and bytes, and a file move does not authorize changing expected planner results or ABI layouts.
Generated application bundles, native build outputs, package caches, and test reports stay in the component’s ignored output directories. Build loops reuse those directories instead of allocating a new complete build per run.
Changes across components
A path or package rename must update manifests, relative includes, fixture loaders, packaging scripts, CI, and public documentation. Embedded fixture targets remain tracked compile-time inputs. The testing guide and pin guide define the corresponding verification gates.