Case studies · Migrener

Migrener – a migraine diary as a PWA

Migrener is a migraine and headache diary that runs in the phone's browser and can be added to the home screen like a regular app. We built the PWA, the API, the support panel and a website with a guide – from the idea to the first version in a few weeks.

Scope

Migrener: in short

01

One-tap logging

Mild, moderate or severe pain – the rest (medication, cycle phase, triggers, aura, a note) is optional, because nobody fills in forms during a migraine.

02

A PWA instead of an app store

The app runs in the browser on phone and desktop, installs to the home screen and keeps one history on the account.

03

Statistics and a report

A calendar, pain days per month, medication, triggers, air pressure and a multi-month report for the neurologist.

04

Privacy from the start

No ads and no analytics tools in the app, with data export and one-button account deletion.

The product in short

ProjectMigrener
ProductMigrener – a migraine and headache diary (in Polish)
Who it's forpeople with migraine and recurring headaches who want to show their doctor reliable data
Modela free web app (PWA) with an account
AppsPWA, support panel, website with a guide
TechnologyAngular, TypeScript, service worker (PWA), NestJS, TypeORM, MySQL, Open-Meteo
Our roleidea, UX/UI, app, backend, support panel, content and SEO

The problem: the doctor asks how many days it hurt

At an appointment, a neurologist usually asks the same questions: how many days a month you have a headache, how bad it is, how often you take painkillers and whether the pain is linked to your cycle. Without notes you answer from memory, and with migraine memory is unreliable. A paper migraine diary works, but you have to remember it, and counting days at the end of the month is tedious.

Apps with long forms have another problem: during severe pain nobody wants to answer ten questions on a bright screen.

The solution: minimum effort, maximum data

Migrener's main screen has three buttons: mild, moderate, severe. One tap saves the pain with today's date. If you have the energy, you can add the painkiller and its name, the cycle phase, food, triggers, aura symptoms or a note – but none of it is required.

From these entries the app builds a monthly calendar coloured by the day's worst pain and statistics for 3 months, 12 months or all time: pain days per month, pain strength, day of the week, cycle phase, painkillers and the most common triggers. Once you enter your town, entries also get the air pressure from Open-Meteo data, so it's easier to see whether pain follows a change in the weather. A multi-month report can be shown to the doctor and the whole history exported to a CSV file that opens in Excel.

The design is dimmed (with a light theme when the system is light) and uses the Atkinson Hyperlegible typeface, designed for legibility – because the screen is also read during pain and light sensitivity. Migrener is not a medical device and does not diagnose – it helps collect data that makes the conversation with a doctor easier.

How we built it

An Angular PWA

Instead of going straight to the app stores, we started with a Progressive Web App in Angular with a service worker. It runs on phone and desktop, installs to the home screen, and every fix reaches users immediately, without waiting for a store review. It's a good way to validate an idea before investing in a mobile app – we write more about it in PWA vs mobile app. A native React Native version is planned and will use the same API.

The statistics, cycle, report and CSV export logic is covered by unit tests, because in a health app a mistake in counting days is simply unacceptable.

API and account security

The API is a module of the App4Mobile NestJS server with TypeORM and its own MySQL database. It handles sign-up, login with a lockout after several failed attempts, password reset by email, email changes with notifications, signing out other devices, importing entries and deleting the account with all its data. Consent to anonymised analyses is separate and optional. The support panel shows the team usage statistics and the account list – never the content of entries.

A website and content that help

migrener.pl is static and uses no cookies. Besides describing the app, it has a guide: how to keep a diary, a printable migraine diary as a one-month PDF, and articles on menstrual migraine, migraine triggers and medication overuse headache (all in Polish). The content follows the ICHD-3 classification criteria and refers readers to a doctor wherever needed. It's the approach we also use for client websites: a real answer to the question first, the product second.

The result

  • It took a few weeks from the first commit to a working app with accounts.
  • The app runs on any phone and computer with a browser, with no app store install.
  • Users log pain in a second and have a report and statistics ready before an appointment.
  • The shared App4Mobile server runs several products at once, so infrastructure costs are minimal.

What we learned

  1. Design for the worst moment. A screen used during pain must need a single action.
  2. A PWA is a fast route to the first users. App stores can wait until the product proves it's needed.
  3. Health data needs discipline. Collect the minimum, no analytics in the app and full user control over the account.

The principles we followed are collected in how to design a health tracking app.

Thinking about an app that has to work fast on phone and desktop, with accounts, statistics and reports? Get in touch – we'll start with what matters most.

FAQ

Frequently asked questions

Is Migrener App4Mobile's own product?

Yes. We designed and built Migrener ourselves: the PWA, the API, the support panel, the website and the guide.

Do you build custom PWAs?

Yes. We build web applications and PWAs in Angular or React, with user accounts, statistics, data export and a Node.js backend. When the product grows, we add an iOS and Android app that uses the same API.

Is Migrener a medical device?

No. Migrener is a diary that helps record headaches and prepare for a doctor's appointment. It does not diagnose and does not replace medical advice.

FINALContact

Got a project? Get in touch

A few sentences about your idea, a rough deadline and budget are enough to start. The first conversation and the initial quote are free and non-binding.

biuro@app4mobile.pl
Get in touch