!!! The project is no longer being maintained due to the constant changes and code refactoring of Anki. Adapting to each update has become too exhausting. !!!
Warning. The software is in a early stage, backup your data before use
anki is a great website. It's supposed to be a life saver for people want to learn with flash cards. However, their sever is too slow and often fail to sync data from my iPhone.
This project is a personal web server replacement for the official ankiweb with limited functions. Inspired by anki-sync-server.
For a quick start, you can use docker. Please check anki-web-server-docker, it will start both snyc server and web server for you.
anki-web-server runs on Python 3(3.8 is preferred). It needs the anki-sync-server from ankicommunity for data server.
Use anki 2.1.40 for better compatibility.
-
Build up a anki-sync-server. Make sure you have already enabled user authentication and add some cards to the sync server.
-
Install requirements for anki-web-server.
pip install -r requirements.txt
-
Rename ankiweb.conf.sample to ankiweb.conf. You need to modify
anki_sync_server_path
to the location where you put the anki-sync-server while the program will look forcollections
folder in the path. -
Run anki-web-server.
python app.py
- Open http://127.0.0.1:27702/ in your browser. Enjoy!
(If you have set context_path=ankiweb
in ankiweb.conf, the url would be http://127.0.0.1:27702/ankiweb/.)
test the api with
curl http://127.0.0.1:27702/api/status/