WRITING · 30.10.2026 · 3 MIN

Drug Lord: what changed since launch


Six days ago I put Drug Lord online. Since then thirteen pull requests went in, most of them on one Sunday. Here is what changed.

Same batch, one row

Buy two boxes of the same thing and you used to get two identical rows. Now a box from a batch that’s already in the cabinet (same code, batch and expiry date) just adds a pack to the existing entry. The list shows “2 packs” and Undo brings back the old row.

The server can’t do this comparison, because it can’t read the batch number. It sends back the entries with the same plain expiry date and the browser decides after decrypting them.

Opened packs

Eye drops say “use within 4 weeks of opening”. The box says 2028. Both are true, and only one of them matters.

Now a medicine can have a shelf life after opening: 14 days, a month, 3 months or your own number. Tap “Open pack” and the expiry date becomes whichever comes first, the date on the box or the day you opened it plus N days. If the entry has several packs, the opened one moves to its own row.

The nice part is what didn’t change. The server still sees one plain date, so the reminder job and the notifications work exactly as before. The box date, the opening day and the number of days are encrypted with the rest.

Same substance

The medicine page has a new “Same substance” section. It lists other packs with the same active substance across all your cabinets, plus substitutes from the Polish medicines register, same strength first. Handy when the ibuprofen is out of date but the cottage cabinet has another brand of it.

The matching runs in the browser, on decrypted data and the downloaded register, so the server doesn’t know what you were looking for.

Categories and places

Two optional fields: a category (Pain, Allergy, Stomach…) and a place (Bathroom, Kitchen, the car). Categories are buttons to tap, with your own after “Other”. The list gets a row of filters, and search looks at these fields too. Both are encrypted, like everything else.

Recalls

In Poland the Chief Pharmaceutical Inspectorate (GIF) publishes decisions to withdraw or suspend medicines. Drug Lord now reads them.

The cron job checks the register’s front page at most twice a day. That’s the only page robots.txt allows, so that’s the only page it reads. The decisions go into a public list, the browser compares it with your decrypted medicines by name and strength, and a matching one gets a “GIF decision” badge with a link. The register doesn’t publish batch numbers, so the app can’t say if your box is affected. It asks you to check.

One Face ID, not two

Signing in with a passkey and then unlocking the data with the same passkey meant two prompts in a row. Now the sign-in prompt unlocks the data too. One Face ID and you’re in.

The start page is a leaflet

Before you sign in you now see a medicine leaflet, numbered points and all. It has a working scanner demo, a scrolling expiry clock and a “What you see / What the server sees” switch that shows the ciphertext.

Point 4 is “Possible side effects”, on the real leaflet scale from very common to frequency unknown. Each one opens a small working demo: substitutes, opening a pack, tags, a GIF recall. The page has a PL / EN switch too.

Invite-only, but properly

“Ping me on X” didn’t scale even to my friends. Now anyone can sign in, and a new account waits for approval. I get a push and an e-mail, tap Approve, and they get an e-mail back. Rejecting only blocks the account, it deletes nothing.

Smaller things

Still invite-only. If you want in, sign in and wait for the approval e-mail.


related order: #0002 Drug Lord