Repository navigation
Extensions
nodemode-ai edited this page Dec 5, 2026
·
3 revisions
FormChem is a host of the Form Extension Contract, API 1, the same contract every Form app follows. FormPortal installs extensions, form.ext makes them and runs them in development, formai.tools lists them. The product id is formchem, and FormPortal's deep link is formai://extensions?product=formchem.
| Part | Where |
|---|---|
| Resolver and safe file serving (kit, vendored unchanged) | backend/app/services/formext_host.py |
Routes under /api/extensions
|
backend/app/routers/extensions.py |
| Host bridge (kit, vendored unchanged): sandboxed frames, JSON-RPC, permissions, timeouts | frontend/src/extensions/host-bridge.ts |
| FormChem's side: handlers, commands, panels | frontend/src/extensions/host.ts |
| Agents | MCP extensions_list, extension_command; ./formchem cli extensions and ./formchem cli extension <id> <command>
|
In 0.2.0 an extension sees a read-only document (writable: false), because there are no drawings yet; changes arrive with the document in 0.3.0.
FormPortal keeps the installed list in enabled.json and the extensions in development in dev.json, in its extensions folder for formchem; the engine reads both.
- Every extension page runs in a sandboxed frame with scripts only; the host never reads its DOM, and messages are taken only from that frame.
- An extension asks before it reads or changes a document, and the person's answer is kept per extension.
- The Extensions menu and panel exist before the first paint and are patched in place when the list changes.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents