- TypeScript 93.1%
- CSS 4.7%
- JavaScript 0.9%
- Python 0.7%
- HTML 0.6%
|
Some checks failed
Offline shell and map capture checks / offline-shell (push) Has been cancelled
Enable explicitly opt-in network MapLibre preview for minimaps by adding `styleUrl` map settings, default OpenFreeMap URL/attribution, and new Map Inspector controls to apply 3D vector tiles (with pitch) or reset. Add strict URL/provider validation and bounded network style loading in map-scene, allow HTTP(S) connections in desktop CSP for editor preview, and ensure offline style import/reset clears network URLs. Export now fails closed when a minimap uses remote resources, preserving the frozen-resource requirement. Update schema/contracts/docs and add unit + Playwright coverage for URL validation, provider style loading, and new UI behavior. |
||
|---|---|---|
| .github/workflows | ||
| apps/desktop | ||
| docs | ||
| examples | ||
| packages | ||
| schemas | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| .prettierignore | ||
| AGENTS.md | ||
| eslint.config.mjs | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| requirements-dev.txt | ||
| tsconfig.json | ||
| vite.config.mts | ||
| vite.worker.config.mts | ||
| vitest.config.mts | ||
Wayframe — Codex implementation specification
Status: Gates A/B/C accepted by the user. Gate C runtime acceptance recorded on 2026-10-10; Gate D is implemented with automated evidence; runtime/visual acceptance remains open. Gate E remains open.
Version: 0.1 • 2026-10-09
Product: Wayframe — a desktop geospatial motion-graphics editor
Primary workflow: cycling footage from chaptered GoPro recordings + separately recorded, timestamped GPX with optional heart-rate data; export transparent telemetry overlays and cinematic route renders for use in DaVinci Resolve.
Start with
AGENTS.md, thendocs/00-START-HERE.md. Do not ask Codex to build the entire application in a single pass. Complete the vertical slices and gates in the implementation roadmap.
Documents
| File | Focus |
|---|---|
AGENTS.md |
Mandatory repository-wide instructions for Codex |
docs/00-START-HERE.md |
Reading order, decisions, non-goals, terminology |
docs/01-PRODUCT-REQUIREMENTS.md |
Users, workflows, feature requirements, acceptance |
docs/02-ARCHITECTURE.md |
Process isolation, packages, service boundaries, IPC |
docs/03-DATA-MODEL-AND-TIME.md |
Canonical data, project schema, time domains and math |
docs/04-INGEST-AND-SYNCHRONIZATION.md |
GPX, HR, video chapters, sync, repair, stop detection |
docs/05-PRIVACY-AND-SEGMENTATION.md |
Redaction, public route, rendering windows and splits |
docs/06-MAP-AND-GEOGRAPHIC-INTELLIGENCE.md |
MapLibre, tiles, Overpass, Nominatim, camera, OSM |
docs/07-EDITOR-AND-ANIMATION.md |
Component system, timeline, keyframes, expressions |
docs/08-UI-UX-DESIGN-SYSTEM.md |
Exact layout conventions and visual-regression rules |
docs/09-RENDERING-AND-EXPORT.md |
Preview/export parity, frame stepping, alpha and Resolve |
docs/10-STORAGE-CACHE-AND-SETTINGS.md |
Save/load, content hashes, caching, settings, recovery |
docs/11-SECURITY-LICENSING-AND-PRIVACY.md |
Electron boundaries, HTTP endpoints, attribution, logs |
docs/12-TESTING-AND-QUALITY-GATES.md |
Automated/manual tests, synthetic scenarios, release gates |
docs/13-IMPLEMENTATION-ROADMAP.md |
Phases and dependencies; MVP vs later |
docs/14-CODEX-TASK-PROMPTS.md |
Copy/paste prompts for constrained iterative development |
docs/15-RISKS-ASSUMPTIONS-AND-DECISIONS.md |
Hard problems, recommended defaults and ADR process |
docs/16-EXTERNAL-REFERENCES.md |
Official technical sources and validation tasks |
docs/17-UI-STATE-AND-INSPECTOR-MATRIX.md |
Canonical feature placement, UI states and Inspector specifications |
schemas/wayframe-project.schema.json |
JSON Schema for project manifest, maintained with code |
examples/example-project.json |
Synthetic, nonprivate illustrative project |
examples/synthetic-ride.gpx |
Tiny synthetic GPX fixture, not production GPS data |
Spec conventions
- MUST = required for the designated milestone; SHOULD = recommended; MAY = optional enhancement.
- MVP = first useful release; V2/V3 = explicitly deferred.
- Requirements have stable IDs such as
PRIV-01. An item appearing in this package is not automatically in MVP. - When something remains unverified (e.g. video codec support), the roadmap includes a technical spike; do not silently assume success.
- The included schema is a starting contract; revise it through explicit schema migrations rather than ad hoc JSON changes.
To validate the included manifest and synthetic fixtures, run python scripts/validate_spec.py (install jsonschema for the full schema check).
Run the offline Task 0 demo
For your own GPX files, run pnpm dev:desktop. Native startup is empty: Journey Setup → Import GPX → Quality → Privacy. Review trims and enable Public Preview, then use Overlay Editor's cycling HUD preset. Use the top-left project menu to name/save/open projects. Save creates a private .wayframe directory; reopen its project.json. See real project / GPX workflow for recovery, relink and exact limitations. Browser pnpm dev remains the offline synthetic demo; desktop demo is an explicit menu option.
Development host: Windows, Node 22.16.0, pnpm 11.25.0. Dependency versions are pinned in package.json / pnpm-lock.yaml. TypeScript 6 is pinned for ESLint compatibility. No account, services, GPX import or video decoder is required.
pnpm install --frozen-lockfile
pnpm dev # browser preview on 127.0.0.1:5173
pnpm dev:desktop # build and launch Electron
pnpm build
pnpm typecheck
pnpm lint
pnpm format:check
pnpm test
pnpm exec playwright install chromium
pnpm test:e2e
pnpm test:visual
pnpm test:electron # build first; launches a hidden isolated window
pnpm test:spike # builds, captures and validates three transparent MapLibre frames
The explicit demo offers four workspaces, editable synthetic overlay properties, layers, explicit-frame scrubbing/playback, public-preview labeling, resizable panels and a shared component gallery. Demo settings/gallery expose empty/loading/error states. Pane sizes persist per workspace locally. Native projects persist component edits, privacy and analysis corrections and use worker-owned imported GPX data. Map, flyover and export controls identify their future gates.
Gate A was accepted by the user. Approved workspace/state/resolution images are in tests/baselines/. Visual captures go to artifacts/screenshots/; compare with WF_COMPARE_BASELINES=1 pnpm test:visual (PowerShell: $env:WF_COMPARE_BASELINES='1' before the command). See Task 0 evidence and toolchain decision.
Task 1 stays separate from the editor. pnpm test:spike runs a hidden 1920×1080 Electron/MapLibre experiment and writes three alpha PNGs, checkerboard previews and metrics to artifacts/map-capture-spike/. The style uses app-owned synthetic GeoJSON with no HTTP tiles/glyphs/sprites. To inspect the separate browser page, run pnpm dev and open http://127.0.0.1:5173/spike.html; it is a fixed render surface, not an editor workspace. Production GPX, privacy, tiles, video and export remain gated. MOV/ProRes is disabled/unverified. See Task 1 evidence and reproduction.
Product boundary
Task 2 supplied the private Node-only GPX/Data Doctor library with immutable byte/hash provenance, UTC and Garmin HR normalization, gap/outlier/stop warnings and reversible correction previews. The project integration now runs this library in a worker and supplies reviewed PublicView data to the editor. See Task 2 scope and evidence, parser decision, and current project workflow. Production export remains gated.
Wayframe is not a general-purpose NLE/video editor. It imports GoPro footage for preview/synchronization, uses GPX and map intelligence to drive customizable motion graphics, and produces editor-friendly rendered outputs. Actual cuts, transitions, grading, mixing and final assembly belong in DaVinci Resolve.
Task 3 public journey safety
Task 3 (PRIV-01/02) supplied immutable public projections, conservative time/distance trims, public-only bounds/statistics/telemetry, sanitized labels/debug summaries and stale-snapshot rejection. These controls now serve worker-owned real projects. Deliberate private reveal stays local to Journey Setup; Flyover/Export use Public Preview. Production rendering remains gated. See Task 3 evidence and current project workflow.
Task 4 reference synchronization
Journey Setup can probe selected MP4/MOV reference clips in Electron using installed ffprobe (WF_FFPROBE_PATH optionally selects it), review logical GoPro chapters, inspect source landmarks and save a constant-offset manual anchor against the synthetic GPX occurrences. References are original read-only files exposed through opaque playback URLs; no concatenation/proxy/re-encoding occurs. The reference lane shows chapters and camera-off intervals. pnpm test:electron generates synthetic H.264 inputs using installed FFmpeg (WF_FFMPEG_PATH optionally selects it). Browser development remains offline with compressed synthetic chapters/café break.
The project/GPX integration slice connects real sessions and persists anchors/reference identities, verifies linked video hashes on reopen, and regenerates opaque playback capabilities. Gate C adds matching-original video relink and editor transforms/undo. Live long-ride playback and GoPro codec/platform compatibility remain manual checks. See Task 4 behavior and evidence and Gate C evidence.
Gate C editor
Overlay Editor now supports design-pixel move/resize, selection/grouping, layer edits and undo/redo. Journey Setup Sync can relink unchanged original reference videos while retaining anchors. See Gate C scope and evidence. Gate C was accepted by the user on 2026-10-10; Gate D supplies offline MapLibre/PNG rendering; network caches and segmented export remain Gate E.
Gate D PNG renderer
Native projects now render public MapLibre minimaps and telemetry as transparent PNG sequences. Review privacy, add the cycling HUD, then use Export for a public-relative range and output folder. Minimap Inspector controls camera/shape/north; Settings → Services imports approved offline vector style JSON. External tile/glyph/sprite providers remain Gate E. Render progress survives workspace navigation; edits invalidate jobs; cancellation removes partial output. pnpm test:export validates the hidden pipeline; pnpm test:prores runs the optional FFmpeg alpha prototype. MOV remains disabled until Resolve compatibility is checked. See Gate D evidence and limitations.
Network minimap preview (ADR 0019): Minimap Inspector → Map accepts an HTTP(S) MapLibre style URL, including local servers. OpenFreeMap Liberty is the public default; Apply 3D vector tiles enables it with 55° pitch. Provider attribution is required. Requests use only reviewed PublicView camera coordinates. Existing projects/demo remain offline until enabled. Optional styleUrl persists additively in localSession v1; no migration is required. Network map export remains blocked pending frozen resource caching. Use an offline style or hide the minimap to export.