{"id":22687906,"url":"https://github.com/brickfrog/ankigen","last_synced_at":"2025-04-12T21:52:12.867Z","repository":{"id":267202525,"uuid":"865678080","full_name":"brickfrog/ankigen","owner":"brickfrog","description":"Gradio application using LLMs to generate csv/apkg to aid with memorizing topics in Anki","archived":false,"fork":false,"pushed_at":"2025-02-15T22:45:37.000Z","size":334,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:12:42.652Z","etag":null,"topics":["anki","gradio"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/brickfrog/ankigen","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brickfrog.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,"publiccode":null,"codemeta":null}},"created_at":"2024-09-30T23:55:06.000Z","updated_at":"2025-02-15T22:45:40.000Z","dependencies_parsed_at":"2024-12-09T02:34:45.043Z","dependency_job_id":"485c123a-09dc-4bf6-be2c-5df441a911cb","html_url":"https://github.com/brickfrog/ankigen","commit_stats":null,"previous_names":["brickfrog/ankigen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickfrog%2Fankigen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickfrog%2Fankigen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickfrog%2Fankigen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickfrog%2Fankigen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brickfrog","download_url":"https://codeload.github.com/brickfrog/ankigen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637833,"owners_count":21137538,"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","gradio"],"created_at":"2024-12-10T00:12:04.378Z","updated_at":"2025-04-12T21:52:12.858Z","avatar_url":"https://github.com/brickfrog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: AnkiGen\nemoji: 📚\napp_file: app.py\nrequirements: requirements.txt\npython: 3.12\nsdk: gradio\nsdk_version: 5.13.1\n---\n\n# AnkiGen - Anki Card Generator\n\nAnkiGen is a Gradio-based web application that generates Anki-compatible CSV files using Large Language Models (LLMs) based on user-specified subjects and preferences.\n\n## Features\n\n- Generate Anki cards for various subjects\n- Customizable number of topics and cards per topic\n- User-friendly interface powered by Gradio\n- Exports to CSV for manual import or .apkg format with out of the box css styling\n- Utilizes OpenAI's structured output to mimic chain of thought to minimize hallucinations\n\n## TODO\n\n- [ ] cloze cards? (checkbox?)\n- [ ] File upload / parsing longer texts / books as input?\n- [ ] Novelty Fields / Custom? [ELI5], etc.\n\n## Screenshot\n\n![AnkiGen Screenshot](example.png)\n\n\n## Installation for Local Use\n\nPreferred usage: [uv](https://github.com/astral-sh/uv)\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/brickfrog/ankigen.git\ncd ankigen\nuv venv\n```\n\n\n2. Install the required dependencies:\n\n```bash\nuv pip install -r requirements.txt\n```\n\n3. Set up your OpenAI API key (required for LLM functionality).\n\n## Usage\n\n1. Run the application:\n\n```bash\nuv run gradio app.py --demo-name ankigen\n```\n\n2. Open your web browser and navigate to the provided local URL (typically `http://127.0.0.1:7860`).\n\n3. In the application interface:\n- Enter your OpenAI API key\n- Specify the subject you want to create cards for\n- Adjust the number of topics and cards per topic\n- (Optional) Add any preference prompts\n- Click \"Generate Cards\"\n\n4. Review the generated cards in the interface.\n\n5. Click \"Export to CSV\" to download the Anki-compatible file or Export to  Anki Deck to export as a .apkg that can be imported into Anki.\n\n## Development\n\nThis project is built with:\n- Python 3.12\n- Gradio 5.13.1\n\nTo contribute or modify:\n1. Make your changes in `app.py`\n2. Update `requirements.txt` if you add new dependencies\n3. Test thoroughly before submitting pull requests\n\n## License\n\nBSD 2.0\n\n## Acknowledgments\n\n- This project uses the Gradio library (https://gradio.app/) for the web interface\n- Card generation is powered by OpenAI's language models\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrickfrog%2Fankigen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrickfrog%2Fankigen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrickfrog%2Fankigen/lists"}