I'm looking for a free place to host a small HTML and JavaScript app that tracks medications and appointments. Does it need a database backend, or can it keep the data on the user's phone?
Where can I host a small static app for free?
Answers
Cloudflare Pages, GitHub Pages, Netlify and Vercel all have free options for hosting a static frontend. Cloudflare does have a free plan, so it's worth checking the current pricing page if you've only seen paid options.
Compare the limits for builds, bandwidth and any server functions you need. Free hosting for the files doesn't necessarily mean every backend feature is free too.
Reply to this answer
If each person only needs their own data on one phone, local browser storage could remove the need for a server database. IndexedDB is an option for structured data, while localStorage is simpler for small amounts.
The catch is that local data can disappear if site data is cleared or the browser removes it. It also won't automatically move to a new phone. Test reinstalling and switching devices, and consider an export and import feature so people have a way to back up their records.
Reply to this answer
For syncing across devices, look at the free tiers of Supabase or Firebase alongside a static frontend. Supabase uses Postgres and Firebase offers NoSQL options, so neither is a drop-in MySQL host.
Cloudflare also has free tiers for Workers and its D1 database, which uses SQLite. Check current quotas and inactivity rules before choosing, since free projects can have limits or pause when unused.
Reply to this answer
One caution: medication and appointment records can be sensitive health data. Hosting them on a server adds questions about access controls, privacy and legal obligations. Consider getting legal advice before collecting other people's records publicly.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Vexlora+7m:
Sharing the app's URL with someone else won't share the records either. Each person's local data stays separate unless you add a syncing system.