Skip to main content

Web Architecture

The statux-web/ repository contains the static websites with a shared module system.

Directory Structure

statux-web/
├── landing/ # statux.io
├── preview/ # The Divinux app — serves both divinux.statux.io (live)
│ # and preview.statux.io (demo) from one codebase
├── statuspages/ # statuspage.statux.io
├── alerting/ # alerts.statux.io
├── synthetics/ # synthetics.statux.io
└── shared/ # Shared modules (synced to all buckets)
├── js/ # JavaScript modules
└── styles/ # Shared CSS
Divinux: one app, two homes

preview/ is the unified Divinux mission-control surface. It is deployed to two buckets/CloudFront distributions and resolves its mode from the ?mode= query string first, then the host: divinux.statux.io defaults to live, anywhere else (including preview.statux.io) defaults to demo. The legacy statuspages/, alerting/, and synthetics/ dashboards are still live.

Shared Modules

All sites load shared modules from /shared/js/:

ModuleGlobalPurpose
config.jsStatuxConfigCognito config, API endpoints
auth.jsStatuxAuthAuthentication methods
api-client.jsStatuxAPIHTTP client with auth
ui.jsStatuxUIHTML component functions
utils.jsStatuxUtilsHelper functions
org.jsStatuxOrgOrganization management

See Shared Modules for API reference.