potion
PotionCraft's chemistry engine: draw structures and reactions from SMILES, formula and masses, reaction tables (mmol, equivalents, limiting reagent, yield), MOL/SD/SVG/PNG export, 1D NMR processing. Runs a batch of engine commands on one document (new, smiles, or a staged file); commands="<filter>" lists them with parameters. Save under out/.
- Field
- Chemistry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 1 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001aspirin from 1.000 g salicylic acid (138.122 g/mol): 7.240 mmol; 1.000 g aspirin back is a 76.7 % yieldpassed
results.3.rows.0.mw{"value": 138.122, "abs_tol": 0.005}results.3.rows.0.mmol{"value": 7.24, "abs_tol": 0.001}results.3.rows.2.formula= C9H8O4misseddiffersresults.3.rows.2.yield{"value": 76.7, "abs_tol": 0.1}
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
steps | Commands in order: [{"id": "draw.reactionSmiles", "params": {"text": "A.B>>C"}}, {"id": "reaction.setAmount", "params": {"row": 0, "massMg": 500, "reference": true}}, {"id": "reaction.table"}, ...] | ||
smiles | Start from this structure instead of an empty document. | ||
open | Start from a staged file (.potion, .mol, .sdf, ...). | ||
save | Save the document after the steps, e.g. out/route.potion. | ||
commands | List the engine's commands whose id contains this text instead of running steps. |
Readings
| Name | Unit | Meaning |
|---|---|---|
completed | ||
results | ||
batch.json | ||
out/* |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.