r/bioinformaticstools • u/Snoo_74391 • 6h ago
Moonlight: an open-source window onto Open Targets that shows which medicines and trials exist for a disease, with a source on every card
In much of the world, a patient or family facing a rare condition can't easily find out which medicines are approved for it, which are in trials, and where those trials are. The information exists, but it's scattered across regulator sites, trial registries and research databases, mostly written for specialists.
Moonlight is our attempt at a plain front door to all that. You type a condition and get three lists: medicines approved for it, medicines in trials for it, and "new clues" (approved medicines that act on a protein linked to the disease but have never been trialled for it). Every card links to its source record. The reason we kept going: someone in Kochi, in southern India, living with limb-girdle muscular dystrophy, used it to find a trial running in the US.
How it works
- One source of record. Everything comes from the Open Targets Platform API. We add no data of our own, so Moonlight is a window onto that one database. Answers are cached for a day.
- A small Python pipeline, one module per step: turn everyday words into candidate diseases (confirmed by Open Targets search), fetch the disease's linked proteins and the medicines acting on them, sort, rank, explain.
- Sorting is plain rules, not AI. A medicine must be approved for at least one disease; one withdrawn in any country is left out. Approved for this disease goes in Approved, in trials for it goes in Being studied, otherwise it's a new clue. Medicines not approved anywhere are left out and counted. Salt forms of a drug are merged into one item.
- Ranking is plain code too: protein-disease score (parts of the same protein complex count once), then number of reports, then alphabetical. A clue that pushes a protein the opposite way to an approved drug gets flagged.
- AI in a narrow role. Gemini turns one medicine-protein-disease path into short plain-language text, and a grounding check makes sure it only repeats what's in the records. The safety line is added by code, never by the model. Coding agents work ticket by ticket against a suite of 1,200+ tests that run on saved API responses.
- Stack: FastAPI, one static page, Docker, Google Cloud Run in Mumbai.
- Corrections loop: we share disease pages with patient communities on Reddit and ask what's wrong. Each correction becomes a ticket, gets checked against regulator labels, and confirmed fixes become permanent test cases. Errors in the source data go upstream to Open Targets.
Early wins
- The Kochi trial find above.
- Open Targets confirmed seven wrong approval records we reported and scheduled the fix for release 26.12: https://community.opentargets.org/t/2105
- A 124-disease check found that 724 of 2,096 medicines on the Approved lists had no DailyMed, FDA or EMA record attached. Those cards are now marked.
- Reddit comments have already turned into 10 logged feedback tickets.
Honest constraints
- Single source. When Open Targets has a gap or an outdated record, so do we.
- Approval status is messy. FDA, EMA, Japan's PMDA and India's CDSCO don't line up, and old trials rarely get marked as finished, so "approved" and "being studied" need constant checking.
- Checking costs money. Using AI to verify and correct thousands of entries is now our biggest cost, and we pay it ourselves, with no ads and no data selling.
The ask
Our priority is AI model credits: API credits from Anthropic, Google or other model providers, an AI-for-good or startup credit programme, or an introduction to someone who runs one. More checking per entry is where accuracy comes from. Secondly, if you know rare-disease patient groups or clinicians in India or elsewhere in the developing world, I'd be grateful for an introduction.
Code (MIT): https://github.com/kashishdugar2017/moonlight. A star helps if you find it useful. Live site: https://www.moonlightclues.com
It's a research and learning tool, not medical advice. Happy to answer questions about any of the above.
