Dawa Alert

Is this medicine batch on a recall list?

Visit Repo
Dawa Alert banner

About

## The problem it solves

# Dawa Alert: The Warning Existed. It Just Never Reached Reached the Bottle.

Do you remember the cough syrup deaths in 2025? Or the infant deaths in Jammu and Kashmir a few years before? Every time, the warning was already out there somewhere. It just never reached the people who needed to know.

Contaminated and substandard medicines reach Indian homes again and again. In October 2025, at least 24 children in Madhya Pradesh died after taking cough syrup contaminated with diethylene glycol. CDSCO, state drug controllers and WHO each published their own notices, in different places and formats, mostly as monthly PDFs. A parent, patient or chemist has no simple way to ask, "Is this medicine batch flagged?" And a notice that can be edited or removed cannot be fully trusted.

Dawa Alert puts every authority's notice for a batch side by side, with its source link and date. Today, that means 2,336 live alerts from four authorities and source categories: CDSCO, state drug labs and controllers, and WHO. You type or photograph the batch number and get an answer in a second. Community sightings show where a flagged batch is still on shelves, grouped by the first three digits of the postal code, never an exact location. It works in English and Hindi, in light and dark mode, on a phone.

## The warning signs were already there

  • **The harm is severe, and the cause is cheap.** Diethylene glycol is an industrial solvent that damages the kidneys. WHO's alert of 13 October 2025 names three syrups containing it, including Coldrif batch `SR-13` at 48.6% w/v. Medicines like these can be given to young children for ordinary coughs and colds.
  • **The warning existed, but it was fragmented.** Telangana's drug controller issued a stop-use notice on 4 October, and WHO followed on 13 October. The same batch was flagged by a state lab, a state controller and WHO on different dates, in different places. Nobody had one place that showed all three.
  • **It keeps happening.** The CDSCO alert of March 2020 lists COLDBEST-PC, batch `DL5201`, positive for diethylene glycol following infant deaths in Jammu and Kashmir. The pattern spans years, and the evidence sat in a monthly PDF.
  • **The scale is not small.** Dawa Alert currently holds 2,336 live alerts: 24 for contamination, 31 on the spurious list and 2,281 quality failures. Each one represents a batch that may still be in a medicine cabinet, pharmacy or supply chain.
  • **A safety notice must be findable and trustworthy.** A record that can be quietly edited or deleted, or that lives in a PDF, fails both tests. That is why immutability and expiry are core design decisions, not extra features.
  • **When authorities disagree, people need to see it.** In the Gambia case in 2022, WHO issued an alert, and India's government later told Parliament that its committee found insufficient evidence of a causal link. Dawa Alert shows each authority's claim with its own date instead of picking a winner.

## Built for the people who need to know

  • **Parents and caregivers** checking a medicine batch before giving it to a child.
  • **Patients** checking whether a medicine they have been prescribed or purchased appears in a safety alert.
  • **Chemists and pharmacists** confirming a batch before selling or restocking it.
  • **Health workers and inspectors** seeing where a flagged batch has been reported, by region, without anyone's identity or exact location being stored.

## The data exists. Access is the problem.

Public notices are already being published, so the missing piece is not data. It is a single, tamper-proof, searchable place for it.

Arkiv makes that possible without our team becoming a database administrator that people have to trust.

## Why these records need to be permanent

A normal database has an administrator, and an administrator can be asked to remove a record. For a medicine safety notice, that is the wrong default.

Arkiv gives Dawa Alert three important capabilities:

  • **Immutable records:** Records are created read-only, so their content cannot change.
  • **No privileged deletion:** Ownership is sent to a burn address after creation, so not even the wallet that wrote an alert can delete it.
  • **Expiry tied to the medicine:** Each alert expires with the batch's printed expiry date, so expired batches do not continue to appear as live alerts.

Queryable attributes such as batch, authority, severity and month mean the app reads directly from the chain, without a separate index we would have to trust.

## Arkiv in the architecture

GitHub: https://github.com/SomehowLiving/dawa-alert/blob/main/arkiv/schema.md

## What we learned building on Arkiv

GitHub: https://github.com/SomehowLiving/dawa-alert/blob/main/arkiv/friction.md

---

The warning existed. It just never reached the people who needed it.

**Dawa Alert puts medicine safety warnings where people can find them, and Arkiv helps ensure those records cannot simply disappear.**

## Challenges I ran into

**1. Arkiv's anonymous query budget ran out and the SDK hung instead of saying so.** Pages stalled with no error. We sent an Arkiv access key in an `X-API-KEY` header, added a 12-second timeout and one retry, cached reads on the server, and moved the dashboard numbers into a single stats-snapshot entity so a page load no longer walks 2,300 alerts.

**2. Cursor paging broke.** Walks died after about five pages with a self-contradicting error, and on the live site a cursor even failed on page 2 ("cursor belongs to a different block") because the chain moved between requests. This broke "Load more". We now split large ranges by list month and retry a month from scratch if its cursor goes stale. The browse page loads the full set once, caches it, and pages through it with a plain offset.

**3. A 128-byte limit on string attributes, found only at write time.** Nine real records failed. We clip normalised product names to 100 characters for the attribute and keep the full text in the payload. A test now runs over every real record.

**4. Locking to a burn address makes a mistake permanent.** Our PDF parser mangled some names ("Calc ium") and produced duplicates, and we had already locked them. They can never be edited or deleted. We hide those source types in the API, skip them in the loader, and wrote it up as a lesson in the friction report. We also stopped using live-test records in production data.

**5. Reading batch numbers from photos.** Tesseract misread characters, and PaddleOCR returns the "Batch No." label and its value as separate boxes. We switched to PaddleOCR (PP-OCRv5) in the browser with a Tesseract fallback, taught the parser to read the next line, handle glued keywords, Hindi and Cyrillic labels, and punctuation. The result is always only a suggestion that the user confirms. The optional AI read was slow with full-size photos, so photos are now shrunk to 1280 px before upload.

**6. Deploying.** Vercel's free plan blocked deployments from a commit author it couldn't map, so we deploy a pre-built copy from a git-free folder with a small script.

Screenshots

Dawa Alert screenshot 1Dawa Alert screenshot 2Dawa Alert screenshot 3Dawa Alert screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.