Where and how are the Anki decks stored?

I am new to the Anki codebase and was trying to understand all of it’s components. I was hoping someone could explain the location of the folder that contains the database for the user’s decks and cards. I can see the sqlite database queries in rslib/src/storage but would like to know where I could see the data.

Good to start from the collection API

2 Likes

In an actual install: Managing Files - Anki Manual .

2 Likes

If you wanted to know the structure of the database tables then see here:

Though old, it’s still accurate for the most part. I think the only thing missing is a description of the new FSRS values stored in the revlog.

1 Like

Thanks for sharing that, I was wondering what a lot of the acronyms/terms meant.