Uptime Falcon
v1.0An uptime monitor for a platform team, in cool grays with an emerald accent: every monitor row carries a live 90-bar heartbeat strip that shifts left each check.
Pagina-adres: /
Ingebouwd
Wat je krijgt- Licht en donkerGebruikt de kleuren van je thema
- Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
- Pakketten…
- Codegrootte…
- Zuinig voor de batterij30 fps, rust als er niets beweegt
- Pauzeert als het verborgen isBuiten beeld of ander tabblad
- Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
Beveiliging gecheckt op 3 dec- TypecheckTypeScript strict
- Lint en opmaakESLint · Prettier
- Tests en buildScreenshots in licht en donker
- BeveiligingsauditGeen hoge of kritieke advisories
- Leeftijd van pakkettenElke versie al 7+ dagen openbaar
- CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
uptime-falconReact
- uptime-falcon.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- incident.tsxOne incident (#/incidents/INC-215): its stage, severity and length, Resolve, and two tabs — Timeline (post an update with its new stage; every update newest first) and Postmortem (the note written after) — beside its facts: commander, monitor, the status page components it touches, responders.
- incidents.tsxIncidents: open, resolved or all, filtered by severity, newest first; Declare incident opens the form. The filters live in the address, so Back keeps them.
- monitors.tsxMonitors: every monitor with its live heartbeat strip, filtered by state and group, found by name or URL and sorted; tick rows to pause, resume, change the interval or delete them together (Undo in the toast). The filters live in the address, so Back keeps them.
- on-call.tsxOn-call: who is on now and until when, the two-week timeline of both rotations with overrides, each rotation's order and hand-off, and the overrides list; Add override opens its dialog (?new=override).
- overview.tsxThe overview, in four calm rows: the KPI strip; the monitors to watch with their live heartbeat strips beside the key services' live response lines; open and recent incidents beside who is on call; the status page components' 90-day uptime beside the latest activity. Every block links to its filtered list.
- reports.tsxReports over 7, 30 or 90 days (?range=): uptime, incidents, MTTR and downtime in one strip; uptime per service, worst first, beside MTTR by week, the severity mix and response by region.
- settings.tsxSettings in four tabs (?tab=): alert rules, the team, check regions and appearance (theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar.
- status.tsxStatus page: the public message and the components on the left, the page as visitors see it on the right, live as you edit. A component's dialog opens from the address (?component=c-api or new).
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's bottom tabs: the four pages you watch most and More (the full menu), stuck to the bottom of the screen below the sidebar breakpoint.
- incident-form.tsxDeclare an incident in a dialog: title, severity, the monitor behind it, the status page components it touches, the commander (the primary on-call first) and the first update. It checks itself and shows its own errors; saved, it opens the incident.
- incident-rows.tsxIncidents as two-line rows: the stage glyph, the title over its id, monitor, start and length, the severity and the commander. Each row opens the incident.
- kpi-strip.tsxThe overview's four numbers in one bordered box split by hairlines: monitors up, 30-day uptime, average response and open incidents with MTTR; each a link to the list it counts, with a small trend line.
- monitor-form.tsxThe monitor form in a dialog: name, URL, method, group, check interval, the regions it checks from, the slow limit and the expected status code. New (+ New monitor) or edit (from the monitor's sheet); it checks itself and shows its own errors under each field.
- monitor-rows.tsxThe monitor list: one 40px row per monitor with its status glyph, name and URL, the live 90-bar heartbeat strip that shifts left as each check lands, the last response time, 30-day uptime and interval. A row opens the monitor's sheet; with `selected` each row has a checkbox for the bulk bar. Rows that re-sort glide to their new place. On a phone a row takes two lines.
- monitor-sheet.tsxA monitor's sheet (?m=M-104), sliding in over any page: its state, URL and actions (Pause, Edit, Delete with Undo), then three tabs: Overview (uptime, the live strip, 24 hours of response time against the slow limit, 90 days of uptime, its incidents), Checks (the latest checks by region) and Settings.
- oncall-forms.tsxOn-call editing: a rotation's card (who takes the next shifts in order, moved with Earlier and Later, added or removed, and when the hand-off happens) and the override dialog (who covers whom, from when to when, and why).
- oncall-timeline.tsxThe on-call timeline: two weeks as day columns, one lane per rotation with each shift as a block (the person's initials and name), overrides laid over their lane in the accent edge, and a line at now. On a phone it scrolls sideways inside its own box.
- settings-panels.tsxSettings panels: alert rules (when, after how many checks, to which channel, each on or off, edited in a dialog), the team (roles, invite, remove) and the check regions (each on or off).
- sidebar.tsxThe sidebar: logo and workspace, search with the command palette shortcut, the page links in three groups with a pill that glides to the current one (monitor and open incident counts beside theirs), and the live strap with its pause; collapsed, only the icons show.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- status-editor.tsxStatus page editing: the public message (tone, text, Publish or Clear) and the components in their public order, each with its status, Earlier and Later, Edit and Delete; a component's dialog sets its name and the monitors behind it.
- status-preview.tsxThe public status page as visitors see it, live as you edit: the overall banner, the published message, each component with 90 days of uptime bars, and the open incidents that touch them.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the fleet's status pill, search, + New monitor, the theme switch and the account menu. It blurs what scrolls under it only once the page has moved.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- draw.tsThe draw card style: cards just fade in, and the data does the show.
- rowsWhat several sections share.
- mask.tsThe mask row motion: each part of a row on screen (its children) slides up from behind its own mask.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round, quiet badge (small in rows, larger in panels).
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA column chart: rounded bars in a quiet grey, the latest (or the one you point at) in the primary with its value above; bars grow in once and resize smoothly when the data changes.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move.
- format.tsHow numbers, times and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."), plus the monitor's own units (ms, uptime %, durations).
- heartbeat.tsxThe heartbeat strip, Falcon's signature: one tiny bar per check (height = response time, emerald up, amber slow, red down, a stub with no check), older bars fading. Each new check glides the whole strip left by one bar; hover a bar to read it.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point is marked, new values roll the line to its new shape, and a dashed line marks a threshold (the slow limit).
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 2 seconds each running monitor lands a check (data/live.ts), every page reloads in place and the heartbeat strips glide on a bar; a monitor going down or coming back shows a toast that opens its incident. It rests while nothing live is on screen, the tab is hidden or live is paused.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- overlays.tsxWhat opens over any page from the address: a monitor's sheet (?m=), the monitor form (?new=monitor, ?edit=M-104) and the declare form (?new=incident), so Back closes each and a link can open one.
- page-head.tsxA page's head: its title and one quiet line under it, with the page's actions at the end (they wrap under on a phone).
- read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"deal">(`deal:${id}`). Each key keeps one load function, so a page that mounts again finds its answer.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a monitor), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?m=M-104&mtab=checks).
- spark.tsxA sparkline: a smooth curve (Catmull-Rom as cubic Béziers, never a zigzag) through the last values, optionally with a soft area under it and the latest point marked; it draws itself in once and grows as values land.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- status.tsxThe small status marks every page shares, each a shape as well as a colour so state never rests on tint alone: a monitor's state, an incident's stage, a severity, a status-page component and the 90-day uptime bars.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database and every change to it: monitors, incidents, on-call, the status page, alert rules, the team and regions. The fake API (api.ts) and the live demo (live.ts) are the only callers; wire your backend in api.ts instead.
- live.tsThe live demo: every tick each running monitor lands one check (its heartbeat strip moves on one bar), the Search API slowly recovers while Kenji posts updates, and now and then a monitor blips down: Falcon opens a real incident, then marks it Monitoring when checks pass again. Wire your backend's check results and webhooks here instead.
- now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded time is set from it. Wire your backend and use the real time.
- seed-monitors.tsThe pretend monitors: the 40 endpoints a payments company's platform team watches, each with its last 90 checks, a week of hourly response times and 90 days of uptime, all drawn from smooth curves so no chart zigzags.
- seed-ops.tsThe pretend operations data: the 12-person platform team, two on-call rotations and their overrides, the six public status components, alert rules, 90 days of incidents and the latest activity.
- types.tsThe shapes of the pretend data: monitors and their checks, incidents and their timelines, the on-call rotations, the public status page, alert rules and the team.
- views.tsWhat each page reads, worked out from the pretend database: monitor rows with their state, the overview, incidents, on-call shifts, the status page, reports and settings. The fake API (api.ts) answers with these.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
uptime-falcon.tsx
The page: the sections in order.
Laden…
- Goed voor
- Platform and SRE teams watching dozens of services, running incidents, an on-call rotation and a public status page.
- Hoe het werkt
- Checks land live: response times move, heartbeat strips shift, and a failing service opens an incident on its own.
- Hoe je het gebruikt
- Edit words in locales/, colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.