XTND Vantage — Documentation & Platform Reference
Unified, 100% Event-Driven Telemetry, Observability & AI Intelligence Platform
Developed by XTND DYNAMICS • Operating across the Global Cloudflare Edge
1. Executive Summary
XTND Vantage is the centralized observability, telemetry, and artificial intelligence accounting platform powering the XTND DYNAMICS service ecosystem (including LaoGPT.com, EvergreenAI.la, X360 Task Command, XTND Transfer, and XTND Auth).
Unlike legacy observability stacks that rely on synchronous HTTP calls, heavy agents, or invasive DOM instrumentation, XTND Vantage is built on three strict foundational principles:
- 100% Event-Driven & Local-First: Every internal component, background worker, and browser client logs telemetry exclusively into an asynchronous, local-first storage buffer (Memory or IndexedDB). Application code is never blocked waiting for network roundtrips.
- Urgency-Classified Routing: The system continuously evaluates events against dynamic urgency rules, triaging them into P0 Critical (immediate edge push, kill-switches, alerts), P1 High (stream completions, user conversions), P2 Normal (standard UX telemetry, batched every 10s), and P3 Deferred (heartbeats, debug traces).
- Transparent Edge Interception & AI Cost Accounting: Real-time observability for web applications and multi-model AI inference (OpenAI, Anthropic Claude, Google Gemini) is performed transparently at the Cloudflare edge—measuring TTFT, token burn rates, prompt caching ROI, and multi-tenant quotas with zero impact on user experience.
2. Repository Ecosystem Map
The platform is maintained across 9 dedicated Git repositories in the XTND-DYNAMICS organization:
Workspaces/xtnd-vantage/
├── xtnd-vantage/ # Core Platform Monorepo (packages)
│ └── packages/
│ ├── aegis/ # System health probes, uptime & incident declaration
│ ├── chronos/ # Human activity telemetry, attribution & Notion reconciliation
│ ├── core/ # EventBus, base contracts, types, UUID engine
│ ├── radar/ # Browser UX dispatcher & Edge interceptor
│ ├── sentinel/ # Circuit breakers & runaway AI loop prevention
│ ├── sonar/ # AI parsers, pricing tables, token cost matrix
│ ├── storage-local/ # Memory & IndexedDB adapters for local buffers
│ ├── sync-manager/ # VantageStorageManager, UrgencyEngine, HTTP transport
│ └── vantage/ # Unified VantageClient aggregator
├── xtnd-vantage-api/ # Central Ingestion & Storage Worker (api.vantage.xgi.io)
├── xtnd-sonar-api/ # Dedicated AI Observability Gateway Worker (api.sonar.vantage.xgi.io)
├── xtnd-radar-api/ # Dedicated Web Analytics Gateway Worker (api.radar.vantage.xgi.io)
├── xtnd-chronos-api/ # Dedicated Human Activity Gateway Worker (api.chronos.vantage.xgi.io)
├── xtnd-argus-web/ # Argus — live operational dashboard (argus.xgi.io)
├── xtnd-vantage-web/ # Vantage portal & documentation, built from this repo (vantage.xgi.io)
├── xtnd-sonar-sdk/ # Standalone npm library: @xtnd-dynamics/xtnd-sonar-sdk
├── xtnd-radar-sdk/ # XRADAR: @xtnd-dynamics/xtnd-radar-sdk (data layer, capture, replay)
├── xtnd-chronos-sdk/ # Standalone npm library: @xtnd-dynamics/xtnd-chronos-sdk
├── xtnd-argus-sdk/ # Standalone npm library: @xtnd-dynamics/xtnd-argus-sdk
└── xtnd-vantage-doc/ # [THIS REPO] Exhaustive Architecture & Platform Documentation
3. High-Level Architecture Topology
flowchart TB
subgraph ClientLayer["Client & Origin Layer"]
LaoGPT["LaoGPT.com (Origin)"]
Evergreen["EvergreenAI.la (Origin)"]
X360["X360 / XTransfer Apps"]
BrowserSDK["Radar SDK (@xtnd-dynamics/xtnd-radar-sdk)"]
AISDK["Sonar SDK (@xtnd-dynamics/xtnd-sonar-sdk)"]
end
subgraph EdgeGateways["Cloudflare Edge Workers (Gateways)"]
SonarAPI["xtnd-sonar-api\n(api.sonar.vantage.xgi.io)\nAI Proxy & Token Metering"]
RadarAPI["xtnd-radar-api\n(api.radar.vantage.xgi.io)\nWeb Telemetry Interceptor"]
end
subgraph ExternalAI["External AI Model Providers"]
OpenAI["OpenAI (GPT-4o, o1, o3-mini)"]
Anthropic["Anthropic (Claude 3.7 / 3.5)"]
Gemini["Google (Gemini 2.0 Flash / Pro)"]
end
subgraph CentralEngine["Central Exchange & Storage"]
VantageAPI["xtnd-vantage-api\n(api.vantage.xgi.io)\nCentral Ingestion Worker"]
CFKV["Cloudflare KV\n(Urgent Events Buffer)"]
CFAnalytics["Cloudflare Analytics Engine\n(High-Throughput Time-Series)"]
end
subgraph CommandCenter["Visualization & Governance"]
ArgusWeb["Argus dashboard\n(argus.xgi.io)"]
VantageWeb["Vantage portal & docs\n(vantage.xgi.io)"]
ArgusSDK["Argus Embeddable Widgets\n(@xtnd-dynamics/xtnd-argus-sdk)"]
end
%% Client traffic
LaoGPT & Evergreen --> RadarAPI
X360 --> BrowserSDK
BrowserSDK --> RadarAPI
%% AI traffic
AISDK --> SonarAPI
SonarAPI <--> OpenAI & Anthropic & Gemini
%% Telemetry flows
SonarAPI -- "P0 (Immediate) / P2 (Batch)" --> VantageAPI
RadarAPI -- "P0 (Immediate) / P2 (Batch)" --> VantageAPI
%% Storage
VantageAPI --> CFKV
VantageAPI --> CFAnalytics
%% Visualization
VantageAPI -.-> ArgusWeb
VantageWeb -. system access .-> ArgusWeb
ArgusSDK -.-> ArgusWeb
4. Documentation Directory Guide
Dive deeper into specific topics using the structured guides below:
Architecture & System Design
- System Overview: Deep dive into the end-to-end data pipeline, components, and communication protocols.
- Event-Driven Pipeline: The cardinal rules of local-first storage, UrgencyEngine classification (P0–P3), and idle sync loops.
- Cloudflare Edge Infrastructure: Details on Cloudflare Workers, KV, Analytics Engine, and custom domains (
*.vantage.xgi.io,argus.xgi.io).
Monorepo Packages (xtnd-vantage/packages/*)
- Monorepo Overview: Structure, workspace configuration, build pipeline, and test runner.
- Vantage Core (
@xtnd/vantage-core): Contract interfaces, typed events, and the wildcard event bus. - Sync Manager (
@xtnd/vantage-sync-manager): Storage orchestration, urgency evaluation, and HTTP batch transports. - Storage Local (
@xtnd/vantage-storage-local): In-memory and browser IndexedDB storage adapters. - Sonar (
@xtnd/vantage-sonar): Model pricing matrices, prompt cache calculations, and multi-provider quota trackers. - Radar (
@xtnd/vantage-radar): Non-blocking browser UX dispatchers and zero-modification Cloudflare Edge interceptors. - Sentinel (
@xtnd/vantage-sentinel): Dynamic circuit breakers, runaway agent loop detection, and session cost caps. - Aegis (
@xtnd/vantage-aegis): System heartbeat probes, latency telemetry, and P0 incident declaration. - Chronos (
@xtnd/vantage-chronos): Human activity telemetry, multi-signal attribution, work session synthesis & Notion reconciliation. - Unified Client (
@xtnd/vantage): The developer facade unifying all packages into a single singleton.
Services & API Workers
- Central Vantage API (
xtnd-vantage-api): Central exchange worker atapi.vantage.xgi.io. - Sonar AI Gateway API (
xtnd-sonar-api): Transparent AI reverse proxy atapi.sonar.vantage.xgi.io. - Radar Web Gateway API (
xtnd-radar-api): Web telemetry ingestion gateway atapi.radar.vantage.xgi.io. - Chronos Activity Gateway API (
xtnd-chronos-api): Human activity ingestion & session reconstruction worker atapi.chronos.vantage.xgi.io.
Dashboards & Embeddable UI
- Argus Web UI (
xtnd-argus-web): Argus, the live operational dashboard atargus.xgi.io— an XSuite app with its own XAuth service and licence (argus) — with Websites and Replay for the sites XRADAR reports from. - Argus UI SDK (
@xtnd-dynamics/xtnd-argus-sdk): Embeddable quota progress cards and live status badges.
Standalone Client Libraries
- Standalone Sonar SDK (
@xtnd-dynamics/xtnd-sonar-sdk): Zero-dependency AI telemetry client for applications. - XRADAR (
@xtnd-dynamics/xtnd-radar-sdk): The harvester and sender websites and web apps add: a data layer like Google's, every system event and user interaction, and session replay. - Standalone Chronos SDK (
@xtnd-dynamics/xtnd-chronos-sdk): Zero-dependency human activity, attribution & Notion timesheet library.
Integration Guides & Operations
- Consumer Integration Guide: Step-by-step instructions for wiring LaoGPT, EvergreenAI, X360, and XTransfer into XVantage.
- AI Observability Quickstart: Proxying LLM calls, calculating caching ROI, and enforcing budget caps.
- Resilience & Circuit Breakers: Handling network partitions, rate limits, and runaway loops.
- Deployment & Environments: Cloudflare Wrangler deployment commands, environment flags, and secrets.
- Versioning & Release: Automated Git commit tagging,
version.jsongeneration, and npm publishing.