Packaging Spec
1. Release Units
The workspace root package named boundra-workspace is not a release unit. It
must keep private: true and reject direct npm publish attempts.
boundra
Public npm package containing:
- ESM JavaScript under
dist/ - TypeScript declarations under
dist/ - cross-platform native CLI launcher under
bin/ - package metadata and README
- no TypeScript source dependency at runtime
The package must not publish tests, workspace configuration, or example files.
boundra CLI
Native archives attached to a GitHub Release:
boundra-<version>-x86_64-unknown-linux-gnu.tar.gzboundra-<version>-x86_64-apple-darwin.tar.gzboundra-<version>-aarch64-apple-darwin.tar.gzboundra-<version>-x86_64-pc-windows-msvc.zipchecksums-sha256.txt
Each archive contains the boundra executable, LICENSE, and a short install
README.
2. Supported Toolchains
- Node.js: 20, 22, and 24
- package manager used by this repository: pnpm 11
- Rust source installation: current stable toolchain
- CLI release targets: Linux x64, macOS x64/arm64, Windows x64
The runtime is package-manager agnostic after publication. Runtime compatibility jobs use npm so the pnpm 11 development-tool requirement does not incorrectly raise the runtime's minimum Node.js version.
3. Runtime Package Contract
packages/runtime/package.json must provide:
type: module- conditional
exportswithtypesandimport files: ["bin", "dist", "README.md", "LICENSE"]bin.boundra: "./bin/boundra.mjs"sideEffects: falseengines.node >= 20- public access metadata
pnpm --filter boundra pack must contain only the intended public
files, and a fresh project must be able to import every public runtime export.
Tag releases publish through npm trusted publishing on a GitHub-hosted runner
with OIDC. The npm package must be linked to .github/workflows/release.yml
before the first tag is pushed.
4. CLI Contract
The release binary must:
- run
boundra --helpwithout repository files - create domains and generate route/query/mutation files
- emit the same diagnostic and JSON schemas tested in the workspace
- report its version through
boundra --version
The npm launcher must download only the matching release version, verify the
archive against checksums-sha256.txt, cache it outside the project, and avoid
network access during package installation.
5. Clean-Room Gate
A temporary project outside the repository must:
- install the packed runtime artifact, Zod, and TypeScript
- execute the installed npm CLI launcher against the release-mode binary
- initialize a workspace and create
orderandbilling - add
billing -> order - generate one route, query, mutation, and CRUD resource
- type-check generated code against the packed runtime
- pass
check-boundaries --format json - produce the expected domain graph
6. Versioning
- first usable preview version is
0.1.1;boundra@0.1.0is an accidental repository snapshot and is not a supported release - breaking generated-code, diagnostic, or manifest changes increment the minor
version while the project remains below
1.0.0 - release tags use
v<version> - runtime package and CLI version must match the release tag