krmanik
January 13, 2025, 10:04am
1
We have discussed here,
There is JS API for AnkiDroid and I created addon for supporting unofficial JS API.
How it will help in card template design?
Using JS API know about card is new, learn or review then show some fields of cards when card is new and hide when it is review or learn.
For e.g.
There are four fields in practicing hanzi writing by drawing strokes. (Simplified, Traditional, Pinyin, Meaning)
So, when cards are new then show simplified and traditional characters with outline hint. But when cards are …
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 )
7 Likes
dae
January 15, 2025, 7:48am
2
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