Initial Decart C++ SDK#1
Merged
Merged
Conversation
Minimal, professional C++17 SDK for Decart's realtime models, built on the official LiveKit C++ SDK for media transport. - decart::Client with API-key/base-URL config (DECART_API_KEY fallback) - Realtime: client.realtime().connect(videoSource, opts) — publish frames, receive transformed frames, steer with setPrompt/set/setImage; connection-state, queue-position, generation, and error callbacks - Auth: client.tokens().create() — short-lived client tokens - Model registry: decart::models::realtime(...) - Transport: WebSocket signaling (IXWebSocket) + LiveKit/WebRTC media - Optional auth-only build (DECART_BUILD_REALTIME=OFF) with no LiveKit dependency - CMake packaging (vcpkg manifest + FetchContent fallback + prebuilt LiveKit download), examples, doctest unit tests, and Linux/macOS/Windows CI
- Windows build failed to link the examples: IXWebSocket's mbedtls TLS backend references BCryptGenRandom, so link Bcrypt.lib (PUBLIC) on Windows. - realtime_video used POSIX popen/pclose, which MSVC names _popen/_pclose; add a _WIN32 shim. - Silence MSVC C4996 getenv warnings via _CRT_SECURE_NO_WARNINGS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decart C++ SDK 🎉
This adds a first-class C++ SDK so native apps, desktop tools, robotics, and game/engine integrations can use Decart's realtime models directly — no browser or Python runtime required. It rounds out our SDK lineup with the same concepts and ergonomics developers already know, in idiomatic, modern C++.
What you can do
Usage
Notes
Scope is intentionally minimal for this first release (realtime + auth); more surfaces can follow.