OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Troubleshooting
Common issues and fixes when installing or generating with ContractSpec.
Command not found
Reinstall the CLI and ensure it is in your PATH.
Confirm Node.js 20+ or Bun 1.0+ is installed.
Specs not discovered
Run
contractspec list
to see discovered specs.
Verify your spec path conventions in .contractsrc.json.
Build or validate fails
Run
contractspec validate
to surface schema errors.
Check that generated files were not manually edited.
Diagnostics
contractspec --version
contractspec list
contractspec validate src/contracts/mySpec.tsStill blocked?
Confirm compatibility requirements for runtime and framework.
Re-run builds on a clean branch to isolate changes.
Use a new spec and minimal adapter to validate setup.
Display data with DataViews
Define a query-backed DataView, render it on the frontend, and add preference-aware collection defaults.
Contracts and specs
Understand the spec model that drives generated surfaces, validation, policy, and safe regeneration.
Why ContractSpec
Keep educational and comparison content reachable without letting it define the primary OSS learning path.