Skip to content

Simple uptime monitor — pings endpoints, shows green/red status dashboard

License

Notifications You must be signed in to change notification settings

ibuzzardo/status-page

Repository files navigation

Status Page

Built with Dark Factory v4 — autonomous AI software development pipeline

Live Demo

Simple uptime monitor — pings endpoints, shows green/red status dashboard

Features

  • Real-time monitoring: Pings configured HTTP endpoints every 30 seconds
  • Dark theme UI: Clean, responsive dashboard with status indicators
  • Configurable endpoints: Easy to add/remove services to monitor
  • Response time tracking: Shows latency for each service
  • Auto-refresh: Dashboard updates automatically without page reload
  • Mobile responsive: Works on desktop, tablet, and mobile devices

Quick Start

  1. Install dependencies:

    npm install
  2. Configure environment (optional):

    cp .env.example .env
    # Edit .env to change PORT if needed (defaults to 4003)
  3. Start development server:

    npm run dev
  4. Open in browser:

    http://localhost:4003
    

Configuration

Edit src/lib/config.ts to add or modify monitored endpoints:

export const endpoints: Endpoint[] = [
  { name: "Google", url: "https://www.google.com", expectedStatus: 200 },
  { name: "GitHub", url: "https://github.com", expectedStatus: 200 },
  { name: "Your API", url: "https://api.yoursite.com/health", expectedStatus: 200 },
];

API Endpoints

GET /api/status

Returns current status of all configured endpoints:

[
  {
    "name": "Google",
    "url": "https://www.google.com",
    "status": "up",
    "responseTime": 145,
    "checkedAt": "2024-01-15T10:30:00.000Z"
  }
]

Production Deployment

  1. Build the application:

    npm run build
  2. Start production server:

    npm start
  3. Environment variables:

    • PORT: Server port (default: 4003)

Development

  • Type checking: npm run type-check
  • Linting: npm run lint
  • Development server: npm run dev

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript (strict mode)
  • Styling: Tailwind CSS
  • Font: Inter (Google Fonts)
  • Deployment: Self-hosted

License

MIT

About

Simple uptime monitor — pings endpoints, shows green/red status dashboard

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors