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 in action

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
hascardMinimal command-line utility for reviewing notes
HardVBilled as a powerful cross-platform flashcard program
VocageMinimalistic terminal-based vocabulary-learning tool
FlashdownSpaced repetition using flashcards in Markdown
carddownSpaced repetition for markdown notes
terminal-ankiKeyboard-driven flashcards with spaced repetition and Anki imports
GoCardMarkdown-based flashcard system with spaced repetition

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted