zoneq-project-format
v0.2.0
Published
Local tools for the ZoneQ .zq project file format
Readme
ZoneQ project file format
zoneq-project-format is a local Node 22+ command for upgrading, extracting, packaging, and validating editable .zq project bundles. It does not upload project files or render previews. The public format reference and examples are at docs.zoneq.app/project-file-format.
Supported authored schema: 104. Upgrade inputs: 101–104. Full command reference.
npx [email protected] --version
npx [email protected] upgrade legacy.zq --out current.zq --json
npx [email protected] extract example.zq --out project --fork
npx [email protected] asset add project ./image.webp --key assets/image.webp
npx [email protected] pack project --out result.zq
npx [email protected] validate result.zq --jsonThe extracted directory contains project.json, local files at their asset importKey paths, and optionally preview/thumb.webp. asset add prints the new project-asset: reference, which you place in the desired project field. pack updates byte sizes and content hashes; validate does not modify input. The CLI validates against both Studio's load checker and Portal's strict upload and archive checks.
upgrade uses Studio’s migrations and preserves identity, assets, nested modules, and preview. Its output must be distinct and nonexistent; the source is unchanged. Strict commands report an upgrade hint for supported older bundles. Use extract --fork for an independent project. JSON reports include actionable issue paths; failures exit nonzero.
To build this package from the private ZoneQ repository, install dependencies in portal/ and this directory, then run npm run build. npm test checks the official project corpus and invalid bundles. The published npm tarball contains only the bundled CLI, this README, and package metadata.
