Mochi

FAQ

Importing and exporting

Is it possible to import decks from Anki?

While importing from Anki is not officially supported, there is an open source tool that can convert Anki's .apkg files to Mochi's .mochi import files. It can be found here.

How can I create my own .mochi files?

In Mochi, imports use the format .mochi. These are are zip files that contain the following files:

The data.edn is a text file with EDN (an alternative to JSON) that contains information about the notes, cards, and decks to be imported. A sample data.edn might look like this:

{:decks [{:name "Sample deck"
          :cards [{:content "Sample card"}]}]
 :notes [{:name "Sample note"
          :content "Note content"
          :cards [{:content "Another sample card"}]}]}

The top level data structure is a map with the following format:

Top level map

Optional


Deck

Required

Optional


Note

Required

Optional


Card

Required

Optional


Review

Required