Files
README.md

tala #

Tala is a Typst flashcard authoring and review app. The desktop build stores a deck in a folder; the web build stores one local deck in IndexedDB.

Run it #

Install the pinned Rust toolchain and the matching Dioxus CLI:

cargo install dioxus-cli --version 0.7.10 --locked

Desktop, from the workspace root:

cargo run -p tala -- /path/to/deck

The deck argument is optional; without it, the native app uses its current working directory. From crates/tala, the equivalent Dioxus command is:

dx serve --platform desktop

To try the browser build:

cd crates/tala
dx serve --web

The browser does not have access to a deck folder or the native filesystem. Use Settings → Import JSON backup to load a deck and Settings → Export JSON backup to download one as tala-deck.json.

Card syntax #

Cards require a unique embedded ID. Use the Editor's New card action or write the ID yourself:

#card(id: "abc123")[Front content][Back content]

#cloze(id: "def456")[The answer is #blank[hidden].]

#img("diagram")

#card(dir: "bi", ...) creates forward and reverse review items. Tags can be provided with tags: ("topic", "subtopic"). Native Typst image calls such as #image("images/diagram.png") are also supported.

Tala preserves source exactly as typed. It does not insert IDs, auto-format cards, or rewrite source when a deck opens. Review and statistics report an identity error until every card has a unique embedded ID.

Routes and shortcuts #

The app has Settings, Stats, Editor, Images, and Review routes. Settings also contains portable JSON import/export and schedule reset.

Key Action
Ctrl + / Ctrl - Zoom in / out
Ctrl 0 Reset zoom
1–4 during review Grade Again through Easy
Space / Enter during review Reveal the answer
S during review Skip the current item

Workspace #

tala-format ─┐
tala-srs ────┼──> tala
tala-typst ──┘
  • tala-format parses cards and exposes canonical embedded-ID helpers.
  • tala-srs defines schedules, review history, and FSRS updates.
  • tala-typst renders through an asset-provider seam. Native rendering can use files; browser rendering uses snapshot image bytes.
  • tala is the Dioxus application and owns DeckSnapshot, repositories, and shared DeckSession state.

There is no CLI package in this version. See docs/architecture.md for the persistence model and platform boundary. Contributor setup and validation commands are in CONTRIBUTING.md.