← Back to Dashboard

Monitor

A service monitoring toolkit that captures website screenshots, tests email services (POP3/IMAP), and provides a web dashboard to browse and search results.

Quick Start

bash pip install -r requirements.txt playwright install chromium uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Then open http://localhost:8000 in your browser.

API Endpoints

| Method | Path | Description | |--------|------|-------------| | GET | / | Web dashboard | | GET | /api/health | Health check | | POST | /api/screenshots | Capture a screenshot of a URL | | GET | /api/screenshots | Search/query screenshots | | GET | /api/screenshots/{id} | Get screenshot details |

Project Structure

  • app/ — FastAPI application (routers, services, templates)
  • scripts/ — Standalone CLI test scripts for POP3, IMAP, WebMail
  • screenshots/ — Captured images
  • tests/ — Test suite

Code Statistics

You can calculate the Lines of Code (LOC) changes for this project using the provided python script:

```bash

Calculate total LOC changes for the project

./scripts/calculate_loc.py ```

Advanced options: - --author "Author Name": Filter changes by author - --since "YYYY-MM-DD": Filter commits after a specific date - --until "YYYY-MM-DD": Filter commits before a specific date

Example: bash ./scripts/calculate_loc.py --since "1 week ago"

You can also calculate the total number of AI interactions (conversations) across all sessions using:

```bash

Calculate total AI interactions

./scripts/count_interactions.py ```

Advanced options: - --session <conversation-id>: Calculate interactions for a specific session only. - --days <number>: Calculate interactions that occurred within the last N days (e.g. --days 2 or --days 0.5).