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/:
| Module | Global | Purpose |
|---|---|---|
config.js | StatuxConfig | Cognito config, API endpoints |
auth.js | StatuxAuth | Authentication methods |
api-client.js | StatuxAPI | HTTP client with auth |
ui.js | StatuxUI | HTML component functions |
utils.js | StatuxUtils | Helper functions |
org.js | StatuxOrg | Organization management |
See Shared Modules for API reference.