Skip to main content

Web Architecture

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

Directory Structure

statux-web/
├── landing/ # statux.io
├── 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

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.