Juno Live Bridge

The Juno Live Bridge is a localhost HTTP bridge exposed by the optional Juno mod. VizzyCode and the VS Code extension use it to inspect the loaded craft, import/export Vizzy programs from parts, capture telemetry, and save craft snapshots. bridge juno live

Base URL

The bridge listens locally at http://127.0.0.1:7842/.

Local editing tool

Treat the bridge as a local live-editing and diagnostics tool. Keep normal craft saves and XML files as your durable working copies.

Client-Server Architecture

sequenceDiagram
    participant VC as VizzyCode / VS Code
    participant B as Bridge localhost:7842
    participant J as Juno: New Origins
    VC->>B: GET /craft/parts
    B->>J: Query current craft state
    J-->>B: Parts and Vizzy metadata
    B-->>VC: JSON parts
    VC->>B: POST /craft/vizzy/{partId}
    B->>J: Write Vizzy XML to part
    J-->>B: Write result
    B-->>VC: JSON status

Endpoint Reference

MethodRouteDescriptionResponse
GET/statusBridge/mod status and active scene.JSON status object.
GET/craft/partsLoaded craft parts and Vizzy-capable parts.JSON part list.
GET/craft/vizzy/{partId}Imports Vizzy XML from one part.XML or JSON-wrapped XML depending client path.
POST/craft/vizzy/{partId}Exports Vizzy XML into one part.JSON write result.
GET/craft/stagesStage metadata and activation groups.JSON stage model.
GET/craft/snapshotFull craft snapshot for humans/AI and diagnostics.JSON snapshot.
GET/telemetryActive flight telemetry.JSON telemetry with quality fields.
POST/stage/activateActivates the next stage.JSON action result.

Documentation naming

Some internal bridge documentation also describes shorter or expanded endpoint aliases. This wiki keeps the routes used by the current app and VS Code workflow.

Scene Awareness

SceneReliable dataCaution
MenuBridge status only.No craft context.
DesignerCraft structure, parts, stages, Vizzy programs.Flight telemetry values are not runtime flight data.
FlightCraft structure plus live telemetry.Quality flags still matter for active vs fallback data.

Check quality first

Telemetry and snapshots should be interpreted through quality flags such as designer/static data vs active flight data.

Telemetry And Craft Snapshots

PayloadUse
Craft snapshot JSONPart names, IDs, stages, activation groups, craft structure, Vizzy-capable parts.
Telemetry JSONAltitude, velocity, mass, fuel, thrust, orbit, attitude, nav target, and flight state when available.
Craft report MarkdownReadable AI/human context generated by JunoReportBuilder.
Telemetry report MarkdownReadable runtime diagnostic summary.

See Context Bundles for how to include bridge reports in AI repair work.

Bridge Workflow

flowchart TD
    A[Start Juno with mod enabled] --> B[Load craft]
    B --> C[GET /status]
    C --> D{Scene}
    D -->|Designer| E[Inspect parts and stages]
    D -->|Flight| F[Inspect telemetry]
    E --> G[Import Vizzy from part]
    G --> H[Edit .vizzy.cs]
    H --> I[Export XML and validate]
    I --> J[POST XML to part]
    F --> K[Save telemetry report]
    K --> H
ComponentResponsibility
VizzyBridge.csHTTP server, request routing, response formatting.
VizzyCodeMod.csMod lifecycle entry point.
VizzyCodeUpdater.csUpdate loop and runtime state refresh.
DesignerIntegration.csDesigner scene craft and part integration.
CraftInfo.csCraft, part, stage, modifier, and telemetry serialization support.

Related notes: 01 - Project Architecture, 07 - VS Code Extension, 08 - AI Integration, 09 - Juno Mod (Mod Assets), 13 - Recommended Workflows, 14 - Troubleshooting.