Skip to content
Documentation in progress: these pages are generated by an LLM from the repository and may not reflect the latest implementation. If anything differs, the README and source code in PlateRelay/PlateRelay take precedence.

Contributing

Contract generation workflow, testing requirements, and security guidelines for contributors.

Contributions via issues and pull requests are welcome at PlateRelay/PlateRelay.

Whenever you modify REST endpoints, permissions, or daemon protocol messages:

  1. Update the source schemas under packages/shared/schema/.
  2. Regenerate derived TypeScript and Python code and run contract checks:
Terminal window
pnpm --filter @platerelay/shared check:contract
pnpm --filter @platerelay/shared generate
daemon/scripts/generate_protocol.sh

CI verifies that generated artifacts match packages/shared/schema/ with no uncommitted drift.

Ensure both TypeScript and Python test suites pass:

Terminal window
pnpm test
uv run --project daemon pytest daemon/tests -q
  • Never commit real printer access codes, private keys, tokens, or credentials in code, configuration files, logs, or tests.
  • Never issue mutating or print-starting commands against physical printers during automated tests.
  • Report security vulnerabilities privately via GitHub Security Advisories instead of opening public issues.

PlateRelay is distributed under GPL-3.0-only. Third-party vendored components (such as pybambu under MIT) retain their original license notices.