Skip to content

ca1ebd/contraction-timer

Repository files navigation

Contraction Timer

Offline-first PWA for timing labor contractions. One primary button (start/stop), a timeline of past contractions sized by duration and spaced by interval, and coarse-stepper editors for fixing a contraction's length or the gap between two.

Stack

  • Vite + React + TypeScript
  • Tailwind v4 (@tailwindcss/vite)
  • vite-plugin-pwa (registerType: 'autoUpdate', full precache)
  • localStorage persistence, Screen Wake Lock while a contraction is running

Develop

npm install
npm run dev

Build

npm run build   # tsc -b && vite build, output in dist/
npm run preview # serve the production build locally

Deploy

Hosted on Azure Static Web Apps via the GitHub Actions workflow in .github/workflows/azure-static-web-apps.yml (build command npm run build, output location dist). Requires an AZURE_STATIC_WEB_APPS_API_TOKEN repo secret from the Azure Static Web App resource.

About

Offline-first PWA for timing labor contractions.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages