# com2usplatform/hiveaxyl-sdk-unity architecture

> Architecture diagram of the GitHub repository com2usplatform/hiveaxyl-sdk-unity, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/com2usplatform/hiveaxyl-sdk-unity
- Repository: https://github.com/com2usplatform/hiveaxyl-sdk-unity

## Overview

Hive Axyl is a Unity SDK composed of a required core and optional capability packages. The principal workflow is a Unity game using SDK capabilities to reach Hive Axyl services or platform APIs; platform addons expose native authentication, payment, and notification mechanisms. The graph retains documented capabilities even where their implementation was not sampled. Relationships among those unsampled packages are limited to README-documented links; source-level edges are included only where excerpts or the source index establish them.

Main entry points: [`Packages/com.com2usplatform.hiveaxyl.auth/Runtime`](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.auth/Runtime) (Auth and token clients), [`Packages/com.com2usplatform.hiveaxyl.payments`](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.payments) (Payments capability), [`Packages/com.com2usplatform.hiveaxyl.push`](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.push) (Push capability), [`Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs`](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs) (Steam authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core infrastructure"]
  node_core_runtime["Core runtime<br/>[Runtime]"]
  node_unity_bridge["Unity bridges<br/>[Bridge]"]
  node_secure_storage["Secure storage"]
end

subgraph group_auth["Authentication"]
  node_auth_clients["Auth and token clients<br/>[Runtime]"]
  node_token_refresh["Token refresh"]
  node_apple_auth["Apple sign-in<br/>[Core]"]
  node_gpg_auth["Google Play Games"]
  node_steam_auth["Steam authentication"]
  node_web_auth["Web authentication"]
end

subgraph group_commerce["Payments"]
  node_payments["Payments capability"]
  node_apple_pay["Apple StoreKit"]
  node_google_pay["Google Play Billing"]
  node_steam_pay["Steam microtransactions"]
end

subgraph group_messaging["Messaging and services"]
  node_push["Push capability"]
  node_apns["Apple push<br/>[APNSPlugin.cs]"]
  node_fcm["Firebase messaging<br/>[FCMPlugin.cs]"]
  node_local_notify["Local notifications<br/>[Core]"]
  node_mailbox["Mailbox capability"]
  node_coupons["Coupon capability"]
  node_analytics["Analytics capability"]
  node_service_access["Service access"]
  node_tcb["TCB connector"]
end

subgraph group_platform["Platform integrations"]
  node_steam_context["Steamworks context"]
end

node_game(("Unity game"))
node_hive_services{{"Hive Axyl platform"}}
node_native_platforms{{"Native platform APIs"}}

node_game -->|"initializes SDK"| node_core_runtime
node_game -->|"uses capability"| node_auth_clients
node_game -->|"uses capability"| node_payments
node_game -->|"uses capability"| node_push
node_game -->|"uses capability"| node_mailbox
node_game -->|"uses capability"| node_coupons
node_game -->|"uses capability"| node_analytics
node_game -->|"uses capability"| node_service_access
node_game -->|"uses capability"| node_tcb
node_game -->|"uses capability"| node_secure_storage
node_core_runtime -.->|"dispatches through"| node_unity_bridge
node_auth_clients -->|"connects to"| node_hive_services
node_token_refresh -->|"issues token request"| node_auth_clients
node_apple_auth -->|"extends auth"| node_auth_clients
node_gpg_auth -->|"extends auth"| node_auth_clients
node_steam_auth -->|"extends auth"| node_auth_clients
node_steam_auth -->|"creates context"| node_steam_context
node_web_auth -->|"extends auth"| node_auth_clients
node_payments -->|"connects to"| node_hive_services
node_apple_pay -->|"extends payments"| node_payments
node_google_pay -->|"extends payments"| node_payments
node_steam_pay -->|"extends payments"| node_payments
node_steam_pay -->|"creates context"| node_steam_context
node_push -->|"connects to"| node_hive_services
node_apns -->|"extends push"| node_push
node_fcm -->|"extends push"| node_push
node_local_notify -->|"schedules notifications"| node_native_platforms
node_secure_storage -->|"persists encrypted data"| node_native_platforms

click node_core_runtime "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.core/Runtime"
click node_unity_bridge "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.core/Runtime/Unity/Bridge"
click node_steam_context "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.steamworks/Runtime/Core/SteamworksContext.cs"
click node_auth_clients "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.auth/Runtime"
click node_token_refresh "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth/Runtime/Refresh/AuthTokenRefreshHandler.cs"
click node_apple_auth "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.apple/Runtime/Core"
click node_gpg_auth "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.gpg/Runtime/Core/GPG/GooglePlayGamesPlugin.cs"
click node_steam_auth "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs"
click node_web_auth "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.webauth/Runtime/Core/WebAuthSessionPlugin.cs"
click node_payments "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.payments"
click node_apple_pay "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.apple/Runtime/Core/AppleStoreKitPlugin.cs"
click node_google_pay "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.google/Runtime/Core/Billing/GooglePlayBillingPlugin.cs"
click node_steam_pay "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.steam/Runtime/Core/SteamMicrotransactionsPlugin.cs"
click node_push "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.push"
click node_apns "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.push.addon.apns/Runtime/Core/APNSPlugin.cs"
click node_fcm "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.push.addon.fcm/Runtime/Core/FCM/FCMPlugin.cs"
click node_local_notify "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.push.addon.applenotification/Runtime/Core"
click node_mailbox "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.mailbox"
click node_coupons "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.coupon"
click node_analytics "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.analytics"
click node_service_access "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.serviceaccess"
click node_tcb "https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.tcb"
click node_secure_storage "https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.storage/Runtime/Core/SecureStorage/SecureStoragePlugin.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core_runtime,node_unity_bridge,node_secure_storage toneBlue
class node_auth_clients,node_token_refresh,node_apple_auth,node_gpg_auth,node_steam_auth,node_web_auth toneAmber
class node_payments,node_apple_pay,node_google_pay,node_steam_pay,node_native_platforms toneMint
class node_push,node_apns,node_fcm,node_local_notify,node_mailbox,node_coupons,node_analytics,node_service_access,node_tcb toneRose
class node_steam_context,node_game,node_hive_services toneIndigo
```

## Components

### Core infrastructure

- [Core runtime](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.core/Runtime): `Packages/com.com2usplatform.hiveaxyl.core/Runtime`
- [Unity bridges](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.core/Runtime/Unity/Bridge): `Packages/com.com2usplatform.hiveaxyl.core/Runtime/Unity/Bridge`
- [Secure storage](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.storage/Runtime/Core/SecureStorage/SecureStoragePlugin.cs): `Packages/com.com2usplatform.hiveaxyl.storage/Runtime/Core/SecureStorage/SecureStoragePlugin.cs`

### Authentication

- [Auth and token clients](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.auth/Runtime): `Packages/com.com2usplatform.hiveaxyl.auth/Runtime`
- [Token refresh](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth/Runtime/Refresh/AuthTokenRefreshHandler.cs): `Packages/com.com2usplatform.hiveaxyl.auth/Runtime/Refresh/AuthTokenRefreshHandler.cs`
- [Apple sign-in](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.apple/Runtime/Core): `Packages/com.com2usplatform.hiveaxyl.auth.addon.apple/Runtime/Core`
- [Google Play Games](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.gpg/Runtime/Core/GPG/GooglePlayGamesPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.auth.addon.gpg/Runtime/Core/GPG/GooglePlayGamesPlugin.cs`
- [Steam authentication](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs): `Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs`
- [Web authentication](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.auth.addon.webauth/Runtime/Core/WebAuthSessionPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.auth.addon.webauth/Runtime/Core/WebAuthSessionPlugin.cs`

### Payments

- [Payments capability](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.payments): `Packages/com.com2usplatform.hiveaxyl.payments`
- [Apple StoreKit](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.apple/Runtime/Core/AppleStoreKitPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.payments.addon.apple/Runtime/Core/AppleStoreKitPlugin.cs`
- [Google Play Billing](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.google/Runtime/Core/Billing/GooglePlayBillingPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.payments.addon.google/Runtime/Core/Billing/GooglePlayBillingPlugin.cs`
- [Steam microtransactions](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.payments.addon.steam/Runtime/Core/SteamMicrotransactionsPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.payments.addon.steam/Runtime/Core/SteamMicrotransactionsPlugin.cs`

### Messaging and services

- [Push capability](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.push): `Packages/com.com2usplatform.hiveaxyl.push`
- [Apple push](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.push.addon.apns/Runtime/Core/APNSPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.push.addon.apns/Runtime/Core/APNSPlugin.cs`
- [Firebase messaging](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.push.addon.fcm/Runtime/Core/FCM/FCMPlugin.cs): `Packages/com.com2usplatform.hiveaxyl.push.addon.fcm/Runtime/Core/FCM/FCMPlugin.cs`
- [Local notifications](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.push.addon.applenotification/Runtime/Core): `Packages/com.com2usplatform.hiveaxyl.push.addon.applenotification/Runtime/Core`
- [Mailbox capability](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.mailbox): `Packages/com.com2usplatform.hiveaxyl.mailbox`
- [Coupon capability](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.coupon): `Packages/com.com2usplatform.hiveaxyl.coupon`
- [Analytics capability](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.analytics): `Packages/com.com2usplatform.hiveaxyl.analytics`
- [Service access](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.serviceaccess): `Packages/com.com2usplatform.hiveaxyl.serviceaccess`
- [TCB connector](https://github.com/com2usplatform/hiveaxyl-sdk-unity/tree/main/Packages/com.com2usplatform.hiveaxyl.tcb): `Packages/com.com2usplatform.hiveaxyl.tcb`

### Platform integrations

- [Steamworks context](https://github.com/com2usplatform/hiveaxyl-sdk-unity/blob/main/Packages/com.com2usplatform.hiveaxyl.steamworks/Runtime/Core/SteamworksContext.cs): `Packages/com.com2usplatform.hiveaxyl.steamworks/Runtime/Core/SteamworksContext.cs`

### Other components

- **Unity game**
- **Hive Axyl platform**
- **Native platform APIs**

## Connections

- Unity game → Core runtime: initializes SDK (evidence: `README.md`)
- Unity game → Auth and token clients: uses capability (evidence: `README.md`)
- Unity game → Payments capability: uses capability (evidence: `README.md`)
- Unity game → Push capability: uses capability (evidence: `README.md`)
- Unity game → Mailbox capability: uses capability (evidence: `README.md`)
- Unity game → Coupon capability: uses capability (evidence: `README.md`)
- Unity game → Analytics capability: uses capability (evidence: `README.md`)
- Unity game → Service access: uses capability (evidence: `README.md`)
- Unity game → TCB connector: uses capability (evidence: `README.md`)
- Unity game → Secure storage: uses capability (evidence: `README.md`)
- Core runtime → Unity bridges: dispatches through
- Auth and token clients → Hive Axyl platform: connects to (evidence: `README.md`)
- Token refresh → Auth and token clients: issues token request (evidence: `Packages/com.com2usplatform.hiveaxyl.auth/Runtime/Refresh/AuthTokenRefreshHandler.cs`)
- Apple sign-in → Auth and token clients: extends auth (evidence: `README.md`)
- Google Play Games → Auth and token clients: extends auth (evidence: `README.md`)
- Steam authentication → Auth and token clients: extends auth (evidence: `README.md`)
- Steam authentication → Steamworks context: creates context (evidence: `Packages/com.com2usplatform.hiveaxyl.auth.addon.steam/Runtime/Core/SteamServiceBridgeImpl.cs`)
- Web authentication → Auth and token clients: extends auth (evidence: `README.md`)
- Payments capability → Hive Axyl platform: connects to (evidence: `README.md`)
- Apple StoreKit → Payments capability: extends payments (evidence: `README.md`)
- Google Play Billing → Payments capability: extends payments (evidence: `README.md`)
- Steam microtransactions → Payments capability: extends payments (evidence: `README.md`)
- Steam microtransactions → Steamworks context: creates context (evidence: `Packages/com.com2usplatform.hiveaxyl.payments.addon.steam/Runtime/Core/SteamMicrotransactionsPlugin.cs`)
- Push capability → Hive Axyl platform: connects to (evidence: `README.md`)
- Apple push → Push capability: extends push (evidence: `README.md`)
- Firebase messaging → Push capability: extends push (evidence: `README.md`)
- Local notifications → Native platform APIs: schedules notifications (evidence: `README.md`)
- Secure storage → Native platform APIs: persists encrypted data (evidence: `README.md`)
