routineTrackerApp
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.
Viewing readonly version of main branch: v110View latest version
Single-user routine checklist app for after-school tasks, with optional task timers and a parent PIN gate.
main.tsx: HTTP entrypoint (export default app.fetch)backend/index.ts: Hono app + routes + HTML bootstrapbackend/parentAuth.ts: server-side PIN verification helpersfrontend/index.html: app shellfrontend/index.tsx: React UIshared/tasks.ts: routine task listshared/types.ts: shared TypeScript contracts
Protected tasks require a 4-digit environment variable:
- Env key:
ROUTINE_PARENT_PIN - Value format: exactly 4 digits (example:
9854)
There is no parent unlock session. Each protected action requires entering the parent PIN.
Update routineTasks in shared/tasks.ts.
Example task entries:
{ name: "Do homework", timed: false }
{ name: "Brush teeth", timed: true, duration: 2 * 60 }
{ name: "Get parent check", timed: false, requiresParent: true }
POST /api/parent/verify: verify parent PIN for the current action