• Stars
    star
    512
  • Rank 85,743 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.

CrowdAnki

Build Status

[δΈ­ζ–‡η‰ˆδ»‹η»]

CrowdAnki is a plugin for http://ankisrs.net/ that allows users to import and export decks/notes and all relevant information in a JSON format. The main purpose is to facilitate crowd-sourcing for Anki decks and notes.

Starting with version 0.6 it also features a close integration with Git. Providing you with an ability to automatically maintain history of edits for your decks.
See more details below.

AnkiWeb link for the plugin: https://ankiweb.net/shared/info/1788670778


Please consider supporting the plugin development by becoming a Patron - this helps me to dedicate more time and love to the project

Become a Patron!


How to collaborate via GitHub

This section illustrates collaboration workflow using GitHub.

Suppose you have a deck named DeckX and you want to collaborate on its improvement with other people. In order to achieve this you will need to:

  1. Export the DeckX. You can do that by going to Anki: File > Export > Export format: CrowdAnki JSON Representation. Include: DeckX.
  2. Create a GitHub account for yourself and ask your collaborators to do the same (see: https://github.com/join).
  3. Create a repository for your deck by following this guide https://guides.github.com/activities/hello-world/#repository. The name of the repository has to correspond to the name of the directory that was created during the export. In our case, it would be named DeckX.
  4. Add collaborators to the repository: https://help.github.com/articles/inviting-collaborators-to-a-personal-repository/.

GUI workflow

Preface:

My goal here is to provide a user-friendly description of collaboration workflow. In order to do that, I looked through multiple GUI git clients. For our purposes here, I think GitHub Desktop is the best choice (as the most user-friendly client that works). There is one problem with GitHub Desktop, though - it doesn't have a Linux version. Which makes me particularly sad, as I use Linux as my main OS. I've considered using GitKraken for this tutorial, but it has some problems that disqualify it for our purposes (but if you're Linux user or if you don't like GitHub Desktop for some reason - you may still want to consider using it).

Initiating collaboration

  1. Install GitHub Desktop for your computer.
  2. Log in to it with you GitHub account, created earlier.
  3. Create a new repository. "Local path" should point to the place you've imported your deck, the name of the repository should be the same as the name of exported directory. Image
  4. Add the content of your directory to the repository, by selecting all of the files, adding some comment in comment field and pressing "Commit to master" Image
  5. Upload the changes you've just made to the GitHub, by pressing button "Publish" and then "Publish <RepositoryName>". In this case, you don't need to create repository in advance, GitHub Desktop will create it for you. Image

To start working on the deck your collaborators need to:

  1. Install GitHub Desktop for their computer.
  2. Clone the repository you've created. They can do that by going to the repository page on GitHub and pressing "Clone or download -> Open in Desktop". Image
  3. Import the deck.

If somebody just wants to use the deck you've uploaded to GitHub - they can import decks directly from there.

How to upload changes

When you or one of your collaborators want to upload changes you've made to the GitHub, you need to:

  1. Get the latest changes from the GitHub, by pressing "Sync" button in the top right corner. Image
  2. Import the deck to combine changes you've made with the changes other people have made.
  3. Export the deck the same directory where your repository is located so that export will overwrite media directory and JSON file in the repository. (As an alternative you can export it elsewhere and copy JSON file and media directory yourself to overwrite the ones that are in repository directory.)
  4. Add the changes you've made to the repository, by selecting all of the files, adding some comment in comment field and pressing "Commit to master" Image
  5. Upload changes you've made to the GitHub, by pressing "Sync" button in the top right corner.

If you just want to get latest changes from other people - you need to perform only steps 1 and 2.

CLI workflow

Initiating collaboration

  1. Install git on your computer.

  2. Go to the directory that resulted from export.

  3. Initialize repository with following commands:

    git init
    git remote add origin [email protected]:<username>/<repository>.git
    

    Where is your GitHub username (in my case Stvad) and is the name of the repository (DeckX). So in our case the command will look like:

    git remote add origin [email protected]:Stvad/DeckX.git
    
  4. Add the content of your directory to the repository:

    git add *
    git commit -m "initial export"
    
  5. Upload changes you've made to the GitHub:

    git push origin master
    

To start working on the deck your collaborators need to:

  1. Install git on their machine.

  2. Clone the repository you've created:

    git clone https://github.com/Stvad/DeckX.git
    
  3. Import the deck.

If somebody just wants to use the deck you've uploaded to GitHub - they can import decks directly from there.

How to upload changes

When you or one of your collaborators want to upload changes you've made to the GitHub, you need to:

  1. Get the latest changes from the GitHub:

    git pull
    
  2. Import the deck to combine changes you've made with the changes other people have made.

  3. Export the deck the same directory where your repository is located so that export will overwrite media directory and JSON file in the repository. (As an alternative you can export it elsewhere and copy JSON file and media directory yourself to overwrite the ones that are in repository directory.)

  4. Add the changes to the repository:

    git add *
    git commit -m "new updates"
    
  5. Upload changes you've made to the GitHub:

    git push origin master
    

If you just want to get latest changes from other people - you need to perform only steps 1 and 2.

Generic collaboration workflow

The current workflow could be described as following:

  • The user creates or imports an Anki deck.
  • He makes some modification to it (i.e. to notes, deck settings, deck structure or note models).
  • Then the user can export the deck in JSON format (accompanied by media directory with media files used in that deck) and share it with other users. For example by creating GitHub repository with it.
  • Other people then can either modify JSON directly or import the deck to their instance of Anki and then make some modifications to it.
  • Original JSON then can be updated the with the changes, these people made (merging several changes together if necessary).
  • After that original user (and other people) can import updated deck to integrate these new changes into their collection.

Export

To perform the export go to menu File > Export

Select the deck and the export format "CrowdAnki JSON representation". After pressing the Export button - select directory where the result should be stored.

Limitations:

  • CrowdAnki won't allow you to do export of "All decks", you should use CrowdAnki snapshot instead.
  • Export of a filtered deck is not supported, export the main deck instead and filter it again after importing. You don't have to delete existing filtered decks, as all cards are still part of the main deck. When exporting nested decks, filtered sub-decks are just ignored.

Import

To perform the import go to menu File > CrowdAnki: Import from disk and select the directory where the deck is stored.

Import from git

To get the deck from a git repository (such as GitHub) go to menu File > CrowdAnki: Import git repository and enter the repository's full URL.

So, for example, to get my git deck you would need to enter https://github.com/Stvad/Software_Engineering__git.

Things to note for the Import:

  • Automatic backup would be triggered prior to the import;
  • If note model for the note has changed, or if note model itself changed in a way that it's not easy to update it automatically: you would be prompted with the window, that will ask you to specify correspondence between old and new model;
  • If the note was moved to another deck in JSON file, on import all cards from that note (except the ones, that are in dynamic decks) will be moved to the specified deck.

Snapshots

CrowdAnki can help you preserve the history of edits for your decks.
It does this by exporting them in a specified location and creating a git commit each time you do a snapshot.

You can take snapshots manually via File > CrowdAnki: Snapshot menu action. Or you can enable automated snapshots in add-on configuration (see below) which will take a snapshot each time you open or close anki.

Configuration Settings

You can find the add-on's config page via Tools -> Add-ons, select CrowdAnki then hit Config. In here you can set a some config options, as well as a detailed explanation on what each does, with examples and default behaviour.

Here is a general summary of the currently available config options:

  • Snapshot Path: location of the snapshot will be exported to
  • Snapshot Root Decks: when a snapshot is taken a git repo will be generated for each of these decks
  • Automated Snapshot: whether the snapshot happens automatically
  • Do Not Move Existing Cards on Import: whether to move already existing cards on import or not
  • Deck Sort Methods: how to sort cards on export
  • Reverse Sort Order: whether to reverse the sorting of cards on export

More Repositories

1

FuzzyDate

Alfred Workflow to parse a fuzzy date and print the formal date
Kotlin
55
star
2

alfred-otter

Alfred workflow for searching and retrieving transcripts from Otter.ai
TypeScript
27
star
3

goodreads2roam

Converts GoodReads export into the RoamResearch format
Clojure
26
star
4

google_books_highlight_extractor

A script to extract highlights and notes from Google Books GDoc to RoamResearch, Markdown, Anki CSV
Python
23
star
5

Software_Engineering__git

Git Anki deck in CrowdAnki format
16
star
6

link-summoner

Enable live link previews on your website
TypeScript
13
star
7

RoamAsana

Convert Asana project to RoamResearch page
Python
9
star
8

iroam

Interactive notebooks inside Roam
TypeScript
9
star
9

Asana-counter

Greasemonkey script for Asana to sum up numbers in brackets for selected tasks
JavaScript
7
star
10

anki2roam

Anki exporter to Markdown or HTML preserving SRS scheduling information in a way compatible with Roam Toolkit
Python
7
star
11

kotlin-alfred-workflow-template

A template for creating Alfred Workflows with KotlinJS
Kotlin
7
star
12

Learning__Mind_for_numbers_or_Learning_how_to_Learn

Anki deck for the material from Coursera courseLearning How to Learn (https://www.coursera.org/learn/learning-how-to-learn/home/welcome)
7
star
13

roam-date

TypeScript
5
star
14

kask

A Kotlin library designed to improve an experience of developing Alexa skills on JVM
Kotlin
4
star
15

lasttolibre

Python3 adaptation for scripts from lasttolibre project. They allow you to export your last.fm scrobbled sonds and then import them to libre.fm
Python
3
star
16

AsanaExport

Script to export all information about your Workspaces, Projects and Tasks from Asana
Python
2
star
17

hello-kask

An example Alexa skill project that is using kask library.
Kotlin
2
star
18

roam-notes-workflow

2
star
19

matrix-serverless-setup

A tool to help you configure serverless matrix bots
TypeScript
2
star
20

embed-matrix

Embed Live View on Matrix room into any webpage
TypeScript
2
star
21

matrix-rx

RxJS Matrix client
TypeScript
2
star
22

C2mobi

converts djvu/pdf to mobi with futures
Shell
2
star
23

Software__Intellij_Platform_Keyboard_Shortcuts

IntelliJ platform keyboard shortcuts Anki deck
1
star
24

LabirintEditor

C++
1
star
25

kask-gradle-plugin

A gradle plugin to do the Alexa model code generation.
Kotlin
1
star
26

seloger_scraper

Parser for SeLoger.com
Python
1
star
27

Psychology

1
star
28

DeckX

1
star
29

pyconie_dsl

Materials/examples for the PyconIE 2018 talk: Domain specific languages in Python. Why and How
Python
1
star
30

python_katas

Python
1
star
31

alexa-life-advice

Alexa skill inspired by the book "Algorithms to live by"
Kotlin
1
star
32

Software_Engineering__Regular_Expressions

1
star
33

roam-matrix

Matrix chat client for RoamResearch
TypeScript
1
star
34

Learning__How-to-Formulate-Knowledge

1
star