{"id":15116871,"url":"https://github.com/abeleinin/goki","last_synced_at":"2025-09-27T22:31:34.877Z","repository":{"id":225254750,"uuid":"765481391","full_name":"abeleinin/goki","owner":"abeleinin","description":"Anki-like flashcard management tool for the terminal!","archived":false,"fork":false,"pushed_at":"2024-09-23T04:56:22.000Z","size":1767,"stargazers_count":97,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-27T01:54:09.099Z","etag":null,"topics":["bubbletea","charmbracelet","cli","flashcards","golang","productivity","studying","tui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abeleinin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-01T02:07:13.000Z","updated_at":"2024-09-26T00:12:33.000Z","dependencies_parsed_at":"2024-03-01T03:26:44.408Z","dependency_job_id":"a91eca45-8242-4b40-96e7-cd09b7a3b8fd","html_url":"https://github.com/abeleinin/goki","commit_stats":null,"previous_names":["abeleinin/goki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeleinin%2Fgoki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeleinin%2Fgoki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeleinin%2Fgoki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeleinin%2Fgoki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abeleinin","download_url":"https://codeload.github.com/abeleinin/goki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234462055,"owners_count":18837244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bubbletea","charmbracelet","cli","flashcards","golang","productivity","studying","tui"],"created_at":"2024-09-26T01:45:22.018Z","updated_at":"2025-09-27T22:31:29.139Z","avatar_url":"https://github.com/abeleinin.png","language":"Go","funding_links":[],"categories":["CLI/TUI Apps"],"sub_categories":["Other"],"readme":"# Goki\n\nA terminal-based spaced repetition flashcard tool. \n\n## Now supports OpenAI API Integration and...\n\n- **Importing decks from Anki and csv's!**\n- **Reviewing from TUI and Terminal!**\n\n![Screenshot example of Goki](img/goki_main.png)\n\nTheme: [material default-community](https://github.com/kaicataldo/material.vim)\n\nGoki is an intelligent flashcard management tool inspired by \n[Anki](https://apps.ankiweb.net/) built in the terminal!\n\n## Table of contents\n\n- [TUI Demo](#tui-demo)\n- [Key Mappings](#key-mappings)\n- [Installation](#installation)\n- [Examples](#examples)\n    - [OpenAI API Integration](#openai-api-integration)\n    - [Import Flashcards](#import-from-csv)\n    - [Reviewing Flashcards](#reviewing-flashcards)\n    - [Creating Decks](#creating-decks)\n    - [Creating Flashcards](#creating-flashcards)\n- [Commands](#commands)\n- [Resources](#resources)\n\n## TUI Demo\n\nLaunch by running `goki`:\n\nhttps://github.com/abeleinin/goki/assets/95333017/91d46c80-6580-4550-b6c2-405342a48290\n\nGoki features a [Spaced Repetion Algorithm](https://en.wikipedia.org/wiki/Spaced_repetition)\nwhich uses user feedback on card difficulty to effectively space out practice sessions.\n\n## Key Mappings\n\n\u003cdetails\u003e\n\u003csummary\u003eHome Page\u003c/summary\u003e\n\n| Action       | Keybinding |\n|--------------|------------|\n| Review Decks Flashcards | `r`        |\n| Create New Deck         | `N`        |\n| Generate a Deck using GPT | `G`        |\n| View Deck Card List     | `o`        |\n| Edit Deck Name          | `e`        |\n| Delete Deck      | `d`        |\n| Move Up          | `up arrow`,`k`      |\n| Move Down        | `down arrow`,`j`      |\n| Toggle Help Menu      | `?`        |\n| Quit             | `q`,`ctrl+c` |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFlashcard List Page\u003c/summary\u003e\n\n| Action           | Keybinding |\n|------------------|------------|\n| Move Up          | `up arrow`,`k`      |\n| Move Down        | `down arrow`,`j`      |\n| Next page        | `right arrow`,`l`      |\n| Previous Page    | `left arrow`,`h`      |\n| Search Flashcards | `/`        |\n| New Card     | `n`        |\n| Edit Card    | `e`        |\n| Delete Card  | `d`        |\n| Undo Deleted Card | `u`    |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eCreate/Edit Flashcard Form\u003c/summary\u003e\n\n| Action         | Keybinding |\n|----------------|------------|\n| Next Field / Submit | `enter`    |\n| Previous Field      | `tab`      |\n| Exit Form           | `esc`      |\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFlashcard\u003c/summary\u003e\n\n| Action      | Keybinding |\n|-------------|------------|\n| Exit Review | `esc`      |\n| Show Back   | `o`        |\n| Flashcard needs repeated again | `1`        |\n| Flashcard took some thought | `2`        |\n| Flashcard was easy to remember | `3`        |\n\n\u003c/details\u003e\n\n## Installation\n\nUsing `go`:\n\n```\ngo install github.com/abeleinin/goki@latest\n```\n\nBuild from source (go 1.13+)\n\n```\ngit clone https://github.com/abeleinin/goki.git\ncd goki\ngo build\n```\n\n## Examples\n\n### OpenAI API Integration\n\nhttps://github.com/abeleinin/goki/assets/95333017/96234116-ef6f-4238-959a-b972e9adf0b3\n\nSupports:\n\n- Generating decks from text or markdown files using `stdin`\n- Generating arbitrary decks from a `\u003cprompt\u003e` in CLI and TUI\n\nGoki uses `gpt-4-turbo-preview`. Set the `OPENAI_API_KEY` environment variable to a valid OpenAI key. You can generate one [here](https://platform.openai.com/api-keys).\n\nThere are two ways to generate decks using the API. First, you can use `stdin` to generate a deck from your notes:\n\n```\ngoki --gpt \u003c my_notes.txt\ngoki --gpt \"my prompt\"\n```\n\nOr from the TUI, you can use the `G` key to be prompted to type some content on the bottom of the screen relating to the deck you want to generate. Testing has been limited, so please [report](https://github.com/abeleinin/goki/issues/new) any bugs or errors that occur.\n\n### Import from CSV\n\n![Import from stdin](img/import.gif)\n\nUsing the pipe operator `\u003c` to feed flashcard data in as `stdin`. Apply \na custom name with the `-n` flag, or a default name will be assigned.\n`-t` flag assigns the data seperation character, comma `,` separation\nis the default.\n\n```\ngoki \u003c flashcards.csv                      # default sep=','\ngoki -t \u003c flashcards.txt                   # use -t to set sep='\\t'\ngoki -n \"My Deck Name\" \u003c flashcards.csv\ngoki -n \"My Deck Name\" -t \u003c flashcards.txt\n```\n\nHere is an example of data formatting. Only rows with 2 elements \nwill be parsed, the first as the question and second as answer.\n\n```\n\"Question\",\"Answer\"\nQuestion    Answer\n```\n\n### Import from Anki\n\nExport as `Notes in Plain Text (.txt)` in Anki, which generates a tab `\\t` separated text file. Run the follow on the exported file.\n\n```\ngoki -n \"My Anki Cards\" -t \u003c anki.txt\n```\n\n### Reviewing Flashcards\n\nPress `r` on the selected deck you want to review on the home page. Or\nuse the command `goki review \u003cdeck index\u003e` to review from the CLI.\n\n**Review from CLI:**\n\n![Review deck in cli](img/review_cli.gif)\n\n**Review from TUI:**\n\n![Review deck in tui](img/review.gif)\n\n### Creating Decks\n\nPress `N` in the home page. Use `e` to edit the currently selected deck.\n\n![Create new deck](img/create_deck.gif)\n\n### Creating Flashcards\n\nPress `o` to view the cards in a deck. Press `n` to create a new card.\n\n![Create new flashcard](img/create_card.gif)\n\n## Commands\n\n```\nUsage:\n  goki                      - tui mode\n  goki list                 - view deck index\n  goki review \u003cdeck index\u003e  - review deck from cli\n\t\t\nImport:\n  opt:                      - optional flags\n    -n \"deck name\"          - assigned deck name to imported cards\n    -t                      - assigns tab sep (default sep=',')\n\n  goki opt \u003c deck.txt       - import deck in using stdin\n\nGenerate:\n  goki --gpt \"my prompt\"    - generate a deck from a text prompt\n  goki --gpt \u003c my_notes.txt - generate a deck from text or markdown files\n```\n\n## Resources\n\n- [Augmenting Long-term Memory ](https://augmentingcognition.com/ltm.html) by Michael Nielsen, Y Combinator Research, July 2018\n- Created using [Charm](https://charm.sh/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabeleinin%2Fgoki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabeleinin%2Fgoki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabeleinin%2Fgoki/lists"}