Extensions
Extensions teach urepo how to discover projects, infer tasks, add extra task inputs, or drive deployments. You turn nothing on: each one acts when what it reads exists.
cargo,uv, andjslook for their manifests in every folder of the workspace. To stop one, name it in[workspace] skip, such asskip = ["uv"].dockerbuilds the images a[image.<name>]table declares.- Docker Compose runs the stacks a
[stack]table declares. - GitHub serves releases once the root file has an
[environment.<name>]or a project has a release table. pulumireleases a project whose release table saysuse = "pulumi".- A local extension in
.urepo/extensions/<name>.tomlacts because its file exists.
Two extensions that infer the same task name for one project are an error. Define [task.<name>] in the project file to replace both, or skip one of them.
Built-in extensions
Five extensions ship compiled into urepo, beside the Docker Compose and GitHub support:
| Extension | Detects | Edges | Inferred tasks | Extra inputs |
|---|---|---|---|---|
cargo |
Cargo workspaces and standalone Cargo.toml packages anywhere in the repository (cargo metadata --format-version 1 --no-deps) |
Normal and build path dependencies across workspaces or standalone crates, and from each Cargo workspace's root to its members |
build, test, lint, format on the root of each Cargo workspace or standalone crate (--workspace and --all, with --locked so a task never rewrites Cargo.lock) |
Enclosing Cargo.lock, Cargo.toml, rust-toolchain.toml, .cargo/config.toml |
uv |
[tool.uv.workspace] roots and standalone [project] packages anywhere in the repository |
[tool.uv.sources] with workspace = true or relative path |
test (pytest), lint and format (ruff), types (mypy, pyright, or ty), each under uv run --locked |
Enclosing uv.lock, pyproject.toml |
js |
pnpm-workspace.yaml, package.json workspaces, and standalone package.json packages anywhere in the repository |
Sibling workspace package names and relative path specifiers (file:, link:, portal:, relative workspace:) |
Local install (when dependencies or a lockfile exist) plus one task per script (: mapped to -), with ^build ordering and inferred build outputs |
Enclosing lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, bun.lockb), pnpm-workspace.yaml, ancestor package.json; node_modules presence on install |
docker |
None (uses [image.<name>] in urepo.toml) |
None | image-<name> per declared image |
context patterns and Dockerfile |
pulumi |
None (named by use = "pulumi" in a release table) |
None | None (supplies plan and apply for a Pulumi project) |
None |
cargo runs cargo metadata with the folders a task's PATH has after its tools (rustup's bin folder, then the system's) ahead of your PATH, so it finds the cargo that tasks run before a shim earlier on your PATH.
None of the language extensions require a manifest at the repository root. cargo, uv, and js each discover nested sub-workspaces and standalone projects across the tree (skipping hidden dot-folders such as .railway or .github), connecting projects through relative path dependencies even when no root workspace file exists.
cargo runs each task once per Cargo workspace, so the crates share one build of their dependencies and Cargo spreads them over the machine. The tasks belong to the project at the Cargo workspace's folder, which depends on every member, so an edit to any member stales them. A member has no inferred task. [dev-dependencies] stay out of the graph's edges, so test-only cycles between crates remain valid.
A cargo task passes Cargo's own settings through from the caller. RUSTFLAGS and RUSTDOCFLAGS change what the compiler builds, so they are in the task's key, like pass. CARGO_BUILD_JOBS, CARGO_INCREMENTAL, CARGO_PROFILE_DEV_DEBUG, CARGO_PROFILE_TEST_DEBUG, CARGO_TARGET_DIR and RUSTC_WRAPPER change only how it builds, so they are not, like ambient. A compile cache such as sccache therefore works by setting RUSTC_WRAPPER before urepo runs; see A compile cache for Rust.
js auto-detects npm, pnpm, yarn, or bun per workspace or standalone project by checking packageManager fields first, then the nearest enclosing lockfile or pnpm-workspace.yaml, falling back to npm. Each workspace root or standalone project with dependencies or a lockfile owns one local-only install task (local = true) that checks node_modules on disk, runs before script tasks, and stays out of standalone CI job targets and portable remote keys. Every script waits on ^build, so shared packages build before apps. Three script names run in CI:
| Script | Cached | Runs in CI | outputs |
|---|---|---|---|
build |
yes | yes | Inferred from package.json (main, module, types, typings, exports, files, bin), except a files entry naming one file inside a folder, such as server/proxy.mjs, which ships a source file |
test, lint |
yes | yes | none |
| every other script | no | no (local) | none |
A project file changes any of this for one task, such as [task.build-storybook] cache = true with outputs = ["storybook-static"] and local = false.
Local extensions
Add support for another language by creating .urepo/extensions/<name>.toml.
A declarative local extension detects folders holding a marker file and attaches shared tasks to every detected project:
# .urepo/extensions/go.toml
[extension]
name = "go"
schema = 1
[detect]
file = "go.mod"
[task.test]
description = "Run Go tests"
run = "go test ./..."A local extension answers only from its file. Built-in extensions are Rust code that answers five questions: discover, tasks, inputs, plan, and apply.