Status publishing experience
The status publishing experience turns monitored service data into a public availability surface. It joins one or more public pages with their monitors, current status, incident and maintenance history, subscriber updates, site branding, and shareable views so that users can check service health without access to the management area.
Public availability surface
The public surface presents the status of a selected set of monitors as a branded page. A page can be the site home page or a named path, and the page can show a summary state, historical status bars, optional inline events, an event list beside the monitor area or in a notification control, navigation, and links to more detail. The public page is assembled from page settings, site-wide settings, and the latest monitoring data. See Public status pages for the page model and page-level behavior.
The page-to-monitor relationship is the main publishing boundary. Managers choose which monitors belong to a page and set their order, while the public view uses only active and visible monitors. A page with no monitors can still publish its title and branding, but it has no service status to summarize.
Page publishing is also exposed through the page API. It returns the page identity, public path, presentation settings, monitor membership, and ordering as one page record. Create and update requests validate the path, required text, monitor tags, and page settings before they change the published configuration. The home page keeps its fixed path and cannot be deleted. Since v4.1.11, v4 write bodies are checked against the API specification before saving; invalid types, values, or body shapes return 400, while supported null values can clear fields such as a page subheader or logo. src/…/+server.ts• L16-45, src/…/+server.ts• L48-173, src/…/+server.ts• L44-61, and src/…/v4.1.11.md• L53-72
The following flow shows how saved settings and live records become public and shareable views.
flowchart LR
A[Page and site settings] --> C[Public status page]
B[Monitor status data] --> C
D[Incidents and maintenance] --> C
C --> E[Monitor detail]
C --> F[Event history]
C --> G[Subscriptions and feeds]
C --> H[Embeds and badges]
References: src/…/dashboardController.ts• L296-417 src/…/+page.svelte• L147-242 src/…/+page.svelte• L147-242
Page publishing controls
The page editor is the management boundary for the public page contract. It lets an operator define the page path and visible text, add or remove monitors, set their order, and open the resulting page for review. Optional page content uses Markdown, and a page can have its own logo. src/…/+page.svelte• L532-691, src/…/+page.svelte• L693-783
Display settings control how much monitor history the page shows on desktop and mobile and whether monitors use a list or grid layout. Page-level search and sharing settings can provide a social preview image, a meta title, and a meta description; empty values fall back to site defaults. src/…/+page.svelte• L784-969
References: src/…/+page.svelte• L178-226 src/…/+page.svelte• L322-353 src/…/+server.ts• L209-270
Availability signals
The public summary combines the latest status for the page monitors into one status message and visual state. Each monitor can also expose its description, last update time, latest status, latency, or SSL certificate state, along with a history view. Monitors with an external URL can link users to that service. Group monitors let the page show a higher-level service while retaining the relationship to member monitors. src/…/dashboardController.ts• L164-209, src/…/+page.svelte• L181-233, and src/…/+page.svelte• L57-197
The status surface treats incidents and maintenance as context around monitor data. Inline display is controlled by event settings, while the event list can be hidden, opened from a control, or placed beside the monitor list. The same operational records can appear on the main page, on a monitor detail page, in a calendar-style event history, or on a dedicated event detail page. src/…/site.ts• L100-129, src/…/+page.svelte• L175-240, and src/…/+page.svelte• L28-32
References: src/…/dashboardController.ts• L164-209 src/…/+page.svelte• L181-240 src/…/+page.svelte• L181-240 src/…/+page.svelte• L57-197
Operational event record
Operational events explain a change or planned interruption instead of only showing its effect on a monitor. An incident presents a title, a timeline of updates, and the monitors it affects. A maintenance record presents its description, one-time or recurring schedule, event state, and affected monitors. See Incidents and maintenance for the event lifecycle and public detail pages.
The public event history joins incidents and maintenance events into a month view. Users can move through allowed months and see the events grouped by day. Individual event pages then provide the update or schedule detail and link back to the affected monitor views. src/…/+page.svelte• L49-126, src/…/+page.svelte• L47-146, and src/…/+page.svelte• L92-220
Subscriber communication
Subscriptions give users a way to receive incident and maintenance updates instead of checking the public page. The publishing settings enable or disable subscriptions and choose which event types email subscribers receive. Operators can add subscribers and change each subscriber’s incident and maintenance preferences from the management area. src/…/site.ts• L79-87 and src/…/+page.svelte• L30-38
The public surface also supports RSS feeds at site, page, and monitor scope. The shared public layout selects the RSS link for the current scope, while page navigation can expose or hide the RSS entry point. src/…/+layout.svelte• L15-20, src/…/+server.ts• L1-5, and src/…/+server.ts• L1-8
Brand and page presentation
Brand settings make the availability surface recognizable and consistent across its public routes. The site name, logo, navigation, favicon, social preview image, font, status colors, theme, footer, and optional announcement are applied through the public layout. Page-specific title, header, subheader, logo, and metadata can refine that shared presentation. src/…/+layout.svelte• L23-69, src/…/layoutController.ts• L157-189, src/…/KenerNav.svelte• L12-121, and src/…/+page.svelte• L118-173
Site settings use a shared data contract for identity, navigation, visual style, event display, subscriptions, page visibility, time format, and metadata. The contract also accepts analytics provider and captcha settings for the public product. It validates these settings before the public layout and related public interactions use them, which keeps management input aligned with the published surface. src/…/siteDataKeys.ts• L18-32 and src/…/siteDataKeys.ts• L255-313
Enabled analytics settings produce a public capture script for the status surface. The endpoint combines the selected provider snippets with saved requirements, escapes values before inserting them into JavaScript, and sends the script without caching so provider changes take effect without a stale CDN response. src/…/+server.ts• L14-42 and src/…/+server.ts• L116-121
Operators can control how much of the public product is exposed. Page visibility settings can show a page switcher or keep a visitor within the current page, while navigation settings can expose custom links and sharing options. These controls change how users discover and share the published surface; they do not change the underlying monitor or event records. src/…/site.ts• L89-93 and src/…/site.ts• L131-139
Shareable status views
The product publishes status data outside the full status page through small, focused views. A status bar shows uptime and daily status indicators. A latency view shows a selected latency measure over time. Live events show ongoing incidents and maintenance events, with optional monitor filtering. The management area generates iframe or script snippets so an operator can place these views on another site. See Embeds and badges for the share formats and their configuration.
Badges provide image-based status, uptime, or latency summaries for documents, dashboards, and links. Both badges and embeds can use query options for presentation, such as theme, time range, metric, colors, labels, or selected event types.
The following sequence shows how an operator publishes a view and how an external site requests it.
sequenceDiagram
participant O as Operator
participant M as Management area
participant P as Public status product
participant V as External site
O->>M: Select page, monitors, events, and brand settings
M->>P: Save publishing configuration
P-->>O: Preview public page and share options
O->>V: Add embed, badge, or link
V->>P: Request published status view
P-->>V: Return current status or event view
References: src/…/+page.svelte• L24-143 src/…/+page.svelte• L26-105 src/…/+page.svelte• L34-86 src/…/+page.svelte• L15-53
Change checklist
When these files or sections are changed, remember to consider these:
- When page-to-monitor selection or monitor visibility rules change, check the page summary, monitor detail route, event scope, and generated share views together.
- When page paths or page API fields change, check the home-page path token, path uniqueness rules, management editor behavior, and links that point to published pages.
- When monitor membership or ordering changes through the editor or API, check that the complete ordered set reaches the public page and all views that reuse page membership.
- When page display or SEO settings change, check the page-level settings validation and the fallback from page values to site-wide presentation values.
- When v4 page write fields or validation rules change, check the API specification,
400error behavior, supported field-clearing values, and the page editor's save payload. - When event display settings change, check inline events, notification placement, notification data, the monthly event history, and the live-events embed so users do not see conflicting event sets.
- When site navigation or sharing visibility changes, check the public header, RSS links, page switcher behavior, and the management generators that expose those links.
- When status colors, themes, fonts, or metadata change, check the public layout, page detail metadata, monitor detail metadata, embeds, and badges.
- When analytics or captcha site settings change, check the validation contract, the generated capture script, and each public interaction that consumes the related setting.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A page has no active and visible monitors | The page can publish its content but cannot show a meaningful availability summary | Check monitor membership and monitor visibility before treating a page as ready to share. |
| A monitor is inactive or hidden | The monitor is excluded from public page and detail views | Keep management visibility checks aligned with public route filtering. |
| Inline event settings disable an event class | The event is absent from the page context even when an incident or maintenance record exists | Use the event history or event detail route when the page is configured to omit inline events. |
| An embed or badge uses an invalid or missing monitor tag | The external view cannot load the requested monitor data | Generate share code from an active monitor and keep the tag stable after publication. |
| A public page path does not resolve to a page | The route returns a not-found response instead of a status surface | Treat the saved page path as a public URL contract. |
| An API client sends a duplicate monitor tag or a monitor that does not exist | Page creation or update is rejected, so the intended monitor set is not published | Validate monitor identity and uniqueness before sending the page request. |
| An API client sends a body with an invalid type, enum, or unsupported null value | The v4 write returns 400 before the page configuration changes | Validate the body against the v4 API specification and use null only for fields that allow it. |
| An API client sends a partial monitor list during an update | The page monitor set is replaced by that list and omitted monitors disappear from the page | Treat the update list as the complete desired ordered set. |
| A client tries to change or delete the home page | The API rejects the action and the required home surface remains unchanged | Use the home-page token for reads and keep the home page path and existence invariant intact. |
| An enabled analytics provider has a requirement value that is not safe for a JavaScript string | The public capture script can fail to parse and analytics can stop working across the status product | Keep requirement escaping in the capture endpoint and verify the returned script remains valid JavaScript. |
Key files
| File | Why to read it |
|---|---|
| src/…/dashboardController.ts | Shows how page settings, monitor data, status summaries, and inline events become public dashboard data. |
| src/…/+page.svelte | Shows the main public status surface and its relationship to monitor bars and event context. |
| src/…/+page.svelte | Shows the same publishing experience for named public pages. |
| src/…/+page.svelte | Shows the public monitor detail view with current status, service context, and event context. |
| src/…/+layout.svelte | Shows the shared public shell for branding, navigation, theme, feeds, and footer content. |
| src/…/layoutController.ts | Shows how shared site settings become the data contract for public routes. |
| src/…/siteDataKeys.ts | Shows the validated categories of site settings that shape the published surface, including analytics and captcha settings. |
| src/…/+server.ts | Shows how enabled analytics settings become the public capture script and how the response avoids stale cached provider configuration. |
| src/…/+page.svelte | Shows how operators define a page identity, path, monitor set, and display settings. |
| src/…/+server.ts | Shows the page collection contract for listing and creating published pages. |
| src/…/+server.ts | Shows the page contract for reading, updating, and deleting a published page. |
| src/…/+page.svelte | Shows the site-wide controls that shape the published surface and its discoverability. |
| src/…/+page.svelte | Shows subscription policy and subscriber management for incident and maintenance updates. |
| src/…/+page.svelte | Shows the public month-based event history. |
| src/…/+page.svelte | Shows the compact status view used outside the full status page. |
| src/…/+page.svelte | Shows the compact live operational-event view used in external placements. |
| src/…/+page.svelte | Shows how operators configure and generate embed snippets. |
| src/…/+page.svelte | Shows how operators generate image-based status, uptime, and latency badges. |