Description
SmilesDrawer is a small, fast JavaScript component that parses SMILES strings and draws the molecules they describe on a canvas. There is no server, no images and no templates: you give it a SMILES string and it draws the structure. It is released under the MIT license and can be used from the dist build or from your own build. The project's live preview and playgrounds let you draw a single molecule or render a batch, and there are example pages for light and dark themes. The apply function draws every canvas element that has a data-smiles attribute. Colors are fully configurable through the options. The getting-started example uses a canvas and an input box, and the readme suggests loading the Droid Sans font from Google Fonts for consistent text rendering. An experimental option improves drawing of complex ring systems. The project asks users who use the code to cite the original paper in the Journal of Chemical Information and Modeling.…
Highlights
- Parses SMILES and draws molecules on a canvas
- No server, no images, no templates
- apply() draws every canvas with a data-smiles attribute
- Configurable colors and drawing options
- Experimental SSSR option for complex rings
- Released under the MIT license
Ratings & Reviews
No ratings yet
Be the first to rate SmilesDrawer.
People also visit

react-sketch-canvas
Freehand vector drawing component for React using SVG as canvas
SmilesDrawer FAQ
What is SmilesDrawer?
A JavaScript component that draws chemical structures from SMILES text, rendered on a canvas in the browser.
How do I use it?
Use the build in the dist folder. Either call the drawer with a SMILES string and a canvas, or use apply() to draw every canvas that has a data-smiles attribute.
Does it need a server?
No. The readme says there is no server, no images and no templates.
Is it free to use?
It is released under the MIT license.
What should I cite?
The readme asks users to cite the original paper published in the Journal of Chemical Information and Modeling if they use the code.
What are the best SmilesDrawer alternatives?
Popular alternatives to SmilesDrawer include Ketcher, draw.io and Signature Pad. See all SmilesDrawer alternatives







