{"id":15057350,"url":"https://github.com/b1anca/easy-anki","last_synced_at":"2026-01-31T23:14:32.565Z","repository":{"id":181716186,"uuid":"666905458","full_name":"b1anca/easy-anki","owner":"b1anca","description":"Generate your Anki flashcards for language learning with ChatGPT","archived":false,"fork":false,"pushed_at":"2023-07-21T01:28:54.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T20:49:22.443Z","etag":null,"topics":["anki","flashcards","openai","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/b1anca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-16T01:40:34.000Z","updated_at":"2023-10-05T22:36:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"656cee49-ae0a-40cf-80c0-1590a8b77047","html_url":"https://github.com/b1anca/easy-anki","commit_stats":null,"previous_names":["b1anca/easy-anki"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1anca%2Feasy-anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1anca%2Feasy-anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1anca%2Feasy-anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1anca%2Feasy-anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1anca","download_url":"https://codeload.github.com/b1anca/easy-anki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725635,"owners_count":20337670,"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":["anki","flashcards","openai","ruby","ruby-gem"],"created_at":"2024-09-24T22:05:26.024Z","updated_at":"2026-01-31T23:14:27.512Z","avatar_url":"https://github.com/b1anca.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Anki\n\nFetch translations and definitions using ChatGPT and generate your Anki flashcards from an array of words, a `.csv` or your exported `.txt` Anki deck.\n\n[![Gem Version](https://badge.fury.io/rb/easy-anki.svg)](https://badge.fury.io/rb/easy-anki)\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```sh\n$ bundle add easy-anki\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```sh\n$ gem install easy-anki\n```\n\n## Configuration\n\nGet your API key and organization ID from https://platform.openai.com/account/api-keys\n\nYou can either create a `.env` from the `.env_sample` file and add your credentials, the default values will be fetched from this file, or configure the gem, for example in an initializer file.\n\n```rb\nEasyAnki.configure do |config|\n  config.openai_access_token = ENV.fetch(\"OPENAI_ACCESS_TOKEN\")\n  config.openai_organization_id = ENV.fetch(\"OPENAI_ORGANIZATION_ID\")\n  config.target_language = ENV.fetch(\"TARGET_LANGUAGE\")\nend\n```\n\n## Usage\n\n```rb\nwords = [{ text: \"rambling\" }, { text: \"beckoned\", context: \"something else to add to the flashcard\" }] # or\nwords = EasyAnki.parse_input_file('csv-input.csv') # or an exported .txt file from Anki\nEasyAnki.generate_flashcards(words) # generate CSV file to import to Anki\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/b1anca/easy-anki. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/b1anca/easy-anki/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the EasyAnki project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/b1anca/easy-anki/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1anca%2Feasy-anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1anca%2Feasy-anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1anca%2Feasy-anki/lists"}