{"id":47716650,"url":"https://github.com/cedrainteractive/teliqos-sdk-cpp","last_synced_at":"2026-04-05T10:02:49.581Z","repository":{"id":345540457,"uuid":"1186306535","full_name":"CedraInteractive/teliqos-sdk-cpp","owner":"CedraInteractive","description":"Official C++ SDK for Teliqos game analytics. Lightweight, open source, thread-safe.","archived":false,"fork":false,"pushed_at":"2026-03-30T08:37:20.000Z","size":2748,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-30T10:11:42.035Z","etag":null,"topics":["analytics-sdk","cmake","cpp","cpp17","cross-platform","event-tracking","game-analytics","game-development","offline-first","player-analytics","raylib","sdk","telemetry","thread-safe","unreal-engine"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CedraInteractive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-19T13:43:14.000Z","updated_at":"2026-03-30T08:37:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/CedraInteractive/teliqos-sdk-cpp","commit_stats":null,"previous_names":["cedrainteractive/metriqos-sdk-cpp","cedrainteractive/teliqos-sdk-cpp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CedraInteractive/teliqos-sdk-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedraInteractive%2Fteliqos-sdk-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedraInteractive%2Fteliqos-sdk-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedraInteractive%2Fteliqos-sdk-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedraInteractive%2Fteliqos-sdk-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CedraInteractive","download_url":"https://codeload.github.com/CedraInteractive/teliqos-sdk-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedraInteractive%2Fteliqos-sdk-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics-sdk","cmake","cpp","cpp17","cross-platform","event-tracking","game-analytics","game-development","offline-first","player-analytics","raylib","sdk","telemetry","thread-safe","unreal-engine"],"created_at":"2026-04-02T19:00:33.408Z","updated_at":"2026-04-02T19:01:13.300Z","avatar_url":"https://github.com/CedraInteractive.png","language":"C++","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/banner.png\" alt=\"Teliqos C++ SDK\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eOfficial C++ SDK for \u003ca href=\"https://teliqos.io\"\u003eTeliqos\u003c/a\u003e game analytics.\u003c/strong\u003e\u003cbr\u003e\n  Lightweight, open source, thread-safe. Works with raylib, Unreal Engine, and any C++ project.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/CedraInteractive/teliqos-sdk-cpp/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/CedraInteractive/teliqos-sdk-cpp/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CedraInteractive/teliqos-sdk-cpp/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://teliqos.io\"\u003e\u003cimg src=\"https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-brightgreen.svg\" alt=\"Platform\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/C%2B%2B-17-blue.svg\" alt=\"C++17\"\u003e\n\u003c/p\u003e\n\n---\n\n## Features\n\n- Automatic session tracking and heartbeat\n- Event batching with configurable intervals\n- SQLite offline queue for unreliable networks\n- Jittered exponential backoff on failures\n- Platform-specific device info collection (Windows, macOS, Linux)\n- GDPR opt-out with a single call\n- Thread-safe, non-blocking design\n\n## Quick Start\n\n```cpp\n#include \"teliqos/teliqos.h\"\n\nint main() {\n    Teliqos::Config config;\n    config.apiKey = \"mq_live_your_key_here\";\n    config.appVersion = \"1.0.0\";\n    Teliqos::init(config);\n\n    Teliqos::identify(\"player_42\");\n\n    Teliqos::EventData event;\n    event.nums[\"score\"] = 1500.0;\n    event.strs[\"level\"] = \"3-1\";\n    Teliqos::track(\"level_complete\", event);\n\n    Teliqos::shutdown();\n    return 0;\n}\n```\n\n## Integration\n\n### CMake FetchContent (recommended)\n\n```cmake\ninclude(FetchContent)\nFetchContent_Declare(teliqos\n  GIT_REPOSITORY https://github.com/CedraInteractive/teliqos-sdk-cpp.git\n  GIT_TAG v0.1.0)\nFetchContent_MakeAvailable(teliqos)\ntarget_link_libraries(your_game PRIVATE teliqos)\n```\n\n### CMake (add_subdirectory)\n\n```cmake\nadd_subdirectory(teliqos-sdk-cpp)\ntarget_link_libraries(your_game PRIVATE teliqos)\n```\n\n### Platform Support\n\n| Platform | Arch | Compiler | SSL Backend | CI Tested | Prebuilt |\n|----------|------|----------|-------------|-----------|----------|\n| Windows 10+ | x64 | MSVC 17+ | Schannel | ✅ | ✅ |\n| macOS 13+ | arm64 | Apple Clang 15+ | SecureTransport | ✅ | ✅ |\n| Ubuntu 22.04+ | x64 | GCC 11+ / Clang 14+ | OpenSSL | ✅ | ✅ |\n\n\u003e **Game engines:** Tested with raylib 5.x. Unreal Engine integration available via [teliqos-sdk-unreal](https://github.com/CedraInteractive/teliqos-sdk-unreal) (coming soon).\n\n### Dependencies\n\nAll dependencies are handled automatically — no manual installation required:\n\n| Dependency | Method | Purpose |\n|-----------|--------|---------|\n| [libcurl](https://curl.se/) | CMake FetchContent | HTTPS transport |\n| [nlohmann/json](https://github.com/nlohmann/json) | CMake FetchContent | JSON serialization |\n| [SQLite3](https://sqlite.org/) | Bundled (`third_party/`) | Offline event queue |\n\n## Build from Source\n\n```bash\ngit clone https://github.com/CedraInteractive/teliqos-sdk-cpp.git\ncd teliqos-sdk-cpp\ncmake -B build\ncmake --build build\n```\n\n### Run Tests\n\n```bash\ncmake -B build -DTELIQOS_BUILD_TESTS=ON\ncmake --build build\ncd build \u0026\u0026 ctest --output-on-failure\n```\n\n## API Reference\n\n| Function | Description |\n|----------|-------------|\n| `Teliqos::init(config)` | Initialize the SDK, start session and background threads |\n| `Teliqos::shutdown()` | Flush remaining events, end session, clean up |\n| `Teliqos::identify(playerId)` | Set the player identity |\n| `Teliqos::track(name, data)` | Send a custom event |\n| `Teliqos::setUserProperty(key, value)` | Attach metadata to every subsequent event |\n| `Teliqos::setOptOut(true)` | Disable all tracking (GDPR / Apple ATT) |\n| `Teliqos::flush()` | Force-send all queued events |\n| `Teliqos::getStatus()` | Get queue size, offline count, and quota info |\n\n## Configuration\n\n```cpp\nTeliqos::Config config;\nconfig.apiKey = \"mq_live_...\";                        // Required\nconfig.appVersion = \"1.0.0\";                           // Recommended\nconfig.endpoint = \"https://api.teliqos.io\";           // Default\nconfig.batchIntervalMs = 30000;                        // Flush every 30s\nconfig.batchSize = 50;                                 // Flush at 50 events\nconfig.collectDeviceInfo = true;                       // Auto-collect OS/CPU/RAM\nconfig.offlineQueueSize = 500;                         // Max offline events\nconfig.heartbeatIntervalSec = 60;                      // Heartbeat interval\nconfig.debug = false;                                  // Enable console logging\n```\n\n## Event Tracking\n\n```cpp\nTeliqos::EventData event;\n\n// Numeric values\nevent.nums[\"damage\"] = 25.5;\nevent.nums[\"health\"] = 100.0;\n\n// String values\nevent.strs[\"weapon\"] = \"sword\";\nevent.strs[\"boss_id\"] = \"dragon_01\";\n\n// Tags\nevent.tags = {\"pvp\", \"ranked\"};\n\n// Position (for heatmaps)\nevent.pos = {120.0f, 45.0f, 0.0f};\nevent.hasPos = true;\n\n// Map identifier\nevent.mapId = \"world_1\";\n\n// Event category (session, performance, gameplay, economy, system, custom)\nevent.category = \"gameplay\";\n\nTeliqos::track(\"boss_fight\", event);\n```\n\n## User Properties\n\nProperties set via `setUserProperty` are automatically attached to every subsequent event:\n\n```cpp\nTeliqos::setUserProperty(\"tier\", \"gold\");      // string → strs map\nTeliqos::setUserProperty(\"player_level\", 42.0); // number → nums map\n```\n\n## Privacy\n\n```cpp\nTeliqos::setOptOut(true);  // Stops all tracking, clears event queue\nTeliqos::setOptOut(false); // Resumes tracking\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrainteractive%2Fteliqos-sdk-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrainteractive%2Fteliqos-sdk-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrainteractive%2Fteliqos-sdk-cpp/lists"}