Skip to content
nodemode-devPublic

About

FormChem - instead of ChemDraw: the chemical structure drawing suite from the FormAI family of apps. Structures, reactions, stereo, names, NMR prediction, 3D & a structure database, with .cdxml & .mol exchange; agents draw over MCP. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,292 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FormChem icon: benzene, an arrow and phenol in white above a row of spectrum peaks, on a blue to violet to orange card in a dark rounded square

FormChem

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.

version 0.14.1 TypeScript and Vite Python and FastAPI macOS, Windows, Linux License: Apache-2.0 Status: live

Download FormChem on formai.tools · Run it from source


The FormChem window in the dark theme: paclitaxel (Taxol) drawn on a dark page with its wedges and hashed bonds, the tool rail on the left, and the Analysis panel on the right showing the name paclitaxel from the dictionary, the formula C47H51NO14, molecular weight 853.92 g/mol, exact mass, m/z, elemental analysis, cLogP, tPSA, donors, acceptors, rotatable bonds, two rule-of-five violations and the isotope pattern
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


Drawn like a journal

Structures and reactions in the 1996 journal style, with journal styles you can apply to a drawing you already have.

Chemistry that checks itself

RDKit and Indigo check every change and name the method and version behind every number shown.

Local-first

No account and no upload. Drawings and databases stay on your computer, and the engine listens on 127.0.0.1 only.

Agent-ready

104 MCP tools draw, edit and check in the window you see, each call one undo step you can review or stop.

Features

A reaction scheme on the dark page: salicylic acid plus acetic anhydride, with sulfuric acid over the arrow, giving aspirin plus acetic acid; below it the Stoichiometry panel at 10 mmol scale with masses, equivalents, the limiting reagent, a theoretical yield of 1802 mg and a yield of 81.0 percent
An aspirin synthesis read into roles, with its amounts and yield.

Reactions and stoichiometry

Perceive Reactions reads reactants, products, reagents and conditions; Space Reaction lines a scheme up, conditions follow their arrow, and the stoichiometry panel works out moles, equivalents, the limiting reagent and yields.
The 3D View beside a 2D drawing of paclitaxel: the molecule in ball and stick after an MMFF94 conformer search, with the list of conformers and their relative energies in kcal/mol, and the Measure tools for distance, angle and dihedral
Paclitaxel in 3D, with its conformers and their energies.

3D that fills the window

Build 3D from the drawing with every stereocentre kept, then turn, zoom and pan it across the whole window: conformers, minimisation, surfaces with ESP, measurements and proteins from PDB.
The database workspace showing a structure database of 300 benzamide records as a gallery of structure cards with their numbers and formulas, the open databases, hit lists and saved queries in the left column, and Add Structure, Import and Export in the toolbar
A structure database of 300 records shown as a gallery.

Structure databases

One .fcdb file per database, searched by structure, similarity, formula and your own fields, browsed as a table, gallery, form or plot.
A lab notebook entry titled Acetylation of salicylic acid with its date, author and tags, the reaction scheme drawn on white, the stoichiometry table computed from the scheme with its method, and the procedure text, with Sign, Export HTML and Export JSON buttons
A notebook entry with its scheme, stoichiometry and procedure.

Lab notebook

Experiment entries beside the database, with the scheme's stoichiometry computed, products linked to records, and signing with a SHA-256 hash.
The Structure Library dialog with tabs for Favourites, Recent, Templates and Live, showing twelve starred structures from aspirin and caffeine to quinine and vanillin with their formulas, and buttons to copy as a live structure, delete, unstar, open and insert
Favourites, recent structures, templates and live structures.

Shared with the Form apps

A structure copied into FormDeck, FormTxt or form.md stays a FormChem drawing and comes back editable, through a structure library every Form app reads.
FormChem's Home on the dark theme: a greeting, Start from a structure with New drawing, Open file and Paste SMILES or name, the file types it opens, recent drawings, and the Demos section with previews of aspirin, aspirin in two steps, the enantiomers, cholesterol in 3D and benzocaine with its NMR spectrum; the rail lists Templates with 260
Home, with the five demos and 260 whole-molecule templates.

Start from a demo

New drawings, files to open, recent drawings and five demos, with templates that are whole starter and real molecules, never single parts.

Every feature in detail: docs/MANUAL.md. How FormChem compares, requirement by requirement, with the specifications it is measured against: docs/PARITY.md.

Everything in the box

  • Drawing: .fchem drawings 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: .fcdb databases 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/edit link, 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.

Formats

  • Native: .fchem drawings and .fcdb databases
  • 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

Built for agents

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 catalogue

Every 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.

Extensions

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.

Under the hood

  • 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: .fchem is a zip package around document.json, specified in docs/FORMAT.md.

Download

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.

Demo

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.

Run it from source

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.

Repository

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



Maintainers

Maintainer Role
@nodemode-ai Owner
@gbarnai Co-owner

Code owners are set in .github/CODEOWNERS.

License

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.

About

FormChem - instead of ChemDraw: the chemical structure drawing suite from the FormAI family of apps. Structures, reactions, stereo, names, NMR prediction, 3D & a structure database, with .cdxml & .mol exchange; agents draw over MCP. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages