{"id":26700378,"url":"https://github.com/liufei/ai-dictionary","last_synced_at":"2026-04-25T16:33:49.695Z","repository":{"id":284473505,"uuid":"955059494","full_name":"liufei/ai-dictionary","owner":"liufei","description":"Ask AI to explain the word in a sentence and save the definition to Anki.","archived":false,"fork":false,"pushed_at":"2025-05-24T13:12:29.000Z","size":3729,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T18:08:22.344Z","etag":null,"topics":["ai","anki","ankiconnect","dictionary","ollama","openai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/liufei.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,"zenodo":null}},"created_at":"2025-03-26T03:33:35.000Z","updated_at":"2025-05-24T13:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c064c47b-ce8b-4c4e-b0b7-c783f39b5f49","html_url":"https://github.com/liufei/ai-dictionary","commit_stats":null,"previous_names":["liufei/ai-dictionary"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/liufei/ai-dictionary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufei%2Fai-dictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufei%2Fai-dictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufei%2Fai-dictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufei%2Fai-dictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liufei","download_url":"https://codeload.github.com/liufei/ai-dictionary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufei%2Fai-dictionary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","anki","ankiconnect","dictionary","ollama","openai"],"created_at":"2025-03-27T00:19:56.320Z","updated_at":"2026-04-25T16:33:49.691Z","avatar_url":"https://github.com/liufei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Dictionary\n\n\u003e Ask AI to explain the word in a sentence and save the definition to Anki.\n\n\u003cimg width=\"357\" alt=\"ai-dictionary\" src=\"https://github.com/user-attachments/assets/b5c7b334-e119-463a-91fa-69866e59c30f\" /\u003e\n\u003cimg width=\"357\" alt=\"anki card\" src=\"https://github.com/user-attachments/assets/cec136fe-03e4-4a78-a50a-ecb0e4e1daae\" /\u003e\n\n## Ask AI to explain the word in a sentence\n\n### Requirements\n\n- LLM API Key\n\n### Installation\n\n- Download [latest release](https://github.com/liufei/ai-dictionary/releases)\n- **OR** run command `go install github.com/liufei/ai-dictionary/cmd/ai-dictionary`\n\n### Usage\n\n1. Open terminal, and then set environment variables\n    ```sh\n    # Claude, Deepseek, Gemini, Ollama, OpenAI, etc.\n    export OPENAI_BASE_URL=https://***; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=***\n    ```\n2. Run command `ai-dictionary`\n\n## Save the definition to Anki\n\n### Requirements\n\n- Anki Desktop\n- AnkiConnect\n\n### Usage\n\n1. Open Anki, create deck `AI Dictionary`.\n\n\u003cimg width=\"768\" alt=\"anki deck\" src=\"https://github.com/user-attachments/assets/7a6fbe99-5dfd-4303-ab04-cc4fcffe194a\" /\u003e\n\n2. Click `Tools` -\u003e `Manage Note Types` from Anki menu, add note type `AI Dictionary`.\n\n\u003cimg width=\"768\" alt=\"note type\" src=\"https://github.com/user-attachments/assets/ceaa06f1-85cc-4a16-8812-dc05a8e4f27e\" /\u003e\n\n3. Add card template.\n\n\u003cimg width=\"768\" alt=\"card template\" src=\"https://github.com/user-attachments/assets/76da63ae-ce04-4252-abd1-5c4994d288ed\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufei%2Fai-dictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliufei%2Fai-dictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufei%2Fai-dictionary/lists"}