goat-transformers

goat-transformers

Any message format to any other. Every format is a data file.

A drone's 25-byte Remote ID broadcast becomes a Cursor on Target event for a tactical map. No engine holds code for either format: each is a pack, a text file with one line for each field, and seven engines in seven languages read the same packs and must agree byte for byte.

Star on GitHub Run it in this page Docs Install

git clone https://github.com/USAREUR-AF/goat-transformers
cd goat-transformers/engines/rust
cargo build --release
IN remote-id, kind location, 25 bytes02-location-roundtrip.json
  1. when 0:4:4 1byte 0, high half: 1kind location
  2. field lat 0:40:32 sscale:1/10000000bytes 5–8: 455393090lat 45.539309
  3. field lon 0:72:32 sscale:1/10000000bytes 9–12: -1229663890lon -122.966389
  4. field hae 0:120:16 uscale:1/2:-1000 absent 0bytes 15–16: 2220hae 110
  5. default type a-u-X, ce 9999999, le 9999999from the cot-xml packnot known
OUT cot-xml, what goat-xf prints
<event version="2.0" type="a-u-X"><point
  lat="45.539309" lon="-122.966389"
  hae="110" ce="9999999" le="9999999"/><detail/></event>
One Remote ID Location message converted to Cursor on Target. Each step is one line of a pack: the bytes it reads, the integer they hold, and the model value written into the output.
  • 4,255formats1each one a pack from a public source
  • 16,746message kinds2message layouts across those formats
  • 25,472conversion vectors3all seven engines match every one
  • 786,657bytes4the engine as WebAssembly, in this page

The catalog

4,255 formats in 234 families, one shared model

How to read it

  1. Center: the shared model. Every format converts through it.
  2. Colored ring: the domain. Segment width is not a count.
  3. Each bar: one format family. Longer means more formats (log scale; faint rings at 1, 10 and 100).
  4. Dashed ring: where private formats plug in.
Every public format family, by domain 4,255 public formats in 234 families and 11 domains, drawn around the shared model: one bar per family, its length the logarithm of its pack count, read against faint rings at 1, 10 and 100 packs, coloured by domain. The longest bar is ArduPilot DataFlash log, 342 packs. A dashed outer ring stands for private overlays. shared model Air ASTERIX: 30 packs (Air) ADS-B: 2 packs (Air) OpenSky Network REST API: 2 packs (Air) readsb JSON: 2 packs (Air) GDL 90: 1 pack (Air) UAT 978 MHz ADS-B: 1 pack (Air) Land OCPP 2.0.1: 128 packs (Land vehicles) Waymo Open Dataset: 114 packs (Land vehicles) CAN DBC (opendbc): 91 packs (Land vehicles) OCPP 1.6: 78 packs (Land vehicles) Baidu Apollo: 48 packs (Land vehicles) Eclipse uProtocol: 33 packs (Land vehicles) AgGateway ADAPT: 22 packs (Land vehicles) Tier IV (ROS 2): 13 packs (Land vehicles) ASAM OSI (Open Simulation Interface): 12 packs (Land vehicles) Autoware (ROS 2): 11 packs (Land vehicles) Eclipse KUKSA.val: 8 packs (Land vehicles) Tesla Fleet Telemetry: 5 packs (Land vehicles) Vehicle diagnostics (ISO-TP, UDS, DoIP): 3 packs (Land vehicles) AgOpenGPS: 1 pack (Land vehicles) COVESA VSS: 1 pack (Land vehicles) OpenXC: 1 pack (Land vehicles) SAE J1939 frames: 1 pack (Land vehicles) Sea Argo floats (GDAC index, metadata JSON): 5 packs (Sea) Maritime routes and NMEA extras (RTZ, TAG block, PUBX, AIS area notice): 4 packs (Sea) NGA Maritime Safety Information: 4 packs (Sea) Signal K: 3 packs (Sea) AIS: 2 packs (Sea) ERDDAP tabledap: 2 packs (Sea) NMEA 2000: 2 packs (Sea) AIS binary applications of variable length: 1 pack (Sea) AIS regional binary messages (St. Lawrence Seaway, USCG PAWSS): 1 pack (Sea) aisstream.io: 1 pack (Sea) IOOS glider DAC: 1 pack (Sea) NDBC realtime2 buoy data: 1 pack (Sea) NMEA 0183: 1 pack (Sea) Raymarine SeaTalk 1: 1 pack (Sea) Space Space Data Standards: 298 packs (Space) NASA GCN notices: 21 packs (Space) CCSDS frames and packets: 15 packs (Space) NASA DONKI: 11 packs (Space) NASA cFE: 10 packs (Space) NASA NeoWs: 4 packs (Space) CelesTrak GP data and TLE: 3 packs (Space) CubeSat Space Protocol: 2 packs (Space) CCSDS NDM/XML: 1 pack (Space) Uncrewed ArduPilot DataFlash log: 342 packs (Uncrewed systems and robots) PX4 ULog: 301 packs (Uncrewed systems and robots) Cyphal (UAVCAN v1): 250 packs (Uncrewed systems and robots) Gazebo messages (gz-msgs): 219 packs (Uncrewed systems and robots) DroneCAN (UAVCAN v0): 133 packs (Uncrewed systems and robots) MAVSDK (gRPC protobuf): 113 packs (Uncrewed systems and robots) ROS 2 interface packages: 62 packs (Uncrewed systems and robots) Foxglove: 48 packs (Uncrewed systems and robots) UTM APIs (ASTM F3411 network RID, F3548): 46 packs (Uncrewed systems and robots) Parrot ARSDK: 44 packs (Uncrewed systems and robots) Parrot ARSDK protobuf: 39 packs (Uncrewed systems and robots) MAVLink 2: 14 packs (Uncrewed systems and robots) Open-RMF (ROS 2): 13 packs (Uncrewed systems and robots) VDA 5050 mobile robot interface: 8 packs (Uncrewed systems and robots) RC and small-UAS telemetry: 4 packs (Uncrewed systems and robots) Remote ID (ASTM F3411): 2 packs (Uncrewed systems and robots) DRIP (RFC 9575): 1 pack (Uncrewed systems and robots) MassRobotics AMR interoperability: 1 pack (Uncrewed systems and robots) C2 Cursor on Target: 2 packs (C2 and tactical) goat-processors outputs: 2 packs (C2 and tactical) UCI: 2 packs (C2 and tactical) A-GRA: 1 pack (C2 and tactical) APRS: 1 pack (C2 and tactical) C2SIM: 1 pack (C2 and tactical) Canonical Track v2: 1 pack (C2 and tactical) DIS (IEEE 1278.1): 1 pack (C2 and tactical) GeoTrackV1: 1 pack (C2 and tactical) NVG: 1 pack (C2 and tactical) STANAG 4676 ISR tracking: 1 pack (C2 and tactical) Sensors NITF 2.1: 32 packs (Sensors) SBP (Swift Navigation): 22 packs (Sensors) RoboSense lidar: 19 packs (Sensors) Septentrio SBF: 17 packs (Sensors) u-blox UBX: 14 packs (Sensors) Inertial Sense: 10 packs (Sensors) Ouster lidar: 9 packs (Sensors) GNSS correction transport and network timing (NTRIP, NTP/NTS, PTP): 4 packs (Sensors) ISA: 4 packs (Sensors) MISB local sets: 4 packs (Sensors) STANAG 4607 GMTI: 4 packs (Sensors) GNSS receiver binary (NovAtel OEM, SiRF): 2 packs (Sensors) OGC SensorThings: 2 packs (Sensors) OGC SWE: 2 packs (Sensors) RINEX (GNSS observation and navigation files): 2 packs (Sensors) SAPIENT: 2 packs (Sensors) Velodyne lidar: 2 packs (Sensors) gpsd JSON: 1 pack (Sensors) IGS SSR: 1 pack (Sensors) Livox SDK2: 1 pack (Sensors) OGC Moving Features JSON: 1 pack (Sensors) OGC O&M Simple Features: 1 pack (Sensors) RTCM 3: 1 pack (Sensors) SBAS L1 messages: 1 pack (Sensors) Unicore UNI: 1 pack (Sensors) Transport GBFS: 84 packs (Transport) Eclipse SUMO traffic simulation files: 41 packs (Transport) GTFS Schedule: 31 packs (Transport) OCPI: 17 packs (Transport) WZDx: 10 packs (Transport) Curb Data Specification: 8 packs (Transport) GOFS: 8 packs (Transport) TOMP-API: 7 packs (Transport) OSDM (railways): 5 packs (Transport) NeTEx: 4 packs (Transport) ERTMS/ETCS (SUBSET-026): 3 packs (Transport) GTFS Realtime: 2 packs (Transport) hafas-client: 2 packs (Transport) OpenTripPlanner GraphQL: 2 packs (Transport) ETSI ITS: 1 pack (Transport) GS1 EPCIS 2.0 events: 1 pack (Transport) MDS: 1 pack (Transport) TransXChange: 1 pack (Transport) Valhalla: 1 pack (Transport) IoT ESPHome native API: 143 packs (IoT) SunSpec Modbus: 112 packs (IoT) FIWARE Smart Data Models: 93 packs (IoT) EVerest charging stack: 55 packs (IoT) ChirpStack v4: 31 packs (IoT) Meshtastic: 12 packs (IoT) OpenADR 3: 7 packs (IoT) Zigbee Cluster Library (zigbee-herdsman): 7 packs (IoT) KNX: 6 packs (IoT) IEEE C37.118 synchrophasor (pypmu): 5 packs (IoT) Modbus: 4 packs (IoT) Shelly Gen2+ RPC: 4 packs (IoT) BACnet/IP, EtherNet/IP and HART-IP framing: 3 packs (IoT) Metering (M-Bus, wireless M-Bus, DLMS HDLC): 3 packs (IoT) OPC UA binary (NodeSet structures): 3 packs (IoT) Tasmota: 3 packs (IoT) The Things Stack: 3 packs (IoT) BLE beacons: 2 packs (IoT) Home Assistant: 2 packs (IoT) LoRaWAN framing (PHYPayload, Semtech UDP forwarder): 2 packs (IoT) Low-power mesh (6LoWPAN, RPL): 2 packs (IoT) OpenMQTTGateway: 2 packs (IoT) Smart-home serial framing (Z-Wave Serial API, EnOcean ESP3): 2 packs (IoT) DSMR P1 (Dutch smart meters): 1 pack (IoT) OMA LwM2M: 1 pack (IoT) SML (Smart Message Language): 1 pack (IoT) Sparkplug B: 1 pack (IoT) Networks HL7 FHIR R4: 146 packs (Networks) OCSF: 79 packs (Networks) IETF packet headers: 40 packs (Networks) STIX 2.1: 39 packs (Networks) OpenConfig (RFC 7951 JSON): 24 packs (Networks) IETF YANG data (RFC 7951 JSON): 19 packs (Networks) Tunnelling and VPN (VXLAN-GPE, Geneve options, MPLS stack, IKEv2): 14 packs (Networks) OpenTelemetry OTLP: 12 packs (Networks) Zeek JSON logs (scope separator _): 9 packs (Networks) gNMI: 8 packs (Networks) IPPM active measurement (OWAMP, TWAMP, STAMP): 8 packs (Networks) IP flow export (IPFIX, NetFlow, sFlow): 7 packs (Networks) Media transport (MPEG-TS, SRT, RIST, WebRTC DCEP, RTP): 6 packs (Networks) Amateur digital voice and data (M17, D-STAR, DMR): 5 packs (Networks) Directory and naming (NetBIOS name and datagram services, LLMNR, SLPv2): 4 packs (Networks) Messaging protocols (MQTT, AMQP 1.0, STUN/TURN): 4 packs (Networks) Printing (IPP binary encoding, LPD): 4 packs (Networks) Web transport framing (HTTP/2, HTTP/3, WebSocket, TLS 1.3): 4 packs (Networks) 3GPP mobile core (GTP-U, GTPv2-C, PFCP): 3 packs (Networks) Amateur and paging radio (AX.25, KISS, POCSAG): 3 packs (Networks) Finance messages (FIX tag=value, QIF, OFX transactions): 3 packs (Networks) Internet control plane (DNS message, DHCPv6 message, ICMPv6 ND): 3 packs (Networks) QUIC (long-header packets, frames, transport parameters): 3 packs (Networks) Remote access and file sharing (SSH, SMB2/3): 3 packs (Networks) Routing control protocols (BMP, BFD, RPKI to Router): 3 packs (Networks) Bibliographic records (MARC 21, CSL-JSON): 2 packs (Networks) CISA KEV catalog: 2 packs (Networks) Health data (HL7 v2 segments, DICOM files): 2 packs (Networks) IETF option areas: 2 packs (Networks) ISO transport over TCP and RDP connection negotiation (TPKT/X.224, RDP_NEG): 2 packs (Networks) OpAMP: 2 packs (Networks) OpenC2: 2 packs (Networks) Prometheus remote write: 2 packs (Networks) Security event logs: 2 packs (Networks) Signalling transport (Diameter, SCTP): 2 packs (Networks) BGP MRT: 1 pack (Networks) CACAO playbooks: 1 pack (Networks) CloudEvents: 1 pack (Networks) COSE: 1 pack (Networks) CVE JSON record: 1 pack (Networks) DTN Bundle Protocol 7: 1 pack (Networks) Elastic Common Schema: 1 pack (Networks) HSRP: 1 pack (Networks) MISP core format: 1 pack (Networks) OpenIOC 1.1: 1 pack (Networks) OSV vulnerability entry: 1 pack (Networks) PCEP: 1 pack (Networks) Suricata EVE JSON: 1 pack (Networks) Wi-Fi beacon frame: 1 pack (Networks) Maps OGC API: 42 packs (Maps, weather and alerts) NWS weather.gov API: 31 packs (Maps, weather and alerts) aviationweather.gov Data API: 23 packs (Maps, weather and alerts) OGC JSON encodings: 15 packs (Maps, weather and alerts) OpenAQ API: 15 packs (Maps, weather and alerts) Overture Maps: 15 packs (Maps, weather and alerts) Bright Sky (DWD open data): 8 packs (Maps, weather and alerts) OGC I3S (Indexed 3D Scene Layers): 8 packs (Maps, weather and alerts) USGS Water Data API: 8 packs (Maps, weather and alerts) WMO BUFR sequences: 4 packs (Maps, weather and alerts) Environment Agency flood monitoring: 3 packs (Maps, weather and alerts) OGC CoverageJSON: 3 packs (Maps, weather and alerts) Open311 GeoReport v2: 3 packs (Maps, weather and alerts) OpenStreetMap PBF: 3 packs (Maps, weather and alerts) PEGELONLINE: 3 packs (Maps, weather and alerts) Davis WeatherLink Live: 2 packs (Maps, weather and alerts) Defra UK-AIR: 2 packs (Maps, weather and alerts) GeoPackage geometry: 2 packs (Maps, weather and alerts) NHC tropical cyclone status: 2 packs (Maps, weather and alerts) USGS earthquake feed: 2 packs (Maps, weather and alerts) WMO binary codes: 2 packs (Maps, weather and alerts) CAP alerts: 1 pack (Maps, weather and alerts) CityJSON: 1 pack (Maps, weather and alerts) Garmin TCX: 1 pack (Maps, weather and alerts) Geobuf: 1 pack (Maps, weather and alerts) GeoJSON: 1 pack (Maps, weather and alerts) GPX: 1 pack (Maps, weather and alerts) KML: 1 pack (Maps, weather and alerts) Mapbox Vector Tile: 1 pack (Maps, weather and alerts) MET Norway Locationforecast: 1 pack (Maps, weather and alerts) NASA EONET events: 1 pack (Maps, weather and alerts) NOAA CO-OPS tides and currents: 1 pack (Maps, weather and alerts) OGC Moving Features CSV: 1 pack (Maps, weather and alerts) Open-Meteo: 1 pack (Maps, weather and alerts) Overpass API JSON: 1 pack (Maps, weather and alerts) STAC Item: 1 pack (Maps, weather and alerts) WMO WCMP2: 1 pack (Maps, weather and alerts) WMO WIS2 notification: 1 pack (Maps, weather and alerts) WMS capabilities: 1 pack (Maps, weather and alerts) 1 10 100 packs ArduPilot DataFlash log342 packs, the longest bar
Hover over a bar, or focus the chart and use the arrow keys, for its family and number of packs. The table under the chart lists every family.
  • Air 6 families, 38 packsASTERIX 30, ADS-B 2, OpenSky Network REST API 2
  • Land vehicles 17 families, 570 packsOCPP 2.0.1 128, Waymo Open Dataset 114, CAN DBC (opendbc) 91
  • Sea 14 families, 29 packsArgo floats (GDAC index, metadata JSON) 5, Maritime routes and NMEA extras (RTZ, TAG block, PUBX, AIS area notice) 4, NGA Maritime Safety Information 4
  • Space 9 families, 365 packsSpace Data Standards 298, NASA GCN notices 21, CCSDS frames and packets 15
  • Uncrewed systems and robots 18 families, 1,640 packsArduPilot DataFlash log 342, PX4 ULog 301, Cyphal (UAVCAN v1) 250
  • C2 and tactical 11 families, 14 packsCursor on Target 2, goat-processors outputs 2, UCI 2
  • Sensors 25 families, 159 packsNITF 2.1 32, SBP (Swift Navigation) 22, RoboSense lidar 19
  • Transport 19 families, 229 packsGBFS 84, Eclipse SUMO traffic simulation files 41, GTFS Schedule 31
  • IoT 27 families, 510 packsESPHome native API 143, SunSpec Modbus 112, FIWARE Smart Data Models 93
  • Networks 49 families, 487 packsHL7 FHIR R4 146, OCSF 79, IETF packet headers 40
  • Maps, weather and alerts 39 families, 214 packsOGC API 42, NWS weather.gov API 31, aviationweather.gov Data API 23
Every family as a table
DomainFamilyPacks
AirASTERIX30
AirADS-B2
AirOpenSky Network REST API2
Airreadsb JSON2
AirGDL 901
AirUAT 978 MHz ADS-B1
Land vehiclesOCPP 2.0.1128
Land vehiclesWaymo Open Dataset114
Land vehiclesCAN DBC (opendbc)91
Land vehiclesOCPP 1.678
Land vehiclesBaidu Apollo48
Land vehiclesEclipse uProtocol33
Land vehiclesAgGateway ADAPT22
Land vehiclesTier IV (ROS 2)13
Land vehiclesASAM OSI (Open Simulation Interface)12
Land vehiclesAutoware (ROS 2)11
Land vehiclesEclipse KUKSA.val8
Land vehiclesTesla Fleet Telemetry5
Land vehiclesVehicle diagnostics (ISO-TP, UDS, DoIP)3
Land vehiclesAgOpenGPS1
Land vehiclesCOVESA VSS1
Land vehiclesOpenXC1
Land vehiclesSAE J1939 frames1
SeaArgo floats (GDAC index, metadata JSON)5
SeaMaritime routes and NMEA extras (RTZ, TAG block, PUBX, AIS area notice)4
SeaNGA Maritime Safety Information4
SeaSignal K3
SeaAIS2
SeaERDDAP tabledap2
SeaNMEA 20002
SeaAIS binary applications of variable length1
SeaAIS regional binary messages (St. Lawrence Seaway, USCG PAWSS)1
Seaaisstream.io1
SeaIOOS glider DAC1
SeaNDBC realtime2 buoy data1
SeaNMEA 01831
SeaRaymarine SeaTalk 11
SpaceSpace Data Standards298
SpaceNASA GCN notices21
SpaceCCSDS frames and packets15
SpaceNASA DONKI11
SpaceNASA cFE10
SpaceNASA NeoWs4
SpaceCelesTrak GP data and TLE3
SpaceCubeSat Space Protocol2
SpaceCCSDS NDM/XML1
Uncrewed systems and robotsArduPilot DataFlash log342
Uncrewed systems and robotsPX4 ULog301
Uncrewed systems and robotsCyphal (UAVCAN v1)250
Uncrewed systems and robotsGazebo messages (gz-msgs)219
Uncrewed systems and robotsDroneCAN (UAVCAN v0)133
Uncrewed systems and robotsMAVSDK (gRPC protobuf)113
Uncrewed systems and robotsROS 2 interface packages62
Uncrewed systems and robotsFoxglove48
Uncrewed systems and robotsUTM APIs (ASTM F3411 network RID, F3548)46
Uncrewed systems and robotsParrot ARSDK44
Uncrewed systems and robotsParrot ARSDK protobuf39
Uncrewed systems and robotsMAVLink 214
Uncrewed systems and robotsOpen-RMF (ROS 2)13
Uncrewed systems and robotsVDA 5050 mobile robot interface8
Uncrewed systems and robotsRC and small-UAS telemetry4
Uncrewed systems and robotsRemote ID (ASTM F3411)2
Uncrewed systems and robotsDRIP (RFC 9575)1
Uncrewed systems and robotsMassRobotics AMR interoperability1
C2 and tacticalCursor on Target2
C2 and tacticalgoat-processors outputs2
C2 and tacticalUCI2
C2 and tacticalA-GRA1
C2 and tacticalAPRS1
C2 and tacticalC2SIM1
C2 and tacticalCanonical Track v21
C2 and tacticalDIS (IEEE 1278.1)1
C2 and tacticalGeoTrackV11
C2 and tacticalNVG1
C2 and tacticalSTANAG 4676 ISR tracking1
SensorsNITF 2.132
SensorsSBP (Swift Navigation)22
SensorsRoboSense lidar19
SensorsSeptentrio SBF17
Sensorsu-blox UBX14
SensorsInertial Sense10
SensorsOuster lidar9
SensorsGNSS correction transport and network timing (NTRIP, NTP/NTS, PTP)4
SensorsISA4
SensorsMISB local sets4
SensorsSTANAG 4607 GMTI4
SensorsGNSS receiver binary (NovAtel OEM, SiRF)2
SensorsOGC SensorThings2
SensorsOGC SWE2
SensorsRINEX (GNSS observation and navigation files)2
SensorsSAPIENT2
SensorsVelodyne lidar2
Sensorsgpsd JSON1
SensorsIGS SSR1
SensorsLivox SDK21
SensorsOGC Moving Features JSON1
SensorsOGC O&M Simple Features1
SensorsRTCM 31
SensorsSBAS L1 messages1
SensorsUnicore UNI1
TransportGBFS84
TransportEclipse SUMO traffic simulation files41
TransportGTFS Schedule31
TransportOCPI17
TransportWZDx10
TransportCurb Data Specification8
TransportGOFS8
TransportTOMP-API7
TransportOSDM (railways)5
TransportNeTEx4
TransportERTMS/ETCS (SUBSET-026)3
TransportGTFS Realtime2
Transporthafas-client2
TransportOpenTripPlanner GraphQL2
TransportETSI ITS1
TransportGS1 EPCIS 2.0 events1
TransportMDS1
TransportTransXChange1
TransportValhalla1
IoTESPHome native API143
IoTSunSpec Modbus112
IoTFIWARE Smart Data Models93
IoTEVerest charging stack55
IoTChirpStack v431
IoTMeshtastic12
IoTOpenADR 37
IoTZigbee Cluster Library (zigbee-herdsman)7
IoTKNX6
IoTIEEE C37.118 synchrophasor (pypmu)5
IoTModbus4
IoTShelly Gen2+ RPC4
IoTBACnet/IP, EtherNet/IP and HART-IP framing3
IoTMetering (M-Bus, wireless M-Bus, DLMS HDLC)3
IoTOPC UA binary (NodeSet structures)3
IoTTasmota3
IoTThe Things Stack3
IoTBLE beacons2
IoTHome Assistant2
IoTLoRaWAN framing (PHYPayload, Semtech UDP forwarder)2
IoTLow-power mesh (6LoWPAN, RPL)2
IoTOpenMQTTGateway2
IoTSmart-home serial framing (Z-Wave Serial API, EnOcean ESP3)2
IoTDSMR P1 (Dutch smart meters)1
IoTOMA LwM2M1
IoTSML (Smart Message Language)1
IoTSparkplug B1
NetworksHL7 FHIR R4146
NetworksOCSF79
NetworksIETF packet headers40
NetworksSTIX 2.139
NetworksOpenConfig (RFC 7951 JSON)24
NetworksIETF YANG data (RFC 7951 JSON)19
NetworksTunnelling and VPN (VXLAN-GPE, Geneve options, MPLS stack, IKEv2)14
NetworksOpenTelemetry OTLP12
NetworksZeek JSON logs (scope separator _)9
NetworksgNMI8
NetworksIPPM active measurement (OWAMP, TWAMP, STAMP)8
NetworksIP flow export (IPFIX, NetFlow, sFlow)7
NetworksMedia transport (MPEG-TS, SRT, RIST, WebRTC DCEP, RTP)6
NetworksAmateur digital voice and data (M17, D-STAR, DMR)5
NetworksDirectory and naming (NetBIOS name and datagram services, LLMNR, SLPv2)4
NetworksMessaging protocols (MQTT, AMQP 1.0, STUN/TURN)4
NetworksPrinting (IPP binary encoding, LPD)4
NetworksWeb transport framing (HTTP/2, HTTP/3, WebSocket, TLS 1.3)4
Networks3GPP mobile core (GTP-U, GTPv2-C, PFCP)3
NetworksAmateur and paging radio (AX.25, KISS, POCSAG)3
NetworksFinance messages (FIX tag=value, QIF, OFX transactions)3
NetworksInternet control plane (DNS message, DHCPv6 message, ICMPv6 ND)3
NetworksQUIC (long-header packets, frames, transport parameters)3
NetworksRemote access and file sharing (SSH, SMB2/3)3
NetworksRouting control protocols (BMP, BFD, RPKI to Router)3
NetworksBibliographic records (MARC 21, CSL-JSON)2
NetworksCISA KEV catalog2
NetworksHealth data (HL7 v2 segments, DICOM files)2
NetworksIETF option areas2
NetworksISO transport over TCP and RDP connection negotiation (TPKT/X.224, RDP_NEG)2
NetworksOpAMP2
NetworksOpenC22
NetworksPrometheus remote write2
NetworksSecurity event logs2
NetworksSignalling transport (Diameter, SCTP)2
NetworksBGP MRT1
NetworksCACAO playbooks1
NetworksCloudEvents1
NetworksCOSE1
NetworksCVE JSON record1
NetworksDTN Bundle Protocol 71
NetworksElastic Common Schema1
NetworksHSRP1
NetworksMISP core format1
NetworksOpenIOC 1.11
NetworksOSV vulnerability entry1
NetworksPCEP1
NetworksSuricata EVE JSON1
NetworksWi-Fi beacon frame1
Maps, weather and alertsOGC API42
Maps, weather and alertsNWS weather.gov API31
Maps, weather and alertsaviationweather.gov Data API23
Maps, weather and alertsOGC JSON encodings15
Maps, weather and alertsOpenAQ API15
Maps, weather and alertsOverture Maps15
Maps, weather and alertsBright Sky (DWD open data)8
Maps, weather and alertsOGC I3S (Indexed 3D Scene Layers)8
Maps, weather and alertsUSGS Water Data API8
Maps, weather and alertsWMO BUFR sequences4
Maps, weather and alertsEnvironment Agency flood monitoring3
Maps, weather and alertsOGC CoverageJSON3
Maps, weather and alertsOpen311 GeoReport v23
Maps, weather and alertsOpenStreetMap PBF3
Maps, weather and alertsPEGELONLINE3
Maps, weather and alertsDavis WeatherLink Live2
Maps, weather and alertsDefra UK-AIR2
Maps, weather and alertsGeoPackage geometry2
Maps, weather and alertsNHC tropical cyclone status2
Maps, weather and alertsUSGS earthquake feed2
Maps, weather and alertsWMO binary codes2
Maps, weather and alertsCAP alerts1
Maps, weather and alertsCityJSON1
Maps, weather and alertsGarmin TCX1
Maps, weather and alertsGeobuf1
Maps, weather and alertsGeoJSON1
Maps, weather and alertsGPX1
Maps, weather and alertsKML1
Maps, weather and alertsMapbox Vector Tile1
Maps, weather and alertsMET Norway Locationforecast1
Maps, weather and alertsNASA EONET events1
Maps, weather and alertsNOAA CO-OPS tides and currents1
Maps, weather and alertsOGC Moving Features CSV1
Maps, weather and alertsOpen-Meteo1
Maps, weather and alertsOverpass API JSON1
Maps, weather and alertsSTAC Item1
Maps, weather and alertsWMO WCMP21
Maps, weather and alertsWMO WIS2 notification1
Maps, weather and alertsWMS capabilities1

Every format, one model

Every format maps to one shared model

Public formats, among them Cursor on Target, GeoJSON, SAPIENT, MAVLink 2, NMEA 2000, ADS-B, Remote ID and 27 ASTERIX categories, each connect to one shared model in the center. A dashed outer ring holds formats kept in a private overlay, which connect to the same shared model.
Public formats sit around the shared model, each connected to it and to nothing else. The dashed outer ring is formats kept in a private overlay: they connect to the same model and convert to and from every public format, and their packs never enter this repository. docs/boundary.md states the rules. The figure is the one at the top of the README, copied from docs/figures/ when the page is built.

One message, two targets

The same 25 bytes, written for a map and for a ship

Quick start: needs a Rust toolchain and nothing else
git clone https://github.com/USAREUR-AF/goat-transformers
cd goat-transformers/engines/rust && cargo build --release
echo 122624160b42bf241b6ed1b4b69808ac0870086b53150e0200 \
  | ./target/release/goat-xf convert --from remote-id --to cot-xml --packs-only remote-id,cot-xml

In: Remote ID Location message, 25 bytes (ASTM F3411)

--to cot-xml  Cursor on Target event, the XML that tactical map software reads

<event version="2.0" type="a-u-X"><point lat="45.539309" lon="-122.966389" hae="110" ce="9999999" le="9999999"/><detail/></event>

--to nmea2000  parameter group 129025, the position message of a ship's instrument network, 11 bytes: 01f80142bf241b6ed1b4b6

lat, lon and hae (height above the ellipsoid) are keys of the shared model. 9999999 is Cursor on Target's value for "not known". Both outputs are what goat-xf, the command-line tool, prints for this input.5

Live

The engine runs in this page

This is the engine itself: the Rust reference engine compiled to WebAssembly, 786,657 bytes, with nine packs. Choose two formats, edit the message and read the result. The page sends nothing anywhere.

Remote ID Location message, the 25 bytes a drone broadcasts, as hex text. From packs/remote-id/vectors/02-location-roundtrip.json.

Message out: Cursor on Target XML

<event version="2.0" type="a-u-X"><point lat="45.539309" lon="-122.966389" hae="110" ce="9999999" le="9999999"/><detail/></event>

Output of goat-xf for this input.

Keys that carry between these two formats

  • uid
  • lat
  • lon
  • hae

Keys the target has no field for

49 keys of Remote ID, among them rid.speed_v, rid.alt_baro and rid.timestamp_ds. goat-xf matrix --detail prints all of them.

The same conversion with the command-line tool
echo 122624160b42bf241b6ed1b4b69808ac0870086b53150e0200 | goat-xf convert --from remote-id --to cot-xml --packs-only remote-id,cot-xml

JavaScript is off or the module has not loaded: this is one conversion, shown as goat-xf prints it. With JavaScript on, the engine converts what you type.

The lists of keys are for the two formats across all their message kinds, from goat-xf matrix --detail. A target is offered when the sample message carries the keys that target requires. The module, the packs and the model modules are copied from the repository by site/build.sh; assets/engine/manifest.json states the commit and the SHA-256 of each file.

Counted from the tree

How the four numbers are counted

  1. Directories of packs/ that hold a pack.def, without the 156 synthetic formats whose names start with conformance or demo- and that only exercise the specification. Printed by python3 -I tools/repo-stats, the counter the top-level README is tested against; its docstring states how each number is counted.
  2. Lines that start with kind in each of those packs; a pack with none describes one layout and counts as one. python3 -I tools/repo-stats, line message kinds.
  3. The .json files under packs/*/vectors/: python3 -I tools/repo-stats, line conversion vectors. The workflow conformance.yml builds each of the seven engines and runs every vector on it, on every change.
  4. cd bindings/wasm && cargo build --profile small --target wasm32-unknown-unknown && wc -c target/wasm32-unknown-unknown/small/goat_transformers_wasm.wasm, with rustc 1.97.1. The size depends on the compiler version; the figure in the demo is read from the file this page loads.
  5. From engines/rust after cargo build --release: echo 122624160b42bf241b6ed1b4b69808ac0870086b53150e0200 | ./target/release/goat-xf convert --from remote-id --to nmea2000, and the same with --to cot-xml.

Counted at commit 7597d81. site/build.sh counts again on every build and fails when this page states a different number.

What it is

Formats are data. Engines are generic.

A format is a data file

A pack is a directory with a pack.def: the format's name, its wire type, the public document it was written from, and one field line for each value. A wire type is an engine's codec for a family of encodings; there are seven: bits, geojson, json, protobuf, text, tlv and xml. Adding a format whose wire type exists changes no engine.

One shared model

Every pack maps its fields to typed keys in fixed units: degrees, meters, meters per second, milliseconds since 1970. A conversion decodes the source message to the model and encodes the model to the target, so 4,255 formats need 4,255 packs, not 18,100,770 converters, one for each ordered pair.

Seven engines that must agree

Rust, Go, Python, Java, C++, Erlang and Zig. Each engine is written from the specification and the vectors, never from another engine's source, and uses only its language's standard library. Each must reproduce every vector byte for byte, so a defect in one engine shows as a difference from the other six.

Three values of a 25-byte Remote ID Location message are followed from left to right. The bytes 42 bf 24 1b are read by the line 'field lat 0:40:32 sscale:1/10000000' of the remote-id pack into the model key lat, 45.539309 degrees, which the line 'field lat point/@lat float' of the cot-xml pack writes as the attribute lat of a Cursor on Target event. The longitude bytes 6e d1 b4 b6 and the height bytes ac 08 follow the same path through the keys lon and hae.
FIG. 1 One message through one conversion. A field line of a bits pack gives the word, the first bit and the number of bits, then how to scale the integer. A field line of an xml pack gives a path. Neither pack knows the other exists.
The shared model drawn as a horizontal bar. Thirteen of the 83 families of public formats connect to it: Cursor on Target, GeoJSON, NATO Vector Graphics, Canonical Track v2, SAPIENT versions 1 and 2, ISA, UCI 2.5 and 2.6 with 1,447 message kinds, A-GRA 6.0a with 860, NMEA 2000 with 488, MAVLink 2 with 388 in 14 packs, ADS-B with 64, ASTERIX with 27 categories in 30 packs, and Remote ID with 8. A dashed box, your private formats in an overlay, connects to the same bar.
FIG. 2 Thirteen of the 83 families of formats, grouped as tools/catalog-families/ groups them. Every format connects to the model and to nothing else. Two formats convert to each other exactly the keys that both map. A field the model has no key for is kept in a per-format block and written back when the message returns to its own format.

Measured

Checked against hand-written encoders

Projects with their own conversion code run the library beside it, chosen by a setting that defaults to their own code. Each project's tests compare the two paths on its own inputs, field by field, and fail when the result moves.

Compared withConversionInputsResult
open-billie, Rust encoderCanonical Track v2 to ASTERIX Category 06233 tracks, 25 encoded by bothbytes identical on all 25
397 of 397 fields equal
open-billie, Rust encoderCanonical Track v2 to Cursor on Target33 tracks17 of 33 byte-identical
547 of 594 fields equal
open-billie, Rust encoderCanonical Track v2 to SAPIENT33 tracks579 of 717 fields equal
first-bite, dictionary decoderdecode its fixture messages42 messages42 of 42 same message type
443 of 462 fields equal
first-bite, its CoT writerweather-station Position records to Cursor on Target502 recordsversion, uid, type,
how, ce, le equal on 502 of 502
goatstuff, goat-map's CoT readerCursor on Target to GeoTrackV126 events, 16 accepted by both353 of 368 members equal
15 the same number in another form

open-billie and first-bite measured in their CI at library commit 0be9fc9. For ASTERIX the caller supplies the two site codes. docs/consumer-proofs.md lists each project, every difference that remains, how many inputs it affects and what would close it.

Ten lines

Add a format without writing code

This is the complete pack for a NATO Vector Graphics point, beside the message it describes.

packs/nvg/pack.def, comments left out; on a narrow screen it scrolls sideways
format   nvg
version  0.1.0
distribution public
source  "NATO Vector Graphics 1.5 XSD (NATO ACT, public)"
wire     xml
root     nvg
field   lon       point/@x        float
field   lat       point/@y        float
field   callsign  point/@label    string
field   type      point/@symbol   string
The message
<nvg><point x="11.2" y="48.137" label="ALPHA" symbol="app6a:SFGPUCI----D"/></nvg>
With that file in packs/nvg/, in all seven engines
$ goat-xf convert --from nvg --to geojson < point.xml
{"type":"Feature","geometry":{"type":"Point","coordinates":[11.2,48.137]},"properties":{"type":"app6a:SFGPUCI----D","callsign":"ALPHA"}}

Each field line reads: the model key, the place in the message, the transform. The pack language also states binary layouts by bit range, scale factors, several message kinds chosen by values in the message, constants, defaults, value tables and repeating groups; the grammar is spec/engine-spec.md. A pack for a large message catalog is generated from the catalog's own machine-readable definition by the generators in tools/gen.

Packaging

Make exactly what you need

Seven languages

A native library in Rust, Go, Python, Java, C++, Erlang and Zig, each with no dependency beyond its standard library. For other hosts, the Rust engine is also a C library and a WebAssembly module with a JavaScript wrapper and TypeScript types.

Runtimes

The Rust and Go engines build to one fully static binary and to WebAssembly. The Java engine is a jar. The Python and Erlang engines ship with their runtime. docs/package-configurator.md has the table of build targets.

Only the packs you name

A pack loads on its own, so a deployment carries only the formats it uses.

$ goat-xf list-formats --packs-only remote-id,cot-xml
cot-xml
remote-id

On a narrow screen the output scrolls sideways.

The planner

tools/goat-pkg plan takes the formats, the language and the runtime and prints the smallest package.

$ tools/goat-pkg plan --formats remote-id,cot-xml --language rust --runtime wasm
engine:      engines/rust
packs:       remote-id, cot-xml   (only these)
wires used:  bits, xml   (a minimal engine build can exclude the rest)
build:       cargo build --release --lib --target wasm32-unknown-unknown

To choose which formats a deployment needs, tools/goat-options lists every way data can get from a system that produces it to a system that needs it, from plain-text system records and the packs, with the status of each step (docs/system-records.md).

Measured sizes, at commit 7597d81
WhatBytesMeasured with
WebAssembly module, small build786,657footnote 4
The same module after gzip -9235,164gzip -9 -c goat_transformers_wasm.wasm | wc -c
Command-line tool goat-xf, release build, macOS arm641,657,776wc -c engines/rust/target/release/goat-xf
The two packs of the conversion at the top of this page8,712cat packs/remote-id/pack.def packs/cot-xml/pack.def | wc -c
The three model modules those packs use13,014cat model/core.def model/rid.def model/track.def | wc -c

Why open

One definition of each format, in the open

A correction reaches every user

There is one definition of each format. A gap or an error in a pack is corrected in one file, and every user of that format, in every language, has the correction at the next update.

The owner of a format can keep its pack

A pack is a text file that mirrors the format's specification. The organization that writes the specification can maintain the pack directly, by pull request.

Nothing about a format is inside a product

Field positions, units and rules are readable text with a named source. The engines are Apache-2.0 and use only standard libraries.

A new format reaches every language at once

One pack makes a format convertible to and from every format already present, in all seven languages, in a browser and in a static binary.

Private formats

A format whose specification is not public stays private

A pack for such a format is kept in a private overlay repository, which names the commit of this repository it builds with and adds its own packs; the same engines read both, and the format converts to and from every public format through the shared model. Every pack is marked distribution public or distribution controlled, and an engine started with --max-distribution public loads nothing marked controlled.

docs/boundary.md states the rules and the checks. goat-transformers-overlay-example is a worked overlay with fictional content.

Install

Use it from the repository

There is no package in a registry. Clone the repository and use the engine for your language; each one builds and tests with the command shown.

Your code is inUseBuild and run every vector
Rustengines/rust, the reference engine and goat-xfcargo test --release
Goengines/gogo test ./...
Pythonengines/pythonPYTHONPATH=src python3 -m unittest discover -s tests
Javaengines/java./build.sh
C++engines/cppcmake -S . -B build && cmake --build build && ctest --test-dir build
Erlangengines/erlang./build.sh && ./run_tests
Zig 0.13engines/zigzig build test
JavaScript or TypeScript, in Node or a browserbindings/wasm, the module this page runsnode --test bindings/wasm/test/vectors.test.mjs
C, or a language that can call Cbindings/ccd bindings/c && ./test.sh

Each command runs from the directory in its row; the two bindings commands run as written from the repository root, the WebAssembly one after the module is built. bindings/README.md shows the calls of the C library and the WebAssembly module. CONTRIBUTING.md states how to add a pack, a wire type or an engine. The library is pre-1.0: the pack language and the engine interfaces can still change.

Under the hood

The shared model

Every format in this library converts through one common set of typed values: the shared model. This section says what it is, why the library is built on it, what it guarantees, and how it is kept safe. The full definition is spec/shared-model.md.

The shared model drawn as a horizontal bar that every format connects to; formats of a private overlay connect to the same bar.

What it is

A conversion is two steps: decode the source message into keys of the model, then encode those keys into the target format. No format is converted to another directly.

PartWhat it holdsDefined in
corewhat any position report means, in fixed units: identifier, type, time, latitude and longitude (WGS 84), height above the ellipsoid, horizontal and vertical error, course, speed, name. These are the fields of a Cursor on Target event.model/core.def
trackfacts about a sensor track: its source, velocity vector, class, confidence, uncertainty and status flags. These follow the Canonical Track v2 contract field for field.model/track.def
one module per formatevery other field of that format, under its own name, so that nothing is lost when a message goes back to its own formatmodel/<module>.def

Units are fixed by the model, not by a format: degrees, meters, meters per second, milliseconds since 1970 (UTC). Each format's pack converts its own units on the way in and on the way out.

Why a shared model

ApproachWork for N formatsA new format needs
A converter for each pair of formatsN × (N − 1) convertersa converter to and from every existing format
One shared model (this library)N packsone pack

The same pattern carries other wide conversion tools: pandoc converts documents through one document model, and GDAL converts geographic data through one data model.

The library does not use an existing message standard as the hub. Each candidate covers one domain (air traffic, land tactical data, maritime, space telemetry) and leaves the others out, several are heavy to implement, and some are not public. The shared model reuses existing definitions where they fit instead of inventing new ones: core is the Cursor on Target event, and track is the Canonical Track v2 contract.

What it guarantees, and what it does not

ConversionWhat happens
A format to itselfNothing is lost. A field the model has no key for is kept with the message and written back, so the message returns in its canonical form. Round-trip conformance vectors pin this.
One format to anotherExactly the values that both formats map carry. The capability report (goat-xf capability --from A --to B, or goat-xf matrix) lists what carries and what is dropped, from the two packs alone, before any message is converted.
A pair that must lose nothingNot guaranteed by the model. A direct rule for that pair is planned (spec version 0.53).

Cross-format loss is listed by the capability report but not yet reported per message. A per-conversion loss report, and a strict mode that refuses a conversion that would drop a field the caller requires, are being added.

How it is kept safe

RiskSafeguard
A key changes meaning under its usersKeys are never renamed and never change type. A new meaning is a new key.
A pack writes a value of the wrong typeEvery engine checks each pack against the model when it loads, and refuses a mismatch.
One implementation reads the model differentlySeven engines, written independently from the specification, must give the same bytes on every conformance vector.
All engines agree on a wrong valueValues are compared with the projects' own encoders and decoders on their own inputs (docs/consumer-proofs.md). Every conversion vector's decoded values are checked against a plausible range or set for their key (latitude, longitude, height, errors, course, speed, times, confidence, class, flags), and every pack that maps a height must name its vertical datum (tools/model-checks.py, rules in tools/model-ranges.json). Checks against each format's reference implementation are being added.
A change to the model breaks a userEach project pins a library commit, so a change reaches no one until they move. A change to core or track needs a written decision record (docs/adr/) and is measured against every known user before it merges.

Time quality

Time quality travels with every report, on two independent axes. A pack never invents it: each key is absent unless the source message states it.

AxisKeysStatus
Coherence of the clock that stamped the reporttime_error_ms (the error bound), time_state (coherent, drifting or free-running)in core
Confidence in UTC, and a signed attestation of time qualitythe UTC state, its error bound, the anchor and the age of the last anchor; an attestation referencebeing added

A clock can be coherent while its relation to UTC is unknown. That is a normal, healthy state, and with the second axis the model can state it.