• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
panphora

panphora

cronSiteMonitor

Public
Like
1
cronSiteMonitor
Home
Code
2
README.md
C
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
11/26/2024
Viewing readonly version of main branch: v1
View latest version
README.md

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

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.