SimpleDemo #1(very simple asynchronous demo)
This early demo demonstrates how easy it is to integrate inchi-web.c and inchi-web.wasm
into a web page. It is just a very simple demo that I created during my early study of INCHI-WEB-DEMO.
It is mostly a slimmed down version of that page
was the first of my attempts to adapt INCHI-WEB-DEMO for our FAIRSpec project.
A modification of inchi-web.c allows for the generation of a JSON representation of the internal InChI model.
SimpleDemo #2(synchronous for Jmol)
This demo is similar to SimpleDemo #1, but it uses synchronous calls in order to be
compatible with Jmol scripting and also delivers Fixed-H InChI.
CDK/JNAInChI/WASM Java/JavScript/C integration demo using SwingJS
![]() |
This far more sophisticated demonstration uses only InChI Extended API calls. These calls are made from JavaScript implementations of both the Chemical Development Kit (CDK), and OpenChemLib (OCL). It uses a JavaScript implementation of JNA-InChI to access the WebAssembly module jnainchi.wasm. No additional C-language components (such as inchi-web.c) are involved. |