Skip to content

Development ​

These pages define pcbjs's system boundaries and observable contracts. Use the Guide to learn a workflow and the command reference to operate the tools. Use Development when implementing a feature, building an integration or deciding whether behavior is correct.

Contract sections ​

SectionQuestions it answers
ArchitectureWhich component owns each responsibility? How does source become a board, a snapshot and a view?
Syntax and semanticsWhich expressions are accepted, what do they mean, and how are names, units, transforms and overrides resolved?
InterfacesWhat can a compiler plugin, host, viewer or query client call, and what does it receive?
Exchange formatsWhat records and artifacts cross a boundary? Which fields, identities, units and versions do they use?
Communication protocolsHow do peers connect, negotiate capabilities, exchange requests, synchronize state and recover?
User interaction protocolsWhat does an operation select, reveal or change? What happens on cancellation, undo, focus loss and reconnection?

Each section starts with scope, invariants, authoritative definitions and verification boundaries. Its detailed pages hold the field tables, syntax rules and operation contracts. A topic has one owning section even when several sections refer to it.

Authority and interpretation ​

This edition defines the pcbjs 0.1.0 contracts. Earlier beta packages do not provide every API described here. The setup guide covers the release and source-checkout workflows.

EvidenceWhat it establishes
Specification proseIntended semantics, ownership, preconditions and observable outcomes
Shared TypeScript declarationsExact fields, unions, method parameters and result types for this checkout
Runtime parsers and validatorsWhat input the implementation accepts or rejects
Tests and acceptance recordsThe behavior actually exercised on the tested candidate

A type declaration is not a runtime validator. A test's existence is not evidence that it passed on the current candidate. A disagreement between prose, declarations and behavior is a specification or implementation defect to reconcile; do not silently invent a new compatibility promise from whichever source is convenient.

The detailed Markdown remains in docs/ so pcbjs docs <topic> and this website consume the same source. Previous /docs/<topic> links redirect to the owning development page and preserve section anchors. The source links identify definitions in the repository; check the source revision when using documentation for a released package.

Common vocabulary ​

TermMeaning
ProjectA config and its registered entries, defaults and source graph
EntryA module whose default export supplies a board or variants
Board / targetA compiled design and its selected fabrication variant
Run / snapshotA compile attempt and a committed full result; a partial view compile need not mint a snapshot
FacetA named subset of viewer data produced and consumed independently
Reference / UID / numeric IDA resolvable entity name, a source-derived identity, and an identifier local to a compile
Selection / hoverShared focus state and transient prospective highlighting; neither alone authorizes a source write
Instance / library layoutAn instantiation's arrangement or the reusable definition from which instances are made

Read Conformance and compatibility before treating a format or interface as a long-term external contract.

MIT licensed. A proof of concept, pre 0.1.