Skip to content
ReferenceUnreviewed

Repository layout

WavWonder organizes its codebase as a monorepo. Research code and user-facing product packages stay in separate trees, and each package manages its own dependencies.

Top-level structure

The table below maps each top-level directory to its role in the repository.

Directory Purpose
docs/ Company-wide documentation published via Nimbus (products/, research/, engineering/, glossary/, and ideas/).
research/ Experimental modeling packages, data pipelines, and internal research tooling.
products/ User-facing deliverables (engine/, editor/, platform/), decoupled from research code.
infra/ Container definitions (docker/), SkyPilot cluster policy (skypilot/), shared runtime configs (runtime/), and the documentation site (docs-site/).
local/ Gitignored datasets, assets, checkpoints, runs, outputs, dashboard storage, caches, and temporary scripts.
.agents/ Repository-scoped agent skills and workflows.
.github/ Continuous integration and container build workflows.

Package isolation

Each package under research/ and products/ manages its own dependencies and build artifacts (pyproject.toml and uv.lock for Python, package.json and bun.lock for TypeScript). There is no root pyproject.toml, root package.json, root .venv/, or root node_modules/.

Isolating manifests per package keeps dependency closures clean. Training containers do not install web server frameworks, the tracking client remains free of PyTorch, and product packages under products/ can target independent runtimes without importing from research/. Language environments and framework build caches (.venv/, node_modules/, .react-router/) remain inside their owning package directory.

Run Python CLIs from the repository root with uv run --project <package> or from inside the package directory:

uv run --project research/vocalsynth vocalsynth --help
uv run --project research/phone-recognition phone-recognition --help

Research workspace

  • research/core: Shared configuration loader, corpus annotation readers, phoneme tables, and file/HTTP helpers with no PyTorch dependency.
  • research/tracking: Experiment identity, durable local event journals, and object-store synchronization with no PyTorch dependency.
  • research/vocalsynth: Acoustic synthesis models, trainers, evaluation pipeline, and experiment/data/eval configs.
  • research/phone-recognition: Singing phone recognition and forced-alignment models and configs.
  • research/data-pipeline: Dry-vocal separation, cleaning, annotation, and preprocessing pipeline (configs staged ahead of package extraction).
  • research/dashboard: Web application for training monitoring, alignment inspection, and blind A/B listening evaluation.
  • research/preview: Transitional piano-roll preview editor (web/) and FastAPI inference backend (server/), scheduled for retirement once products/editor replaces it.

Product deliverables

products/ holds deliverables for the Fia product family (engine/ for Fia Engine, editor/ for open-source Fia Editor, and platform/) and stays decoupled from research/. Research packages optimize for PyTorch experimentation and cloud training orchestration, while shipped inference engines and editors target standalone packaging and stable runtime contracts.

Local workspace and caches

All untracked local data, artifacts, and tool caches live under local/:

Directory Contents Retention
local/data/ Raw corpora, prepared splits, and extracted feature caches Recreate from source corpora or Training Store
local/assets/ Vocoders, pretrained upstream weights, and shared prompt bundles Shared local assets
local/third_party/ Upstream reference checkouts (DiffSinger, Phonsa, SPAM environments) External checkouts
local/checkpoints/ Exported or downloaded weights for inference, evaluation, and preview Deliverable weights, separate from trainer attempts
local/runs/ Trainer-owned attempt directories, step checkpoints, and event journals Managed by training and resume commands
local/outputs/ Ad-hoc CLI renders, baseline comparisons, and diagnostic plots Inspection outputs
local/dashboard/ Local SQLite database and uploaded evaluation media for research/dashboard Local app state
local/cache/ Regenerable tool and service caches (uv/, pycache/, ruff/, mypy/, pytest/, preview/, matplotlib/) Safe to delete at any time
local/scratch/ Short-lived debug scripts, repair jobs, and temporary dumps Delete after the task finishes or promote into a package

Root .envrc routes Python bytecode (PYTHONPYCACHEPREFIX) and uv downloads (UV_CACHE_DIR) into local/cache/, and each Python pyproject.toml points Ruff, Mypy, and Pytest caches to local/cache/<tool>/<package>. Because local/cache/ is disposable, keep temporary scripts in local/scratch/, database copies in local/dashboard/, and model weights in local/checkpoints/.

Remote storage separation

Two remote storage layers match different artifact lifecycles:

  • Training Store: Holds heavy training inputs (feature caches, vocoders, seed checkpoints) and durable per-attempt execution state (runs/<attempt_id>/) needed to resume or reproduce runs.
  • Artifact Store: Backs research/dashboard and serves lightweight browser deliverables (validation audio and plots, alignment audio bundles, blind evaluation samples).

Keeping them separate prevents multi-gigabyte optimizer states and scratch logs from coupling to the web platform’s media store. This mirrors the local split between local/runs/, local/checkpoints/, and local/outputs/.

Infrastructure configs

Machine-specific paths, compute devices, and cloud storage settings are shared across research packages under infra/runtime/. Checked-in templates use the *.example.toml suffix (local.example.toml, modal.example.toml, skypilot.example.toml), while instantiated *.toml files remain untracked. Shared base training container images live in infra/docker/, and SkyPilot cluster policies live in infra/skypilot/.

  • How we docs explains document placement, writing standards, and review rules.
  • Architecture decisions records the rationale behind cross-package structural choices.

Type to search…

↑↓ navigate↵ selectEsc close