For most families facing a rare condition, the hardest part often isn't the science. It's simply finding out what exists. Which medicines are approved? Which are in trials, and where? The answers sit in regulator databases, trial registries and research platforms, written for specialists and spread across a dozen sites. If you live somewhere with few specialists, that is often where the search stops.
Moonlight is an open-source project that tries to put all of that behind one search box. Type a condition and you get the medicines linked to it, sorted into approved, being studied and "new clues", each with a link to the record it came from. What keeps us going: a person in Kochi, in southern India, living with limb-girdle muscular dystrophy, used it to find a trial running in the US.
Under the hood
\- Data: the Open Targets Platform, a public research database. We keep no data of our own, so Moonlight is really a readable window onto it. Responses are cached for a day.
\- Pipeline: Python, one small module per step. Match everyday words to candidate diseases, pull the proteins linked to the disease and the medicines acting on them, then sort and rank.
\- Sorting is plain code, not AI. Approved for this condition goes under Approved; in trials for it goes under Being studied; approved for something else but acting on a linked protein becomes a new clue. Anything never approved anywhere, or withdrawn, is left out and counted. Salt forms of one drug are meant to collapse into a single card.
\- Where AI comes in: Gemini writes the short plain-English note for each medicine-protein-disease path, and a grounding check rejects anything that isn't in the source records. The safety line is added by code, never by the model. The code itself is written by coding agents, ticket by ticket, against 1,200+ tests that run on saved API responses.
\- Stack: FastAPI, a single static page, Docker, Google Cloud Run in the Mumbai region.
\- Feedback loop: we share disease pages in patient communities and ask what's wrong. Each correction becomes a ticket, gets checked against regulator labels, and confirmed fixes turn into test cases. Mistakes in the underlying data are reported upstream.
What has worked so far
\- The Kochi trial found above.
\- Open Targets confirmed seven wrong approval records we flagged and scheduled the fix for release 26.12: https://community.opentargets.org/t/2105
\- Reddit comments have produced 12 logged feedback tickets so far.
\- An audit of 124 diseases found 724 of 2,096 "approved" medicines had no FDA, EMA or DailyMed record behind them. Those cards are now labelled.
What is hard
\- One source means one set of blind spots. If Open Targets is missing a recent approval, so are we.
\- "Approved" isn't one thing. The FDA, EMA, Japan's PMDA and India's CDSCO don't agree, and finished trials often still look active.
\- Checking thousands of entries with AI costs real money, and we pay it ourselves. There are no ads and we don't sell data.
Where you could help
What would improve accuracy most is AI model credits: API credits from Anthropic, Google, OpenAI or another provider, a startup or AI-for-good credit programme, or a pointer to whoever runs one. Beyond that, contributors are very welcome, especially anyone who knows FDA, EMA or CDSCO data.
Repo (MIT): https://github.com/kashishdugar2017/moonlight.
If it's useful to you, a star helps others find it.
Live site: https://www.moonlightclues.com