{"id":30425115,"url":"https://github.com/benjaminhottell/rust-anki-connect-wrapper","last_synced_at":"2026-04-18T12:03:23.184Z","repository":{"id":310595538,"uuid":"1039801238","full_name":"benjaminhottell/rust-anki-connect-wrapper","owner":"benjaminhottell","description":"Wrapper for Anki-Connect REST API written in Rust","archived":false,"fork":false,"pushed_at":"2025-08-28T02:04:19.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-28T09:31:58.321Z","etag":null,"topics":["anki","anki-connect","ankiconnect"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjaminhottell.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-08-18T02:09:39.000Z","updated_at":"2025-08-28T02:04:23.000Z","dependencies_parsed_at":"2025-08-19T05:32:27.755Z","dependency_job_id":"6f8d0963-6409-4554-8fa8-68fb18926e8b","html_url":"https://github.com/benjaminhottell/rust-anki-connect-wrapper","commit_stats":null,"previous_names":["benjaminhottell/rust-anki-connect-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benjaminhottell/rust-anki-connect-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhottell%2Frust-anki-connect-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhottell%2Frust-anki-connect-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhottell%2Frust-anki-connect-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhottell%2Frust-anki-connect-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjaminhottell","download_url":"https://codeload.github.com/benjaminhottell/rust-anki-connect-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminhottell%2Frust-anki-connect-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anki","anki-connect","ankiconnect"],"created_at":"2025-08-22T12:00:48.241Z","updated_at":"2026-04-18T12:03:23.164Z","avatar_url":"https://github.com/benjaminhottell.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-anki-connect-wrapper\n\nA thin wrapper around the [Anki-Connect REST API](https://git.sr.ht/~foosoft/anki-connect) for [Anki](https://apps.ankiweb.net/), written in Rust.\n\n## Usage\n\nCreate a client wrapper\n\n```rust\nlet anki = ankiconnect::Client::builder()\n    .with_url(args.url)\n    .build();\n```\n\nMake an API request\n\n```rust\nlet browse_query = \"prop:ivl\u003e=21\";\n\nlet browse_request = GuiBrowse::builder()\n    .query(browse_query)\n    .build();\n\nif let Err(e) = anki.invoke(\u0026browse_request).await {\n    eprintln!(\"Failed to display browser: {e}\");\n    std::process::exit(1);\n};\n```\n\n## Testing\n\n### Unit testing\n\nUnit tests can be executed without an Anki instance running. These test internal components only, and do not make any connections to Anki or Anki-Connect.\n\n```rust\ncargo test --lib\n```\n\nYou can also run the doctests without an Anki instance running.\n\n```rust\ncargo test --doc\n```\n\n### Integration testing\n\nIntegration tests require an Anki instance with the Anki-Connect plugin installed, available at the default port on localhost.\n\nThe `stateless` tests will run a series of non-modifying API requests (e.g. `version`). These should not modify the state of the Anki instance, and should therefore be 'safe' to run.\n\n```rust\ncargo test --tests stateless\n```\n\nIn the future modifying tests could be added so it is best to specify `stateless` explicitly.\n\n## Help wanted\n\nOnly a small subset of all of the API endpoints have been implemented. Pull requests to add support for more endpoints are welcome.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminhottell%2Frust-anki-connect-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminhottell%2Frust-anki-connect-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminhottell%2Frust-anki-connect-wrapper/lists"}