The Blazium Games SDK for game clients and dedicated servers. It is laid out the way the Steamworks SDK is: headers, a JSON schema, samples, and signed redistributable libraries on the Releases page.
The SDK implementation is closed source and lives in a private repository. This repository has what a game developer needs: the public headers, game.blaze schema, samples, licenses, and every release.
| Part | Where | Terms |
|---|---|---|
Headers (public/blazium/*.h), blaze.schema.json, samples (gamesexample/) |
This repository | MIT, see LICENSE |
blazium_api64.dll, blazium_api64.lib, libblazium_api.so |
Releases | SDK_AGREEMENT.txt. You may ship them unmodified inside your game. |
| SDK implementation source | Private | Not published |
The library never decides whether a player owns your game. The Blazium Games service does. A forged host or a patched library cannot grant a license.
Download from Releases. Each release has:
games-sdk-windows.zipandgames-sdk-linux.tar.gz: the full drop (headers, samples, redistributables).redistributable-win64.zip(blazium_api64.dll,blazium_api64.lib) andredistributable-linux64.zip(libblazium_api.so). Each also carriesSDK_AGREEMENT.txt.SHA256SUMS.txt, andSHA256SUMS.txt.ascwhen the release is GPG signed. Check the hashes before you ship a library.
Building the shared library yourself is not supported, because the source is private. Use the release files.
Ship blazium_api64.dll or libblazium_api.so next to the game executable, with game.blaze. Link the import library on Windows. Include public/ on the header path. Godot, Unity and Unreal use their own packages (games_plugin, games_unity, games_unreal) that call the same C API.
The DLL does not call api.blazium.online when a launcher is present. BlaziumAPI_Init and BlaziumGameServer_Init read game.blaze beside the executable, then connect to a running Blazium host over \\.\pipe\blazium (Windows) or $XDG_RUNTIME_DIR/blazium.sock (Linux, otherwise /tmp/blazium.sock). That host is the Blazium Games launcher.
A game refuses to start when any of these are true:
blazium_api64.dllorlibblazium_api.sois missing.game.blazeis missing (k_EBlaziumAPIInitResult_NoConfig) or does not matchpublic/blazium/blaze.schema.json(k_EBlaziumAPIInitResult_InvalidConfig).- The launcher is not running (
k_EBlaziumAPIInitResult_NoHost). - The launcher is running and nobody is logged in (
k_EBlaziumAPIInitResult_NotLoggedOn). game_uidis not a blazium.games asset (k_EBlaziumAPIInitResult_UnknownGame).- The logged-in user has no active license (
k_EBlaziumAPIInitResult_NotOwned).
After a successful client init, call BlaziumAPI_RunCallbacks from the game loop and exit if BlaziumUser()->BLoggedOn() becomes false. That call also reports playtime for the signed-in user. The DLL does not browse the catalog and cannot start a login.
UTF-8 JSON next to the executable (the working directory is checked only when the executable directory has no file):
{
"game_uid": "550e8400-e29b-41d4-a716-446655440000"
}game_uid is the asset UID on blazium.games, the same value as BLAZIUM_GAMES_APP_ID.
| Key | Values | Meaning |
|---|---|---|
mode |
launcher (default), standalone |
standalone means no Blazium launcher on the machine: the SDK signs the player in itself. |
persist |
true, false (default) |
Standalone only. Keep the session between runs, protected for the current OS user. At startup the saved session is used only once the Blazium service accepts it. |
The schema allows no other keys.
#include "blazium/blazium_api.h"
BlaziumErrMsg err{};
if (BlaziumAPI_InitEx(&err) != k_EBlaziumAPIInitResult_OK) {
return 1;
}
BlaziumAPI_RunCallbacks();
if (!BlaziumUser()->BLoggedOn()) {
BlaziumAPI_Shutdown();
return 1;
}
BlaziumUser()->GetUserUid();
BlaziumUser()->GetDisplayName();
BlaziumAPI_Shutdown();With "mode": "standalone", BlaziumAPI_InitEx does not look for a host. It returns k_EBlaziumAPIInitResult_OK with nobody signed in, and you sign the player in with a link, a QR code, or a short code. See Sign in without the launcher and gamesexample/standalone_client_main.cpp.
The SDK never creates a token. The host keeps the player's login JWT, and RequestToken asks it for a short-lived token bound to this game and to one audience: sapi for the Scripted API or lobby for lobbies.
const char *reply = BlaziumUser()->RequestToken("sapi"); // or BlaziumAPI_RequestToken("sapi")
// {"ok":true,"token":"...","audience":"sapi","game_uid":"...","expires_at":"...","expires_in":600}
// send it as: Authorization: Bearer <token>Treat the token as a secret. blazium_redact_log hides JWTs, and the SDK never writes one to its log. A refusal has "ok":false and a code such as bad_audience, not_logged_on, no_host, server_mode, user_changed, host_too_old, not_owned, feature_off or rate_limited.
BlaziumGameServer_Init uses the same game.blaze and requires the host process. It confirms the asset exists. It does not require a logged-in player or a license, and it does not report playtime.
#include "blazium/blazium_gameserver.h"
BlaziumErrMsg err{};
if (BlaziumGameServer_InitEx(27015, "1.0.0", &err) != k_EBlaziumAPIInitResult_OK) {
return 1;
}
BlaziumGameServer()->LogOn();
BlaziumGameServer()->GetServerId();
BlaziumGameServer_Shutdown();Do not call BlaziumAPI_Init and BlaziumGameServer_Init in the same process. String pointers are valid until the next SDK call on this thread. Login JWTs stay inside the host.
- Bugs and questions: blazium-games/support. Docs: docs.blazium.games.
- Security problems: report privately, see SECURITY.md. Do not open a public issue.
- Pull requests are not accepted here, see CONTRIBUTING.md.