How jonas-ekeli/chembook3d works
Chembook3D is a local-first computational-chemistry notebook: users organize structures and reaction steps on a canvas, import calculation outputs, and inspect computed energies and analyses. The browser calls a local Python API; investigation state and copied source files are persisted locally. Optional branches add structure building, local calculations, cluster access, Claude/MCP assistance, and cloud or Git synchronization. The README documents the main deployment relationships; source-index references support several internal module links, while unsampled feature wiring is omitted where it cannot be verified.
Main entry points: routes.py HTTP API · App.tsx Browser interface · imports.py Output import · api.ts API client
Components 21
Investigation workspace
- Browser interface
frontend/src/App.tsx - Mechanism canvas
frontend/src/components/Canvas.tsx - API client
frontend/src/api.ts - HTTP API
src/chembook3d/api/routes.py - Investigation manager
src/chembook3d/investigation.py - Investigation database
src/chembook3d/models.py
Chemistry data
- Output import
src/chembook3d/services/imports.py - Output parsers
src/chembook3d/parsers/common.py - XYZ coordinates
src/chembook3d/xyz.py - Structure editing API
src/chembook3d/api/builder.py - Structure tools
src/chembook3d/services/builder.py
Analysis and visualization
- Energy profiles
frontend/src/components/EnergyDrawer.tsx - Analysis services
src/chembook3d/services - Read-only snapshot
frontend/src/snapshot/data.ts
Calculation tools
- Local calculations
src/chembook3d/local_worker.py - Cloud jobs
src/chembook3d/cloud_jobs.py
Optional integrations
- SSH cluster access
src/chembook3d/remote/client.py - Claude and MCP
src/chembook3d/mcp_server.py
Other components
- Chemist
- HPC cluster
- Private GitHub repository
Connections 21
- Chemist → Browser interface: uses
README.md - Browser interface → API client: requests data
frontend/src/App.tsx - API client → HTTP API: calls REST API
frontend/src/api.ts - HTTP API → Investigation manager: manages
src/chembook3d/api/routes.py - Investigation manager → Investigation database: persists records
README.md - HTTP API → Output import: handles imports
src/chembook3d/api/routes.py - Output import → Output parsers: parses files
src/chembook3d/services/imports.py - Output parsers → XYZ coordinates: uses coordinates
src/chembook3d/parsers/common.py - Output import → Investigation database: writes records
src/chembook3d/services/imports.py - Browser interface → Mechanism canvas: renders workspace
frontend/src/App.tsx - Browser interface → Energy profiles: shows profiles
frontend/src/App.tsx - HTTP API → Analysis services: serves analyses
src/chembook3d/api/routes.py - Browser interface → Read-only snapshot: reads exported data
frontend/src/snapshot/data.ts - HTTP API → Structure editing API: exposes editing
src/chembook3d/app.py - Structure editing API → Structure tools: applies edits
src/chembook3d/api/builder.py - HTTP API → Local calculations: supports calculations
README.md - HTTP API → Cloud jobs: supports cloud jobs
README.md - HTTP API → SSH cluster access: uses SSH access
README.md - SSH cluster access → HPC cluster: connects by SSH
README.md - Claude and MCP → HTTP API: uses same API
README.md - HTTP API → Private GitHub repository: syncs investigation
README.md