Learning with Linux

terminal-anki – flashcards with spaced repetition in your terminal

terminal-anki is a keyboard-driven flashcard application designed for studying entirely from the terminal. Its interface keeps the review loop compact: reveal an answer, grade recall with fixed number keys, move through cards with the keyboard, and return to the surrounding views without leaving the TUI. The application uses SM-2 scheduling to decide when cards should return for review.

Beyond the core study screen, terminal-anki provides tools for managing a collection rather than treating the terminal as a read-only reviewer. Cards can be browsed, searched, added, edited and deleted, while custom study sessions can be filtered by scope, tags, difficulty, card count and order. Undo applies to grades and collection changes, which makes experimentation less risky.

The statistics side is unusually substantial for a terminal flashcard program. It includes an activity heatmap, session history, tag breakdowns, quick statistics, streak tracking and configurable daily goals. Themes, session size and card ordering can be adjusted from within the interface, while the persistent frame keeps navigation and status information visible throughout a session.

terminal-anki can also exchange material with Anki. It imports .apkg packages and Anki text exports, can preserve existing scheduling data where supported, and can export cards in an Anki-compatible text format. Images can be displayed on cards in supported terminals. Study data and configuration are stored locally, with atomic writes and recovery handling intended to reduce the risk of a damaged collection.

This is free and open source software.

Key Features

  • Uses SM-2 spaced repetition scheduling with fixed keyboard shortcuts for grading recall.
  • Offers custom study sessions filtered by tags, difficulty, scope, card count and ordering.
  • Provides a card browser with search, due-state information, editing and deletion.
  • Lets you add and edit cards and tags directly from the terminal interface.
  • Supports undo for grades, edits, deletions and imports.
  • Includes an activity heatmap, session history, tag breakdowns, streaks and quick statistics.
  • Imports Anki .apkg packages and Anki text exports while retaining scheduling information where supported.
  • Exports cards in an Anki-compatible text format and can display images on cards in supported terminals.
  • Offers configurable themes, daily goals, session sizes and card ordering.
  • Uses atomic file writes and keeps corrupted collection files aside rather than silently overwriting them.

Website: github.com/dandrok/terminal-anki
Support:
Developer: dandrok
License: MIT License

terminal-anki is written in TypeScript. Learn TypeScript with our recommended free books and free tutorials.


Related Software

Terminal-Based Flashcard Software
hashcardsPlain text-based spaced repetition system for flashcards
repeaterLike a lightweight, text-based Anki you run in your terminal
mdfcLearn with flashcards and spaced repetition
tui-deckTUI frontend for Nextcloud Deck
ReviseTUI Anki client
trrcToRRential Card processor
hascardMinimal command-line utility for reviewing notes
HardVBilled as a powerful cross-platform flashcard program
VocageMinimalistic terminal-based vocabulary-learning tool
carddownSpaced repetition for markdown notes
FlashdownSpaced repetition using flashcards in Markdown
studyFlashLearn flashcards in your terminal

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted