{"id":19493501,"url":"https://github.com/zekfad/nhentai_dart","last_synced_at":"2025-08-01T22:41:41.049Z","repository":{"id":49036662,"uuid":"449450189","full_name":"Zekfad/nhentai_dart","owner":"Zekfad","description":"Dart client for nhentai.net undocumented APIs","archived":false,"fork":false,"pushed_at":"2024-07-26T23:24:27.000Z","size":115,"stargazers_count":11,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T03:11:35.200Z","etag":null,"topics":["api","api-client","dart","dart-package","doujin","hentai","nhentai","nhentai-api"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/nhentai","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zekfad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-18T21:16:18.000Z","updated_at":"2025-02-18T18:20:13.000Z","dependencies_parsed_at":"2024-01-22T19:12:09.027Z","dependency_job_id":null,"html_url":"https://github.com/Zekfad/nhentai_dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Fnhentai_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Fnhentai_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Fnhentai_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Fnhentai_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zekfad","download_url":"https://codeload.github.com/Zekfad/nhentai_dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890366,"owners_count":21503483,"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":["api","api-client","dart","dart-package","doujin","hentai","nhentai","nhentai-api"],"created_at":"2024-11-10T21:26:11.829Z","updated_at":"2025-08-01T22:41:41.026Z","avatar_url":"https://github.com/Zekfad.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Client for nhentai.net undocumented APIs\n\n## Features\n\n* Full model (books, images, tags, comments, users).\n* Search for text query.\n* Search by tag(s).\n* Get random book.\n* Configurable hosts.\n* Support for custom `Client` (via\n  [`package:http`](https://pub.dev/packages/http)).\n* Out-of-box HTTP proxy support (configurable via URI).\n* Out-of-box User Agent override and Cookies support.\n\n### Notes about web usage\n\nUsing this module on web platform is experimental and has some drawbacks:\n\n* You can't access nhentai directly due to CORS.\n  * Workaround: use CORS enabled mirror (for example you can use\n    [dev-mirror](https://github.com/Zekfad/dev-mirror)).\n* `API#getRandomBook` doesn't work due to limitations of `XHR`.\n  * Workaround: use\n  [`package:fetch_client`](https://pub.dev/packages/fetch_client).\n* Proxy isn't supported on web.\n* User Agent override isn't supported on web.\n* Cookies helper functions aren't supported on web.\n\n## Usage\n\nImport the package:\n```dart\nimport 'package:nhentai/nhentai.dart';\n```\nCreate client instance:\n```dart\nfinal api = API();\n```\n\nGet the data:\n```dart\n/// Throws if book is not found, or parse failed, see docs.\nfinal Book book = await api.getBook(421025);\n\n// Short book summary\nprint(\n  'Book: $book\\n'\n  'Artists: ${book.tags.artists.join(', ')}\\n'\n  'Languages: ${book.tags.languages.join(', ')}\\n'\n  'Cover: ${api.hosts.getImageUrl(book.cover)}\\n'\n  'First page: ${api.hosts.getImageUrl(book.pages.first)}\\n'\n  'First page thumbnail: ${api.hosts.getImageUrl(book.pages.first.thumbnail)}',\n);\n```\n\nSee more usage at [example](example/) folder.\n\n## License\n\n* ISC License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekfad%2Fnhentai_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekfad%2Fnhentai_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekfad%2Fnhentai_dart/lists"}