Chemistry; the structure drawing suite of the Form family.
Draw molecules and reactions, check and analyse them, predict spectra and turn them in 3D,
in one window with no account. Agents draw in the same window over MCP.
Download FormChem on formai.tools · Run it from source
Paclitaxel on the dark page, with its name, formula, masses and properties in the Analysis panel.
Features · In the box · Agents · Under the hood · Download · Run from source
| Structures and reactions in the 1996 journal style, with journal styles you can apply to a drawing you already have. | RDKit and Indigo check every change and name the method and version behind every number shown. | No account and no upload. Drawings and databases stay on your computer, and the engine listens on 127.0.0.1 only. | 104 MCP tools draw, edit and check in the window you see, each call one undo step you can review or stop. |
Every feature in detail: docs/MANUAL.md. How FormChem compares, requirement by requirement, with the specifications it is measured against: docs/PARITY.md.
- Drawing:
.fchemdrawings with undo per drawing, autosave and Recent; a tool rail with selection and lasso, fourteen bond kinds, chains, rings of 3 to 8 and chairs, templates that attach to an atom or fuse onto a bond with a click, atom labels, text, eraser, hand and zoom; hover keys for elements, charges, chains, rings and bonds, and arrow keys and Enter to draw without the mouse. - Annotations and layout: fifteen arrow types and anchored electron-pushing arrows, plus signs, brackets, shapes, tables, TLC plates, orbitals, pictures and captions; duplicate, flip, rotate, align, distribute, smart guides and groups; several pages with headers and footers; a dark page on by default, five grid types and Snap to Grid; structures scaled on the sheet by percent or bond length.
- Styles: the 1996 journal style with bundled Arimo, journal styles applied to a drawing or a selection, style files, per-character text formatting and an emphasis red.
- Chemistry engine: canonical SMILES, CXSMILES, InChI, InChIKey, formula and masses after each change; valence problems flagged on the canvas; Clean Up, Lay Out, Standardise and a structure check that selects the atoms behind each issue.
- Stereo and queries: CIP labels from the new rules, enhanced stereo groups, M and P for atropisomers and allenes; 221 abbreviations, with typed labels such as CH2CH2OH read as chemistry; atom lists, query bonds, Find Substructure, SMARTS, and R-groups with Markush enumeration.
- Reactions: reaction roles, Space Reaction with wrapping, conditions that follow and stretch their arrow, footnoted steps, atom mapping with reacting centres and a check badge, balancing with drawn coefficients, and a stoichiometry panel with a density table and CSV export.
- Analysis: formula, CIAAW 2024 masses, seven adducts, elemental analysis with your found values, cLogP, TPSA, molar refractivity, donors, acceptors, rotatable bonds, Lipinski, Veber and Ghose, the isotope pattern, polymer formulas, and predicted 1H, 13C, IR and MS tables, each with its method.
- Names and spectra: Structure from Name offline from a dictionary of 629 names or a systematic IUPAC parser; names for what you draw when they read back the same; 1H and 13C NMR predicted by FormChem's own increment method; IR, Raman, UV-Vis, MS and NMR spectra from JCAMP-DX files, with peaks and integrals linked to atoms.
- 3D: Build 3D from 2D with every stereocentre checked, wire, stick, ball and stick, space filling and cartoon, surfaces with areas, volumes and ESP, measurements and bond rotation, conformer searches with Boltzmann populations, MMFF94, MMFF94s and UFF minimisation, dihedral scans, PDB and mmCIF by file or PDB id with their ligands, crystal packing from CIF, and 3D views placed on the page.
- Databases and the notebook:
.fcdbdatabases with your own fields, duplicate rules, import from SD, RD, SMILES, CSV and TSV with a report of every bad record, exact, substructure, similarity, formula and field searches, hit lists and saved queries, and a lab notebook with signed entries exported as HTML or JSON. - Family integration: live structures in FormDeck, FormTxt and form.md that open again with a
formai://formchem/editlink, a shared structure library, a bar that offers Reload or Keep Mine when a file changes on disk, and HELM for peptides and nucleic acids. - Accessibility: a keyboard focus that walks atoms and bonds, every move spoken by screen readers, Describe Structure, and Standard, High contrast and Colour-blind safe element colours.
- xtb and CREST: GFN2-xTB and GFN-FF optimisations and single points with ALPB solvents, and CREST conformer searches, when you have installed the programs; FormChem never ships or downloads them.
- Reference: a periodic table window with sourced element data and isotopes, and a constants and unit converter with CODATA 2022 values.
- The window: Home, Preferences, twelve menus with full keyboard use, Find a Command, the terminal and agent dock, Help and updates, Form extensions from FormPortal, and 26 interface languages.
- Native:
.fchemdrawings and.fcdbdatabases - Chemistry in and out: Molfile V2000 and V3000, SD, RXN, RD, SMILES, CXSMILES, reaction SMILES, SMARTS, InChI and InChIKey, CML, CDXML and CDX, HELM and FASTA in, each export reporting what the format could not keep
- 3D: PDB, mmCIF and CIF in; MOL, SD, PDB and XYZ out; glTF for the 3D view
- Spectra: JCAMP-DX in every compression form
- Pictures: PNG up to 1200 dpi, TIFF, JPEG, WebP, one-bit line art, SVG with fonts or outlines, PDF, PDF/A and EPS, each keeping the editable drawing inside; Print with scale, tiling, crop marks and a preview
- Clipboard: the drawing, SMILES and a picture at once, Copy As in each chemistry format, and Paste Special
The window, the command line and the MCP server call the same commands, so an agent draws in the window you have open. draw_from_smiles {"smiles": "CC(=O)Oc1ccccc1C(=O)O"} lays aspirin out on the page and answers with its ids, SMILES, InChIKey, formula and a picture from the window's own renderer. The 104 tools also draw from names and HELM, edit atom by atom by id, read structures back, predict spectra, build in 3D, search and fill databases, keep the structure library, run xtb and convert files as the command line does.
./formchem agents install # register FormChem with Claude Code, Codex, Cursor and Antigravity, and install the skills
./formchem agents token # print the agent token for HTTP MCP (Authorization: Bearer <token>)
./formchem mcp # MCP server on stdio for Claude Code, Codex, Cursor, Antigravity and Claude Desktop
./formchem cli list # the window's command catalogueEvery change is one undo step labelled with its tool. Reading is always open; the window asks before an outside agent changes anything, the title bar shows which agent is editing with a Stop button, and Window > Agent Activity lists every call. Every tool, its arguments and its result: docs/AGENTS.md. Instructions for coding agents in this repository: AGENTS.md.
FormChem hosts Form extensions (Form Extension Contract, API 1): FormPortal installs them and form.ext runs them from a folder while you make them. They run in a sandboxed frame from the Extensions menu and panel, and ask before they read or change a drawing. See docs/EXTENSIONS.md.
- Engine: a FastAPI service on 127.0.0.1:8220 holds every document; each change is a JSON op with an inverse, broadcast to every window and agent. RDKit and Indigo are the chemistry core.
- Window: vanilla TypeScript and Vite, with inline SVG icons and no UI framework; the canvas patches only what changed.
- Desktop: a Tauri 2 shell with the engine frozen by PyInstaller and its whole data folder inside, registering FormChem's file types, document icons and the
formai://link. - Names, spectra and 3D: FormChem's own name engine, NMR increment predictor and JCAMP-DX reader behind registries; RDKit's ETKDGv3, MMFF94 and UFF in the engine and 3Dmol.js in the window, loaded only when a 3D view first opens.
- Databases: one SQLite file per database with plain-English tables, specified in
docs/DATABASE.md; searches screen fingerprints in memory before RDKit confirms a match. - Format:
.fchemis a zip package arounddocument.json, specified indocs/FORMAT.md.
| Platform | Download | Release |
|---|---|---|
| macOS | Download FormChem for macOS | FormChem releases on FormCompiler |
| Windows | Download FormChem for Windows | FormChem releases on FormCompiler |
| Linux | Download FormChem for Linux | FormChem releases on FormCompiler |
All FormChem builds are compiled and released from FormCompiler; this repo holds the source.
Three demos open by double-click from this repository, with no engine, install or network: demos/drawing (the canvas, tool rail, hover keys and export, on aspirin), demos/reactions (a two-step aspirin synthesis with its curved-arrow mechanism and the stoichiometry grid) and demos/3d (aspirin, caffeine and cholesterol with styles, surfaces, conformers and measurements). In the app, Home and Help > Demos open five prepared drawings.
Prefer it in your browser, or want to contribute? Run the web UI straight from this repo.
Requires: Python 3.12+ and Node 20.19+.
git clone git@github.com:nodemode-dev/formchem.git
cd formchem
./formchem install # backend venv and frontend packages
./formchem # engine on 127.0.0.1:8220, web UI at http://localhost:5220./formchem desktop dev opens the desktop window instead, and ./build_app builds the desktop app (macOS and Linux; Rust is also needed). On Windows use formchem.bat install, formchem.bat and build_app.bat. FORMCHEM_DATA_DIR moves the data folder from ~/formchem. The wiki's Desktop page and the manual's Troubleshooting cover building in detail.
Contributing: branch from main, keep changes to source here, and leave packaging and releases to FormCompiler. See CONTRIBUTING.md, .docs/BRANCHING.md and AGENTS.md. Report security issues privately as SECURITY.md describes.
| Path | What it is |
|---|---|
backend/ |
FastAPI engine: documents, chemistry, reactions, analysis, names, spectra, 3D, databases, the structure library, formats and pictures, MCP and the agent tools |
frontend/ |
Vanilla TypeScript and Vite window: canvas and tools, panels, the 3D View, the database workspace, shell, menus, Home, Preferences, dock |
src-tauri/ |
Tauri 2 desktop shell |
setup/ |
the scripts behind ./formchem |
demos/ |
three offline browser demos built from the window's code |
Its size, in non-blank lines: about 55,500 of TypeScript, 2,600 of CSS, 42,900 of Python, 804 of Rust (product code, tests excluded, counted by ./formchem counts; ./formchem counts --check fails when this line drifts from the code).
Docs: CHANGELOG.md, docs/MANUAL.md, docs/PARITY.md, docs/FORMATS.md, docs/3D.md, docs/SPECTRA.md, docs/NAMES.md, docs/DATABASES.md, docs/LIVE-STRUCTURES.md, docs/ACCESSIBILITY.md, docs/HELM.md, docs/CLI.md, .docs/wiki · Agents: CLAUDE.md, AGENTS.md
| Maintainer | Role |
|---|---|
| @nodemode-ai | Owner |
| @gbarnai | Co-owner |
Code owners are set in .github/CODEOWNERS.
FormChem is licensed under the Apache License 2.0 (LICENSE, SPDX Apache-2.0). Copyright 2026 NodeAgentc, Inc. Third-party notices: NOTICE.md (what each component is and why) and THIRD-PARTY-NOTICES.txt (their full licence texts).
Other vendors' product names appear only to name file formats. FormChem is an independent project and is not affiliated with or endorsed by them.





