ketcher-standalone

Web-based molecule sketcher

Usage no npm install needed!

<script type="module">
  import ketcherStandalone from 'https://cdn.skypack.dev/ketcher-standalone';
</script>

README

ketcher-standalone

npm version Downloads License

Copyright (c) 2021 EPAM Systems, Inc.

Ketcher is an open-source web-based chemical structure editor incorporating high performance, good portability, light weight, and ability to easily integrate into a custom web-application. Ketcher is designed for chemists, laboratory scientists and technicians who draw structures and reactions.

For more details please look at the following link.

The ketcher-standalone package contains only the functionality necessary to start Ketcher in standalone mode. It is intended to be paired with the main Ketcher package, which is shipped as ketcher-react to npm.

Installation

npm install --save ketcher-standalone

or Yarn:

yarn add ketcher-standalone

Usage

import { StandaloneStructServiceProvider } from 'ketcher-standalone'

const structServiceProvider = new StandaloneStructServiceProvider()

const MyComponent = () => {
  return (
    <Editor
      staticResourcesUrl={process.env.PUBLIC_URL}
      structServiceProvider={structServiceProvider}
    />
  )
}