Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .docs/wiki/3D.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ From 0.10.0 a structure you drew can be turned in 3D: build it from the drawing,

## The 3D View

Select a structure and choose 3D > 3D View (`Ctrl+3`, `Cmd+3` on a Mac). A panel floats over the drawing and follows your selection; drag it by its title and resize it from its corner. The first time it opens it loads the 3D viewer (3Dmol.js), so FormChem starts no slower for people who never use 3D.
Select a structure and choose 3D > 3D View (`Ctrl+3`, `Cmd+3` on a Mac). The view fills the window and follows your selection. To see the drawing beside it, click the button next to the close button (or double-click the title, or press Escape): it becomes a floating panel you can drag by its title and resize from its corner, and FormChem remembers which you chose. The button beside it hides the tools on the right for a model the full width of the window. The first time it opens it loads the 3D viewer (3Dmol.js), so FormChem starts no slower for people who never use 3D.

| Do | How |
| --- | --- |
| Turn and zoom | drag to turn, wheel to zoom |
| Turn | drag with the left button |
| Zoom | scroll, drag with the right button or Shift+drag, or the Zoom In and Zoom Out buttons |
| Pan | drag with the middle button or Ctrl+drag |
| Change the style | Wire, Stick, Ball and Stick, Space Filling, Cartoon (proteins), or 3D > Display |
| Add a surface | the Surface list (van der Waals, solvent accessible, solvent excluded) or 3D > Surface; ESP colours it by charge |
| Show the ligand | Focus the ligand; Reset view brings the whole model back |
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

Versions follow `v*.*.*` with dots. Dates are US Eastern.

## 0.14.1 · 2026-12-06

The 3D View fills the window. It opened as a small floating panel, which left little room to turn, zoom and pan a molecule; it now opens across the whole window between the title bar and the status bar, and says how to move the model.

### Changed

- 3D > 3D View opens filling the window. The new button in its header, a double-click on its title or Escape turn it back into a floating panel you can drag and resize, and FormChem remembers your choice.
- The tools on the right of the 3D View (conformers, measure, energy, surface, model) hide and show with the button beside it, for a model the full width of the window.
- Zoom In and Zoom Out buttons sit beside Reset View, and a line on the model gives the mouse: drag to rotate; scroll, right-drag or Shift+drag to zoom; middle-drag or Ctrl+drag to pan.

### Fixed

- Panning the 3D model with the middle mouse button on Linux showed "The clipboard holds nothing FormChem can paste."
- With the 3D View open, a structure added to a new, empty drawing left Build 3D greyed out until the structure was selected.

## 0.14.0 · 2026-12-06

The parity pass, the last phase of the plan: FormChem now does what a chemist reaches for daily when drawing for a paper, a lab or a class. Reaction schemes hold together (Space Reaction, conditions that follow their arrow, arrows that stretch to their conditions, step letters with footnotes, wrapping), journal styles apply to a drawing you already have, rings and templates fuse onto the bond or atom you click, labels such as CH2CH2OH and C(O)NHMe become chemistry, and a drawing can have many pages with headers and footers. Pictures leave in the formats journals ask for, the Analysis panel shows predicted 1H, 13C, IR and MS tables, the 3D View gains energy terms, surfaces, bond rotation, crystal packing and proteins by id, and a periodic table and a constants window join the reference tools. The template library was rebuilt as the owner asked: "the templates are only starter molecule structures and whole real molecules, not single parts". Every requirement of the specifications FormChem is measured against is now either met or carries a written decision in `docs/PARITY.md`.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with an MCP server so an agent works in the same window you see. Local-first, no account.</p>

<p align="center">
<img alt="version 0.14.0" src="https://img.shields.io/badge/version-0.14.0-eef0f4?style=flat-square">
<img alt="version 0.14.1" src="https://img.shields.io/badge/version-0.14.1-eef0f4?style=flat-square">
<img alt="TypeScript and Vite" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python and FastAPI" src="https://img.shields.io/badge/Python-FastAPI-009688?style=flat-square">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down Expand Up @@ -176,7 +176,7 @@ cd formchem
`./formchem desktop dev` opens the desktop window instead. On Windows use `formchem.bat install` and `formchem.bat`. The engine listens on `127.0.0.1:8220` (MCP at `/mcp`); `FORMCHEM_DATA_DIR` moves the data folder from `~/formchem`.

> [!IMPORTANT]
> **Status:** in development, in a public repository since 5 December 2026. This version draws, checks and analyses structures and reactions, with stereochemistry, query structures and calculated properties, from 0.7.0 reads and writes the common chemistry files, exports pictures, prints, copies and pastes, and converts files on the command line, from 0.8.0 lets agents draw, edit, check and convert directly, from 0.9.0 reads and writes chemical names, predicts NMR spectra and opens JCAMP-DX spectra, from 0.10.0 builds structures in 3D, searches conformers, opens PDB and mmCIF files and extracts their ligands, from 0.11.0 keeps structure databases and a lab notebook, from 0.12.0 shares live structures and a structure library with the other Form apps, works from the keyboard with spoken atoms, reads and writes HELM, and runs xtb and CREST you install, and from 0.13.0 opens the files the system hands the desktop app (databases, PDB, CIF, mmCIF and JCAMP-DX included) with document icons for `.fchem` and `.fcdb`, carries its whole data folder in the desktop app so names and HELM work there, and comes with demos, the manual and a parity score, and from 0.14.0, the parity pass, lays out reaction schemes, applies journal styles to drawings you have, fuses rings and templates by clicking, reads condensed labels, keeps several pages, exports journal-ready pictures, predicts IR, MS and NMR tables, and adds 3D energy terms, surfaces, proteins by id and crystal packing, a periodic table and 27 agent tools. 0.14.0 is the current release, and with it all fourteen phases of the plan are built. The 0.7.0 to 0.14.0 desktop apps have not been run on a Mac or on Windows yet (the 0.13.0 and 0.14.0 Linux packages were built through formcompiler and run), 0.8.0's agent tools were checked over stdio and HTTP, 0.9.0's and 0.10.0's in process and 0.11.0's and 0.12.0's over HTTP, not yet with a real Claude Code or Codex client, the NMR accuracy figures rest on approximate reference shifts, the 3D View ran on software WebGL only, no sibling app has opened a live structure yet, no real screen reader has been run, and xtb and CREST were checked with stand-in programs only. Nothing is built or released for download yet.
> **Status:** in development, in a public repository since 5 December 2026. This version draws, checks and analyses structures and reactions, with stereochemistry, query structures and calculated properties, from 0.7.0 reads and writes the common chemistry files, exports pictures, prints, copies and pastes, and converts files on the command line, from 0.8.0 lets agents draw, edit, check and convert directly, from 0.9.0 reads and writes chemical names, predicts NMR spectra and opens JCAMP-DX spectra, from 0.10.0 builds structures in 3D, searches conformers, opens PDB and mmCIF files and extracts their ligands, from 0.11.0 keeps structure databases and a lab notebook, from 0.12.0 shares live structures and a structure library with the other Form apps, works from the keyboard with spoken atoms, reads and writes HELM, and runs xtb and CREST you install, and from 0.13.0 opens the files the system hands the desktop app (databases, PDB, CIF, mmCIF and JCAMP-DX included) with document icons for `.fchem` and `.fcdb`, carries its whole data folder in the desktop app so names and HELM work there, and comes with demos, the manual and a parity score, and from 0.14.0, the parity pass, lays out reaction schemes, applies journal styles to drawings you have, fuses rings and templates by clicking, reads condensed labels, keeps several pages, exports journal-ready pictures, predicts IR, MS and NMR tables, and adds 3D energy terms, surfaces, proteins by id and crystal packing, a periodic table and 27 agent tools. 0.14.1 is the current release (0.14.0 with a 3D View that fills the window), and with it all fourteen phases of the plan are built. The 0.7.0 to 0.14.0 desktop apps have not been run on a Mac or on Windows yet (the 0.13.0 and 0.14.0 Linux packages were built through formcompiler and run), 0.8.0's agent tools were checked over stdio and HTTP, 0.9.0's and 0.10.0's in process and 0.11.0's and 0.12.0's over HTTP, not yet with a real Claude Code or Codex client, the NMR accuracy figures rest on approximate reference shifts, the 3D View ran on software WebGL only, no sibling app has opened a live structure yet, no real screen reader has been run, and xtb and CREST were checked with stand-in programs only. Nothing is built or released for download yet.
**Contributing:** branch from `main`, keep changes to source here, and leave packaging and releases to FormCompiler. See [`CONTRIBUTING.md`](CONTRIBUTING.md), [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md), [`.docs/BRANCHING.md`](.docs/BRANCHING.md) and [`AGENTS.md`](AGENTS.md). Report security issues privately as [`SECURITY.md`](SECURITY.md) describes.

Expand Down Expand Up @@ -207,7 +207,7 @@ You need Python 3.12+, Node 20.19+ and Rust everywhere, plus Xcode's Command Lin
| `src-tauri/` | Desktop shell; it starts the engine folder on macOS and the engine sidecar elsewhere, registers the `formai://` link, FormChem's file types and document icons |
| `demos/` | Three offline browser demos (drawing, reactions, 3D) built from the window's code; each opens from its folder with no engine |

Its size, in non-blank lines: about 55,400 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).
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).

Manual: [`docs/MANUAL.md`](docs/MANUAL.md) · Parity with the specifications: [`docs/PARITY.md`](docs/PARITY.md) · Docs: [`.docs/wiki`](.docs/wiki) · Extensions: [`docs/EXTENSIONS.md`](docs/EXTENSIONS.md) · Formats: [`docs/FORMATS.md`](docs/FORMATS.md) · Names: [`docs/NAMES.md`](docs/NAMES.md) · Spectra and NMR: [`docs/SPECTRA.md`](docs/SPECTRA.md) · 3D: [`docs/3D.md`](docs/3D.md) · Databases: [`docs/DATABASES.md`](docs/DATABASES.md) and the contract [`docs/DATABASE.md`](docs/DATABASE.md) · Live structures: [`docs/LIVE-STRUCTURES.md`](docs/LIVE-STRUCTURES.md) and the contract [`docs/LIVE_STRUCTURES.md`](docs/LIVE_STRUCTURES.md) · Accessibility: [`docs/ACCESSIBILITY.md`](docs/ACCESSIBILITY.md) · HELM: [`docs/HELM.md`](docs/HELM.md) · Command line: [`docs/CLI.md`](docs/CLI.md) · Agent tools: [`docs/AGENTS.md`](docs/AGENTS.md) · Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md) · Contributing: [`.docs/BRANCHING.md`](.docs/BRANCHING.md)

Expand Down
2 changes: 1 addition & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.14.0"
__version__ = "0.14.1"
5 changes: 3 additions & 2 deletions docs/3D.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The reasons behind each choice are in `backend/HASHOUT_LOG.md` entries 199 to 22

## The 3D View

3D > 3D View (`Mod+3`) opens a floating panel on the selected structure, or on the selected 3D object on the page, and follows the selection. The viewer is 3Dmol.js 3.0.0 (BSD-3-Clause), loaded the first time a 3D view opens; starting FormChem loads none of it. Without WebGL the panel says so.
3D > 3D View (`Mod+3`) opens on the selected structure, or on the selected 3D object on the page, and follows the selection. From 0.14.1 it fills the window between the title bar and the status bar; the header's Fill the window button, a double-click on the title or Escape switch it to a floating panel that drags and resizes, and the choice is kept in the browser's local storage (`formchem-3d-layout`, with the side tools shown or hidden). Mouse: drag rotates; scroll, right-drag or Shift+drag zooms; middle-drag or Ctrl+drag pans (3Dmol.js's own mapping); a middle press in the panel never pastes. The viewer is 3Dmol.js 3.0.0 (BSD-3-Clause), loaded the first time a 3D view opens; starting FormChem loads none of it. Without WebGL the panel says so.

| Control | What it does |
| --- | --- |
Expand All @@ -52,7 +52,8 @@ The reasons behind each choice are in `backend/HASHOUT_LOG.md` entries 199 to 22
| Build 3D | builds a conformer from the drawing |
| Minimise, force field | minimises the shown conformer with MMFF94, MMFF94s or UFF |
| Conformers..., Scan... | the conformer search and the dihedral scan dialogs |
| Focus the ligand, Reset view, Spin | Spin is off, with the reason, when the system asks for reduced motion |
| Focus the ligand, Zoom out, Zoom in, Reset view, Spin | Spin is off, with the reason, when the system asks for reduced motion |
| Hide or show the 3D tools, Fill the window | in the header; both are remembered |
| Export | PNG, PNG with a transparent background, glTF binary |
| Conformers list | energy relative to the lowest, population, method; click a row to show that conformer |
| Measure | Distance, Angle, Dihedral; click atoms in the view |
Expand Down
Loading
Loading