ketcher-core
TypeScript icon, indicating that this package has built-in type declarations

2.26.0 • Public • Published

ketcher-core

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-core package serves as the entry point to Ketcher core functionality including domain, shared services, functions and interface declarations. It is intended to be paired with the main Ketcher package, which is shipped as ketcher-react to npm.

Installation

npm install --save ketcher-core

or Yarn:

yarn add ketcher-core

Usage

import { RemoteStructServiceProvider } from 'ketcher-core'

const structServiceProvider = new RemoteStructServiceProvider(
  process.env.REACT_APP_API_PATH!,
  {
    'custom header': 'value' // optionally you can add custom headers object 
  }
)

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

Package Sidebar

Install

npm i ketcher-core

Weekly Downloads

4,841

Version

2.26.0

License

Apache-2.0

Unpacked Size

18.1 MB

Total Files

394

Last publish

Collaborators

  • lifescience