npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@manggala31/react-status-page

v1.1.0

Published

Production-ready, self-hosted application health diagnostics and status page package for React, Inertia.js, and Next.js applications.

Downloads

42

Readme

@manggala31/react-status-page

Production-ready, self-hosted application health diagnostics and status page component for React, Laravel Inertia.js, and Next.js applications.

npm version license


Table of Contents


Overview

@manggala31/react-status-page is a modern, self-hosted status page UI framework designed to display operational health, service uptime, response latencies, and incident reports. It pairs directly with server-driven health checks (such as manggala/laravel-status-page or custom API monitoring endpoints).


Key Features

  • Realtime Operational Status: Displays system-wide status badges (All Systems Operational, Degraded Performance, Partial Outage, Major Outage).
  • Service Diagnostics Grid: Monitor individual system services (Database, Redis Cache, Storage, External APIs, Email Delivery).
  • 90-Day Visual Uptime Bars: Render interactive daily status bars with tooltip uptime percentages and latencies.
  • Incident Management Timeline: Display ongoing and historical incident reports, maintenance announcements, and resolution logs.
  • Auto Refresh Callback: Support auto-refresh polling intervals for live monitoring dashboards.
  • Zero Heavy Dependencies: Lightweight footprint, optimized for React 18, React 19, Next.js, and Inertia.js.

Installation

# Using npm
npm install @manggala31/react-status-page

# Using yarn
yarn add @manggala31/react-status-page

# Using pnpm
pnpm add @manggala31/react-status-page

# Using bun
bun add @manggala31/react-status-page

Quick Start

import React from 'react';
import { StatusPage, ServiceHealth, IncidentRecord } from '@manggala31/react-status-page';
import '@manggala31/react-status-page/styles.css';

const services: ServiceHealth[] = [
  {
    id: 'db',
    name: 'Primary Database',
    status: 'operational',
    latencyMs: 12,
    description: 'PostgreSQL database cluster',
  },
  {
    id: 'redis',
    name: 'Cache Engine',
    status: 'operational',
    latencyMs: 2,
    description: 'Redis in-memory cache layer',
  },
  {
    id: 'storage',
    name: 'Object Storage (S3)',
    status: 'degraded',
    latencyMs: 180,
    description: 'Cloud file storage service',
  },
  {
    id: 'mail',
    name: 'Email Delivery API',
    status: 'operational',
    latencyMs: 45,
    description: 'SMTP & transactional email provider',
  },
];

const incidents: IncidentRecord[] = [
  {
    id: 'inc-1',
    title: 'Elevated Storage Latency',
    status: 'investigating',
    severity: 'minor',
    createdAt: '2026-08-10 16:30:00',
    updatedAt: '2026-08-10 17:00:00',
    updates: [
      {
        timestamp: '2026-08-10 17:00:00',
        message: 'Engineers are monitoring object storage throughput.',
      },
      {
        timestamp: '2026-08-10 16:30:00',
        message: 'We are investigating reports of elevated response times.',
      },
    ],
  },
];

export default function StatusOverviewPage() {
  return (
    <div className="container">
      <StatusPage
        systemName="Acme Cloud Platform"
        services={services}
        incidents={incidents}
        showUptimeBars
        autoRefreshIntervalSeconds={60}
        onRefresh={() => console.log('Refreshing status checks...')}
      />
    </div>
  );
}

Framework Integrations

Laravel Inertia.js (React)

import React from 'react';
import { StatusPage, ServiceHealth, IncidentRecord } from '@manggala31/react-status-page';
import '@manggala31/react-status-page/styles.css';

interface Props {
  systemName: string;
  services: ServiceHealth[];
  incidents: IncidentRecord[];
}

export default function Diagnostics({ systemName, services, incidents }: Props) {
  return (
    <div className="p-6 max-w-5xl mx-auto">
      <StatusPage
        systemName={systemName}
        services={services}
        incidents={incidents}
        showUptimeBars
      />
    </div>
  );
}

API Reference

<StatusPage> Props

| Prop | Type | Default | Description | |---|---|---|---| | systemName | string | 'System Overview' | Title of the monitored application. | | services | ServiceHealth[] | Required | Array of service status definitions. | | incidents | IncidentRecord[] | [] | Array of active or historic incidents. | | showUptimeBars | boolean | true | Whether to display 90-day daily uptime history bars. | | autoRefreshIntervalSeconds | number | 0 | Auto-refresh interval in seconds (0 to disable). | | onRefresh | () => void | undefined | Callback invoked on manual or automatic refresh. | | className | string | '' | Custom CSS container class. |

ServiceHealth Interface

export interface ServiceHealth {
  id: string;
  name: string;
  status: 'operational' | 'degraded' | 'partial_outage' | 'major_outage' | 'maintenance';
  latencyMs?: number;
  description?: string;
  uptimeHistory?: UptimeDay[];
}

IncidentRecord Interface

export interface IncidentRecord {
  id: string;
  title: string;
  status: 'investigating' | 'identified' | 'monitoring' | 'resolved';
  severity: 'minor' | 'major' | 'critical';
  createdAt: string;
  updatedAt: string;
  updates: Array<{
    timestamp: string;
    message: string;
  }>;
}

Styling & Custom Themes

Default colors are customizable via CSS variables:

:root {
  --status-page-bg: #ffffff;
  --status-page-border: #e2e8f0;
  --status-page-text: #0f172a;
  --status-page-muted: #64748b;
  --status-operational: #10b981;
  --status-degraded: #f59e0b;
  --status-outage: #ef4444;
  --status-maintenance: #3b82f6;
  --status-radius: 12px;
}

License

MIT License © Ilham Hatta Manggala