
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Port RDKit to js using emscripten
First of all we need to install emscripten and RDKit. To do this please read the following articles.
There are two possibles installation guides (for Ubuntu 14.04):
http://baoilleach.blogspot.ch/2015/02/cheminformaticsjs-rdkit.html
http://gmrand.blogspot.ch/2015/03/howto-install-rdkit-and-emscripten-on.html
For OSX http://gmrand.blogspot.ch/2015/05/howto-install-rdkit-and-emscripten-on.html
P.S.: due to a bug report we suggest to apply this patch to rdkit
namespace RDKit {
class ROMol;
namespace MMFF {
+ class MMFFMolProperties;
#include <ForceField/ForceField.h>
+ #include "AtomTyper.h"
#include "Builder.h"
git clone https://github.com/thegodone/RDKitjs.git
cd RDKitjs
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=/usr/local/Cellar/emscripten/1.32.0/libexec/cmake/Modules/Platform/Emscripten.cmake \
-DRDKIT_INCLUDE_DIR=/Users/marco/Toolchain/rdkit-Release_2015_03_1/Code/ \
-DBoost_INCLUDE_DIR=/usr/local/Cellar/boost155/1.55.0_1/include/ \
-DRDKIT_LIB_DIR=/Users/marco/Toolchain/rdkit-Release_2015_03_1/lib/ \
-DEMSCRIPTEN_BIN=/usr/local/Cellar/emscripten/1.32.0/bin/
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=${HOME}/Toolchain/emsdk_portable/emscripten/master/cmake/Modules/Platform/Emscripten.cmake \
-DRDKIT_INCLUDE_DIR=${HOME}/Toolchain/rdkit-Release_2015_03_1/Code \
-DBoost_INCLUDE_DIR=${HOME}/Toolchain/boost.1.57.0/include \
-DRDKIT_LIB_DIR=${HOME}/Toolchain/rdkit-Release_2015_03_1/lib \
-DEMSCRIPTEN_BIN=${HOME}/Toolchain/emsdk_portable/emscripten/master
Then you should obtain one new file => src/rdkit.js
Thers is a first example in the visualizer project there:
You can draw a molecule in the botton module which will generate the 3D model using MMFF force field.
another example of javascript can be found there:
https://iwatobipen.wordpress.com/2015/05/21/rdkit-in-javascript/
thanks to iwatobipen!
source code: https://github.com/iwatobipen/rdkit_javascript
You can also use nodejs:
the current module is available for npm / nodejs:
https://www.npmjs.com/package/rdkit
This project is not stable but lot of basic RDKit functions are already ported look at the test/exemple.txt file for a example of function availables
to have a complete list of available function look at the EMSCRIPTEN_BINDINGS section in rdmol.h
there are two type of methods:
If you want to contribute or need RDKit functions not already mapped please add a comment in the issues of this project.
Guillaume Godin
FAQs
RDKit port to JS using emscripten
The npm package rdkit receives a total of 186 weekly downloads. As such, rdkit popularity was classified as not popular.
We found that rdkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.