SmileAnki

AnkiWeb addon 972945041

Renders organic chemistry 2D structures inline from SMILES strings via custom tags using SmilesDrawer, and adds a toolbar button to wrap SMILES quickly.
AI-generated summary; may contain mistakes.

formattingbeta

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-23
Anki versions
2.1.66~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JavaScript, Python
Description language
en

Maintenance

active

  • Last update or commit: 2026-08-23 (70 days before the snapshot).
  • Commits in the last year: 3.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.12.1.66+2026-08-23
History across monthly snapshots

Loading…

Similar addons

Anki Notes Generator

Reads Markdown and text notes to generate accurate Basic and Cloze Anki flashcards locally via Ollama, with duplicate detection, auto-tagging, custom prompts and an English/Italian interface.

card-creationaiimporttaggingduplicates

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.66~ Updated 2026-03-06
Fix Edit Menu's Shortcut-Tooltips

Adds keyboard shortcut tooltips to the editor's dropdown menu items, including MathJax, LaTeX, and Edit HTML options, by replacing the menu-generating method.

shortcuts

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Updated 2019-01-05

Description

πŸ§ͺ SmileAnki

Being a high school student, setting up flashcards for Organic Chemistry is a tedious task because I have to use images since there no support for 2D organic chemistry molecules. Hence, SmileAnki was born. It's an open-source proposal/prototype for an Anki Desktop add-on that renders organic chemistry 2D structures directly inline using SMILES strings (e.g., [smileanki]c1ccccc1[/smileanki]).

⚠️ Note to all:
This add on will most probably never be updated as I have very poor background in programming and doing this itself was very hard for me. I am releasing this 100% open-source under the MIT License. Anyone is welcome to fork this, fix bugs, refine the code, GitHub repositary is linked. This add on had a lot of potential, lots of ideas, but I don't have the time, skill or caliber to implement all of it. If as a developer, you feel you have free time on your hands, feel free to contact me for ideas to develop this add-on further πŸ€ͺ

⚑ How It Works (Intended Design)

  1. JS Injection: Injects the SmilesDrawer library directly into Anki's WebViews.
  2. Tag Parsing: Scans card HTML for custom [smileanki]SMILES_CODE[/smileanki] tags.
  3. Inline Rendering: Converts tags into vector 2D chemical structure SVGs seamlessly alongside standard text or MathJax/mhchem markup.
  4. Editor Integration: Adds a quick SMILES wrapper button to the Anki note editor toolbar.

Example Usage:

The gattermann koch reaction | [smileanki]c1ccccc1[/smileanki] \[\ce{+ CO + HCl ->[AlCl3 / CuCl]}\] [smileanki]O=Cc1ccccc1[/smileanki] \[\ce{+ HCl}\]

README

anki-smiles-inline

An open-source Anki add-on proof-of-concept to render SMILES organic structures inline using SmilesDrawer. This is supposed to be custom markup parser that acts just like Anki's native [math]...[/math] or [$]...[/$] tags.


πŸ§ͺ SmileAnki (Proof of Concept)

An open-source prototype for an Anki Desktop add-on that renders organic chemistry 2D structures directly inline using SMILES strings (e.g., [smileanki]c1ccccc1[/smileanki]).


⚠️ Note to Developers:
I have little to no programming background, and so this is created basically entirely with AI with only little input from me. Hence, I am releasing this 100% open-source under the MIT License. Since I couldn't find something similar to suit my needs, I was forced to create it. It is not the best, due to my limited knowledge, and hence my aim was to plant a seed for others to water. Anyone is welcome to fork this, fix bugs, refine the code, but *NOT* to publish it directly to AnkiWeb. While this code is MIT licensed, please do not re-upload exact duplicates of this add-on to AnkiWeb. Submitting pull requests here ensures improvements reach all users without cluttering the AnkiWeb add-on directory with duplicate listings.

⚑ How It Works (Intended Design)

  1. JS Injection: Injects the SmilesDrawer library directly into Anki's WebViews.
  2. Tag Parsing: Scans card HTML for custom [smileanki]SMILES_CODE[/smileanki] tags.
  3. Inline Rendering: Converts tags into vector 2D chemical structure SVGs seamlessly alongside standard text or MathJax/mhchem markup.
  4. Editor Integration: Adds a quick SMILES wrapper button to the Anki note editor toolbar.

πŸ› οΈ Tech Stack & Dependencies

Component Usage
Python Anki Desktop Add-on hooks & webview insertion
SmilesDrawer Lightweight client-side 2D SMILES rendering engine

πŸ“œ License

This project is licensed under the MIT License.