.sightmap/. It describes the app’s views, components, and requests, with optional memory entries that carry notes agents can use at runtime.
These pages are the readable walk-through. The exhaustive field-by-field contract lives in the Schema reference and is generated from the canonical spec.
What’s in a sightmap
Four kinds of definitions, all optional:Views
Named screens identified by URL routes.
Components
Named DOM subtrees identified by CSS selectors.
Requests
Named API endpoints identified by route patterns.
Memory
Short freeform notes attached to any of the above.
*.yaml and *.yml file under .sightmap/ is discovered recursively and merged. The directory layout is for authors; it has no semantic meaning.
Top-level fields
Every file begins withversion: 1. All other top-level keys are optional.
components and requests at the file root are global — matched against every view. Nest them inside a view to scope. Scoped definitions are additive with globals. Entries in any components: array may also be $ref references to shared definitions. See Components and Requests for the matching rules.
Two versioning axes
The spec and the project that publishes it move independently.- The spec stream is the integer in the YAML
version:field. It is currently1and bumps only on breaking changes to the format. - The project semver describes how settled stream
1is. It is currently0.1.0— pre-1.0, so the spec may be tightened or clarified in place. Project releases are published on GitHub Releases. After1.0.0, the rules in Versioning become commitments.
1 for a long time. A version: 2 would mean a new spec/v2/ directory and a real, accepted breaking change.
A small example
.sightmap/home.yaml