PROJECTS · ORDER #0002

Drug Lord

Knows which pills in the drawer have expired. Before you do.

A cabinet with five medicines: one expired, one expiring in 7 days, three validThe same cabinet in dark mode


Every home has a drawer of medicines. Some of them expired years ago, and nobody knows which. Drug Lord keeps track. You scan the box, it fills in the rest, and it reminds you before something runs out.

It’s a PWA. Open it in the browser, add it to the home screen, and it behaves like an app. No store, no install.

Reminders come as push notifications, with e-mail when push doesn’t arrive. You choose how many days ahead and at what hour.

Scanning

The scanner runs in the browser: zxing compiled to WebAssembly. Point the camera at the box and it beeps and flashes green. A regular barcode finds the medicine. The square DataMatrix code also gives the expiry date and batch. Names, strengths and active substances come from the Polish medicines register (URPL), refreshed every week.

Series mode is for the whole drawer at once. The camera pauses after each box, you grab the next one, and at the end you review the list and add everything.

Series scanning: a box recognised as Nalgesin, camera paused, Scan the next oneThe add form filled in from the register after a scan

Most boxes only print a month, like EXP 03/2027, so the app assumes the end of that month unless you pick a day.

No vibration on iPhone. Safari doesn’t support it, and I tried the workarounds. You get the beep.

Nobody else can read it

Halfway through I noticed I was building a database of what my friends take for their blood pressure. I didn’t want to own that database.

So cabinet names, medicine names, doses, notes, batch numbers and codes are encrypted with AES-GCM on the phone before anything is sent. The server stores ciphertext and one plain field, the expiry date, because the reminder job needs it. Reminders say “2 medicines expire soon” and never which ones.

On first launch you pick one thing: a passkey (Face ID, Windows Hello, a password manager) or a password. You also get a recovery code, shown once. Lose all of them and the data is gone. That’s the point.

First launch: choose a passkey or a passwordUnlock screen in dark mode

The first version of this screen talked about PRF and key wrapping. It made sense to the model that wrote it. It didn’t make sense to me.

The boring part that matters

As many cabinets as you need: home, cottage, travel bag. Each one shows what has expired and what is about to.

Three cabinets: Cottage, Home with one expired and one expiring, Travel bagA medicine page: Ibuprofen 400 mg, expiring in 7 days

Swipe a medicine left to delete it, with Undo. Expired ones go all at once. When a box has a code, one tap checks which pharmacy has it in stock.

It’s a reminder app, not medical advice. Read the leaflet.

Public release soon. Until then it’s invite-only: sign in and wait for the approval e-mail, or ping me on X.


STACKnext.js · postgres · bun
SHIPPED10.2026
OPEN APP