Avatar

panphora

Joined February 16, 2023
Public vals
8
panphora avatar
panphora
cronSiteMonitor
Cron
Site Monitor A simple cron script that monitors website availability and sends email notifications when sites are down. Features Monitors multiple websites concurrently 5-second timeout for each site check Email notifications for downtime events Uses ESM modules for email functionality Dependencies ESM email module ( https://esm.town/v/std/email ) Usage Fork, insert your own websites, and set a 10min cron timer. Error Handling The script considers a site as "down" if: The site fails to respond within 5 seconds The site returns a non-200 status code Any network or connection error occurs Email Notifications When downtime is detected, an email is sent with: Subject: Lists all down sites with a 🚨 emoji prefix Body: Simple text listing of all down sites License WTFPL
1
panphora avatar
panphora
twitterOpenGraphImage
HTTP
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
formatAsCurrency
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
btcPrice
Cron
An interactive, runnable TypeScript val by panphora
2
panphora avatar
panphora
map
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
get
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
distance
HTTP
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
webhook1
Script
An interactive, runnable TypeScript val by panphora
0
Next