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/:
| 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.