Skip to content

A sveltekit webapp hosted on Cloudflare Pages that tracks and graphs medication consumption

Notifications You must be signed in to change notification settings

Cucumberrbob/sveltekit-medication-tracker

Repository files navigation

Medication Tracker

This is a simple medication consumption tracker written in SvelteKit, and hosted (for free) on Cloudflare Pages, with data stored in Workers KV. Home

Local and Cloud Mode

The app has two methods to store dose history. In Local Mode, data is stored in LocalStorage on the browser. In Cloud Mode, a trpc mutation is sent when a medication is added, or a dose is logged. This updates KV stores attached to an (unused) Cloudflare Worker, and bound to this Pages site. The doses are stored in a (slightly) compressed form, as an array of three values: `[medicationName, quantity, dateTime]

Stats and Graphs

At the moment I've only written a few graphs - PRs, or GitHub Issues are welcome for any graphs you think would be useful. Daily Cumulative By Medication By Day By Medication

About

A sveltekit webapp hosted on Cloudflare Pages that tracks and graphs medication consumption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published