Skip to content

Manifest Reference (app.toml) ​

Every JetPack native application is governed by an app.toml manifest parsed into AppManifest (crates/jetpack-common/src/manifest.rs) with #[serde(deny_unknown_fields)]. Any unrecognized or misspelled field fails validation immediately.

Validate any manifest (or merged DevEnv overlay) locally with:

bash
jetpack validate --env dev .
jetpack validate --env prod app.toml
# Equivalent daemon invocation:
jetpack-daemon --validate-manifest path/to/app.toml --env dev

DevEnv (app.dev.toml) vs ProdEnv (app.toml) ​

Once an application is published to SignedAppCatalog (for example under com.acme.ocr or io.jetpack.*), jetpack install-local / --install-local-app blocks local installs using that catalog ID with APP_SPOOFING_DETECTED. Rather than editing package.id inside app.toml, keep your canonical ProdEnv manifest in app.toml and declare local DevEnv overrides in a sibling app.dev.toml file:

  • app.toml (ProdEnv): Canonical production manifest used for store builds (jetpack package --env prod / npm run package). Ignores app.dev.toml.
  • app.dev.toml (DevEnv): Optional partial overlay (AppManifestOverride in crates/jetpack-common/src/manifest.rs) also parsed with #[serde(deny_unknown_fields, default)]. Every section ([package], [hardware], [runtimes.<name>], [python_env], [models.<name>], [services.<name>], [volumes.<name>], [permissions], [execution]) is optional.
  • Auto-derived com.dev.<slug> ID: When app.dev.toml omits [package].id (or when --env dev is passed without app.dev.toml), derive_dev_app_id automatically derives com.dev.<slug> from app.toml's [package].id so local DevEnv installs sit cleanly alongside a catalog-installed ProdEnv copy.
  • Merge Semantics: Maps (execution.env, runtimes, models, services, volumes, python_env.backend_indexes) deep-merge with base keys from app.toml (app.dev.toml adds or overrides keys while preserving others), while scalars and lists (args, requirements, accelerators, architectures, filesystem_scopes, network_allowlist) replace the base field when specified.
  • Packaging Exclusions: app.dev.toml, .env, and .env.* are automatically stripped from CAS tarballs (--install-local-app) and production OCI Image Layout layers (--package-app / jetpack package). Run jetpack env check (npm run env:check) to verify both environments cleanly.

Example app.dev.toml:

toml
[package]
id = "com.dev.example-worker"
name = "Example Compute Worker (Dev)"

[execution.env]
JETPACK_ENV = "dev"
JETPACK_LOG_LEVEL = "debug"

Complete Annotated Example ​

toml
[package]
id = "com.dev.example-worker"
name = "Example Compute Worker"
version = "0.1.0"
description = "Annotated reference worker demonstrating all nine JetPack app.toml sections."
authors = ["Your Name <dev@example.com>"]
license = "MIT"
homepage = "https://example.com/jetpack-worker"

[hardware]
min_ram_mb = 512
min_vram_mb = 0
min_disk_mb = 128
accelerators = ["metal", "cuda", "cpu"]
architectures = ["darwin/arm64", "linux/amd64", "windows/amd64"]

[runtimes.python]
version = "3.12.6"
digest = "sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
image = "ghcr.io/jetpack/runtime-python:3.12.6"
target_dir = "runtimes/python"

[runtimes.ffmpeg]
version = "9.0.2"
target_dir = "runtimes/ffmpeg-9.0.2"

[runtimes.ffmpeg.platforms."darwin/arm64"]
url = "https://github.com/Tyrrrz/FFmpegBin/releases/download/9.0.2/ffmpeg-osx-arm64.zip"
digest = "sha256:7d22a2893ccd761c3b4214165975e306d6c85c1de188f79f7e2723070c0006e4"

[python_env]
python_version = "3.12"
requirements = ["jetpack-sdk"]
# uv_lock_sha256 = "428843fd0e0da23463920ba9aa0191a39f32a47b02e97a936c974ba996b4b98f"
isolated = true

[python_env.backend_indexes]
cuda = "https://download.pytorch.org/whl/cu124"
cpu = "https://download.pytorch.org/whl/cpu"

[services.preprocessor]
command = "bin/preprocessor.py"
args = ["--workers", "1"]
restart_policy = "on-failure"
depends_on = []

[services.preprocessor.env]
LOG_FORMAT = "compact"

[volumes.inputs]
mode = "read-only"

[volumes.outputs]
mode = "read-write"

[permissions]
gpu_access = true
model_cache = true
filesystem_scopes = ["cache"]
network_allowlist = ["preset:huggingface"]
max_memory_mb = 4096

[execution]
entrypoint = "worker.py"
args = []
# working_dir = "."
ipc_transport = "auto"
graceful_shutdown_secs = 10

[execution.env]
JETPACK_LOG_LEVEL = "info"

# Optional lazy runtime AI model disclosures (downloaded on first use, not during app.pull)
# [models.whisper_large_v3]
# name = "Whisper large-v3"
# size_bytes = 3090000000
# approximate = true
# source = "https://huggingface.co/Systran/faster-whisper-large-v3"
# trigger = "on_first_use"

Section-by-Section Reference ​

1. [package] (Required) ​

FieldTypeRequiredValidation Rules
idstringYesMatches ^[a-z0-9][a-z0-9._-]{1,126}[a-z0-9]$; no .. or slashes. io.jetpack.* is reserved for verified catalog apps.
namestringYesNon-empty human-readable display name.
versionstringYesStrict SemVer (MAJOR.MINOR.PATCH).
descriptionstringNoShort UI description (defaults to "").
authorsstring[]NoPackage author strings.
licensestringNoOptional SPDX license identifier.
homepagestringNoOptional project homepage URL.

2. [hardware] (Required) ​

FieldTypeRequiredValidation Rules
min_ram_mbu64NoMinimum system RAM in MiB (0 default).
min_vram_mbu64NoMinimum GPU VRAM in MiB (0 default).
min_disk_mbu64NoMinimum disk space in MiB (0 default).
acceleratorsstring[]NoAllowed values: cpu, cuda, metal, mps, mlx, rocm, vulkan, directml.
architecturesstring[]YesNon-empty list of windows/amd64, darwin/arm64, linux/amd64.

3. [runtimes.<name>] (Optional) ​

FieldTypeRequiredValidation Rules
versionstringYesRuntime version string (e.g. "3.12.6").
digeststringConditionalsha256:<64-hex> digest (required unless platforms supplies per-platform entries).
imagestringNoOCI artifact reference (e.g. ghcr.io/jetpack/runtime-python:3.12.6).
urlstringNoDirect HTTPS archive URL (.tar.gz, .tgz, .zip).
platforms."<os/arch>"tableNoPer-platform { digest, url?, image? } overrides keyed by TargetPlatform.
target_dirstringYesRelative path inside the app bundle (no .. or leading /).

4. [python_env] (Optional) ​

FieldTypeRequiredValidation Rules
python_versionstringYesTarget Python version (e.g. "3.12").
requirementsstring[]NoPyPI requirement specifiers (arguments starting with - are rejected).
uv_lock_sha256stringNo64-hex SHA-256 (or sha256:<hex>) verified against uv.lock.
index_urlstringNoCustom PyPI index URL.
extra_index_urlsstring[]NoExtra PyPI index URLs.
isolatedboolNoDefaults to true (prevents host site-packages leakage).
backend_indexesmap<string, string>NoPer-backend wheel index URLs keyed by cuda, mps, metal, rocm, or cpu.

5. [services.<name>] (Optional) ​

FieldTypeRequiredValidation Rules
commandstringYesRelative executable path inside the app bundle (no .. or absolute paths).
argsstring[]NoCLI arguments for the companion service.
envmap<string, string>NoSanitized environment variables (forbidden linker vars rejected).
depends_onstring[]NoOther [services] keys; validated with DFS cycle detection.
restart_policystringNo"never" (default), "on-failure", or "always".
healthcheck_ipcstringNoOptional relative IPC healthcheck endpoint.

6. [volumes.<name>] (Optional) ​

FieldTypeRequiredValidation Rules
modestringYes"read-only" or "read-write". Host paths are strictly forbidden in app.toml.

7. [permissions] (Optional; Defaults to Strict Default-Deny) ​

FieldTypeDefaultValidation Rules
filesystem_scopesstring[][]Relative subdirectories inside the job workspace (no /, .., ~, or drive prefixes).
network_allowliststring[][]Allowed host:port endpoints, bracketed IPv6 literals, or "preset:huggingface" for the Userspace Proxy (unknown preset:*, wildcards */0.0.0.0:*, and loopback daemon ports rejected).
gpu_accessboolfalseEnables OS GPU driver/device access (AGXDeviceUserClient, /dev/dri, /dev/nvidia*, CUDA, DirectML).
model_cacheboolfalseMounts persistent <root>/cache/models read-write and injects JETPACK_MODEL_CACHE_DIR, HF_HOME, and TORCH_HOME.
max_memory_mbu64NoneOptional memory ceiling in MiB (must be > 0 if set).

8. [execution] (Required) ​

FieldTypeRequiredValidation Rules
entrypointstringYesRelative path to primary script/binary inside the bundle.
argsstring[]NoCLI arguments passed to the entrypoint.
envmap<string, string>NoSanitized env vars. Rejects LD_PRELOAD, LD_LIBRARY_PATH, LD_AUDIT, DYLD_INSERT_LIBRARIES, DYLD_LIBRARY_PATH, DYLD_FRAMEWORK_PATH, PYTHONINSPECT, PYTHONPATH.
working_dirstringNoOptional relative working directory.
ipc_transportstringNo"auto" (default), "unix_socket", or "named_pipe".
timeout_secsu64NoOptional positive hint (must be > 0 if set); workers stay running until explicitly stopped or session/daemon shutdown.
graceful_shutdown_secsu64NoGrace period before SIGKILL/TerminateProcess (default 10, must be > 0).

9. [models.<name>] (Optional) ​

Declares AI model weights downloaded lazily during runtime usage (for example on first inference request rather than during initial app.pull), so the Control Center Store and catalog.estimate_sizes can display runtime model requirements separately from the initial install download size.

FieldTypeRequiredValidation Rules
namestringYesNon-empty human-readable display name shown in Store tooltips (no control chars).
size_bytesu64YesExpected model footprint in bytes (must be > 0).
approximateboolNofalse default; set true when the byte size is an estimate (~ prefix in UI).
sourcestringNoOptional https:// (or loopback http://) download URL validated with validate_index_url.
triggerstringNoOptional human/machine hint describing when download happens (e.g. "on_first_use", no control chars).

Zero-VM Local Compute Orchestrator · Rust + WebAssembly + OS Kernel Sandboxes