AnkiWeb
- Rating
- 0 (π 0 Β· π 0)
- Updated
- 2025-07-23
- Anki versions
- 2.1.1~
- Description language
- en
AnkiWeb addon 1230570706
Executes JavaScript commands for card reviewer backend functions, including setting flags, undo, going home, and deprecated pass/fail actions.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.1 | + | 2025-07-23 |
Loadingβ¦
Provides JavaScript API commands to retrieve reviewer deck and card information, counts, flags, scheduling data, and search cards, compatible with AnkiDroid JS API.
Brings AnkiDroid's JavaScript template API to Anki Desktop, enabling interactive card templates with programmatic control over reviewer, text-to-speech, card actions, tags, and UI.
Bridges Anki Desktop to an Apple Watch app over local Wi-Fi, letting users view answers, grade cards, undo, bury, and suspend during reviews.
Runs custom JavaScript/Python scripts and inserts symbols/strings in the Anki editor via keyboard shortcuts or popup menus, configured through JSON menus and CodeMirror.
Control Anki from a phone over the local network, answering cards, scrolling, undoing, switching decks, and using customizable actions.
Generates AI hints or multiple-choice options for flashcards during review, with multi-provider fallbacks, batch generation, mobile support, and customizable configuration.

<h1 align="center"> modern-anki-card-template </h1> <p align="center"> A feature-rich, multi-platform Anki card template with major UI improvements. <br /> <br /> Includes both Q&A (front/back) and Cloze templates. <br /> <br /> <a href="#about">About</a> Β· <a href="#installation">Installation</a> Β· <a href="#features">Features</a> Β· <a href="#usage">Usage</a> Β· <a href="#contributing">Contributing</a> </p>
<p align="center"> <img src="https://img.shields.io/badge/License-AGPLv3-blue.svg" alt="AGPLv3 License"> <img src="https://img.shields.io/github/last-commit/tyuichis/modern-anki-card-template" alt="GitHub last commit"> <img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat" alt="Prettier"> </p>
A modern, streamlined Anki template that enhances the default cards (Front/Back, Cloze) with better usability and design.
It introduces new fieldsβTopic, Subtopic, Source, and Detailsβto help organize your cards more effectively.
Common actions like Undo and Flag are also now built into the card interface, along with a progress bar for better tracking on Desktop.
While many templates exist, few focus on a native, built-in UI/UX experience. This template bridges that gap.
This card template was designed to be:
1οΈβ£ Download the .apkg file from the Releases page.
2οΈβ£ Open the .apkg file & Import the two card types using "Import Note Type":
To unlock all essential features, install these add-ons via Anki's add-on menu:
1230570706 1490471827
[!IMPORTANT]
π¨ These add-ons are required for full functionality on Desktop:
- π Undo & Flag Status Buttons β Requires UI Status Buttons
1230570706add-on.- π Remaining Cards & Progress Bar β Requires Anki JavaScript API
1490471827add-on.
[!NOTE] If you do not need to use code, skip this step.
By default, syntax highlighting is disabled to maximize performance. To enable it:
1οΈβ£ Add these files to your Anki collection.media folder:
_highlight.min.js_github-dark.min.csslanguages/2οΈβ£ Modify your card templates:
syntaxHighlighting = falsesyntaxHighlighting = trueπ For help finding the correct folder path, see Anki Docs.
Now you can start using the deck with full functionality.
We've also curated 3 extra add-ons that make it extremely convenient to make cards.
19600396675117102061844938046If you had to get an extra add-on, get Editor Live Preview. This visualises the cards you're making before committing.
To get all the extras, copy and paste this into your Anki Add-on menu:
511710206 1844938046 1960039667
addon: 1230570706
To use the UI buttons (Undo, Flag buttons) on Desktop, you'll need to download the add-on either from AnkiWeb, or within the Releases page.
addon: 1490471827
This is also a necessary add-on if you want to see how many remaining cards are in your deck during Card Review.
addon: 1960039667
This is the most recommended third-party addon.
This card template was specially designed to reduce visual clutter and focus on the Rule of Minimum Information[^2][^3]. When the container looks full, it's a good sign there's too much information in the card. The Live Preview helps you work with the design of the templates and structure your flashcard contents.
addon: 511710206
If you find yourself often creating cards for the same topic, this is a lifesaver.
Used alongside the native pin function, you save 1+ minute per card.
addon: 1844938046
If you need to use code blocks repeatedly, get this.
It enables you to use double ticks for inline-code, `, and triple ticks for multi-line code blocks ts with optional language support, i.e. ts for typescript, rs for rust, etc.
Note: You'll need to write your code blocks within the HTML editor of Anki (click the <> button in the Card Field to expand).
As of March 4 2025, <> tags are not supported while writing code blocks using this extension.
There are new fields to use:
| Fields |
|---|
| β¨ Topic π |
| β¨ Subtopic π |
| Question |
| Answer |
| β¨ Source (optional) π |
| β¨ Details (optional) |
Topic represents the general thing you're studying, i.e. Vocabulary, Biology...
Subtopic represents a specific part of your topic, i.e. Colors, Plants...
Source (optional) allows you to cite a source, usually your textbook or a URL
Details (optional) are any extra information that can help remember the card.
[!TIP] By using Anki's built-in pinned fieldsπ feature, you can efficiently create multiple flashcards for a topic and subtopic while keeping track of sources and context.
This is extremely useful if you were reading a chapter and needed to make flashcards for the same chapter.
Topic and Subtopic are flexible. The scope of topics and subtopics can expand or contract depending on how broadly or narrowly you define them.
Hereβs a general hierarchy to illustrate:
In Anki, this could be:
| β¨ Topic | Genetics |
|---|---|
| β¨ Subtopic | DNA |
or
| β¨ Topic | DNA |
|---|---|
| β¨ Subtopic | mRNA |
The depth of the hierarchy depends on how detailed you want to go and what level of learning you're aiming for (e.g., high school, college, research).
<details> <summary> <b>Code highlighting doesn't seem to work</b></summary>
Be sure to add _highlight.min.js, _github-dark.min.css and all the files in languages/ to your Anki's collection.media folder, then set syntaxHighlighting = true in your card templates.
For a visual guide on enabling syntax highlighting, check out the Wiki page.
</details>
<details> <summary><b>What if I want to go back to my old template?</b></summary>
Good news, these templates are backwards compatible.
In the browser menu, you can click a card and right click the "Change Note Type" option.
The template fields map 1:1 with the original Anki cards, i.e. Front = Question, Back = Answer, and Cloze text = Cloze text.
If you have more than "Front" and "Back" fields, be careful. You will lose data if you don't select all the fields. Make a copy of your card first, then change the Note Type to test.
</details>
<details> <summary> <b>[v1] My subject label is grayed out. What gives?</b></summary>
If your subject wasn't included in the defaults, you can manually add them. See the wiki page for more information </details>
Contributions are welcome, especially translations to make the template UI accessible in more languages! Bug reports and feature suggestions are also appreciated.
If you want to modify the templates or styles locally, follow these steps to build the assets from the source files.
Prerequisites:
Steps:
Clone the Repository:
git clone https://github.com/tyuichis/modern-anki-card-template.git
cd modern-anki-card-template
Install Dependencies:
npm install
Build Assets:
Build only the EJS templates (HTML output):
npm run build:templates
(Output goes to the build/ directory)
Build only the CSS from SCSS:
npm run build:css:all
(Output goes to the css/ directory)
Build both CSS and Templates:
npm run build
Find the Output:
build/ directory, organized by language (e.g., build/en/base/qna_front.html).css/ directory.Source Files:
templates/ directory.js/ directory.scss/ directory.locales/ directory.icons/ directory.After making changes to the source files, run the appropriate build command(s) again to see your changes reflected in the output directories.
If you find this card template helpful, consider supporting me! Your support helps keep development active.
<a href="https://www.buymeacoffee.com/tyuichis" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3).
You are free to use, modify, and distribute this project, provided that:
For full details, see the LICENSE file or read the full license text here.
[^1]: The card template is already coded to use highlight.js if available. Please put _highlight.min.js _github-dark.min.css and all the languages/ files to your Anki's collection.media folder, then set syntaxHighlighting = true in your card templates. Restart Anki to use.
[^2]: The flashcard text content has a container to help immediately focus on the information. The flashcard is also positioned such that the contents are where your eyes typically are, slightly above center.
[^3]: Metadata is still important to embed in a flashcard. For example, sources give reminders on where you learnt your knowledge and the memory associated with learning it.