This README provides a guide on how to use the Anki Deck Creator as a plugin for ChatGPT. Please follow the steps below to get started.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm.
- You have installed NestJS.
- You have installed Anki, a powerful flashcards app.
- You have installed AnkiConnect, a plugin for Anki, which allows external apps to communicate with Anki over a web-based API.
- Clone this repository to your local machine.
git clone https://github.com/skspade/ChatGPTAnkiPlugin.git
- Navigate to the project directory.
cd chatgptanki
- Install the dependencies.
npm install
To start the application, run the following command:
npm run start
This will start the server at http://localhost:3333 (unless you have a different port specified in your .env
file).
You must switch to the plugin mode in ChatGPT to use the plugin. To do this, click on the Plugin
button in the top right corner of the ChatGPT interface.
Then you must install the plugin by going to the Plugin Store, once there click Develop your own plugin
and enter the URL of the plugin server (http://localhost:3333 by default).
GET /.well-known/ai-plugin.json
: This endpoint serves the AI plugin manifest file.GET /openapi.yaml
: This endpoint serves the OpenAPI specification in YAML format.GET /openapi.json
: This endpoint serves the OpenAPI specification in JSON format.GET /logo.png
: This endpoint serves the logo of the plugin.
POST /createDeck
: This endpoint is used to create a new deck. It takes aDeckRequest
object in the request body.POST /addCards
: This endpoint is used to add notes to a deck. It takes aNotesRequest
object in the request body.
If you encounter any errors, please check the console logs for any error messages or warnings.
For any improvements, bug reports or feature requests, please file an issue in the GitHub repo.
This project is licensed under the terms of the MIT license.
If you want to contact me, please raise an issue in the GitHub repo or contact me through my email.
This project was created as a plugin for the ChatGPT model developed by OpenAI.