Skip to main content

VLink

CI Lint CI Test coverage benchmark

English | 中文 · Website · Documentation

VLink is high-performance communication middleware for autonomous driving and embodied intelligence, positioned as a full-scenario alternative to ROS 2. A single type-safe API covers intra-process, shared-memory, automotive-Ethernet, and cross-machine communication. The URL selects the backend; switching may require backend-specific addressing and parameters, while the communication primitives and main application logic remain unchanged.

The current source supports 10 transport backends, 15 serialization formats, 3 communication models with 6 core primitives, plus security, recording/playback, service discovery, 10 CLI tools, and Foxglove / Rerun visualization bridges.

VLink architecture


🧩 Core Abstraction: the URL as a Communication Contract

VLink's design centers on one abstraction: a communication is defined by a model, a URL, and a core method. The URL scheme selects the backend, while the complete URL carries that backend's address and parameters.

<scheme>://<topic_name>[?params]

The scheme selects the backend. Topic-style backends with compatible addressing can usually be switched by changing the scheme while preserving the communication primitive and message-handling logic; specialized backends such as SOME/IP, MQTT, and FDBUS also require their own valid address and query parameters:

vlink::Publisher<Imu> pub("intra://sensor/imu");  // intra-process
vlink::Publisher<Imu> pub("shm://sensor/imu");    // same-host shared memory (loan-capable)
vlink::Publisher<Imu> pub("dds://sensor/imu");    // cross-machine

This yields three engineering benefits: application logic is decoupled from transport; end-to-end tests run in a single process over intra://; deployment topology is determined by configuration rather than source.


📡 Communication Models

VLink provides three communication models with six core primitives, chosen by communication semantics independent of the backend.

Three communication models

Event — publish / subscribe

vlink::Publisher<Imu> publisher("dds://sensor/imu");
publisher.publish(msg);

vlink::Subscriber<Imu> subscriber("dds://sensor/imu");
subscriber.listen([](const Imu& msg) { process(msg); });

Method — request / response

vlink::Server<Req, Resp> server("dds://calc/add");
server.listen([](const Req& req, Resp& resp) { resp.set_sum(req.left() + req.right()); });

vlink::Client<Req, Resp> client("dds://calc/add");
auto resp = client.invoke(req, std::chrono::seconds(3));
if (resp) { use(*resp); }

Field — state synchronization

vlink::Setter<Status> setter("shm://vehicle/status");
setter.set(status);

vlink::Getter<Status> getter("shm://vehicle/status");
getter.listen([](const Status& s) { use(s); });
Model Semantics Primitives Typical use
Event publish/subscribe Publisher<T> / Subscriber<T> sensor streams, perception broadcast
Method request/response Client<Req,Resp> / Server<Req,Resp> map queries, parameter access, services
Field state sync Setter<T> / Getter<T> vehicle state, configuration, calibration

🚌 Transport Backends

Scheme Underlying Scope Zero-copy Status
intra:// built-in queue intra-process conditional (direct shared-pointer path) stable
shm:// Iceoryx same-host conditional (transport loan) stable
dds:// Fast-DDS cross-machine no stable
ddsc:// CycloneDDS cross-machine no stable
shm2:// Iceoryx2 same-host yes beta
ddsr:// RTI Connext cross-machine no beta
zenoh:// Zenoh cross-machine / edge conditional beta
someip:// vsomeip automotive Ethernet no beta
mqtt:// Paho MQTT cloud no beta
fdbus:// FDBus same-host no stable on QNX, beta overall

URL syntax, query parameters, and per-backend notes are in Transport Backends and URL.


🚀 Getting Started

Quick Start

Building with VKit is recommended. VKit integrates multi-repository source fetching, cross-platform toolchain distribution, layered component orchestration, and packaging into a single pipeline that builds VLink with identical commands on Linux / QNX / Android / macOS / Windows, depending only on Bash and CMake.

git clone https://github.com/thun-res/vkit.git && cd vkit
make import_full      # fetch middleware sources: vmsgs and vlink
make                  # build, deploy, and produce a runtime package

VLink can also be integrated into an existing CMake project:

find_package(vlink REQUIRED COMPONENTS shm dds)
target_link_libraries(my_app PRIVATE vlink::vlink vlink::shm vlink::dds)

Python users can install via pip (bundles intra, shm, dds, ddsc transports, Proxy, and all 11 vlink-* CLI tools):

pip install vlink

Full build, cross-compilation, and integration details are in Build and Integration.


🧰 Ecosystem

VLink comprises three coordinated repositories:

Repository Role URL
VLink the communication middleware (this repository) https://github.com/thun-res/vlink
VKit cross-platform build and release toolkit https://github.com/thun-res/vkit
VMsgs standard message definitions for perception / planning / localization / map, etc. (Protobuf / FlatBuffers) https://github.com/thun-res/vmsgs

📚 Documentation

📄 VLink Whitepaper — a full academic treatment of industry background, technical argumentation, comparison, and performance analysis.

The following is a 16-part learning path, best read in order.

Introduction

Document Content
0. Overview and Design Philosophy positioning, core abstraction (URL as contract), architecture, capabilities
1. Getting Started VKit build, first program, examples guide

Core

Document Content
2. Communication Models node base and the Event / Method / Field models
3. Serialization type-driven automatic serialization

Transport and Capabilities

Document Content
4. Transport and URL 10 backends and URL specification
5. QoS quality-of-service policies and profiles
6. Zero-Copy loan interface and perception data containers
7. Security message-level encryption and key management
8. Base Library Logger / MessageLoop / Timer / ThreadPool, etc.
9. Recording and Playback Bag / MCAP formats and API

Tools and Operations

Document Content
10. CLI Tools 10 command-line tools
11. Visualization (Viewer / WebViz) desktop Viewer and Foxglove / Rerun bridges
12. Discovery and Proxy Monitoring topology discovery and cross-segment observation

Integration and Reference

Document Content
13. Integration and Extension C API, plugin system, environment variables
14. Cheatsheet and Troubleshooting single-page API/URL/QoS/CLI reference and symptom index
15. Testing and Contributing test framework and contribution workflow

📊 Project Reports

VLink automatically runs benchmarks and coverage analysis on every release and publishes the full reports.

Report Online report Wiki summary
🚀 Benchmarks (vlink-bench) View online Benchmarks
VLink 2.4.0 vs ROS 2 Humble benchmarks View online —
🧪 Code coverage View online Coverage

💻 Platform Support

Platform Architecture Compiler Status
Linux x86_64 / aarch64 GCC 9+ / Clang 10+ stable
QNX 7.x / 8.x aarch64 / x86_64 QCC (QNX SDP) stable
Android aarch64 / x86_64 NDK Clang r25+ stable
Windows 10+ x86_64 MSVC 2019+ / MinGW stable
macOS 10.15+ x86_64 / arm64 AppleClang 12+ beta

📁 Project Layout

vlink/
├── include/         public headers
├── src/             core library and transport backends
├── cli/             command-line tools
├── viz/             visualization tools
├── examples/        usage examples
├── test/            test suite
├── doc/             documentation
├── cmake/           CMake modules and templates
├── thirdparty/      vendored dependencies
├── tools/           development tools and toolchains
├── packup/          packaging scripts and installer assets
├── CMakeLists.txt   top-level CMake entry
├── Android.bp       Android Soong build configuration
├── conanfile.py     Conan package recipe
├── version.txt      project version
├── README.md        Chinese project overview
├── README.en.md     English project overview
├── CHANGELOG.md     changelog
├── LICENSE          project license
├── AGENTS.md        agent instructions
└── AI-POLICY.md     policy for AI-assisted contributions

🤝 Contributing

VLink is maintained by Thun Lu. PRs, issues, and documentation improvements are welcome. Please read the Contributing guide before submitting.

📜 License

Apache License 2.0 — free for commercial use.

Copyright (C) 2026 Thun Lu. All rights reserved.

Metadata

Release files for vlink 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vlink 2.4.0
File Size Uploaded Provenance Actions
vlink-2.4.0.tar.gz 3.9 MB With provenance Details for vlink-2.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vlink 2.4.0
File Actions
vlink-2.4.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for vlink-2.4.0-cp314-cp314-win_amd64.whl
vlink-2.4.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp314-cp314-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp314-cp314-macosx_15_0_arm64.whl
vlink-2.4.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for vlink-2.4.0-cp313-cp313-win_amd64.whl
vlink-2.4.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp313-cp313-macosx_15_0_arm64.whl
vlink-2.4.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for vlink-2.4.0-cp312-cp312-win_amd64.whl
vlink-2.4.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp312-cp312-macosx_15_0_arm64.whl
vlink-2.4.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for vlink-2.4.0-cp311-cp311-win_amd64.whl
vlink-2.4.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp311-cp311-macosx_15_0_arm64.whl
vlink-2.4.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for vlink-2.4.0-cp310-cp310-win_amd64.whl
vlink-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp310-cp310-macosx_15_0_arm64.whl CPython 3.10 CPython 3.10 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp310-cp310-macosx_15_0_arm64.whl
vlink-2.4.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for vlink-2.4.0-cp39-cp39-win_amd64.whl
vlink-2.4.0-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details for vlink-2.4.0-cp39-cp39-manylinux_2_28_x86_64.whl
vlink-2.4.0-cp39-cp39-manylinux_2_28_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ ARM64 Details for vlink-2.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
vlink-2.4.0-cp39-cp39-macosx_15_0_arm64.whl CPython 3.9 CPython 3.9 macOS 15.0+ ARM64 Details for vlink-2.4.0-cp39-cp39-macosx_15_0_arm64.whl

Total release size: 330.8 MB

Security for vlink 2.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 25 files in this release have been uploaded with provenance metadata.

Select from 25 files

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.4.0 This release

25 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page