This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Quail egg incubator monitoring system built on Val Town. Receives temperature/humidity data from LoRaWAN sensors (RAK7204 and NanoThings NanoTag) via ChirpStack webhooks, stores readings in SQLite, sends email alerts, and displays a React dashboard.
Live URL: https://jhiller--32167624f5bc11f0947042dde27851f2.web.val.run
# Start local development with auto-sync to Val Town vt watch # The app auto-deploys on save - no build step required
backend/index.http.tsx exports app.fetchhttps://esm.town/v/stevekrouse/sqlitehttps://esm.town/v/std/emailhttps://esm.town/v/std/utils for readFile and serveFile/webhook/chirpstack?event=up9c65fafffe02607a)/api/status and /api/readings every 60 secondsDefined in shared/constants.ts:
window.__INITIAL_DATA__ to avoid round-tripshttps://esm.sh for npm packages (works in both Deno backend and browser)https://esm.sh/react@18.2.0/** @jsxImportSource https://esm.sh/react@18.2.0 */shared/ must work in both frontend and backendDeno namespace in shared codeincubator_readings_v1)Response constructor for redirects (not Response.redirect)alert(), prompt(), confirm() browser APIsDeno.env.get('KEY')