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

std

catch

Public
Like
catch
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
1
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
/
Code
/
Search
README.md

Catch

This script sends errors from HTTP Preview iframes up to Val Town. You can include it in your client-side code, to help us surface client-side errors to you without you having to go hunt them down in your browser's console.

Townie knows to include this script by default, but you can install it yourself manually like so:

<script src="https://esm.town/v/std/catch"></script>

Be sure to include it before any other JS runs, so that it has the greatest chance of catching all errors.

Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI 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.