With every bottle of prescription medication comes an implied promise: The drugs are safe and effective and meet strict standards set by the Food and Drug Administration.

But the agency known as one of the world’s toughest regulators provides only intermittent oversight of the foreign factories where generic drugs are made. And when investigators turn up mold, filthy equipment and contaminants in those facilities, the FDA keeps the names of the drugs they make secret.

Consumers often have no way of knowing if the medications they are taking came from factories that used dirty water, were infested by insects or birds, or were outright banned from shipping drugs to the U.S., but then granted special exemptions to do so anyway.

Today, ProPublica is launching Rx Inspector, a first-of-its-kind database that provides answers to what the FDA won’t tell us: where our generics are coming from and the track records of the factories that made them. The information is harder to find than you may think.

Labels on pill bottles often list a distributor or repackager rather than the actual manufacturer — and some have no information at all. When ProPublica asked our readers to send in photos of their pill bottles, they flooded our inbox with pictures proving just how difficult that information is to come by.

Even though generic drugs make up 90% of prescriptions dispensed in the U.S., the FDA only provides piecemeal information about them. It’s scattered across different websites with no easy way to link drugs to their manufacturers, factory locations and regulatory track records. Over many months, our journalists connected that data. In one case, ProPublica had to sue the FDA in federal court and received a partial list of factory locations.

You can use this app to connect your own medication to the manufacturer that made it, to the specific factory where it was made and to any FDA inspection reports and serious compliance violations linked to that facility that ProPublica has obtained.