Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netr/haki
Anki Card Creator
https://github.com/netr/haki
anki golang
Last synced: 6 days ago
JSON representation
Anki Card Creator
- Host: GitHub
- URL: https://github.com/netr/haki
- Owner: netr
- Created: 2024-08-19T01:37:07.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-16T01:07:49.000Z (21 days ago)
- Last Synced: 2024-10-17T12:34:40.294Z (20 days ago)
- Topics: anki, golang
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anki Card Creator
This tool uses the AnkiConnect API and AI APIs to create Anki cards efficiently. The motivation behind this tool is to make the process of creating Anki cards a lot easier and faster. When you're reading a book and want to create Anki cards for the new words you come across, you can use this tool to create the cards in a few seconds and continue reading.
## Installation
```bash
go install github.com/netr/haki@latest
```## Features / Commands
### Vocabulary Cards
```bash
haki vocab --word "cacophony"
```- [x] Automatically fetches the definition and example sentence.
- [x] Creates a TTS of the word using OpenAI's tts-1 model.
- [ ] Automatically fetch the pronunciation of the word.## Development
### Git Hooks
To set up the Git hooks for this project:
1. Navigate to the project root.
2. Run the following commands:
```bash
ln -s ../../hooks/pre-commit .git/hooks/pre-commit
ln -s ../../hooks/pre-push .git/hooks/pre-push
chmod +x .git/hooks/pre-commit .git/hooks/pre-push
```