MCPcopy Index your code
hub / github.com/cheminfo/openchemlib-js

github.com/cheminfo/openchemlib-js @openchemlib-2020.12.1-cheminfo

Chat with this repo
repository ↗ · DeepWiki ↗ · release openchemlib-2020.12.1-cheminfo ↗ · + Follow
7,577 symbols 24,190 edges 654 files 1,594 documented · 21% updated 8d agov9.24.0 · 2026-07-01★ 8928 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenChemLib JS

NPM version build status npm download

JavaScript port of the OpenChemLib Java library.

Installation

npm install openchemlib

Documentation

This library is available in three different builds: minimal, core and full. Each larger build contains all functionalities from the smaller ones.

The core build is the one that you get when you require('openchemlib'). It contains all functionalities that can be used in Node.js.

The minimal (require('openchemlib/minimal')) build is a smaller one (~ half the size of core) that is meant to be used in a browser application if bundle size matters and prediction functionalities are not needed.

The full build (require('openchemlib/full')) build is the largest build. It contains a structure viewer and a structure editor for browser applications.

Modules present in minimal, core and full builds

Modules present only in core and full builds

Modules present only in full build

Development

To build this project, you need :

Install dependencies

npm install

Configure directories

Copy config.default.json to config.json and put the path to the GWT classes on your computer.
If you want to use a custom JDK installation, set the "jdk" key to be the path to your JDK directory.

npm scripts

To run one of the scripts, use npm run <scriptName>.
To pass an options, use npm run <scriptName> -- --option.

Options:

  • -m [name]: only process module "name"
  • -v: verbose output

compile:min / compile:pretty

Execute the GWT compiler.

export

Transform the GWT compiled files to JavaScript modules.

build:min / build:pretty

Compile and export.

copy:openchemlib

Copy the required java files from the openchemlib project.

License

BSD-3-Clause

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 6,772
Class 679
Interface 85
Function 27
Enum 14

Languages

Java99%
TypeScript1%

Modules by API surface

src/com/actelion/research/gwt/minimal/JSMolecule.java281 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/Molecule.java188 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/calc/Matrix.java141 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/gui/clipboard/external/ChemDrawCDX.java128 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/gui/JDrawArea.java116 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/ExtendedMolecule.java114 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/share/gui/editor/Model.java111 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/io/pdb/parser/PDBCoordEntryFile.java109 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/Canonizer.java103 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/AbstractDepictor.java89 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/io/pdb/converter/BondsCalculator.java79 symbols
src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/ExtendedMoleculeFunctions.java76 symbols

For agents

$ claude mcp add openchemlib-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page