Plan for JS API similar to AnkiDroid for Anki and AnkiMobile?

We have discussed here,

Now, instead of creating only for AnkiDroid or AnkiMobile, what is thought on creating for whole ecosystem. I have created this repo to support Anki also.
GitHub - krmanik/AnkiJS-API: Anki JavaScript API to get cards informations in reviewer window

And I think it will just exposing the methods for Anki and it will be available to whole ecosystem.

@dae what is your thought on this? I can create proof of concept for this before start working on it. (Before working on AnkiDroid JS Addons [JS Addons] list addons from addons directory by krmanik · Pull Request #10985 · ankidroid/Anki-Android · GitHub)

8 Likes

I don’t feel like I can give this the attention it deserves at the moment, so I’d prefer to keep this on the backburner for a bit longer I’m afraid.

I’d like for us to make a bit more progress on porting our screens to Svelte first, as that may also influence the API (for example, we may want to move the card area into an iframe to better isolate it, which may require message passing from the rest of the interface).

6 Likes

I understand this is low priority, wait for it.

2 Likes

I also find it very interesting, I wanted to create a template with JS in which it could be easier to edit the cloze type cards but I found that there are limitations to save those editions, my idea was to do it within the template so as not to depend on addons only in the PC version and also to be able to do it in the mobile version, since there is a template that allows you to have Cloze Overlapper only from the template https://github.com/michalrus/anki-simple-cloze-overlapper