PubChem names
Molkit looks up the name of the selected molecule in PubChem, the public chemistry database of the US National Library of Medicine, and shows it in the status bar. For example, draw acetic acid and select it: half a second later, the status bar reads “acetic acid”. Molkit sends the structure’s SMILES string to PubChem (see Network and privacy). PubChem also fills in the compound fields of the chemistry metadata in SVG exports. Lookups need an internet connection, and you can turn them off.
Look up a name
Section titled “Look up a name”- Draw a molecule, for example ethanol (
CCO, from Insert > Insert by Name or SMILES…). - Select all of its atoms, or leave nothing selected if it is the only molecule on the canvas.
The status bar shows “looking up name…” and then the name.
With nothing selected, Molkit names the whole canvas when it holds a single molecule or one salt such as sodium chloride; otherwise, it names one molecule from the canvas. A partial selection is looked up as a fragment. Very large selections are not looked up.
A structure that contains a generic placeholder such as R is never looked up, because it does not stand for one compound.
What the status bar shows
Section titled “What the status bar shows”The status bar shows the PubChem common name first: the first listed synonym of the compound, in lowercase, for example “ammonia” or “acetic acid”.
| Control | What it does |
|---|---|
| The name | Click to copy it. The name dims briefly to confirm. |
| Dropdown arrow | Appears when PubChem returns more than one name. It lists the systematic IUPAC name and other synonyms; click any entry to copy it. |
| External-link icon (“View on PubChem”) | Appears when PubChem matched a compound record. Opens the PubChem page of that compound in a new tab. |
Structure > Copy IUPAC Name (also in the command palette, Ctrl+K) copies the systematic IUPAC name, even though the status bar shows the common name first. If PubChem returned only a common name, or a stored name has no IUPAC form, the command copies that name instead, and the confirmation message says that it is the common name.
A named selection or visual set that already stores a name shows that name without contacting PubChem.
Ions and radicals
Section titled “Ions and radicals”PubChem stores some species under a different structure from the one you drew. An ionic depiction may have no SMILES match at all, and a radical drawn with an open valence can match the compound with that valence filled by hydrogen: nitrogen dioxide (NO2) would be reported as nitrous acid. In both cases, Molkit discards the SMILES result and searches PubChem by molecular formula instead, including the charge, so NO2 is named nitrogen dioxide. Molkit accepts a formula result only when it matches exactly one compound.
PubChem data in SVG exports
Section titled “PubChem data in SVG exports”Every SVG export embeds chemistry metadata; there is no option to turn it off. When you export an SVG, Molkit also requests the IUPAC name, compound ID (CID), common-name synonyms, InChI, and InChIKey of the structure from PubChem, and writes them into the metadata of the file. Molkit fetches these in the background while you select a molecule, so the export usually does not wait for them. If PubChem cannot be reached, the export completes without those fields.
To draw a compound from PubChem by its name or CAS number, use Insert by Name or SMILES. For a structure you found there by other means, download its SDF and import the SDF file.
Network and privacy
Section titled “Network and privacy”Each lookup sends the SMILES string of the structure being named (or, for the formula search, its molecular formula) to pubchem.ncbi.nlm.nih.gov as part of the request URL. A name looked up in Insert by Name or SMILES is sent the same way, unless Molkit already knows it. No other document content is sent. With nothing selected, the whole canvas or one molecule on it is looked up, so if you work with structures you cannot share, turn off online lookups.
Turn off online lookups
Section titled “Turn off online lookups”Edit > Look Up Names Online (PubChem) turns the automatic lookups on and off. It is on by default, and Molkit keeps the setting for this browser.
When it is off, Molkit never contacts PubChem by itself:
| Place | With lookups off |
|---|---|
| Status bar name | Stays blank. A name that a named selection or visual set already stores still shows. |
| Structure description (screen readers, Structure > Copy Structure Description) | Lists the formula, SMILES, and counts, with no name. |
| Name fields of the Molecule Metadata window (right-click > Name Molecule… or Edit Metadata) | Not filled in. Type the names you want. |
| New visual sets | Not named automatically. |
| Pasted InChI | Pasted as text, with a message that says why. |
| SVG exports | Carry the chemistry metadata Molkit computes itself, with no PubChem name, CID, or synonyms. |
A lookup you ask for yourself still works: Insert by Name or SMILES looks up a name you type, and so does a script that draws a compound by name.
When no name appears
Section titled “When no name appears”A failed lookup shows no error message. If you are offline, PubChem is unavailable, or the structure has no PubChem record, the status bar stays blank. Molkit remembers each name it finds until you close the page. A failed lookup is not remembered, so selecting the structure again tries again.
To copy a plain-text summary that includes the name, see Copy a structure description.